/* EauRadar / Atlas — V6 épurée sans illustration ni cartes de présentation. */
:root{
  --ink:#17313e;
  --muted:#637a7c;
  --line:#dedfd6;
  --blue:#0b8f85;
  --aqua:#0cb39b;
  --sky:#f1f7f0;
  --card:#fff;
  --shadow:0 16px 52px rgba(16,47,61,.08);
  --atlas-navy:#102e3d;
  --atlas-deep:#092735;
  --atlas-mint:#78dec7;
  --atlas-paper:#f6f5ee;
  --atlas-stroke:#e3e5db;
}
html{scroll-padding-top:95px}
body{background:var(--atlas-paper);color:var(--ink)}
main{overflow:visible}
a:focus-visible,button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #23afaa;outline-offset:3px}
.skip-link{z-index:9999}

/* Navigation — même hamburger à droite sur tous les écrans. */
.topbar{position:sticky;top:0;z-index:500;max-width:none;min-height:66px;margin:0;padding:0 24px;background:var(--atlas-navy);color:#fff;border-bottom:1px solid rgba(144,229,217,.18);box-shadow:0 2px 18px rgba(5,30,41,.08)}
.topbar-inner{position:relative;display:flex;align-items:center;width:min(1200px,100%);min-height:66px;margin:0 auto;gap:18px}
.topbar .brand{display:inline-flex;align-items:center;gap:9px;flex:0 1 auto;margin:0;color:#fff;font-size:23px;letter-spacing:-.045em;white-space:nowrap}
.atlas-brand-symbol{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border:1px solid #70dbc7;border-radius:50%;color:#89ecda;font-size:24px;font-weight:400;line-height:1}
.atlas-brand-title{display:inline-flex;align-items:baseline;font-weight:850;line-height:1}
.atlas-brand-title>span:last-child{color:var(--atlas-mint)}
.atlas-brand-subtitle{align-self:center;margin-left:1px;font-size:12px;font-weight:500;letter-spacing:0;color:#94acb5}
.atlas-header-caption{margin-left:auto;color:#a7c5cc;font-size:11px;font-weight:650;letter-spacing:.08em;text-transform:uppercase}
.topbar .eau-menu-toggle{display:flex;order:2;flex:0 0 44px;width:44px;height:42px;margin:0 0 0 3px;padding:0;gap:5px;flex-direction:column;align-items:center;justify-content:center;background:transparent;color:#e7fff6;border:1px solid rgba(191,228,227,.45);border-radius:8px;box-shadow:none;cursor:pointer}
.topbar .eau-menu-toggle:hover,.topbar .eau-menu-toggle[aria-expanded="true"]{background:rgba(120,222,199,.13);border-color:#78dec7}
.topbar .eau-menu-toggle span{background:currentColor}
.topbar .nav,.topbar>.nav,.topbar>.nav.is-open{position:absolute;top:calc(100% + 5px);right:0;left:auto;z-index:600;display:none;flex-direction:column;align-items:stretch;width:min(335px,calc(100vw - 32px));min-width:0;max-width:none;max-height:min(75vh,550px);overflow:auto;margin:0;padding:8px;border:1px solid #38576a;border-radius:12px;background:var(--atlas-deep);box-shadow:0 24px 52px rgba(5,29,41,.36);gap:2px;color:#e7f4f2}
.topbar .nav.is-open{display:flex}
.topbar .nav a{display:flex;min-height:45px;align-items:center;padding:10px 14px;white-space:normal;border-radius:7px;color:#d9e9e9;font-size:13px;font-weight:700;line-height:1.35}
.topbar .nav a:hover,.topbar .nav a:focus-visible{background:#204858;color:#fff}
.topbar .nav a[aria-current="page"]{background:#174d54;color:#88f3d7}
.topbar .nav .atlas-nav-extra{border-top:1px solid #395662;border-radius:0;margin-top:6px;padding-top:15px;color:#9ee2d4}

/* Hero Atlas — la recherche reste le vrai formulaire et conserve les IDs JS. */
.hero.atlas-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,.84fr);gap:0;align-items:stretch;max-width:1220px;min-height:490px;margin:0 auto 0;padding:0;background:#f6f5ee;border:0;border-radius:0;box-shadow:none}
.atlas-hero .atlas-hero-copy{position:relative;z-index:5;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;padding:58px clamp(24px,4.5vw,66px) 48px clamp(24px,4.5vw,66px)}
.atlas-eyebrow{display:flex;align-items:center;gap:9px;color:#087d75;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.145em}
.atlas-dot{height:8px;width:8px;border-radius:50%;background:#0caf99;box-shadow:0 0 0 4px #d7f1e7}
.atlas-hero h1{max-width:700px;margin:22px 0 20px;font-weight:900;letter-spacing:-.055em;font-size:clamp(44px,5.1vw,70px);line-height:1.04;color:#122e3b}
.atlas-hero h1 span{background:none;-webkit-background-clip:initial;background-clip:initial;color:#068f85}
.atlas-hero .hero-copy>p{margin:0 0 24px;max-width:465px;color:#526b70;font-size:14px;line-height:1.78;font-weight:450}
.atlas-hero .hero-copy>p strong{color:#233f49;font-weight:750}
.atlas-hero .searchbox{position:relative;width:100%;max-width:510px;margin:0;padding:6px;border-radius:10px;background:white;border:1px solid #cfddd8;box-shadow:0 12px 26px rgba(16,47,61,.1)}
.atlas-hero .search-row{gap:4px;flex-wrap:nowrap;min-height:48px}
.atlas-hero .search-icon{font-size:26px;padding-left:12px;color:#0e9f90;line-height:1}
.atlas-hero .search-row input{min-width:0;flex:1 1 auto;width:auto;padding:11px 7px;color:#173b4a;font-size:14px;border:0;background:transparent;box-shadow:none}
.atlas-hero .search-row input::placeholder{color:#6e8286}
.atlas-hero .search-row button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;width:auto;min-height:45px;padding:10px 15px;border:0;border-radius:6px;background:#0c9884;color:#fff;white-space:nowrap;font-size:12px;font-weight:800;box-shadow:none;transition:background .14s ease,transform .14s ease}
.atlas-hero .search-row button:hover{background:#076f66;transform:translateY(-1px)}
.atlas-hero .search-row button:after{content:"↗";margin-left:2px;font-size:16px;line-height:1}
.atlas-hero .search-row button:disabled:after{display:none}
.atlas-hero .suggestions{top:calc(100% + 5px);left:0;right:0;z-index:100;padding:7px;border-radius:9px;background:#fff;border-color:#d0e1da;box-shadow:0 18px 46px rgba(10,42,57,.18)}
.atlas-hero .suggestion{border-radius:7px}
.atlas-hero .suggestion:hover,.atlas-hero .suggestion.active{background:#e8f7f1}
.atlas-hero .search-status{margin:8px 7px 2px}
.atlas-trust{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:15px;color:#617978;font-size:10px;font-weight:750}
.atlas-trust span{display:inline-flex;align-items:center;gap:6px;line-height:1.45}
.atlas-trust span:before{content:'•';color:#0d9d89;font-size:15px;line-height:.5}
/* Déclinaison Atlas pour les pages de résultats et les autres outils. */
.results,.how{max-width:1220px}
.results{scroll-margin-top:85px;padding-top:48px;border-top:1px solid var(--atlas-stroke)}
.section-head h2{color:#17313e}
.eyebrow{color:#0a8f82}
.ghost-btn{border-color:#ceded8;border-radius:7px;color:#226b6b}
.ghost-btn:hover{background:#e8f7ef;border-color:#9bd4c5}
.metric-card,.seo-block,.history-panel,.history-chart-card,.calculator-shell,.advice-grid article,.how-grid article,.tool-water-card,.alert-hero-badge,.lead-side article{border-color:var(--atlas-stroke);border-radius:11px;box-shadow:0 6px 23px rgba(16,47,61,.045)}
.metric-card.featured{background:linear-gradient(125deg,#fff,#eff8f2)}
.metric-card,.seo-block,.history-chart-card{background-color:#fff}
.status-banner,.result-score{background:#ebf6ef;border-color:#d4e9df;border-radius:12px}
.status-pill{color:#087d75;border-color:#c8e5da}
.history-tab.active{background:var(--atlas-navy);border-color:var(--atlas-navy)}
.history-tab{border-radius:7px}
.advice-cta{border-radius:11px;border-color:#d3e5dc;background:#eff9f1}
.primary-link,.secondary-link{border-radius:7px}
.primary-link{background:#0a937f}
.how-grid article{border:1px solid var(--atlas-stroke);background:#fff}
.how-grid article>span{background:#e4f6ee;color:#087f78}
.tool-page,.legal-page,.department-page,.topic-page{min-height:45vh}
.tool-hero h1,.legal-hero h1{color:#17313e}
.tool-hero h1 span{color:#0b9989}
.tool-water-card{background:radial-gradient(circle at 50% 38%,#fff,#e7f8f1)}
.tool-hero,.legal-hero{border-color:var(--atlas-stroke)}
.breadcrumbs a:hover{color:#087f78}
.notice,.source-note{color:#637877}

/* Pied de page : même charte et conservation des liens légaux / cookies. */
.site-footer{max-width:none;margin:0;padding:34px clamp(20px,5vw,64px) 21px;border-top:1px solid #274858;background:var(--atlas-navy);color:#a2bec5}
.site-footer-main,.site-footer-bottom{width:min(1140px,100%);margin-left:auto;margin-right:auto}
.site-footer .brand{color:white}
.site-footer .brand span{color:white}
.site-footer p{color:#adbdc2}
.site-footer nav a,.site-footer .footer-cookie-link{color:#d7e9e9}
.site-footer nav a:hover,.site-footer .footer-cookie-link:hover{color:var(--atlas-mint)}
.site-footer-bottom{border-top-color:#365564;color:#adc3c7}
.cookie-notice,.cookie-modal-card{color:#17313e}
.cookie-notice-actions button,.cookie-modal-actions button{background:#0b8f85}

@media(max-width:920px){
  .topbar{padding:0 18px;min-height:64px}
  .topbar-inner{min-height:64px}
  .topbar .brand{font-size:22px}
  .topbar .nav{top:calc(100% + 1px);right:0;left:auto;max-height:min(75vh,500px);width:min(335px,calc(100vw - 28px));border-radius:0 0 12px 12px}
  .hero.atlas-hero{grid-template-columns:minmax(0,1fr) minmax(0,.9fr);min-height:470px;gap:0;padding:0;margin:0 auto}
  .atlas-hero .atlas-hero-copy{padding:48px 24px 40px}
  .atlas-hero h1{font-size:clamp(38px,5vw,54px);line-height:1.06}
  .atlas-hero .search-row{flex-wrap:wrap}
  .atlas-hero .search-row input{flex:1 1 80%;padding:10px 8px}
  .atlas-hero .search-row button{width:100%;min-height:44px}
}
@media(max-width:680px){
  body{background:#f6f5ee}
  .topbar{min-height:58px;padding:0 15px}
  .topbar-inner{min-height:58px;gap:8px}
  .topbar .brand{font-size:21px;gap:7px}
  .atlas-brand-symbol{width:33px;height:33px;flex-basis:33px;font-size:21px}
  .atlas-brand-subtitle{font-size:10px}
  .atlas-header-caption{display:none}
  .topbar .eau-menu-toggle{width:39px;height:39px;flex:0 0 39px;margin-left:auto}
  .hero.atlas-hero{display:flex;flex-direction:column;gap:0;margin:0;min-height:0;padding:0}
  .atlas-hero .atlas-hero-copy{padding:36px 19px 31px}
  .atlas-eyebrow{font-size:10px}
  .atlas-hero h1{font-size:clamp(39px,9.6vw,49px);line-height:1.05;letter-spacing:-.055em;margin:19px 0 16px}
  .atlas-hero .hero-copy>p{font-size:13px;line-height:1.7;margin-bottom:21px;max-width:490px}
  .atlas-hero .searchbox{padding:6px;max-width:none}
  .atlas-hero .search-row{display:flex;flex-wrap:wrap;gap:0}
  .atlas-hero .search-icon{padding-left:9px;font-size:25px;display:inline-block}
  .atlas-hero .search-row input{flex:1 1 60%;width:0;font-size:14px;padding:11px 8px}
  .atlas-hero .search-row button{flex:0 0 100%;width:100%;min-height:45px;margin-top:5px;font-size:12px}
  .atlas-trust{gap:6px 13px;margin-top:15px;font-size:10px}
  .results{padding-top:32px}
  .result-actions{display:flex;flex-wrap:wrap;gap:8px}
  .result-actions .ghost-btn{margin:0}
  .metric-card,.seo-block,.calculator-shell,.advice-grid article{border-radius:11px}
  .tool-page{padding-top:18px}
  .site-footer{padding:28px 18px 20px;margin-top:25px}
}
@media(max-width:359px){
  .atlas-brand-subtitle{display:none}
  .atlas-hero h1{font-size:37px}
  .atlas-trust{font-size:9px;gap:6px 9px}
  .atlas-hero .atlas-hero-copy{padding-left:15px;padding-right:15px}
}
@media(prefers-reduced-motion:reduce){
  .atlas-hero .search-row button{transition:none}
  .atlas-hero .search-row button:hover{transform:none}
}

/* Harmonisation des actions sur les outils sans modifier leur logique. */
.hardness-form button,.primary-button,.lead-form-card button[type=submit],.alert-form button[type=submit]{background:#0a937f;border-radius:8px}
.hardness-form button:hover,.primary-button:hover,.lead-form-card button[type=submit]:hover,.alert-form button[type=submit]:hover{background:#08766c}
.hardness-form input:focus,.hardness-form select:focus{border-color:#4ab6a1;box-shadow:0 0 0 4px rgba(27,170,145,.12)}


/* V6 — La lecture et la recherche passent en premier. */
.hero.atlas-hero{display:block;max-width:1100px;min-height:0;margin:0 auto;padding:0;background:transparent}
.atlas-hero .atlas-hero-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;max-width:890px;min-height:0;margin:0 auto;padding:74px 30px 68px}
.atlas-hero h1{max-width:820px;font-size:clamp(46px,5.4vw,68px);line-height:1.04}
.atlas-hero .hero-copy>p{max-width:620px;font-size:15px;line-height:1.73}
.atlas-hero .searchbox{max-width:720px}
.atlas-trust{gap:18px}
#departments-discovery-title{scroll-margin-top:100px}
.atlas-hero + .seo-block{margin-top:0}
@media(max-width:920px){
  .hero.atlas-hero{display:block;min-height:0;margin:0 auto;padding:0}
  .atlas-hero .atlas-hero-copy{padding:48px 25px 43px;max-width:740px}
  .atlas-hero h1{font-size:clamp(41px,6.2vw,58px)}
}
@media(max-width:680px){
  .hero.atlas-hero{display:block;min-height:0;margin:0 auto;padding:0}
  .atlas-hero .atlas-hero-copy{padding:38px 18px 34px;max-width:none}
  .atlas-hero h1{font-size:clamp(39px,9.6vw,49px);line-height:1.05}
  .atlas-hero .hero-copy>p{font-size:13px;line-height:1.7}
  .atlas-hero .searchbox{max-width:none}
  .atlas-trust{gap:9px 15px}
}
@media(max-width:359px){
  .atlas-hero .atlas-hero-copy{padding:33px 15px 30px}
  .atlas-hero h1{font-size:37px}
}
