/* v60/v67 — fonts.css est chargé en <link> par les pages (plus d'@import). */

/* ============================================================
   PAC YVERDON — pac-yverdon.ch
   Ambiance : Cinématique (Ash Thorp)
   Palette  : bleu lac / turquoise / ambre
   Typo     : Lexend (display) + IBM Plex Sans (body)
   ============================================================ */

:root {
  --c-primary:   #0C2E3A;
  --c-secondary: #2FA8A0;
  --c-accent:    #E4A63C;
  --c-white:     #FFFFFF;
  --c-dark:      #12262C;
  --c-muted:     #5B6B70;
  --trait:       #DCE5E6;
  --bruit-clair: #B9CDD2;
  --bg-alt:      #F2F7F7;
  --t:           'Lexend', sans-serif;
  --t-body:      'IBM Plex Sans', sans-serif;
  --shadow-card: 0 2px 14px rgba(12, 46, 58, .10);
  --shadow-lift: 0 10px 30px rgba(12, 46, 58, .18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--t-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-dark);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
p, ul, ol { margin-bottom: 1.15em; }
h1, h2, h3, h4 { font-family: var(--t); line-height: 1.2; color: var(--c-primary); }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 700; margin: 0 0 .45em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.1rem); margin-top: 2em; margin-bottom: .6em; font-weight: 600; }
h3 { font-size: 1.18rem; margin-top: 1.6em; margin-bottom: .5em; font-weight: 600; }
h4 { font-size: 1.02rem; margin-top: 1.4em; margin-bottom: .4em; font-weight: 600; }
a { color: var(--c-secondary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary); }
a, button, .btn { min-height: 44px; min-width: 44px; }
strong { font-weight: 600; }
code, .hl { background: var(--bg-alt); padding: .1em .4em; border-radius: 3px; font-size: .92em; }

.wrap { width: 100%; max-width: 1200px; padding-inline: clamp(16px, 4vw, 32px); margin-inline: auto; }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--c-primary); color: var(--bruit-clair); }
.section--dark h2, .section--dark h3 { color: var(--c-white); }
.section-lede { max-width: 720px; margin-bottom: 1.6em; font-size: 1.06rem; color: var(--c-muted); }
.section--dark .section-lede { color: var(--bruit-clair); }
.eyebrow {
  display: inline-block; font-family: var(--t); font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--c-secondary);
  margin-bottom: 1em; padding: 5px 12px; border: 1px solid rgba(47,168,160,.45); border-radius: 999px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; min-height: 44px; padding: clamp(10px, 2vw, 13px) clamp(20px, 3vw, 30px);
  font-family: var(--t); font-weight: 600; font-size: 1rem; border-radius: 4px;
  text-decoration: none; text-align: center; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  margin-top: 1.25em; line-height: 1.3;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-secondary); color: var(--c-white); box-shadow: 0 6px 18px rgba(47,168,160,.35); }
.btn--primary:hover { background: #27958e; color: var(--c-white); }
.btn--accent { background: var(--c-accent); color: var(--c-dark); box-shadow: 0 6px 18px rgba(228,166,60,.35); }
.btn--accent:hover { background: #d99a2c; color: var(--c-dark); }
.btn--outline { background: transparent; border-color: currentColor; }
.btn--outline-light { color: var(--c-white); }
.btn--outline-light:hover { color: var(--c-white); background: rgba(255,255,255,.08); }
.btn--block { display: block; width: 100%; }

/* ---------- Header ---------- */
.header { position: relative; background: var(--c-primary); border-bottom: 1px solid rgba(255,255,255,.1); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.header__logo { display: flex; align-items: center; gap: 10px; color: var(--c-white); text-decoration: none; min-height: 44px; }
.header__logo:hover { color: var(--c-white); }
.header__logo-icon { font-size: 1.5rem; color: var(--c-accent); line-height: 1; }
.header__logo-text { font-family: var(--t); font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
.header__logo-text em { font-style: normal; color: var(--c-secondary); }
.header__badge { color: var(--c-secondary); background: rgba(255,255,255,.1); border-radius: 999px; padding: 5px 13px; font-family: var(--t); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nav__list { display: flex; list-style: none; gap: 4px; margin: 0; padding: 0; align-items: center; }
.header__nav { display: flex; }
.lede { font-size: 1.1rem; }
.plain { font-size: .92rem; color: var(--c-muted); }
.nav__link { display: inline-block; color: rgba(255,255,255,.85); text-decoration: none; font-family: var(--t); font-size: .95rem; font-weight: 500; padding: 10px 14px; border-radius: 4px; }
.nav__link:hover { color: var(--c-white); background: rgba(255,255,255,.08); }
.nav__link--cta { color: var(--c-dark); background: var(--c-accent); border-radius: 4px; }
.nav__link--cta:hover { background: #d99a2c; color: var(--c-dark); }
.hamburger { display: none; cursor: pointer; background: none; border: 0; padding: 12px 10px; color: var(--c-white); }
.hamburger span { display: block; width: 26px; height: 3px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(46px, 7vw, 86px) 0 clamp(34px, 5vw, 58px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; object-fit: cover; width: 100%; height: 100%; opacity: 1; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,28,36,.90) 0%, rgba(8,28,36,.72) 42%, rgba(12,46,58,.38) 100%);
}
.hero::after {
  content: ''; position: absolute; top: -30%; right: -12%; width: 60%; height: 130%;
  z-index: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(47,168,160,.38), rgba(47,168,160,0) 72%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.045) 0 1px, transparent 1px 26px),
              repeating-linear-gradient(25deg, rgba(255,255,255,.03) 0 1px, transparent 1px 34px);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero-grid { display: flex; flex-direction: column; gap: clamp(24px, 4vw, 48px); }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .lede { color: rgba(255,255,255,.88); font-size: 1.13rem; max-width: 56ch; margin-bottom: .4em; }
.hero .plain { color: rgba(255,255,255,.72); font-size: .92rem; margin-top: .6em; }
.hero-form-wrap { background: var(--c-white); border-radius: 6px; padding: 22px 24px; box-shadow: 0 14px 40px rgba(0,0,0,.3); max-width: 460px; }
.hero-form-wrap h3, .hero-form-wrap .form-title { margin: 0 0 .5em; font-size: 1.1rem; font-weight: 600; }
.hero-form input, .hero-form select {
  width: 100%; padding: 12px 13px; border: 1px solid var(--trait); border-radius: 4px;
  margin-bottom: 10px; font-family: var(--t-body); font-size: .98rem; background: var(--c-white); color: var(--c-dark);
}
.hero-form select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%235B6B70' stroke-width='2' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.hero-form .btn { width: 100%; text-align: center; margin-top: 2px; }
.rgpd-check, .rgpd-label { display: flex; align-items: flex-start; gap: 9px; font-size: .95rem; color: var(--c-muted); margin-bottom: 12px; line-height: 1.45; }  /* v65 §13.92 — texte ≥ .95rem */
.rgpd-check input, .rgpd-label input { width: 22px; min-width: 22px; min-height: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--c-secondary); flex: none; }  /* v65 §13.92 — case ≥ 22 px */

/* ---------- Chiffres clés ---------- */
.chiffres-cles { display: grid; grid-template-columns: 1fr; gap: 18px; }
.chiffre { text-align: center; padding: 26px 18px; background: var(--c-white); border-radius: 6px; box-shadow: var(--shadow-card); border-top: 3px solid var(--c-secondary); }
.chiffre__num { font-family: var(--t); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; color: var(--c-primary); line-height: 1.1; }
.chiffre__num span { color: var(--c-secondary); }
.chiffre__label { font-size: .92rem; color: var(--c-muted); margin-top: 6px; }

/* ---------- Déroulé (pastilles) ---------- */
.pastilles { display: grid; grid-template-columns: 1fr; gap: 14px; counter-reset: etape; }
.pastille {
  display: flex; gap: 16px; align-items: flex-start; background: var(--c-white);
  border: 1px solid var(--trait); border-radius: 6px; padding: 18px 20px; counter-increment: etape;
}
.pastille__num {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary); color: var(--c-secondary); font-family: var(--t); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.pastille h3 { margin: 0 0 4px; font-size: 1.02rem; }
.pastille p { margin: 0; font-size: .94rem; color: var(--c-muted); }

/* ---------- Grilles & cartes ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 3vw, 32px); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 3vw, 28px); }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 3vw, 28px); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(16px, 3vw, 28px); justify-content: center; }
.card { background: var(--c-white); border-radius: 6px; box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card-img { height: 170px; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 8px; }
.card-body h3 a { color: var(--c-primary); text-decoration: none; }
.card-body h3 a:hover { color: var(--c-secondary); }
.card-body p { margin: 0 0 12px; font-size: .95rem; color: var(--c-muted); flex: 1; }
.card-body .btn { margin-top: 1.1em; align-self: flex-start; }
.card-icon { font-size: 1.7rem; margin-bottom: 10px; }
.cards-grid { display: grid; gap: 20px; }

/* Pourquoi nous choisir : cartes avec icônes */
.why-card { text-align: center; padding: 26px 20px; }
.why-card .card-icon { font-size: 2rem; }

/* ---------- Prestations ---------- */
.presta-subsection { display: grid; grid-template-columns: 48px 1fr; gap: 16px; margin-bottom: 1.4em; }
.presta-subsection__icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border-radius: 8px; font-size: 1.35rem; }
.presta-subsection__text h3, .presta-subsection__text .presta-subsection__title { margin: 0 0 .5em; font-size: 1.18rem; font-weight: 600; }
.presta-subsection__text p { margin-bottom: .6em; }
.section-img { max-width: min(760px, 100%); margin: 2.2em auto; display: block; border-radius: 8px; box-shadow: var(--shadow-card); height: auto; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 32px); }
.blog-card { background: var(--c-white); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow .2s; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow-lift); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card h2 { font-size: 1.12rem; margin: 14px 18px 6px; line-height: 1.35; }
.blog-card h2 a { color: var(--c-primary); text-decoration: none; }
.blog-card h2 a:hover { color: var(--c-secondary); }
.blog-card__excerpt { font-size: .92rem; color: var(--c-muted); margin: 0 18px 10px; line-height: 1.55; flex: 1; }
.blog-card time { display: block; font-size: .8rem; color: #97A6AA; margin: 0 18px 16px; font-family: var(--t); }
.blog-card .btn { margin: 0 18px 20px; align-self: flex-start; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-hero { width: 75%; max-width: 75%; max-height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 26px; box-shadow: var(--shadow-card); display: block; margin-left: auto; margin-right: auto}
.article-meta { font-family: var(--t); font-size: .85rem; color: #97A6AA; margin-bottom: 1.4em; }
.article-body h2 { font-size: 1.45rem; }
.article-body h3 { font-size: 1.15rem; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: .5em; }
.encadre { background: var(--bg-alt); border-left: 4px solid var(--c-secondary); border-radius: 0 6px 6px 0; padding: 18px 22px; margin: 1.6em 0; }
.encadre--warn { border-left-color: var(--c-accent); }
.encadre p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.table-wrap th { background: var(--c-primary); color: var(--c-white); font-family: var(--t); font-weight: 600; text-align: left; padding: 11px 14px; }
.table-wrap td { border-bottom: 1px solid var(--trait); padding: 11px 14px; }
.table-wrap tr:nth-child(even) td { background: var(--bg-alt); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--trait); border-radius: 6px; margin-bottom: 12px; overflow: hidden; background: var(--c-white); }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-family: var(--t); font-weight: 600; font-size: 1rem; color: var(--c-primary); list-style: none; position: relative; padding-right: 46px; min-height: 48px; display: flex; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--c-secondary); font-weight: 400; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-a { padding: 0 20px 18px; font-size: .96rem; color: var(--c-muted); }

/* ---------- CTA section ---------- */
.cta-section { text-align: center; padding: clamp(40px, 6vw, 68px) 0; }
.cta-section h2 { margin-bottom: .5em; }
.cta-section p { max-width: 620px; margin-inline: auto; margin-bottom: .6em; color: var(--c-muted); }
.cta-section .btn { display: inline-block; margin-inline: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--c-dark); color: var(--c-white); padding: clamp(40px, 6vw, 64px) 0 0; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); padding-bottom: clamp(28px, 4vw, 44px); }
.footer__col h3 { color: var(--c-secondary); margin-bottom: 14px; font-size: 1rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 9px; }
.footer__col a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .93rem; }
.footer__col a:hover { color: var(--c-white); }
.footer__logo { font-family: var(--t); font-size: 1.15rem; font-weight: 700; color: var(--c-white); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer__logo .header__logo-icon { color: var(--c-accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer__bottom p { margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--c-muted); margin-bottom: 1.2em; }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-secondary); }
.breadcrumb span { margin: 0 6px; color: #A9B8BC; }

/* ---------- Carte / map ---------- */
.map-wrap { position: relative; padding-bottom: 52%; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-card); }
.map-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Simulateur ---------- */
.sim-wrap { max-width: 720px; margin: 0 auto; }
.sim-progress { height: 8px; background: var(--trait); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.sim-progress__bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--c-secondary), var(--c-accent)); transition: width .3s ease; }
.sim-card { background: var(--c-white); border: 1px solid var(--trait); border-radius: 8px; padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow-card); }
.sim-card h2 { margin-top: 0; }
.sim-step { font-family: var(--t); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-secondary); font-weight: 600; margin-bottom: 10px; }
.sim-options { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 18px 0; }
.sim-option {
  border: 2px solid var(--trait); border-radius: 6px; padding: 15px 18px; cursor: pointer;
  font-family: var(--t-body); font-size: 1rem; background: var(--c-white); text-align: left;
  transition: border-color .15s, background .15s;
}
.sim-option:hover { border-color: var(--c-secondary); }
.sim-option.is-selected { border-color: var(--c-secondary); background: rgba(47,168,160,.08); font-weight: 600; color: var(--c-primary); }
.sim-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.sim-result { text-align: center; padding: 10px 0; }
.sim-result__range { font-family: var(--t); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; color: var(--c-primary); }
.sim-result__range span { color: var(--c-secondary); }
.sim-result p { color: var(--c-muted); max-width: 520px; margin-inline: auto; }
.sim-result .btn { margin-top: 1.4em; }
.sim-email-form { max-width: 460px; margin: 0 auto; text-align: left; }
.sim-email-form input { width: 100%; padding: 12px 13px; border: 1px solid var(--trait); border-radius: 4px; margin-bottom: 10px; font-family: var(--t-body); font-size: .98rem; }
.sim-email-form .rgpd-check { font-size: .95rem; }
.sim-note { font-size: .88rem; color: var(--c-muted); text-align: center; margin-top: 14px; }

/* ---------- Admin ---------- */
.admin-form { max-width: 420px; margin: 0 auto; background: var(--c-white); border: 1px solid var(--trait); border-radius: 8px; padding: 30px; box-shadow: var(--shadow-card); }
.admin-form input { width: 100%; padding: 12px 13px; border: 1px solid var(--trait); border-radius: 4px; margin-bottom: 10px; font-family: var(--t-body); font-size: .98rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th { background: var(--c-primary); color: #fff; padding: 10px 12px; text-align: left; font-family: var(--t); font-weight: 600; }
.admin-table td { border-bottom: 1px solid var(--trait); padding: 10px 12px; vertical-align: top; }
.admin-table tr:hover td { background: var(--bg-alt); }
.badge-source { display: inline-block; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.badge-source--simulateur { background: rgba(47,168,160,.15); color: #1E7A74; }
.badge-source--formulaire { background: rgba(228,166,60,.18); color: #9A6A15; }
.admin-logout { display: inline-block; margin-top: 18px; font-size: .9rem; }

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
  background: var(--c-white); border-top: 1px solid var(--trait);
  padding: clamp(12px, 2vw, 20px); display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; box-shadow: 0 -8px 30px rgba(12,46,58,.15);
}
#cookie-banner p { margin: 0; font-size: .9rem; max-width: 720px; color: var(--c-muted); }
#cookie-banner button, .cookie-btn {
  min-height: 44px; padding: 10px 22px; border-radius: 4px; font-family: var(--t); font-weight: 600; font-size: .92rem; cursor: pointer;
  border: 2px solid var(--c-secondary); background: var(--c-secondary); color: #fff;
}
#cookie-banner button:hover, .cookie-btn:hover { background: #27958e; border-color: #27958e; }
/* v65 §5.4/§13.89 — écart normal garanti (« Autoriser » en premier, ordre DOM v67) */
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
/* v53 — §5.4.1 nLPD : « Refuser » et « Autoriser » de poids visuel IDENTIQUE (même classe .cookie-btn) */

/* ---------- Divers ---------- */
.zone-list { display: grid; grid-template-columns: 1fr; gap: 20px; }
.zone-card { display: flex; flex-direction: column; overflow: hidden; background: var(--c-white); border-radius: 6px; box-shadow: var(--shadow-card); transition: box-shadow .2s; }
.zone-card:hover { box-shadow: var(--shadow-lift); }
.zone-card img { height: 170px; object-fit: cover; width: 100%; }
.zone-card__body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.zone-card__body h2 { margin: 0 0 8px; font-size: 1.2rem; }
.zone-card__body h2 a { color: var(--c-primary); text-decoration: none; }
.zone-card__body h2 a:hover { color: var(--c-secondary); }
.zone-card__body p { font-size: .93rem; color: var(--c-muted); margin: 0 0 12px; flex: 1; }
.zone-card__body .btn { margin-top: 1em; }
.ville-hero-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 8px; margin-bottom: 26px; box-shadow: var(--shadow-card); }
.legal h2 { margin-top: 1.6em; }
.legal p, .legal li { font-size: .96rem; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--c-secondary); color: #fff; padding: 10px 16px; z-index: 10001; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .chiffres-cles { grid-template-columns: repeat(2, 1fr); }
  .pastilles { grid-template-columns: repeat(2, 1fr); }
  .zone-list { grid-template-columns: repeat(2, 1fr); }
  .sim-options { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 480px) {
  /* v52 §13.54 — mega-footer : 2 colonnes dès 480px (jamais 1 col sur desktop) */
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { flex-direction: row; align-items: center; }
  .hero-grid > div:first-child { flex: 1.3; }
  .hero-grid > div:last-child { flex: 0 0 400px; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin-inline: auto; }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .pastilles { grid-template-columns: repeat(4, 1fr); }
  .chiffres-cles { grid-template-columns: repeat(4, 1fr); }
  .zone-list { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) {
  .hamburger { display: block; }
  .nav__list {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    background: var(--c-primary); flex-direction: column; align-items: stretch;
    padding: 10px 18px 18px; border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 30px rgba(0,0,0,.3);
  }
  .nav__list.is-open { display: flex; }
  .nav__link { padding: 13px 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .header__inner { position: relative; }
}

/* ===== v40 §10.7 — texte justifié (contenus longs) + exceptions ===== */
p, li { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.hero p, .hero .eyebrow, .hero .plain, .cta-section p, .card-body p, .blog-card__excerpt,
.sim-result p, .sim-email-form p, .sim-step, .admin-form p, #cookie-banner p,
.footer__bottom p, .kicker, .lead, .article-meta,
.chiffre__label, .pastille p, .breadcrumb li, .footer__col li, .table-wrap td, .table-wrap th { text-align: left; }
.chiffres-cles p, .cta-section p { text-align: center; }
.cta-section p { text-align: center; }

/* ===== v45 §10.9 — exigences mobiles (bloc obligatoire) ===== */
/* 3. Inputs ≥16px (anti-zoom iOS) + hauteur tactile ≥44px — surcharge explicite des sélecteurs existants */
input, select, textarea { font-size: 16px; }
.hero-form input, .hero-form select, .sim-email-form input, .admin-form input { font-size: 16px; min-height: 44px; }
button { min-height: 44px; }
.hamburger { min-height: 0; }
input[type="checkbox"] { min-height: 18px; }
.rgpd-check input[type="checkbox"], .rgpd-label input[type="checkbox"] { width: 22px; min-width: 22px; min-height: 22px; height: 22px; padding: 0; margin: 3px 0 0; border: none; background: transparent; appearance: auto; -webkit-appearance: checkbox; flex: none; }  /* v65 §13.92 — case RGPD ≥ 22 px */
/* 2. Header 375px : badge masqué ≤640px, logo réduit (§24.5) */
@media (max-width: 640px) {
  .header__badge { display: none; }
  .header__logo-text { font-size: 1.05rem; }
  .header__logo-icon { font-size: 1.25rem; }
}
/* 4. Zones tactiles ≥44px : liens footer + nav mobile */
@media (max-width: 767px) {
  .footer__col a { display: inline-block; padding: 12px 0; }
  .nav__list.is-open a { display: block; padding: 12px 4px; }
}
@media (min-width: 768px) {
  /* v52 §4.2 — compacité desktop des liens footer */
  .footer__col a { display: inline-block; padding: 4px 0; }
}
/* 5. Bandeau cookies compact mobile (≤ 1/3 d'écran, boutons accessibles) */
@media (max-width: 640px) {
  #cookie-banner { flex-direction: column; align-items: stretch; gap: 10px; max-height: 34vh; overflow-y: auto; }
  #cookie-banner p { font-size: .78rem; line-height: 1.5; max-height: 5.4em; overflow-y: auto; }
  #cookie-banner .cookie-btns { width: 100%; }
  #cookie-banner .cookie-btns button { flex: 1; }
}

/* ===== v45 — classes complémentaires (contrat CSS §4) ===== */
.header__contact { color: var(--c-secondary); font-weight: 600; }
.kicker { font-family: var(--t); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-secondary); margin-bottom: .6em; }
.lead { font-size: 1.08rem; color: var(--c-muted); margin-bottom: 1.4em; }

/* v45 — ligne périmètre simulateur */
.sim-result__detail { font-size: .9rem; color: var(--c-muted); text-align: center; }


/* ===== v55 §10.12 — colonne de lecture CENTRÉE ===== */
.article-body, .prose, article.papier { max-width: 74ch; margin-left: auto; margin-right: auto; }
/* ===== v55 §10.11 — CTA de fin d'article (bandeau --c-primary) ===== */
.cta-article { background: var(--c-primary); color: var(--bruit-clair); border-radius: 8px; padding: clamp(28px, 4vw, 44px); text-align: center; margin: 2em 0 0; }
.cta-article h2 { color: #fff; margin-top: 0; }
.cta-article p { color: rgba(239,230,216,.9); max-width: 620px; margin-inline: auto; margin-bottom: .6em; text-align: center; }
.cta-article .btn { margin-top: .4em; }
.cta-article .btn--primary { color: #fff; }
/* ===== v54 §8.6 — honeypot ===== */
.hp-field { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px !important; height: 1px !important; opacity: 0 !important; overflow: hidden !important; }

/* ===== v58 §11.11 — photos de corps d'article : centrées, 75 % max ===== */
.article-body img, .prose img { display: block; width: 75%; max-width: 75%; margin: 1.5em auto; border-radius: var(--r, 6px); }

/* ===== v58 §10.14 — « À lire aussi » : liste verticale, un lien par ligne ===== */
.suite { background: var(--blanc-02, #f5f2ec); border-radius: var(--r, 6px); padding: 24px 28px; margin-top: 2em; }
.suite h3 { margin-top: 0; }
.suite ul { list-style: none; padding: 0; margin: 0; }
.suite li { display: block; margin-bottom: 9px; }

/* ===== v56/v58 §10.13 — CTA de bas de page : bloc contenu, centré, décollé ===== */
.cta-block { max-width: 860px; margin: 2.5em auto 40px; background: var(--c-primary, #1b1b1b); color: #fff; border-radius: 6px; padding: clamp(22px,3vw,32px) clamp(24px,4vw,44px); text-align: center; }
.cta-block h2, .cta-block h3 { color: #fff; margin-top: 0; }
.cta-block p { color: rgba(255,255,255,.9); max-width: 620px; margin: .4em auto 0; text-align: center; }
.cta-block .btn { margin-top: 1.2em; display: inline-block; }

/* ===== v58 — .ext-ref (références externes) ===== */
.ext-ref { font-size: .88rem; color: var(--c-muted, #5f6b76); border-top: 1px solid rgba(0,0,0,.08); padding-top: 14px; margin-top: 26px; }

/* ===== v65.1 — anti-spam : conteneur Cloudflare Turnstile ===== */
.cf-turnstile{margin:4px 0 10px}
