/* v60 — fonts.css chargé via <link rel="stylesheet"> dans le <head> (fin du @import) */   /* v52 (règle 137) — polices auto-hébergées, zéro dépendance externe */

/* ============================================================
   PAC-SION.CH — style.css V45
   Identité : Architectural (Build) · palette pin/soleil valaisan
   Display : Sora · Body : Karla
   V52 (13/09/2026) : polices auto-hébergées (fonts.css), footer 2col@480/4col@1024, §10.7 justifié, §10.9 bloc mobile, cache-busting ?v=52
   ============================================================ */

:root {
  --c-primary:   #123F3C;
  --c-secondary: #E9B44C;
  --c-accent:    #C97A1F;
  --c-white:     #FFFFFF;
  --c-dark:      #0B2320;
  --c-muted:     #5C6F6C;
  --c-trait:     #DCE5E3;
  --c-bruit-clair:#A8C5C0;
  --c-bg-alt:    #F4F7F6;
  --t:           'Sora', sans-serif;
  --t-body:      'Karla', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--t-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #22302E;
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); }
a, button, .btn { min-height: 44px; min-width: 44px; }
p, ul, ol { margin-bottom: 1.15em; }
h1, h2, h3, h4 { font-family: var(--t); line-height: 1.2; color: var(--c-dark); }
strong, b { font-family: var(--t); font-weight: 700; }
h1 { font-size: clamp(1.85rem, 4.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.15rem); margin-top: 2em; margin-bottom: .6em; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin-top: 1.6em; margin-bottom: .5em; font-weight: 700; }
.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(--c-bg-alt); }
.section-lede { max-width: 720px; font-size: 1.08rem; color: var(--c-muted); }
.eyebrow {
  display: inline-block; font-family: var(--t); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--c-or-texte);
  margin-bottom: .8em;
}

/* ---------- Header ---------- */
.header { position: relative; background: var(--c-primary); border-bottom: 1px solid rgba(255,255,255,.12); }
.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; }
.header__logo-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, var(--c-secondary), var(--c-accent));
  color: var(--c-dark); font-family: var(--t); font-size: 1.25rem; font-weight: 700;
}
.header__logo-text { font-family: var(--t); font-size: 1.3rem; font-weight: 700; color: var(--c-white); letter-spacing: -0.01em; }
.header__badge {
  color: var(--c-secondary); background: rgba(255,255,255,.08); border: 1px solid rgba(233,180,76,.35);
  border-radius: 999px; padding: 5px 14px; font-size: .78rem; font-weight: 700;
  font-family: var(--t); letter-spacing: .04em; white-space: nowrap;
}
.header__nav { margin-left: auto; }
.nav__list { display: flex; list-style: none; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav__link {
  display: inline-flex; align-items: center; padding: 8px 12px; color: rgba(255,255,255,.85);
  text-decoration: none; font-size: .95rem; font-weight: 400; border-radius: 6px; transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--c-white); background: rgba(255,255,255,.08); }
.nav__link.is-active { color: var(--c-secondary); }
.header__contact { font-family: var(--t); font-weight: 700; color: var(--c-secondary); }
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 10px; background: transparent; border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; cursor: pointer;
}
.hamburger span { display: block; height: 2px; width: 100%; background: var(--c-white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(46px, 7vw, 86px) 0 clamp(34px, 5vw, 58px); background: var(--c-dark); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; object-fit: cover; width: 100%; height: 100%; opacity: .16; }
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60 L30 30 L60 60 L90 30 L120 60' stroke='%23E9B44C' stroke-opacity='0.13' stroke-width='1.2' fill='none'/%3E%3Cpath d='M0 90 L30 60 L60 90 L90 60 L120 90' stroke='%23E9B44C' stroke-opacity='0.07' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.25));
          mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.25));
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 44px),
              repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 44px);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero-grid { display: flex; flex-direction: column; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 1024px) { .hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: start; } }
.hero h1 { color: var(--c-white); max-width: 16ch; margin: 0 0 .45em; }
.hero .eyebrow { color: var(--c-bruit-clair); }
.hero .lede { color: rgba(255,255,255,.88); max-width: 54ch; font-size: 1.12rem; }
.hero .plain { color: rgba(255,255,255,.72); font-size: .92rem; }
.hero-form-wrap { background: var(--c-white); border-radius: 4px; padding: 22px 24px; box-shadow: 0 6px 30px rgba(0,0,0,.25); }
.hero-form-wrap h2 { margin: 0 0 4px; font-size: 1.25rem; }
.hero-form-wrap p { margin: 0 0 14px; font-size: .9rem; color: var(--c-muted); }
.hero-form input, .hero-form select {
  width: 100%; padding: 12px 12px; border: 1px solid var(--c-trait); border-radius: 3px;
  margin-bottom: 10px; font-size: .98rem; font-family: var(--t-body); background: var(--c-white); color: #22302E;
}
.hero-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C6F6C' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.hero-form .btn { width: 100%; text-align: center; }
.rgpd-check { display: flex; align-items: flex-start; gap: 8px; font-size: .95rem; color: var(--c-muted); margin-bottom: 12px; line-height: 1.4; }
.rgpd-check input { width: 22px; min-width: 22px; height: 22px; margin: 2px 0 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; min-height: 46px; padding: 12px 28px; font-weight: 700; font-family: var(--t);
  font-size: .98rem; border-radius: 4px; text-decoration: none; text-align: center; border: 0; cursor: pointer;
  transition: background .18s, transform .12s, box-shadow .18s;
}
.btn--primary { background: var(--c-secondary); color: var(--c-dark); box-shadow: 0 3px 14px rgba(233,180,76,.35); }
.btn--primary:hover { background: #F2C468; transform: translateY(-1px); }
.btn--outline { background: transparent; border: 2px solid var(--c-or-texte); color: var(--c-or-texte); }
.btn--outline:hover { background: rgba(233,180,76,.12); }
.btn--dark { background: var(--c-primary); color: var(--c-white); }
.btn--dark:hover { background: #1A5550; }
.btn + .btn { margin-left: 10px; }

/* ---------- Chiffres clés ---------- */
.chiffres-cles { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 3vw, 28px); list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .chiffres-cles { grid-template-columns: repeat(4, 1fr); } }
.chiffre { background: var(--c-white); border: 1px solid var(--c-trait); border-top: 3px solid var(--c-secondary); border-radius: 4px; padding: 22px 18px; text-align: center; }
.chiffre strong { display: block; font-family: var(--t); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; color: var(--c-primary); line-height: 1.1; }
.chiffre span { font-size: .9rem; 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, 24px); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.services-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 3vw, 28px); justify-content: center; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin-inline: auto; } }
.cards-grid { display: grid; gap: 22px; }
.card { background: var(--c-white); border: 1px solid var(--c-trait); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(11,35,32,.05); display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: 0 8px 26px rgba(11,35,32,.12); border-color: #B9C6C3; }
.card-img { height: 170px; object-fit: cover; width: 100%; }
.card-icon { font-size: 1.9rem; line-height: 1; margin: 0 0 8px; }
.card-body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 8px; }
.card-body p { margin: 0 0 16px; color: var(--c-muted); font-size: .97rem; }
.card-body .btn { margin-top: auto; }
.card-body .btn + .btn { margin-left: 0; }

/* ---------- Déroulé / pastilles ---------- */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: clamp(14px, 2.4vw, 22px); }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--c-white); border: 1px solid var(--c-trait); border-radius: 6px; padding: 22px 20px 20px 24px; }
.step .pastille-num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--c-primary); color: var(--c-secondary); font-family: var(--t); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; font-size: .93rem; color: var(--c-muted); }

/* ---------- Prestations ---------- */
.presta-subsection { display: grid; grid-template-columns: 48px 1fr; gap: 16px; margin-bottom: 26px; }
.presta-subsection__icon {
  width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.4rem;
  background: var(--c-bg-alt); border: 1px solid var(--c-trait); border-radius: 8px; color: var(--c-primary);
}
.presta-subsection__text h3 { margin: 0 0 6px; }
.presta-subsection__text p { margin: 0; color: var(--c-muted); }
.section-img { max-width: min(760px, 100%); height: auto; margin: 34px auto; display: block; border-radius: 6px; box-shadow: 0 4px 18px rgba(11,35,32,.12); }
.situations-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .situations-grid { grid-template-columns: repeat(3, 1fr); } }
.situation { background: var(--c-bg-alt); border-left: 3px solid var(--c-secondary); border-radius: 0 6px 6px 0; padding: 18px 20px; }
.situation h3 { margin: 0 0 6px; font-size: 1rem; }
.situation p { margin: 0; font-size: .93rem; color: var(--c-muted); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--c-trait); border-radius: 6px; margin-bottom: 12px; background: var(--c-white); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-family: var(--t); font-weight: 700; font-size: 1.02rem; color: var(--c-dark); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--c-or-texte); font-weight: 700; transition: transform .2s, color .16s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--c-muted); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* v61 — FAQ fermées : contenu hors du layout (le clipping n'est jamais un masquage) */
details .faq-body { display: none; }
details[open] .faq-body { display: block; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { background: var(--c-white); border: 1px solid var(--c-trait); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(11,35,32,.05); transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: 0 8px 24px rgba(11,35,32,.12); transform: translateY(-2px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card h2 { font-size: 1.12rem; margin: 14px 18px 6px; }
.blog-card h2 a { color: var(--c-primary); text-decoration: none; }
.blog-card h2 a:hover { color: var(--c-accent); }
.blog-card__excerpt { font-size: .92rem; color: var(--c-muted); margin: 0 18px 8px; line-height: 1.55; }
.blog-card time { display: block; font-size: .8rem; color: var(--c-muted); margin: auto 18px 16px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-hero { width: 75%; max-width: 75%; max-height: 420px; object-fit: cover; border-radius: 6px; margin: 24px 0 8px; display: block; margin-left: auto; margin-right: auto}
.article-meta { color: var(--c-muted); font-size: .9rem; margin-bottom: 24px; }
.article-body h2 { margin-top: 1.8em; }
.article-toc { background: var(--c-bg-alt); border: 1px solid var(--c-trait); border-radius: 6px; padding: 18px 22px; margin: 26px 0; }
.article-toc h3 { margin-top: 0; font-size: 1rem; }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc a { text-decoration: none; }
.notice { background: #FBF3E0; border: 1px solid #EAD9A8; border-left: 4px solid var(--c-secondary); border-radius: 4px; padding: 16px 20px; margin: 22px 0; }
.notice p { margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .86rem; color: var(--c-muted); margin: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: inherit; }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb [aria-current="page"] { color: var(--c-primary); font-weight: 400; }

/* ---------- Page hero (sous-pages) ---------- */
.page-hero { position: relative; background: var(--c-primary); color: var(--c-white); padding: clamp(36px, 5vw, 60px) 0; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60 L30 30 L60 60 L90 30 L120 60' stroke='%23E9B44C' stroke-opacity='0.1' stroke-width='1.2' fill='none'/%3E%3C/svg%3E"); background-size: 120px 120px; pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--c-white); margin: 0 0 .45em; max-width: 20ch; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 62ch; margin: 0; }
.page-hero .breadcrumb { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb [aria-current="page"] { color: var(--c-secondary); }

/* ---------- CTA final ---------- */
.cta-section { text-align: center; padding: clamp(44px, 6vw, 68px) 0; background: var(--c-dark); color: var(--c-white); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60 L30 30 L60 60 L90 30 L120 60' stroke='%23E9B44C' stroke-opacity='0.08' stroke-width='1.2' fill='none'/%3E%3C/svg%3E"); background-size: 120px 120px; pointer-events: none; }
.cta-section .wrap { position: relative; z-index: 1; }
.cta-section h2 { color: var(--c-white); margin-bottom: .4em; }
.cta-section p { max-width: 620px; margin: 0 auto 1.4em; color: rgba(255,255,255,.8); }
.cta-section .btn { display: inline-block; }

/* ---------- Footer ---------- */
.footer { background: var(--c-dark); color: var(--c-white); padding: clamp(40px, 6vw, 64px) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); }
@media (min-width: 480px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.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: 8px; }
.footer__col a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .95rem; }
.footer__col a:hover { color: var(--c-white); }
.footer__zone { grid-column: 1 / -1; }
.footer__zone iframe { width: 100%; height: 220px; border: 0; border-radius: 6px; filter: grayscale(.4) contrast(.95); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; margin-top: 36px; text-align: center; font-size: .86rem; color: rgba(255,255,255,.6); }

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
  background: var(--c-white); border-top: 1px solid var(--c-trait); box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding: clamp(14px, 2vw, 20px); display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
#cookie-banner p { margin: 0; font-size: .88rem; max-width: 720px; color: var(--c-muted); }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
#cookie-banner div { display: flex; gap: 10px; }
/* v53 — nLPD/revDSG : « Refuser » aussi visible qu'« Autoriser » (même classe, même poids visuel) */
#cookie-banner .cookie-btn { background: var(--c-primary); color: var(--c-white); border: 2px solid var(--c-primary); padding: 10px 22px; border-radius: 4px; font-weight: 700; cursor: pointer; font-family: var(--t); min-width: 132px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 22px 0; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.tbl th { background: var(--c-primary); color: var(--c-white); text-align: left; padding: 12px 14px; font-family: var(--t); font-size: .9rem; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--c-trait); vertical-align: top; }
.tbl tr:nth-child(even) td { background: var(--c-bg-alt); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Simulateur ---------- */
.sim-wrap { max-width: 780px; margin: 0 auto; }
.sim-progress { height: 8px; background: var(--c-trait); border-radius: 99px; overflow: hidden; margin: 18px 0 28px; }
.sim-progress span { display: block; height: 100%; width: 10%; background: linear-gradient(90deg, var(--c-secondary), var(--c-accent)); border-radius: 99px; transition: width .3s; }
.sim-step { display: none; }
.sim-step-count { font-size: .8rem; color: var(--c-muted); font-weight: 400; letter-spacing: .12em; margin: 0 0 6px; }
.sim-step.is-active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sim-question { font-family: var(--t); font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; color: var(--c-dark); margin: 0 0 4px; }
.sim-hint { color: var(--c-muted); margin: 0 0 20px; font-size: .95rem; }
.sim-options { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .sim-options { grid-template-columns: repeat(2, 1fr); } }
.sim-option {
  border: 2px solid var(--c-trait); border-radius: 6px; padding: 14px 16px; cursor: pointer;
  font-family: var(--t-body); font-weight: 400; font-size: .98rem; background: var(--c-white); text-align: left;
  transition: border-color .15s, background .15s;
}
.sim-option:hover { border-color: var(--c-primary); }
.sim-option.is-selected { border-color: var(--c-secondary); background: #FBF3E0; }
.sim-option small { display: block; font-weight: 400; color: var(--c-muted); font-size: .85rem; margin-top: 2px; }
.sim-input input { width: 100%; padding: 14px; border: 2px solid var(--c-trait); border-radius: 6px; font-size: 1.05rem; font-family: var(--t-body); }
.sim-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.sim-result { background: var(--c-bg-alt); border: 1px solid var(--c-trait); border-radius: 8px; padding: 26px 28px; margin-top: 8px; }
.sim-result .range { font-family: var(--t); font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; color: var(--c-primary); }
.sim-result .save { font-family: var(--t); font-weight: 700; color: var(--c-or-texte); font-size: 1.15rem; }
.sim-grid2 { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .sim-grid2 { grid-template-columns: 1fr 1fr; gap: 14px; } }
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 4px; font-weight: 400; display: none; }
.form-msg.is-ok { display: block; background: #E4F2E9; color: #1E6B3A; border: 1px solid #BBDCC7; }
.form-msg.is-err { display: block; background: #FBE9E7; color: #A33A2A; border: 1px solid #F0C9C2; }

/* ---------- Liste villes / hub ---------- */
.ville-card { display: flex; flex-direction: column; }
.ville-card .card-img { height: 150px; }
.ville-card h3 { margin: 0 0 6px; }
.ville-card p { font-size: .92rem; }
.ville-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ville-tags span { font-size: .75rem; background: var(--c-bg-alt); border: 1px solid var(--c-trait); color: var(--c-muted); padding: 3px 10px; border-radius: 99px; font-weight: 400; }

/* ---------- Divers ---------- */
.map-wrap { position: relative; padding-bottom: 56.25%; border-radius: 8px; overflow: hidden; }
.map-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.admin-form { max-width: 420px; margin: 60px auto; background: var(--c-white); border: 1px solid var(--c-trait); border-radius: 8px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.admin-form input { width: 100%; padding: 12px; border: 1px solid var(--c-trait); border-radius: 4px; font-size: 1rem; }
.lead-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lead-table th { background: var(--c-primary); color: var(--c-white); text-align: left; padding: 10px 12px; }
.lead-table td { padding: 10px 12px; border-bottom: 1px solid var(--c-trait); vertical-align: top; }
.btn-detail { background: var(--c-bg-alt); border: 1px solid var(--c-trait); border-radius: 4px; padding: 6px 12px; cursor: pointer; font-weight: 400; }
.legal p, .legal li { font-size: .97rem; }
blockquote { border-left: 3px solid var(--c-secondary); margin: 22px 0; padding: 6px 22px; color: var(--c-muted); font-style: italic; }
@media (min-width: 768px) {
  .nav__list { gap: 2px; }
}
@media (max-width: 1023px) {
  .hamburger { display: flex; }
  .header__nav { order: 3; width: 100%; }
  .nav__list { display: none; flex-direction: column; gap: 2px; padding: 8px 0 4px; }
  .nav__list.is-open { display: flex; }
  .nav__link { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
}

/* ===== V45 §10.7 — texte justifié + exceptions ===== */
p, li { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.hero .lede, .hero .plain, .hero-form-wrap p, .page-hero p, .cta-section p,
.card-body p, .ville-card p, .blog-card__excerpt, .sim-hint, .sim-result p,
.sim-step-count, .section-lede, .form-msg, #cookie-banner p,
.footer__col p, .footer__zone p { text-align: left; }
.cta-section p { text-align: center; }
.footer__col li { text-align: left; }

/* ===== V45 §10.9 — exigences mobiles (bloc obligatoire) ===== */
/* 3. Inputs ≥16px (anti-zoom iOS) + hauteur tactile ≥44px —
   surcharges explicites des sélecteurs existants (spécificité) */
input, select, textarea { font-size: 16px; }
.hero-form input, .hero-form select { font-size: 16px; min-height: 44px; }
.sim-input input { font-size: 16px; min-height: 44px; }
.sim-input select { font-size: 16px; min-height: 44px; }
.admin-form input { font-size: 16px; }
button { min-height: 44px; }
.hamburger { min-height: 0; }
input[type="checkbox"] { min-height: 22px; }
/* 2. Header 375px : badge masqué ≤640px, logo réduit */
@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; }
}
/* 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 { display: flex; gap: 10px; width: 100%; }
  #cookie-banner .cookie-btns button { flex: 1; }
}


/* ===== v55 §10.12 — colonne de lecture CENTRÉE ===== */
.article-body, .prose, article.papier { max-width: 74ch; margin-left: auto; margin-right: auto; }
/* ===== 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; }

/* ===== correctif (retour Guillaume) : distinguer le CTA de fin de page du footer =====
   .cta-section et .footer partageaient --c-dark (#0B2320) : les deux blocs se confondaient.
   Le CTA adopte un dégradé vert->or + un filet or en haut pour marquer la rupture. */
.cta-section { background: linear-gradient(120deg, var(--c-primary) 0%, #0F5747 52%, var(--c-accent) 150%); border-top: 4px solid var(--c-secondary); }

/* ===== 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; }


/* ===== v62/v61 — CTA mobile fixe (site non loué : renvoi vers le simulateur) ===== */
#mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--c-primary); color: var(--c-white); text-align: center; padding: 12px 16px; min-height: 44px; font-weight: 700; font-family: var(--t); text-decoration: none; font-size: .95rem; box-shadow: 0 -2px 10px rgba(0,0,0,.18); }
#mobile-cta:hover { color: var(--c-dark); background: var(--c-secondary); }
@media (max-width: 640px) {
  #mobile-cta { display: block; }
  body { padding-bottom: 48px; }
}

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


/* ===== v68 — finitions (v65 bandeau cookies/RGPD + maillage villes) ===== */
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sim-grid2 input, #sim-form input { font-size: 16px; min-height: 44px; }
.form-check input[type="checkbox"], .rgpd-check 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; }
.cta-block .btn--primary { color: var(--c-dark); }
.villes-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; }
.villes-grid a { display: block; padding: 12px 16px; background: var(--c-bg-alt); text-decoration: none; color: var(--c-primary); font-size: .88rem; font-weight: 400; border: 1px solid var(--c-trait); border-radius: 4px; transition: box-shadow .2s, border-color .2s; }
.villes-grid a:hover { box-shadow: 0 4px 16px rgba(11,35,32,.12); border-color: var(--c-primary); color: var(--c-or-texte); }

/* =====================================================================
   v69 §10.15 — socle accessibilité : token, focus, évitement, mouvement
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --c-or-texte: #8F6224;   /* or assombri : 5.33:1 sur blanc, 4.94:1 sur --c-bg-alt */
  --c-focus: #C97A1F;      /* indicateur focus : 3.34:1 sur blanc, 3.49:1 sur --c-primary */
}
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.hero-form input:focus-visible, .hero-form select:focus-visible,
.sim-form input:focus-visible, .sim-input input:focus-visible,
.sim-input select:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 1px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--c-primary); color: var(--c-white); padding: 10px 16px; text-decoration: none; font-family: var(--t); font-weight: 700; }
.skip-link:focus { position: fixed; left: 8px; top: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* v69 §5.6 — formulaires : libellés visibles + aide lecteur d'écran */
.f-lbl { display: block; font-family: var(--t); font-size: .82rem; font-weight: 700; color: var(--c-dark); margin: 0 0 5px; letter-spacing: .01em; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
input::placeholder, textarea::placeholder { color: #5C6F6C; opacity: 1; }

/* =====================================================================
   v70 §10.16 — mouvement & interactions (recettes adaptées au gabarit)
   ===================================================================== */
/* 1. FAQ details/summary : hauteur + opacité pilotées par UNE source JS */
.faq-body { transition: height .22s var(--ease-out), opacity .16s var(--ease-out); }
.faq-item summary::after { transition: transform .2s, color .16s ease; }

/* 2. Menu mobile : entrée / sortie du panneau (≤ 1023 px, gabarit pac-sion) */
@media (max-width: 1023px) {
  .nav__list { opacity: 0; transform: translateY(-6px); transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), display .18s; transition-behavior: allow-discrete; }
  .nav__list.is-open { opacity: 1; transform: none; }
  @starting-style { .nav__list.is-open { opacity: 0; transform: translateY(-6px); } }
}

/* 3. Messages de formulaire : apparition en fondu */
.form-msg { transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
@starting-style { .form-msg.is-ok, .form-msg.is-err { opacity: 0; transform: translateY(-3px); } }

/* 4. Enfoncement des boutons sans ombre */
.btn--outline:active, .btn--dark:active, .cookie-btn:active { transform: scale(.98); }

/* 5. Bandeau cookies : arrivée par le bas */
#cookie-banner { transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
@starting-style { #cookie-banner { transform: translateY(100%); opacity: 0; } }

/* Ceinture + bretelles */
@media (prefers-reduced-motion: reduce) {
  .faq-body, .nav__list, .form-msg, #cookie-banner { transition: none; }
}

/* =====================================================================
   v71 — finitions anti-tells
   ===================================================================== */
/* Micro-textes : plancher fonctionnel à 11 px (aucun texte concerné ici) */
.ville-tags span, .blog-card time, .sim-step-count { font-size: max(.75rem, 11px); }
/* L'icône « + » de la FAQ est un indicateur fonctionnel : ≥ 3:1 (déjà --c-or-texte) */

/* v69 §5.6 — grille du simulateur : libellés au-dessus des champs */
.sim-grid2 > div { display: flex; flex-direction: column; }
.sim-grid2 input { width: 100%; }
.hero-form .f-lbl { margin-top: 2px; }
