/* v60/v67 — fonts.css chargé en <link> par les pages (plus d'@import). */
/* ============================================================
   PAC FRIBOURG — pompes à chaleur dans le canton de Fribourg
   Identité : Data-dense (ambiance Stamen) — palette forêt/ambre
   Primaire #0B3D2E · Secondaire #E8A33D · Accent #2E9E8F
   ============================================================ */

:root {
  --c-primary:   #0B3D2E;
  --c-secondary: #E8A33D;
  --c-accent:    #2E9E8F;
  --c-white:     #FFFFFF;
  --c-dark:      #14261F;
  --c-muted:     #5C6F66;
  --trait:       #DCE5E0;
  --bruit-clair: #C9E0D6;
  --c-bg:        #F4F7F4;
  --c-card:      #FFFFFF;
  --t:           'Fraunces', Georgia, serif;
  --t-body:      'Karla', 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--t-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-dark);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); }
a:hover { color: var(--c-primary); }

p, ul, ol { margin-bottom: 1.15em; }
ul, ol { padding-left: 1.3em; }
h1, h2, h3, h4 { font-family: var(--t); line-height: 1.2; color: var(--c-primary); }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: .55em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); margin-top: 2em; margin-bottom: .6em; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin-top: 1.6em; margin-bottom: .5em; }
h4 { font-size: 1.05rem; margin-top: 1.3em; margin-bottom: .4em; }

/* ---------- Layout ---------- */
.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-white); border-block: 1px solid var(--trait); }
.section-lede { max-width: 720px; font-size: 1.05rem; color: var(--c-muted); margin-bottom: 1.5em; }

/* ---------- 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: 14px; flex-wrap: wrap; padding-block: 14px; }
.header__logo { display: flex; align-items: center; gap: 10px; color: var(--c-white); text-decoration: none; min-height: 44px; }
.header__logo-icon { font-size: 1.5rem; color: var(--c-secondary); line-height: 1; }
.header__logo-text { font-family: var(--t); font-size: 1.25rem; font-weight: 700; color: var(--c-white); letter-spacing: .2px; }
.header__badge { color: var(--c-secondary); background: rgba(255,255,255,.1); border-radius: 999px; padding: 5px 12px; font-size: .78rem; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.header__nav { margin-left: auto; }
.nav__list { display: flex; list-style: none; gap: clamp(10px, 2vw, 24px); padding: 0; margin: 0; align-items: center; }
.nav__link { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav__link:hover { color: var(--c-white); }
.header__contact { color: var(--c-secondary); }

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: 0;
  color: var(--c-white);
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--c-white); 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); overflow: hidden; background: linear-gradient(90deg, var(--c-primary) 0%, #0D5540 45%, var(--c-accent) 130%); }
.hero-bg { position: absolute; inset: 0; z-index: 0; object-fit: cover; width: 100%; height: 100%; opacity: .14; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(11,61,46,.45); }
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 42px);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero-grid { display: flex; flex-direction: column; gap: 32px; }
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: .35em; }
.hero .eyebrow { color: var(--bruit-clair); text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; font-weight: 700; margin-bottom: 12px; }
.hero .lede { color: rgba(255,255,255,.88); max-width: 52ch; font-size: 1.1rem; }
.hero .plain { color: rgba(255,255,255,.72); font-size: .9rem; margin-top: .9em; }
.hero .btn--primary { background: var(--c-secondary); color: var(--c-primary); }
.hero .btn--primary:hover { background: #F2B55C; color: var(--c-primary); }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 36px); margin-top: 28px; }
.hero-stats .stat b { display: block; font-family: var(--t); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--c-secondary); line-height: 1.1; }
.hero-stats .stat span { color: rgba(255,255,255,.8); font-size: .85rem; }

.hero-form-wrap { background: var(--c-white); border-radius: 6px; padding: 22px 24px; box-shadow: 0 8px 32px rgba(0,0,0,.22); }
.hero-form-wrap h2 { margin: 0 0 4px; font-size: 1.3rem; }
.hero-form-wrap p { font-size: .88rem; color: var(--c-muted); margin-bottom: 14px; }
.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: .95rem; background: #fff; color: var(--c-dark);
}
.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='%235C6F66' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.hero-form input:focus, .hero-form select:focus { outline: 2px solid var(--c-accent); outline-offset: 0; border-color: var(--c-accent); }
.hero-form .btn { width: 100%; text-align: center; margin-top: 2px; }
.rgpd-check, .rgpd-label { display: flex; align-items: flex-start; gap: 8px; 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: 2px 0 0; accent-color: var(--c-primary); flex: none; }  /* v65 §13.92 — case ≥ 22 px */

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; min-height: 44px; padding: clamp(11px, 2vw, 14px) clamp(20px, 3vw, 32px);
  font-weight: 700; border-radius: 4px; text-decoration: none; text-align: center; border: 0; cursor: pointer;
  font-family: var(--t-body); font-size: .98rem; line-height: 1.3; margin-top: 1.25em; transition: background .2s, transform .15s;
}
.btn--primary { background: var(--c-secondary); color: var(--c-primary); }
.btn--primary:hover { background: #F2B55C; color: var(--c-primary); }
.btn--outline { background: transparent; border: 2px solid var(--c-primary); color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--light { background: var(--c-white); color: var(--c-primary); }
.btn--light:hover { background: var(--bruit-clair); color: var(--c-primary); }

/* ---------- Inner page hero (bandeau) ---------- */
.page-hero { position: relative; background: linear-gradient(90deg, var(--c-primary), #0D5540 60%, var(--c-accent) 140%); padding: clamp(34px, 5vw, 58px) 0 clamp(28px, 4vw, 44px); overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 42px), repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 42px); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero .lede { color: rgba(255,255,255,.88); max-width: 62ch; }
.page-hero .eyebrow { color: var(--bruit-clair); text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; font-weight: 700; margin-bottom: 10px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .82rem; margin-bottom: 14px; color: rgba(255,255,255,.65); }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span { color: var(--c-secondary); }

/* ---------- Éléments de texte transverses ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; font-weight: 700; margin-bottom: 12px; color: var(--c-secondary); }
.lede { font-size: 1.08rem; color: var(--c-muted); max-width: 62ch; }
.plain { color: var(--c-muted); font-size: .9rem; }
.faq-a { padding: 0 20px 18px; font-size: .95rem; }
.faq-a p { margin-bottom: .8em; }
.stat b { font-family: var(--t); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--c-secondary); line-height: 1.1; }
.stat span { color: rgba(255,255,255,.8); font-size: .85rem; }
.stat-big { font-family: var(--t); font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--c-secondary); }
.step-count { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--c-muted); font-weight: 700; }

/* ---------- Grilles ---------- */
.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, 32px); }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 3vw, 32px); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(16px, 3vw, 32px); justify-content: center; }
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* ---------- Cartes ---------- */
.card { background: var(--c-card); border-radius: 6px; box-shadow: 0 2px 14px rgba(20,38,31,.08); overflow: hidden; border: 1px solid var(--trait); display: flex; flex-direction: column; }
.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-top: 0; }
.card-body p { margin-bottom: .9em; font-size: .95rem; }
.card-body .btn { margin-top: auto; }
.card-icon { font-size: 1.6rem; line-height: 1; margin-bottom: 10px; }

/* ---------- Pastilles numérotées (déroulé) ---------- */
.pastille-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: var(--c-secondary);
  font-family: var(--t); font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.step-item { display: flex; gap: 16px; align-items: flex-start; background: var(--c-white); border: 1px solid var(--trait); border-radius: 6px; padding: 18px; }
.step-item h3 { margin: 0 0 4px; }
.step-item p { margin: 0; font-size: .92rem; color: var(--c-muted); }

/* ---------- Chiffres clés ---------- */
.chiffres-cles { display: grid; grid-template-columns: 1fr; gap: 18px; }
.chiffre { background: var(--c-primary); color: #fff; border-radius: 6px; padding: 26px 22px; text-align: center; }
.chiffre b { display: block; font-family: var(--t); font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--c-secondary); line-height: 1.15; }
.chiffre span { font-size: .88rem; color: rgba(255,255,255,.85); }

/* ---------- Prestations ---------- */
.presta-subsection { display: grid; grid-template-columns: 48px 1fr; gap: 18px; margin-bottom: 26px; }
.presta-subsection__icon { width: 48px; height: 48px; border-radius: 8px; background: rgba(11,61,46,.08); color: var(--c-primary); font-size: 1.35rem; display: flex; align-items: center; justify-content: center; }
.presta-subsection__text h3 { margin-top: 0; }
.presta-subsection__text p { margin-bottom: .6em; }
.section-img { max-width: min(760px, 100%); height: auto; margin: 8px auto 34px; border-radius: 8px; box-shadow: 0 4px 18px rgba(20,38,31,.14); }

/* ---------- 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: 0 2px 12px rgba(20,38,31,.07); border: 1px solid var(--trait); transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: 0 6px 24px rgba(20,38,31,.14); transform: translateY(-2px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card h2 { font-size: 1.12rem; margin: 16px 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: .9rem; color: var(--c-muted); margin: 0 18px 8px; line-height: 1.55; }
.blog-card time { display: block; font-size: .8rem; color: #8A9A92; margin: 0 18px 16px; }
.blog-card .btn { margin: auto 18px 18px; }

.article-body { max-width: 760px; margin: 0 auto; font-size: 1.02rem; }
.article-hero { width: 75%; max-width: 75%; max-height: 420px; object-fit: cover; border-radius: 8px; margin-bottom: 26px; box-shadow: 0 4px 18px rgba(20,38,31,.15); display: block; margin-left: auto; margin-right: auto}
.article-body h2 { margin-top: 1.8em; }
.article-body blockquote { border-left: 4px solid var(--c-accent); padding: 6px 18px; margin: 1.4em 0; color: var(--c-muted); font-style: italic; background: rgba(46,158,143,.06); border-radius: 0 6px 6px 0; }
.article-body figure { margin: 1.6em 0; }
.article-body figcaption { font-size: .8rem; color: var(--c-muted); text-align: center; margin-top: 8px; }
.article-meta { font-size: .85rem; color: var(--c-muted); margin-bottom: 20px; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; margin: 1.4em 0; border-radius: 6px; border: 1px solid var(--trait); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; min-width: 560px; }
.table-wrap th { background: var(--c-primary); color: #fff; text-align: left; padding: 11px 14px; font-weight: 600; }
.table-wrap td { padding: 10px 14px; border-top: 1px solid var(--trait); vertical-align: top; }
.table-wrap tr:nth-child(even) td { background: #F6F9F7; }
.table-wrap td b { color: var(--c-primary); }

/* ---------- Encadrés ---------- */
.notice { background: rgba(46,158,143,.08); border-left: 4px solid var(--c-accent); padding: 16px 20px; border-radius: 0 6px 6px 0; margin: 1.5em 0; font-size: .95rem; }
.notice--warn { background: rgba(232,163,61,.1); border-left-color: var(--c-secondary); }
.notice--dark { background: var(--c-primary); color: #fff; border-left-color: var(--c-secondary); }
.notice--dark b { color: var(--c-secondary); }
.notice p { margin-bottom: .4em; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--trait); border-radius: 6px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--c-primary); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--c-secondary); font-weight: 700; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-a { padding: 0 20px 18px; font-size: .95rem; }
.faq-item .faq-a p { margin-bottom: .8em; }

/* ---------- CTA final ---------- */
.cta-section { text-align: center; padding: clamp(44px, 6vw, 72px) 0; background: linear-gradient(90deg, var(--c-primary), #0D5540 60%, var(--c-accent) 140%); color: #fff; }
.cta-section h2 { color: #fff; margin-bottom: .45em; }
.cta-section p { max-width: 640px; margin-inline: auto; margin-bottom: 1.2em; color: rgba(255,255,255,.85); }
.cta-section .btn { display: inline-block; }

/* ---------- Footer ---------- */
.footer { background: var(--c-dark); color: var(--c-white); padding: clamp(40px, 6vw, 64px) 0 0; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); padding-bottom: 36px; }
.footer__col h3 { color: var(--c-secondary); margin-bottom: 14px; font-size: 1.02rem; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 8px; }
.footer__col a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .92rem; }
.footer__col a:hover { color: var(--c-white); text-decoration: underline; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 22px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- 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(14px, 2vw, 22px); display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; box-shadow: 0 -6px 24px rgba(20,38,31,.15);
}
#cookie-banner p { margin: 0; font-size: .88rem; max-width: 760px; color: var(--c-dark); }
#cookie-banner div { display: flex; gap: 10px; }
/* v53 — nLPD : « Refuser » AUSSI visible qu'« Autoriser » (même classe, même poids visuel) */
.cookie-btn { background: var(--c-primary); color: #fff; border: 2px solid var(--c-primary); border-radius: 4px; padding: 11px 22px; font-weight: 700; cursor: pointer; font-family: var(--t-body); min-height: 44px; }
.cookie-btn:hover { filter: brightness(1.08); }
/* v65 §5.4/§13.89 — écart normal garanti (« Autoriser » en premier, ordre DOM v67) */
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Simulateur ---------- */
.sim-card { background: var(--c-white); border: 1px solid var(--trait); border-radius: 8px; box-shadow: 0 4px 20px rgba(20,38,31,.08); max-width: 760px; margin: 0 auto; overflow: hidden; }
.sim-progress { height: 6px; background: var(--trait); }
.sim-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-accent), var(--c-secondary)); transition: width .3s; }
.sim-step { padding: clamp(22px, 4vw, 40px); }
.sim-step .step-count { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--c-muted); font-weight: 700; }
.sim-step h2 { margin: 6px 0 6px; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.sim-step .lede { color: var(--c-muted); font-size: .95rem; margin-bottom: 18px; }
.sim-options { display: grid; grid-template-columns: 1fr; gap: 10px; }
.sim-option { text-align: left; background: #fff; border: 2px solid var(--trait); border-radius: 6px; padding: 14px 16px; font-family: var(--t-body); font-size: .98rem; font-weight: 600; color: var(--c-dark); cursor: pointer; transition: border-color .15s, background .15s; min-height: 48px; }
.sim-option:hover { border-color: var(--c-accent); }
.sim-option.selected { border-color: var(--c-primary); background: rgba(11,61,46,.06); }
.sim-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.sim-nav .btn { margin-top: 0; }
.sim-result { background: var(--c-primary); color: #fff; border-radius: 8px; padding: 24px; margin-top: 18px; }
.sim-result h3 { color: var(--c-secondary); margin-top: 0; }
.sim-result .stat-big { font-family: var(--t); font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--c-secondary); }
.sim-result p { color: rgba(255,255,255,.88); font-size: .95rem; }
.sim-result table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .9rem; }
.sim-result td { padding: 7px 4px; border-bottom: 1px solid rgba(255,255,255,.15); }
.sim-result td:last-child { text-align: right; font-weight: 700; }
.sim-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: .95rem; }
.sim-form .btn { width: 100%; }

/* ---------- Admin ---------- */
.admin-form { max-width: 420px; margin: 40px auto; background: #fff; border: 1px solid var(--trait); border-radius: 8px; padding: 32px; }
.admin-form input[type="password"] { width: 100%; padding: 12px; border: 1px solid var(--trait); border-radius: 4px; margin-top: 8px; font-size: 1rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table-wrap table { width: 100%; border-collapse: collapse; font-size: .88rem; background: #fff; }
.admin-table-wrap th { background: var(--c-primary); color: #fff; padding: 10px 12px; text-align: left; }
.admin-table-wrap td { padding: 9px 12px; border-bottom: 1px solid var(--trait); }

/* ---------- Map ---------- */
.map-wrap { position: relative; padding-bottom: 56.25%; border-radius: 8px; overflow: hidden; border: 1px solid var(--trait); }
.map-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Liens ville (grille communes) ---------- */
.ville-card { display: block; background: var(--c-white); border: 1px solid var(--trait); border-radius: 6px; padding: 20px; text-decoration: none; color: var(--c-dark); transition: box-shadow .2s, transform .2s; }
.ville-card:hover { box-shadow: 0 6px 20px rgba(20,38,31,.12); transform: translateY(-2px); color: var(--c-dark); }
.ville-card b { color: var(--c-primary); font-family: var(--t); font-size: 1.1rem; display: block; margin-bottom: 6px; }
.ville-card span { font-size: .88rem; color: var(--c-muted); }

/* ---------- Divers ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tag-list li { background: rgba(46,158,143,.1); color: var(--c-primary); border-radius: 999px; padding: 5px 14px; font-size: .82rem; font-weight: 600; }
.toc { background: var(--c-white); border: 1px solid var(--trait); border-radius: 6px; padding: 18px 22px; margin: 1.4em 0; }
.toc b { color: var(--c-primary); }
.toc ol { margin: 8px 0 0; }
.toc a { text-decoration: none; }

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .chiffres-cles { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .sim-options { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hero-grid { flex-direction: row; align-items: center; gap: clamp(28px, 5vw, 64px); }
  .hero-grid > div:first-child { flex: 1.3; }
  .hero-form-wrap { flex: 0 0 380px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { 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); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin-inline: auto; }
  .hamburger { display: none; }
}

@media (max-width: 767px) {
  .hamburger { display: flex; }
  .nav__list {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    background: var(--c-primary); padding: 10px 0 16px; border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav__list.is-open { display: flex; }
  .nav__link { padding: 10px 0; width: 100%; }
  .header__nav { order: 3; width: 100%; }
  .header__badge { display: none; }
}

/* ============================================================
   v42 — Texte justifié (v40 §4.3/§10.7) : règle globale + exceptions
   ============================================================ */
p, li { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.article-body p { line-height: 1.8; }

/* Exceptions obligatoires (éléments courts ou centrés — la justification y crée des rivières) */
.page-hero p, .cta-section p, .card p, .card-body p,
.blog-card__excerpt, .article-meta, #cookie-banner p,
.footer p, .footer li, .chiffres-cles p,
.sim-card p, .sim-result p, .sim-step p, .sim-option, .sim-nav,
.notice p, .faq-a p, .hero-form label, .rgpd-check,
.breadcrumb, table td, table th { text-align: left; }
.cta-section p, .sim-result p { text-align: center; }

/* ============================================================
   v45 §10.9 — exigences mobiles (bloc obligatoire — §10.9/§27.3)
   3. Inputs ≥16px (anti-zoom iOS) + hauteur tactile ≥44px.
   SURCHARGE EXPLICITE des sélecteurs existants du site :
   .hero-form input/.sim-form input portent .95rem -> ils battent
   la règle globale input{font-size:16px} par spécificité.
   ============================================================ */
input, select, textarea { font-size: 16px; }
.hero-form input, .hero-form select, .sim-form input { font-size: 16px; min-height: 44px; }
button { min-height: 44px; }
.hamburger { min-height: 0; }
.form-check input[type="checkbox"], .hero-form input[type="checkbox"], .sim-form input[type="checkbox"] { width: auto; min-height: 18px; height: 18px; padding: 0; margin: 4px 0 0; border: none; background: transparent; appearance: auto; -webkit-appearance: checkbox; flex: none; }
.rgpd-check input[type="checkbox"], .rgpd-label input[type="checkbox"] { width: 22px; min-width: 22px; min-height: 22px; height: 22px; padding: 0; margin: 4px 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; }
}
/* 5. Bandeau cookies compact mobile (≤1/3 é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; }
}

/* ============================================================
   v52 §10.9 — mega-footer réparti (§13.54) : 1 col mobile →
   2 col @480px → 4 col @1024px — JAMAIS 1 colonne sur desktop.
   Une répartition décrite en commentaire de contrat ne vaut pas
   une règle CSS (leçon §34.1).
   ============================================================ */
@media (min-width: 480px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .footer__col a { display: inline-block; padding: 4px 0; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__col a { display: inline-block; padding: 4px 0; }
}

/* Titres de cartes (remplace les H3 précoces des gabarits — v51 §13.41) */
.presta-title, .card-title { font-family: var(--t); line-height: 1.2; color: var(--c-primary); font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin-top: 1.6em; margin-bottom: .5em; }
.card-body .card-title { margin-top: 0; }


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

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