
:root{
  --bg:#fff;
  --text:#121212;
  --muted:#686868;
  --line:#dedede;
  --soft:#f7f7f5;
  --soft-2:#fbfbfa;
  --max:1180px;
  --radius:14px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.6;
}
a{color:inherit}
button,select,input{font:inherit}
button{cursor:pointer}
img{max-width:100%;display:block}
.container{width:min(var(--max),calc(100% - 40px));margin-inline:auto}

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-row{
  min-height:70px;
  display:flex;
  align-items:center;
  gap:24px;
}
.site-logo{
  font-size:22px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.045em;
  text-decoration:none;
  white-space:nowrap;
}
.tool-switcher{
  display:flex;
  align-items:stretch;
  align-self:stretch;
  margin-left:24px;
}
.tool-link{
  display:flex;
  align-items:center;
  padding:0 16px;
  text-decoration:none;
  font-size:14px;
  font-weight:850;
  border-left:1px solid transparent;
  border-right:1px solid transparent;
}
.tool-link:hover{background:var(--soft)}
.tool-link.active{
  background:var(--text);
  color:#fff;
}
.header-spacer{margin-left:auto}
.all-tools-link{
  font-size:14px;
  font-weight:800;
  text-decoration:none;
}
.privacy-badge{
  border:1px solid var(--text);
  padding:7px 10px;
  font-size:14px;
  font-weight:850;
  white-space:nowrap;
}

.hero{
  padding:66px 0 44px;
}
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:64px;
  align-items:end;
}
.eyebrow{
  margin:0 0 10px;
  font-size:14px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
h1,h2,h3{
  margin-top:0;
  line-height:1.05;
  letter-spacing:-.045em;
}
h1{font-size:clamp(58px,10vw,126px);margin-bottom:20px}
h2{font-size:clamp(36px,6vw,66px);margin-bottom:20px}
h3{font-size:24px;margin-bottom:10px}
.hero-lead{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(24px,3vw,38px);
  line-height:1.25;
  max-width:820px;
  margin:0 0 18px;
}
.hero-copy{
  max-width:780px;
  color:#333;
  font-size:17px;
}
.hero-links{
  display:flex;
  gap:20px;
  align-items:center;
  margin-top:28px;
}
.hero-note{
  border-top:3px solid var(--text);
  padding-top:18px;
}
.hero-note strong{font-size:20px}
.hero-note p{margin-bottom:0;color:var(--muted)}

.button{
  min-height:48px;
  padding:12px 18px;
  border:1px solid var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:850;
  text-decoration:none;
}
.button-primary{background:var(--text);color:#fff}
.button-secondary{background:#fff;color:var(--text)}
.text-link{font-size:15px;font-weight:800}

.generator-section{padding:70px 0}
.section-heading{max-width:820px;margin-bottom:34px}
.section-heading.compact{margin-bottom:28px}
.section-heading p:not(.eyebrow){color:var(--muted);font-size:17px}

.generator-layout{
  display:grid;
  grid-template-columns:360px minmax(0,1fr);
  gap:24px;
}
.control-panel,.results-panel{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}
.control-panel{padding:22px}
.control-group{display:grid;gap:8px;margin-bottom:18px}
.control-group label{font-size:14px;font-weight:850}
select{
  width:100%;
  min-height:46px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}
input[type=range]{width:100%;accent-color:#111}
.range-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.range-title output{font-size:14px;font-weight:900}
.range-labels{
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:14px;
}
.advanced-controls{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin:18px 0;
  padding:14px 0;
}
.advanced-controls summary{font-size:14px;font-weight:850;cursor:pointer}
.advanced-controls[open] summary{margin-bottom:18px}
.generate-actions{display:grid;gap:10px}

.results-panel{
  min-height:520px;
  padding:24px;
  display:flex;
  flex-direction:column;
}
.result-toolbar{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  border-bottom:1px solid var(--line);
  padding-bottom:18px;
}
.result-label{font-weight:900}
.result-meta{display:block;color:var(--muted);font-size:14px;margin-top:3px}
.toolbar-actions{display:flex;gap:8px}
.small-button{
  border:1px solid var(--line);
  background:#fff;
  padding:8px 11px;
  border-radius:7px;
  font-size:14px;
  font-weight:800;
}
.results{
  display:grid;
  gap:16px;
  flex:1;
  padding:26px 0;
}
.result-card{
  border-bottom:1px solid var(--line);
  padding-bottom:20px;
}
.result-card:last-child{border-bottom:0}
.result-number{
  margin-bottom:8px;
  color:var(--muted);
  font-size:14px;
  font-weight:900;
}
.result-text{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(23px,3vw,38px);
  line-height:1.3;
  letter-spacing:-.02em;
}
.result-text.long{font-size:clamp(19px,2.2vw,27px)}
.multi-generate{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  padding-top:18px;
  border-top:1px solid var(--line);
  font-size:14px;
}
.multi-generate span{font-weight:800;margin-right:4px}
.multi-generate button{
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  padding:8px 10px;
  font-weight:750;
}

.generator-features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  margin-top:24px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}
.generator-features article{
  padding:22px;
  border-right:1px solid var(--line);
}
.generator-features article:last-child{border-right:0}
.generator-features p{margin-bottom:0;color:var(--muted)}

.content-section{
  padding:76px 0;
  border-top:1px solid var(--line);
}
.content-section.alt{background:var(--soft)}
.prose{max-width:900px}
.prose p{
  margin:0 0 24px;
  color:#292929;
  font-family:Georgia,"Times New Roman",serif;
  font-size:20px;
  line-height:1.7;
}
.prose .eyebrow{
  color:var(--text);
  font-family:inherit;
  font-size:14px;
  line-height:1.6;
}

.faq-list{border-top:1px solid var(--line)}
.faq-list details{
  padding:18px 0;
  border-bottom:1px solid var(--line);
}
.faq-list summary{font-size:19px;font-weight:850;cursor:pointer}
.faq-list p{max-width:850px;color:#444;font-size:16px}

.tools-index{
  padding:70px 0 86px;
}
.tools-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin-top:32px;
}
.tool-card{
  min-height:300px;
  padding:28px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  display:flex;
  flex-direction:column;
  text-decoration:none;
}
.tool-card:hover{background:var(--soft-2)}
.tool-card .tag{
  margin-bottom:auto;
  color:var(--muted);
  font-size:14px;
  font-weight:850;
  text-transform:uppercase;
}
.tool-card h2{
  margin:40px 0 14px;
  font-size:clamp(42px,6vw,72px);
}
.tool-card p{
  max-width:550px;
  color:#444;
  font-family:Georgia,"Times New Roman",serif;
  font-size:20px;
}
.future-card{
  border-style:dashed;
  color:var(--muted);
}
.future-card h2{color:var(--text)}

.site-footer{
  padding:28px 0;
  border-top:1px solid var(--line);
}
.footer-row{
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  font-size:14px;
}
.footer-row span{color:var(--muted)}

@media(max-width:900px){
  .tool-switcher{order:3;width:100%;margin-left:0;border-top:1px solid var(--line)}
  .header-row{flex-wrap:wrap;padding-top:10px}
  .tool-link{min-height:44px}
  .header-spacer{margin-left:auto}
  .hero-grid,.generator-layout{grid-template-columns:1fr}
  .generator-features,.tools-grid{grid-template-columns:1fr}
  .generator-features article{border-right:0;border-bottom:1px solid var(--line)}
  .generator-features article:last-child{border-bottom:0}
}
@media(max-width:600px){
  .container{width:min(100% - 28px,var(--max))}
  .privacy-badge{display:none}
  .all-tools-link{font-size:13px}
  .hero{padding-top:48px}
  .hero-links{flex-direction:column;align-items:flex-start}
  .result-toolbar{flex-direction:column}
  .results-panel,.control-panel{padding:18px}
}
@media print{
  .site-header,.hero,.control-panel,.generator-features,.content-section,.site-footer,.result-toolbar .toolbar-actions,.multi-generate{display:none!important}
  .generator-section{padding:0}
  .generator-layout{display:block}
  .results-panel{border:0;padding:0}
  .result-card{break-inside:avoid}
  .result-text{font-size:20pt}
}


/* ==========================================================
   Navigation responsive / hamburger
   ========================================================== */

.menu-toggle{
  display:none;
  width:44px;
  height:44px;
  flex:0 0 44px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  padding:0;
}
.menu-toggle-bar{
  display:block;
  width:20px;
  height:2px;
  background:currentColor;
  transition:transform .18s ease, opacity .18s ease;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(2){
  opacity:0;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

@media(max-width:1100px){
  .site-header{
    position:sticky;
  }

  .header-row{
    min-height:66px;
    flex-wrap:nowrap;
    padding-top:0;
  }

  .site-logo{
    margin-right:auto;
  }

  .menu-toggle{
    display:flex;
    order:10;
  }

  .header-spacer{
    display:none;
  }

  .all-tools-link{
    display:none;
  }

  .privacy-badge{
    margin-left:0;
  }

  .tool-switcher{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    width:100%;
    margin:0;
    padding:10px 0 14px;
    flex-direction:column;
    align-items:stretch;
    background:#fff;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    box-shadow:0 16px 28px rgba(0,0,0,.08);
    max-height:calc(100vh - 66px);
    overflow-y:auto;
  }

  .tool-switcher.is-open{
    display:flex;
  }

  .tool-link{
    min-height:48px;
    padding:12px max(20px, calc((100vw - var(--max))/2 + 20px));
    border:0;
    border-bottom:1px solid var(--line);
    font-size:16px;
  }

  .tool-link:last-child{
    border-bottom:0;
  }

  .tool-link.active{
    background:var(--text);
    color:#fff;
  }

  body.menu-open{
    overflow:hidden;
  }
}

@media(max-width:600px){
  .site-logo{
    font-size:20px;
  }

  .privacy-badge{
    display:none;
  }

  .menu-toggle{
    margin-left:auto;
  }

  .tool-link{
    padding-left:20px;
    padding-right:20px;
  }
}


/* Identité de navigation Phraseologie.fr */
.site-logo{
  text-transform:uppercase;
}
.tool-link{
  text-transform:uppercase;
  letter-spacing:0;
}


/* ==========================================================
   Mini Piedepagotron
   ========================================================== */

.piedepagotron-footer{
  padding:0;
}

.piedepagotron{
  padding-top:28px;
  padding-bottom:28px;
}

.piedepagotron-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.piedepagotron-brand{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:10px 14px;
}

.piedepagotron-brand strong{
  font-size:16px;
  letter-spacing:0;
}

.piedepagotron-label{
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  opacity:.55;
}

.piedepagotron-button{
  appearance:none;
  border:1px solid currentColor;
  background:transparent;
  color:inherit;
  border-radius:999px;
  padding:8px 12px;
  font:inherit;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  cursor:pointer;
  white-space:nowrap;
}

.piedepagotron-button:hover{
  opacity:.65;
}

.piedepagotron-result{
  margin:20px 0 18px;
  max-width:900px;
  font-size:18px;
  line-height:1.55;
  font-weight:500;
}

.piedepagotron-meta{
  display:flex;
  justify-content:space-between;
  gap:16px 30px;
  padding-top:16px;
  border-top:1px solid currentColor;
  font-size:10px;
  line-height:1.5;
  letter-spacing:.04em;
  opacity:.55;
}

@media(max-width:760px){
  .piedepagotron{
    padding-top:22px;
    padding-bottom:22px;
  }

  .piedepagotron-top{
    align-items:flex-start;
    flex-direction:column;
  }

  .piedepagotron-result{
    margin:16px 0;
    font-size:16px;
  }

  .piedepagotron-meta{
    flex-direction:column;
    gap:6px;
  }
}




/* ==========================================================
   Sloganotron
   ========================================================== */

.sloganotron-mini{
  background:#fff;
}

.sloganotron-mini-inner{
  min-height:60px;
  display:flex;
  align-items:center;
  padding-top:10px;
  padding-bottom:10px;
}

.sloganotron-button{
  min-height:48px;
  padding:13px 22px;
  border-radius:6px;
  font-size:14px;
  font-weight:700;
  letter-spacing:0;
  cursor:pointer;
}



@media(max-width:600px){
  .sloganotron-mini-inner{
    min-height:54px;
    padding-top:8px;
    padding-bottom:12px;
  }
}


/* Sloganotron final */
.hero + .sloganotron-mini{
  border-top:0 !important;
}
.sloganotron-mini{
  border:0 !important;
  box-shadow:none !important;
}
.sloganotron-mini-inner{
  border:0 !important;
  box-shadow:none !important;
}


/* ==========================================================
   RESPONSIVE SMARTPHONE — couche corrective finale
   ========================================================== */

/* Empêche tout élément de créer un débordement horizontal. */
html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

body{
  min-width:0;
}

main,
section,
header,
footer,
nav,
.container,
.hero-grid,
.generator-layout,
.control-panel,
.results-panel,
.generator-features,
.tools-grid,
.tool-card,
.prose,
.section-heading,
.piedepagotron,
.piedepagotron-top,
.piedepagotron-meta,
.sloganotron-mini-inner{
  min-width:0;
  max-width:100%;
}

.container{
  width:min(var(--max), calc(100% - 40px));
}

h1,
h2,
h3,
.hero-lead,
.hero-copy,
.result-text,
.tool-card h2,
.tool-card p,
.prose p,
.faq-list summary,
.faq-list p,
.piedepagotron-result,
.piedepagotron-meta,
.result-meta{
  overflow-wrap:anywhere;
  word-break:normal;
  hyphens:auto;
}

select,
input,
button,
textarea{
  max-width:100%;
}

.control-panel,
.results-panel{
  overflow:hidden;
}

.result-toolbar > *,
.range-title > *,
.piedepagotron-top > *,
.header-row > *{
  min-width:0;
}

/* Tablette : une seule colonne suffisamment tôt. */
@media(max-width:960px){
  .hero{
    padding:46px 0 34px;
  }

  .hero-grid{
    grid-template-columns:minmax(0,1fr);
    gap:30px;
    align-items:start;
  }

  .hero-note{
    width:100%;
  }

  .generator-section{
    padding:52px 0;
  }

  .generator-layout{
    grid-template-columns:minmax(0,1fr);
  }

  .generator-features{
    grid-template-columns:minmax(0,1fr);
  }

  .generator-features article{
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .generator-features article:last-child{
    border-bottom:0;
  }

  .tools-grid{
    grid-template-columns:minmax(0,1fr);
  }

  .content-section{
    padding:58px 0;
  }
}

/* Smartphone. */
@media(max-width:640px){
  :root{
    --radius:10px;
  }

  .container{
    width:calc(100% - 28px);
    max-width:none;
  }

  /* Header */
  .header-row{
    width:100%;
    min-height:60px;
    gap:10px;
  }

  .site-logo{
    max-width:calc(100% - 58px);
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:17px;
    letter-spacing:-.025em;
  }

  .menu-toggle{
    width:42px;
    height:42px;
    flex-basis:42px;
    margin-left:auto;
  }

  .tool-switcher{
    max-height:calc(100dvh - 60px);
    overscroll-behavior:contain;
  }

  .tool-link{
    width:100%;
    min-height:50px;
    padding:13px 14px;
    font-size:15px;
  }

  /* Hero */
  .hero{
    padding:34px 0 24px;
  }

  .hero-grid{
    gap:24px;
  }

  .eyebrow{
    font-size:12px;
    margin-bottom:8px;
  }

  h1{
    /* Ancien minimum : 58px, source majeure de débordement. */
    font-size:clamp(38px, 13vw, 58px);
    line-height:.98;
    letter-spacing:-.04em;
    margin-bottom:16px;
  }

  h2{
    font-size:clamp(30px, 9.5vw, 42px);
    line-height:1.02;
    margin-bottom:16px;
  }

  h3{
    font-size:21px;
  }

  .hero-lead{
    font-size:clamp(22px, 7vw, 29px);
    line-height:1.22;
    margin-bottom:14px;
  }

  .hero-copy{
    font-size:16px;
    line-height:1.55;
  }

  .hero-links{
    width:100%;
    margin-top:22px;
    gap:10px;
    flex-direction:column;
    align-items:stretch;
  }

  .hero-links .button{
    width:100%;
  }

  .text-link{
    display:inline-block;
    padding:5px 0;
  }

  .hero-note{
    padding-top:14px;
  }

  .hero-note strong{
    font-size:18px;
  }

  /* Sloganotron */
  .sloganotron-mini-inner{
    min-height:auto;
    padding-top:4px;
    padding-bottom:20px;
  }

  .sloganotron-button{
    width:100%;
    min-height:48px;
    border-radius:6px;
    padding:12px 16px;
    font-size:14px;
  }

  /* Générateurs */
  .generator-section{
    padding:42px 0;
  }

  .section-heading{
    margin-bottom:22px;
  }

  .section-heading.compact{
    margin-bottom:20px;
  }

  .section-heading p:not(.eyebrow){
    font-size:16px;
  }

  .generator-layout{
    gap:16px;
  }

  .control-panel,
  .results-panel{
    width:100%;
    padding:15px;
  }

  .control-group{
    margin-bottom:15px;
  }

  select{
    min-height:48px;
    padding:10px 36px 10px 10px;
    font-size:16px; /* évite le zoom automatique iOS */
  }

  input[type=range]{
    min-width:0;
  }

  .range-title{
    gap:10px;
    align-items:flex-start;
  }

  .range-labels{
    gap:10px;
    font-size:12px;
  }

  .generate-actions{
    width:100%;
  }

  .generate-actions .button{
    width:100%;
    min-width:0;
    white-space:normal;
    text-align:center;
  }

  .results-panel{
    min-height:0;
  }

  .result-toolbar{
    width:100%;
    padding-bottom:14px;
    gap:12px;
    flex-direction:column;
  }

  .toolbar-actions{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .small-button{
    width:100%;
    min-width:0;
  }

  .results{
    width:100%;
    padding:20px 0;
  }

  .result-card{
    width:100%;
    min-width:0;
  }

  .result-text{
    font-size:clamp(21px, 7.2vw, 29px);
    line-height:1.28;
  }

  .result-text.long{
    font-size:clamp(18px, 5.8vw, 23px);
  }

  .multi-generate{
    width:100%;
    align-items:stretch;
    gap:7px;
  }

  .multi-generate span{
    width:100%;
    margin:0 0 2px;
  }

  .multi-generate button{
    flex:1 1 calc(33.333% - 6px);
    min-width:0;
    padding:9px 6px;
    white-space:normal;
  }

  .generator-features{
    margin-top:16px;
  }

  .generator-features article{
    padding:18px;
  }

  /* Accueil */
  .tools-index{
    padding:44px 0 56px;
  }

  .tools-grid{
    gap:14px;
    margin-top:22px;
  }

  .tool-card{
    min-height:0;
    padding:20px;
  }

  .tool-card .tag{
    margin-bottom:28px;
    font-size:12px;
  }

  .tool-card h2{
    margin:0 0 12px;
    font-size:clamp(31px, 10vw, 45px);
    line-height:1;
  }

  .tool-card p{
    margin-bottom:0;
    font-size:17px;
    line-height:1.55;
  }

  /* Contenu éditorial */
  .content-section{
    padding:46px 0;
  }

  .prose p{
    font-size:18px;
    line-height:1.65;
  }

  .faq-list summary{
    font-size:17px;
    line-height:1.35;
    padding-right:6px;
  }

  /* Piedepagotron */
  .piedepagotron{
    padding-top:20px;
    padding-bottom:20px;
  }

  .piedepagotron-top{
    width:100%;
    gap:12px;
  }

  .piedepagotron-brand{
    width:100%;
  }

  .piedepagotron-button{
    width:100%;
    min-height:44px;
    border-radius:6px;
    white-space:normal;
  }

  .piedepagotron-result{
    width:100%;
    margin:16px 0;
    font-size:16px;
  }

  .piedepagotron-meta{
    width:100%;
    font-size:9px;
    overflow-wrap:anywhere;
  }
}

/* Très petits écrans : 320–380 px. */
@media(max-width:380px){
  .container{
    width:calc(100% - 20px);
  }

  .site-logo{
    font-size:15px;
  }

  h1{
    font-size:clamp(34px, 12vw, 45px);
  }

  h2{
    font-size:clamp(28px, 9vw, 36px);
  }

  .hero-lead{
    font-size:21px;
  }

  .control-panel,
  .results-panel{
    padding:12px;
  }

  .multi-generate{
    display:grid;
    grid-template-columns:1fr;
  }

  .multi-generate span{
    grid-column:1;
  }

  .multi-generate button{
    width:100%;
  }

  .toolbar-actions{
    grid-template-columns:1fr;
  }
}


/* ==========================================================
   MENU HAMBURGER — couche finale
   ========================================================== */

/* Desktop */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:#fff;
}

.header-row{
  position:relative;
}

.menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  width:48px;
  height:48px;
  padding:0;
  border:1px solid var(--text);
  border-radius:6px;
  background:#fff;
  color:var(--text);
  cursor:pointer;
  flex:0 0 48px;
}

.menu-toggle-bar{
  display:block;
  width:20px;
  height:2px;
  background:currentColor;
  transition:transform .18s ease, opacity .18s ease;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(2){
  opacity:0;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

/* Mobile / tablet */
@media (max-width:1100px){
  .header-row{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:64px;
  }

  .site-logo{
    margin-right:auto;
  }

  .menu-toggle{
    display:flex !important;
    margin-left:auto;
  }

  .tool-switcher{
    display:none !important;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    margin:0;
    padding:8px 0 12px;
    flex-direction:column;
    align-items:stretch;
    background:#fff;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    box-shadow:0 18px 30px rgba(0,0,0,.08);
    z-index:1001;
    max-height:calc(100dvh - 64px);
    overflow-y:auto;
    overflow-x:hidden;
  }

  .tool-switcher.is-open{
    display:flex !important;
  }

  .tool-link{
    display:block;
    width:100%;
    min-height:48px;
    padding:12px 16px;
    border:0;
    border-bottom:1px solid var(--line);
    text-align:left;
  }

  .tool-link:last-child{
    border-bottom:0;
  }

  body.menu-open{
    overflow:hidden;
  }
}

/* Desktop explicit fallback */
@media (min-width:1101px){
  .menu-toggle{
    display:none !important;
  }

  .tool-switcher{
    display:flex !important;
    position:static;
    flex-direction:row;
    align-items:center;
    box-shadow:none;
    max-height:none;
    overflow:visible;
    border:0;
    padding:0;
  }

  body.menu-open{
    overflow:auto;
  }
}
