/* =========================================================
   Web Commune – feuille de styles
   Couleurs reprises de la plaquette commerciale
   ========================================================= */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #1B365D;
  --navy-deep: #12253F;
  --navy-ink: #0F2440;
  --yellow: #F2B33D;
  --yellow-soft: #FFF8E8;
  --yellow-line: #EBD7A8;
  --amber-bg: #FFF4DC;
  --amber-ink: #6B4600;
  --blue: #2F5DA8;
  --blue-soft: #EEF3FA;
  --line: #D5DEEA;
  --text: #1A1F2B;
  --muted: #4A5466;
  --muted-2: #3D4656;
  --bg: #FFFFFF;
  --bg-tint: #F7F8FB;
  --on-navy: #E4EBF5;
  --on-navy-muted: #C9D6E8;
  --error: #B42318;

  --font-title: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 36, 64, .06), 0 8px 24px rgba(15, 36, 64, .08);
  --shadow-lg: 0 24px 60px rgba(10, 25, 48, .35);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy-ink); }
h1, h2, h3 { font-family: var(--font-title); color: var(--navy); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 860px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--navy); font-weight: 700;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-text); font-weight: 700; font-size: 17px; line-height: 1.2;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 18px rgba(242, 179, 61, .35); }
.btn-primary:hover { background: #F6C35E; color: var(--navy-ink); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .icon { flex: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 36, 64, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 200px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 24px; list-style: none; }
.main-nav ul a { color: var(--navy); font-weight: 600; text-decoration: none; font-size: 17px; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav ul a:hover { border-color: var(--yellow); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 2px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: 700 16px var(--font-text); color: var(--navy); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; }
  .brand img { width: 170px; }
  .js .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 24px;
    box-shadow: 0 16px 30px rgba(15, 36, 64, .1);
    display: none;
  }
  .js .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-inner { flex-wrap: wrap; }
  html:not(.js) .main-nav { width: 100%; flex-wrap: wrap; padding-bottom: 12px; }
  html:not(.js) .main-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
  html:not(.js) .main-nav ul a { border: 0; padding: 4px 0; }
}

/* ---------- Héros ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(47, 93, 168, .55), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(242, 179, 61, .12), transparent 60%),
    var(--navy);
  color: #fff;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 110px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-block; color: var(--yellow); font-weight: 700; letter-spacing: .02em; margin-bottom: 18px; font-size: 17px; }
.hero h1 { color: #fff; font-weight: 800; font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -.02em; line-height: 1.03; }
.accent { color: var(--yellow); }
.lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--on-navy); margin-top: 22px; max-width: 600px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 30px; }
.chips li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 7px 15px; font-size: 15px; font-weight: 600; color: #fff; }
.chips li.chip-accent { background: var(--yellow); color: var(--navy); border-color: var(--yellow); font-weight: 700; }
.chips-light { justify-content: center; margin-top: 28px; }
.chips-light li { background: #fff; border: 1.5px solid var(--line); color: var(--navy); }

/* Maquette de site de commune */
.hero-visual { position: relative; padding: 24px 10px 34px; }
.mock {
  background: #fff; border-radius: 16px; overflow: hidden; color: var(--text);
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transform-origin: left center;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #EDF1F7; border-bottom: 1px solid #DEE5EF; }
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E3; }
.mock-bar > span:first-child { background: #D1453B; }
.mock-url { margin-left: 12px; flex: 1; background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 12px; color: var(--muted); }
.mock-site { padding: 16px 18px 20px; font-size: 13px; }
.mock-head { display: flex; align-items: center; gap: 10px; }
.mock-blason { width: 34px; height: 38px; border-radius: 6px 6px 50% 50%; background: linear-gradient(135deg, var(--blue), var(--navy)); position: relative; }
.mock-blason::after { content: ""; position: absolute; inset: 9px 10px 12px; border-radius: 3px 3px 50% 50%; background: var(--yellow); }
.mock-head strong { display: block; font-family: var(--font-title); color: var(--navy); font-size: 17px; line-height: 1.1; }
.mock-head small { color: var(--muted); font-size: 12px; }
.mock-nav { display: flex; gap: 14px; margin: 12px 0; padding: 8px 0; border-top: 1px solid #E8EDF4; border-bottom: 1px solid #E8EDF4; }
.mock-nav i { font-style: normal; font-weight: 600; color: var(--navy); font-size: 12px; }
.mock-nav i:first-child { color: var(--blue); }
.mock-banner {
  border-radius: 10px; padding: 18px 16px; color: #fff;
  background: linear-gradient(120deg, rgba(27, 54, 93, .92), rgba(47, 93, 168, .85)),
              repeating-linear-gradient(45deg, #8FB3F0 0 10px, #6E97DC 10px 20px);
}
.mock-banner span { display: block; font-family: var(--font-title); font-weight: 800; font-size: 19px; }
.mock-banner b { font-weight: 600; font-size: 12px; color: var(--on-navy); }
.mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.mock-card { background: var(--bg-tint); border: 1px solid #E5EBF3; border-radius: 9px; padding: 10px; }
.mock-card em { display: block; font-style: normal; font-weight: 700; color: var(--navy); font-size: 12px; margin-bottom: 4px; }
.mock-card p { font-size: 11.5px; line-height: 1.35; color: var(--muted-2); }
.mock-tag { display: inline-block; margin-top: 6px; background: var(--yellow-soft); color: var(--amber-ink); border: 1px solid var(--yellow-line); font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.mock-line { display: block; height: 6px; background: #DCE4EF; border-radius: 4px; margin-top: 6px; }
.mock-line.short { width: 60%; }

.float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--navy); font-weight: 700; font-size: 14px;
  padding: 10px 14px; border-radius: 12px; box-shadow: 0 12px 30px rgba(10, 25, 48, .3);
  animation: flotte 6s ease-in-out infinite;
}
.float-a { left: -14px; bottom: 6px; }
.float-b { right: -4px; top: 0; animation-delay: -3s; }
@keyframes flotte { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 52px); }
.section-head-left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; letter-spacing: -.01em; }
.section-intro { margin-top: 14px; color: var(--muted); font-size: 19px; }
.kicker { display: inline-block; font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.kicker-light { color: var(--yellow); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.card { border-radius: var(--radius-lg); padding: 30px 28px; }
.card-bleu { background: var(--blue-soft); }
.card-alerte { background: var(--amber-bg); }
.card-alerte h3 { color: var(--amber-ink); }
.card-icon { width: 56px; height: 56px; border-radius: 16px; background: #fff; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 2px 8px rgba(15, 36, 64, .06); }
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card p { color: var(--muted-2); font-size: 17.5px; }

/* Objections */
.objection { margin: 0; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px 26px; position: relative; overflow: hidden; }
.objection::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--yellow); }
.objection blockquote { margin: 0 0 8px; font-style: italic; color: var(--muted); font-size: 18px; }
.objection figcaption { font-size: 18px; }
.objection strong { color: var(--navy); }

/* Bandeau modèle économique */
.band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 28px; color: #fff; padding: clamp(32px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 40px solid rgba(242, 179, 61, .12);
}
.band-head { max-width: 720px; margin-bottom: 34px; position: relative; z-index: 1; }
.band-head h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.band-grid { position: relative; z-index: 1; }
.band-item { border-left: 3px solid var(--yellow); padding-left: 20px; }
.band-item .icon { margin-bottom: 12px; }
.band-item h3 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.band-item p { color: var(--on-navy); }

/* Offre */
.offre-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.offre-grid .btn { margin-top: 28px; }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 17px; line-height: 1.4; }
.check-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; margin-top: 1px; }

/* Tarifs */
.pricing { align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px 28px; box-shadow: var(--shadow); }
.price-card h3 { font-size: 20px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.price-amount { font-family: var(--font-title); font-weight: 800; font-size: 60px; line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.price-unit { font-weight: 600; font-size: 19px; color: var(--navy); }
.price-year { color: var(--muted-2); margin-top: 6px; }
.price-setup { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted-2); margin-bottom: 24px; }
.price-setup strong { color: var(--navy); }
.price-card .btn { margin-top: auto; }
.price-card-featured { border: 2.5px solid var(--yellow); background: var(--yellow-soft); transform: translateY(-8px); box-shadow: 0 18px 40px rgba(242, 179, 61, .22); }
.price-card-featured .price-setup { border-color: var(--yellow-line); }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.tva { text-align: center; color: var(--muted); font-size: 15px; margin-top: 22px; }

.inclusions { margin-top: 36px; }
.box { border-radius: var(--radius); padding: 24px 26px; }
.box h3 { font-size: 19px; margin-bottom: 10px; }
.box-in { background: var(--blue-soft); }
.box-out { background: #F1F2F5; }
.box-out h3 { color: var(--muted-2); }
.box-note { font-size: 15px; color: var(--muted); font-style: italic; margin-bottom: 6px; }
.box ul { list-style: none; display: grid; gap: 6px; }
.box li { position: relative; padding-left: 22px; }
.box-in li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(-45deg); }
.box-out li::before { content: "–"; position: absolute; left: 4px; color: var(--muted); font-weight: 700; }

/* Étapes */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: none; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step { position: relative; text-align: center; padding: 0 6px; }
.step-num { position: relative; z-index: 1; margin: 0 auto 16px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 22px; box-shadow: 0 0 0 8px #fff; }
.step-num-accent { background: var(--yellow); color: var(--navy); }
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--muted-2); font-size: 17px; }

/* Communes pilotes */
.pilot { background: radial-gradient(800px 400px at 100% 0%, rgba(47, 93, 168, .5), transparent 60%), var(--navy); color: #fff; }
.pilot-head { text-align: center; max-width: 820px; margin: 0 auto 44px; }
.pilot-head h2 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; margin-top: 18px; }
.pilot-head .lead { margin: 16px auto 0; }
.pill { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: 15px; padding: 8px 18px; border-radius: 999px; }
.pilot-col h3 { color: var(--yellow); font-size: 22px; margin-bottom: 16px; }
.pilot-col { display: flex; flex-direction: column; gap: 12px; }
.pilot-item { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 18px 20px; }
.pilot-item .icon { flex: none; margin-top: 2px; }
.pilot-item strong { display: block; color: #fff; font-size: 18px; margin-bottom: 3px; }
.pilot-item span { color: var(--on-navy); font-size: 16.5px; }
.pilot-item-hl { background: var(--yellow-soft); border: 2px solid var(--yellow); align-items: center; }
.pilot-item-hl strong { color: var(--navy); }
.pilot-item-hl span { color: var(--muted-2); }
.pilot-item .pilot-big { font-family: var(--font-title); font-weight: 800; font-size: 38px; color: var(--navy); line-height: 1; flex: none; margin: 0; }
.pilot-prices { margin-top: 44px; background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); text-align: center; }
.pilot-prices h3 { font-size: 24px; margin-bottom: 22px; }
.pilot-price { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.pp-label { font-weight: 700; color: var(--navy); }
.pp-old { color: #6B7280; }
.pp-new { font-family: var(--font-title); font-weight: 800; font-size: 38px; color: var(--navy); line-height: 1.1; }
.pilot-note { color: var(--muted-2); margin: 20px auto 24px; max-width: 680px; font-size: 16.5px; }

/* Par un élu */
.elu { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; max-width: 980px; }
.elu-avatar { width: 180px; height: 180px; border-radius: 50%; background: var(--blue-soft); display: grid; place-items: center; position: relative; }
.elu-avatar::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px dashed var(--yellow); }
.elu-avatar img { width: 96px; height: 96px; }
.elu-text h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; margin-bottom: 18px; }
.elu-text p + p { margin-top: 12px; }
.elu-text p { color: var(--muted-2); }
.elu-sign { font-weight: 700; color: var(--navy) !important; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); }
.faq-item[open] { border-color: var(--navy); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--navy); font-size: 19px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { padding: 0 24px 22px; color: var(--muted-2); }

/* Contact */
.contact { background: linear-gradient(180deg, var(--bg-tint) 0 35%, var(--navy-deep) 35%); padding-top: 0; padding-bottom: clamp(48px, 6vw, 72px); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-side { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.contact-side h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
.contact-side p { color: var(--on-navy); }
.contact-phone { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; margin-top: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 14px 20px; align-self: flex-start; }
.contact-phone:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.contact-phone span { font-family: var(--font-title); font-weight: 800; font-size: 28px; line-height: 1.1; }
.contact-phone small { display: block; font-family: var(--font-text); font-weight: 600; font-size: 14px; color: var(--on-navy-muted); }
.contact-who { font-size: 15px; color: var(--on-navy-muted) !important; margin-top: auto; }

.form-card { background: #fff; padding: clamp(28px, 4vw, 48px); }
.form-title { font-size: 26px; font-weight: 800; }
.form-hint { color: var(--muted); font-size: 15px; margin: 6px 0 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; color: var(--navy); font-size: 16px; }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--text);
  background: #fff; border: 1.5px solid #B9C5D6; border-radius: 10px;
  padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(242, 179, 61, .45); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: 15px; font-weight: 600; }
.field-check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 16px; color: var(--muted-2); }
.field-check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--navy); }
.field-check + .field-error { margin: -8px 0 16px 34px; }
.form-card .btn-block { margin-top: 8px; }
.form-errors { border: 2px solid var(--error); background: #FEF3F2; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; color: var(--error); }
.form-errors ul { margin: 6px 0 0 18px; }
.form-errors a { color: var(--error); }
.form-success { text-align: center; padding: 40px 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.form-success .icon { background: var(--yellow); border-radius: 50%; padding: 10px; width: 64px; height: 64px; }
.form-success h3 { font-size: 26px; }
.form-success p { color: var(--muted-2); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding: 56px 0 28px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 220px; height: auto; margin: -6px 0 14px -6px; }
.footer-brand p { max-width: 360px; color: var(--on-navy-muted); }
.footer-title { color: #fff; font-family: var(--font-title); font-size: 18px; margin-bottom: 12px; }
.footer-list { list-style: none; display: grid; gap: 8px; color: var(--on-navy-muted); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; color: var(--on-navy-muted); }

/* ---------- Page simple (mentions légales) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 46px); font-weight: 800; }
.prose { padding: 56px 0 80px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 12px; color: var(--muted-2); }
.prose ul { padding-left: 22px; }
.todo { background: var(--amber-bg); color: var(--amber-ink); font-weight: 700; padding: 0 6px; border-radius: 4px; }

/* ---------- Page Fonctionnalités ---------- */
[hidden] { display: none !important; }
.main-nav ul a[aria-current="page"] { border-color: var(--yellow); }
.offre-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.offre-grid .offre-actions .btn { margin-top: 0; }
.features-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px); background: radial-gradient(800px 420px at 90% 0%, rgba(47, 93, 168, .55), transparent 60%), var(--navy); }
.features-hero h1 { font-size: clamp(34px, 5vw, 58px); max-width: 860px; letter-spacing: -.02em; }
.features-hero .lead { max-width: 720px; }
.feature-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.feature-stats li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 14px 22px; display: flex; flex-direction: column; min-width: 150px; }
.feature-stats strong { font-family: var(--font-title); font-weight: 800; font-size: 40px; line-height: 1; color: var(--yellow); }
.feature-stats span { color: var(--on-navy); font-size: 16px; margin-top: 4px; }

.features-toolbar { position: sticky; top: 76px; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.features-toolbar-inner { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; padding-bottom: 12px; }
.feature-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { font: 700 15px var(--font-text); color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.filter-btn span { background: var(--blue-soft); border-radius: 999px; padding: 0 8px; font-size: 13px; }
.filter-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-btn[aria-pressed="true"] span { background: var(--yellow); color: var(--navy); }
.feature-jump { display: flex; gap: 6px 18px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; padding-bottom: 2px; }
.feature-jump a { color: var(--muted-2); font-size: 15px; font-weight: 600; text-decoration: none; }
.feature-jump a:hover { color: var(--navy); text-decoration: underline; }

.features { padding-top: 24px; padding-bottom: 24px; }
.feature-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.feature-group { padding: clamp(32px, 5vw, 52px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 190px; }
.feature-group:last-of-type { border-bottom: 0; }
.feature-group-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; max-width: 820px; }
.feature-group-icon { flex: none; width: 58px; height: 58px; border-radius: 16px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; }
.feature-group-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feature-count { font-family: var(--font-text); font-size: 15px; font-weight: 700; background: var(--yellow-soft); color: var(--amber-ink); border: 1px solid var(--yellow-line); border-radius: 999px; padding: 2px 10px; }
.feature-group-head p { color: var(--muted); margin-top: 6px; }
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.feature-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card h3 { font-size: 19px; line-height: 1.2; }
.feature-card p { color: var(--muted-2); font-size: 16.5px; line-height: 1.45; }
.feature-card.is-soon { background: var(--bg-tint); border-style: dashed; }
.feature-badges { display: flex; gap: 6px; margin-bottom: 4px; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 10px; line-height: 1.5; }
.badge-inclus { background: #E7F4EC; color: #1E6B3A; }
.badge-option { background: var(--yellow-soft); color: var(--amber-ink); border: 1px solid var(--yellow-line); }
.badge-avenir { background: var(--blue-soft); color: var(--blue); }
.features-legend { display: grid; gap: 8px; background: var(--bg-tint); border-radius: var(--radius); padding: 20px 24px; margin: 8px 0 0; color: var(--muted-2); font-size: 16px; }
.features-legend .badge { margin-right: 6px; }
.features-cta > p { color: var(--on-navy); max-width: 640px; position: relative; z-index: 1; }
.features-cta .hero-actions { position: relative; z-index: 1; margin-top: 24px; }
.features-cta .band-head { margin-bottom: 12px; }
@media (max-width: 1080px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .feature-list { grid-template-columns: 1fr; }
  .feature-group-head { gap: 14px; }
  .feature-group-icon { width: 48px; height: 48px; }
  .feature-stats li { min-width: 0; flex: 1 1 40%; }
  .features-toolbar { position: static; }
}

/* ---------- Six raisons ---------- */
.reasons { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.reason-card { background: var(--blue-soft); border-radius: var(--radius-lg); padding: 24px 24px 26px; }
.reason-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.reason-num { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-family: var(--font-title); font-weight: 800; font-size: 20px; display: grid; place-items: center; }
.reason-head h3 { font-size: 21px; }
.reason-card ul { list-style: none; display: grid; gap: 9px; }
.reason-card li { display: flex; gap: 9px; align-items: flex-start; color: var(--muted-2); font-size: 17px; line-height: 1.4; }
.reason-card li .icon { flex: none; margin-top: 4px; }
.reasons-more { text-align: center; margin-top: 30px; }
.reasons-more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
.reasons-more a:hover { color: var(--navy-ink); border-color: var(--navy); }
/* ---------- Communes pilotes (version courte) ---------- */
.pilot-short { padding: clamp(48px, 7vw, 80px) 0; }
.pilot-short-inner { display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center; }
.pilot-short h2 { color: #fff; font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; margin-top: 16px; }
.pilot-short .lead { margin-top: 14px; }
.pilot-short-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.pilot-phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-title); font-weight: 800; font-size: 24px; }
.pilot-phone:hover { color: var(--yellow); }
@media (max-width: 1080px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .pilot-short-inner { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .mock { transform: none; }
  .offre-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .price-card-featured { transform: none; }
  .pricing { gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .elu { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .checklist { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .mock-cols { grid-template-columns: 1fr 1fr; }
  .mock-cols .mock-card:last-child { display: none; }
  .float-a { left: 0; }
  .float-b { right: 0; }
  .hero-actions .btn { width: 100%; }
  .elu-avatar { width: 140px; height: 140px; }
  .elu-avatar img { width: 76px; height: 76px; }
}

/* ---------- Vidéo de présentation ---------- */
.section-video { padding-bottom: clamp(40px, 6vw, 72px); }
.video-card { margin: 0 auto; max-width: 960px; }
.video-frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-deep); box-shadow: var(--shadow); border: 1.5px solid var(--line); aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--navy-deep); }
.video-card figcaption { margin-top: 12px; text-align: center; font-size: 16px; color: var(--muted); }
.video-transcription { max-width: 960px; margin: 24px auto 0; }
.video-transcription-texte { padding: 0 24px 10px; }
.video-transcription-texte p { padding: 0; margin: 0 0 12px; color: var(--muted-2); }
.video-actions { justify-content: center; margin-top: 28px; }
@media (max-width: 600px) {
  .video-frame { border-radius: var(--radius); }
  .video-transcription-texte { padding: 0 18px 8px; }
}

@media print {
  .site-header, .hero-visual, .contact, .nav-toggle, .video-card, .video-actions { display: none !important; }
  .hero, .pilot, .band { background: #fff !important; color: #000 !important; }
}

/* ---- Référencement : fil d'Ariane, adresse, zone d'intervention, guide ---- */
.breadcrumb { background: #F7F8FB; border-bottom: 1px solid #E8EDF4; font-size: 15px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: var(--muted); }
.breadcrumb a { color: var(--navy); }
.footer-brand p.footer-adr { margin-top: 8px; font-size: 15px; }
.zone .box h3 { font-size: 20px; margin-bottom: 8px; }
.guide-meta { color: var(--muted); font-size: 15px; }
.guide-toc { background: #F7F8FB; border: 1px solid #E8EDF4; border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.guide-toc h2 { font-size: 18px; margin-bottom: 8px; }
.guide-toc ol { margin: 0; padding-left: 20px; }
.guide-key { border-left: 4px solid var(--yellow); background: #FFF8E8; padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 16px 0; }
.guide-sources { font-size: 15px; }
.page-hero .guide-meta { color: var(--on-navy-muted); margin-top: 14px; }
.page-hero .guide-meta a { color: #fff; }

/* ---- Tarifs : deux formules, grille détaillée (20 octobre 2026) ---- */
.pricing-2 { max-width: 920px; margin: 0 auto; align-items: stretch; }
.price-list { list-style: none; display: grid; gap: 7px; margin-top: 18px; }
.price-list li { position: relative; padding-left: 24px; color: var(--muted-2); }
.price-list li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 10px; height: 6px; border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(-45deg); }
.price-card .price-setup { margin-top: auto; padding-top: 16px; }
.price-card .price-setup + .btn { margin-top: 0; }
.pricing-more { text-align: center; margin-top: 30px; }
.table-title { font-size: 21px; margin: 34px 0 12px; }
.table-scroll { overflow-x: auto; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-scroll:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.price-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 16px; }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table thead th { background: var(--blue-soft); color: var(--navy); font-weight: 700; font-size: 15px; white-space: nowrap; }
.price-table tbody th { color: var(--navy); font-weight: 700; width: 24%; }
.price-table td:nth-last-child(-n+2) { width: 17%; }
.price-table td.cell-price { white-space: nowrap; font-weight: 700; color: var(--navy); }
.cell-yes { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #1E6B3A; }
.cell-option { font-weight: 600; color: var(--amber-ink); }
.calc { margin-top: 26px; }
.calc p { color: var(--muted-2); }
@media (max-width: 860px) { .pricing-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .table-scroll { overflow: visible; }
  .price-table { min-width: 0; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .price-table tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td { display: block; width: auto !important; padding: 0; border: 0; }
  .price-table tbody th, .price-table td:not([data-label]) { grid-column: 1 / -1; }
  .price-table td:not([data-label]) { margin-top: 4px; color: var(--muted-2); }
  .price-table td[data-label] { margin-top: 10px; white-space: normal; }
  .price-table td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
}
