/* ==========================================================
   LP Mutuelle Seniors : Design Moderne & Accessibilité
   ========================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --teal-dark: #04232c;
  --teal-main: #084252;
  --teal-light: #0d5467;
  --gold-accent: #f0ab3d;
  --gold-hover: #e09b2d;
  --orange-accent: #ea8c2f;
  
  --paper: #ffffff;
  --bg-light: #f4f7f6;
  --ink: #112225;
  --muted: #4e6567;
  --line: #c3d7d5;
  --card-bg: rgba(255, 255, 255, 0.94);
  --danger: #c62828;
  --focus: #0284c7;

  --display: "Fraunces", Georgia, serif;
  --body: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-sm: 0 4px 12px rgba(4, 35, 44, 0.06);
  --shadow-md: 0 12px 32px rgba(4, 35, 44, 0.12);
  --shadow-lg: 0 24px 48px rgba(4, 35, 44, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--teal-main);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* ---------- Structure Split avec effet Sticky ---------- */
.split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  min-height: 100vh;
  background: var(--teal-main);
}

.hero-bg-image {
  position: absolute;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("img.png");
  background-size: cover;
  background-position: 70% center;
  opacity: 0.98;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  inset: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, 
      rgba(4, 35, 44, 0.85) 0%, 
      rgba(4, 35, 44, 0.25) 50%, 
      rgba(4, 35, 44, 0.45) 100%),
    linear-gradient(180deg, 
      rgba(4, 35, 44, 0.4) 0%, 
      rgba(4, 35, 44, 0.1) 50%, 
      rgba(4, 35, 44, 0.55) 100%);
  z-index: 1;
}

/* ---------- Colonne Gauche (Hero Sticky) ---------- */
.intro {
  position: relative;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px clamp(24px, 4vw, 64px);
  background: transparent;
}

@media (min-width: 901px) {
  .intro {
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: start;
  }
}

.intro-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.2px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.intro h1 {
  margin-top: 40px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
}

.intro h1 em {
  font-style: italic;
  position: relative;
  color: #ffffff;
}

.intro h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  background: var(--gold-accent);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(240, 171, 61, 0.5);
}

/* 3 Piliers */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: auto;
  margin-bottom: 32px;
  padding-top: 32px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(240, 171, 61, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  width: 52px;
  height: 52px;
  color: var(--gold-accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  background: var(--gold-accent);
  color: var(--teal-dark);
  transform: scale(1.1) rotate(4deg);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-item p {
  font-size: 0.95rem;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.feature-item strong {
  color: #ffffff;
  font-weight: 700;
}

/* Encadré Engagement */
.engagement-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  background: rgba(4, 35, 44, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  max-width: 400px;
}

.engagement-card:hover {
  transform: translateY(-3px);
  background: rgba(4, 35, 44, 0.82);
  border-color: rgba(240, 171, 61, 0.6);
  box-shadow: var(--shadow-lg);
}

.engagement-icon {
  width: 40px;
  height: 40px;
  color: var(--gold-accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.engagement-card:hover .engagement-icon {
  transform: scale(1.12);
}

.engagement-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.engagement-content p {
  font-size: 0.92rem;
  color: #dceceb;
}

.engagement-content .stat {
  font-weight: 700;
  color: #ffffff;
}

/* ---------- Colonne Droite (Formulaire) ---------- */
.quote {
  position: relative;
  z-index: 2;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.quote-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 100%;
  max-width: 600px;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.95);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.progress-wrap {
  margin-bottom: 24px;
}

.progress-label { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  font-weight: 700; 
  font-size: 0.95rem; 
  color: var(--ink);
}

.secure { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  font-weight: 600; 
  color: var(--teal-main); 
  background: #e6f2f0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
}
.secure svg { width: 14px; height: 14px; }

.progress { 
  display: flex; 
  gap: 8px; 
  margin-top: 12px; 
}
.progress i { 
  flex: 1; 
  height: 8px; 
  border-radius: 4px; 
  background: #dce8e6; 
  transition: background 0.3s ease;
}
.progress i.on { 
  background: var(--teal-main); 
}

.step { margin-top: 20px; }
.step h3 { 
  font: 700 1.3rem/1.3 var(--body); 
  margin-bottom: 20px; 
  color: var(--ink); 
}
.step h3:focus { outline: none; }
.hint { 
  margin: -8px 0 22px; 
  color: var(--muted); 
  font-size: 0.98rem; 
  line-height: 1.45;
}

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 700; width: 100%; }

.form-head { margin-bottom: 28px; text-align: center; }
.form-head h2 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--ink);
  line-height: 1.3;
}
.form-head h2 span {
  display: block;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Tuiles de sélection (Radio) */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tiles-1 { grid-template-columns: minmax(0, 1fr); }
.tile { position: relative; display: block; }
.tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }

.tile span {
  display: flex; 
  align-items: center; 
  gap: 14px;
  min-height: 54px; 
  padding: 10px 18px;
  border: 2px solid var(--line); 
  border-radius: var(--radius-md);
  background: #ffffff; 
  font-weight: 700; 
  font-size: 1.05rem;
  line-height: 1.25; 
  color: var(--ink);
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.tile span::before {
  content: ""; 
  flex: none; 
  width: 22px; 
  height: 22px; 
  border-radius: 50%;
  border: 2px solid var(--line); 
  background: #ffffff; 
  transition: all 0.2s ease;
}

.tile:hover span {
  border-color: var(--teal-main);
  background: #f4faf9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.tile input:checked + span {
  border-color: var(--teal-main);
  background: #eef7f6;
  box-shadow: 0 4px 14px rgba(8, 66, 82, 0.15);
}

.tile input:checked + span::before {
  border-color: var(--teal-main);
  background: var(--teal-main) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.tile input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Champs de texte */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > label, .field > legend { font-weight: 700; color: var(--ink); font-size: 0.98rem; }

.field input[type="text"], 
.field input[type="tel"], 
.field input[type="email"] {
  width: 100%; 
  height: 52px; 
  padding: 0 18px;
  border: 2px solid var(--line); 
  border-radius: var(--radius-sm);
  background: #ffffff; 
  color: var(--ink); 
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder { color: #8fa0a2; opacity: 1; }
.field input:hover { border-color: var(--teal-main); }
.field input:focus { border-color: var(--teal-main); box-shadow: 0 0 0 4px rgba(8, 66, 82, 0.15); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--danger); background-color: #fff8f8; }

.row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; }
.row-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
fieldset.field { margin-bottom: 18px; }
fieldset.field legend { margin-bottom: 8px; }

/* Case à cocher RGPD */
.consent { 
  display: grid; 
  grid-template-columns: 22px minmax(0, 1fr); 
  gap: 12px; 
  align-items: start; 
  margin-top: 16px; 
  font-size: 0.92rem; 
  line-height: 1.45; 
  color: var(--ink); 
}
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal-main); cursor: pointer; }
.consent a { font-weight: 700; color: var(--teal-main); text-decoration: underline; }

.err { margin-top: 18px; color: var(--danger); font-weight: 700; font-size: 0.98rem; text-align: center; }

/* Boutons Navigation */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.btn-back {
  min-height: 54px; 
  padding: 0 12px; 
  border: 0; 
  background: none;
  font: inherit; 
  font-weight: 700; 
  color: var(--teal-main); 
  text-decoration: underline; 
  text-underline-offset: 4px; 
  cursor: pointer;
  transition: color 0.2s ease;
}
.btn-back:hover { color: var(--teal-dark); }

.btn-next {
  flex: 1; 
  min-height: 58px; 
  padding: 0 24px;
  border: 0; 
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--orange-accent) 0%, #d87118 100%);
  color: #ffffff;
  font: 700 1.1rem/1 var(--body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(234, 140, 47, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-next:hover {
  background: linear-gradient(180deg, #f0953a 0%, #c4620f 100%);
  box-shadow: 0 8px 24px rgba(234, 140, 47, 0.5);
  transform: translateY(-2px);
}
.btn-next:active { transform: translateY(0); }
.btn-next:disabled { opacity: .65; cursor: wait; transform: none; }

.reassure {
  display: flex; 
  align-items: center; 
  gap: 8px;
  margin-top: 20px; 
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center; 
  color: var(--muted); 
  justify-content: center;
}
.reassure svg { flex: none; width: 16px; height: 16px; color: var(--teal-main); }

.legal { 
  margin-top: 24px; 
  padding-top: 18px; 
  border-top: 1px solid var(--line); 
  font-size: 0.82rem; 
  line-height: 1.5; 
  color: var(--muted); 
}

.thanks { padding: 32px 0; text-align: center; }
.thanks svg { width: 72px; height: 72px; margin-bottom: 20px; }
.thanks h3 { font: 600 2.2rem/1.2 var(--display); margin-bottom: 14px; color: var(--ink); }

/* Anti-spam */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Section Compare (Garantes & Offres) ---------- */
.compare {
  padding: 88px 24px 80px;
  background: var(--bg-light);
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--teal-main);
  background: #d8ece9;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-header h2 em {
  font-style: normal;
  position: relative;
  color: var(--teal-main);
}

.section-header h2 em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--gold-accent);
  border-radius: 2px;
}

.section-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.topic-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-main);
}

.topic-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-main);
  background: #e6f3f2;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topic-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #eaf4f3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.topic-card:hover .topic-icon {
  background: var(--teal-main);
  transform: scale(1.08);
}

.topic-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--teal-main);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.topic-card:hover .topic-icon svg {
  stroke: var(--gold-accent);
}

.topic-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.topic-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---------- Comment ça marche & FAQ ---------- */
.how { background: #eaf3f2; padding: 80px 24px; }
.how h2 { 
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: 56px; 
  color: var(--ink); 
}

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.timeline li { position: relative; }
.timeline li:not(:last-child)::after {
  content: ""; 
  position: absolute; 
  top: 28px; 
  left: 72px; 
  right: -20px; 
  height: 2px; 
  background: var(--teal-main); 
  opacity: .25;
}

.dot {
  display: grid; 
  place-items: center; 
  width: 58px; 
  height: 58px; 
  margin-bottom: 20px;
  border-radius: 50%; 
  background: var(--teal-dark); 
  color: var(--gold-accent);
  font: 600 1.6rem/1 var(--display);
  box-shadow: var(--shadow-sm);
}

.timeline h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.timeline p { color: var(--muted); line-height: 1.5; }

.faq { padding: 88px 24px; background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq-grid h2 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--ink); }

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 16px;
  padding: 22px 0; 
  font-weight: 700; 
  font-size: 1.15rem; 
  cursor: pointer; 
  list-style: none; 
  color: var(--ink);
  transition: color 0.2s ease;
}
.faq-list summary:hover { color: var(--teal-main); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font: 400 1.8rem/1 var(--body); color: var(--teal-main); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 24px 24px 0; color: var(--muted); line-height: 1.6; }

/* ---------- Section Call to Action ---------- */
.cta { background: var(--teal-main); color: #fff; padding: 64px 24px; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta h2 { font-family: var(--display); font-size: clamp(1.8rem, 2.8vw, 2.3rem); color: #fff; }
.cta p { margin-top: 6px; color: rgba(255,255,255,.9); font-size: 1.1rem; }

.btn-cta {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  min-height: 58px; 
  padding: 0 40px; 
  border-radius: var(--radius-md);
  background: var(--gold-accent); 
  color: var(--teal-dark); 
  text-decoration: none;
  font: 700 1.15rem/1 var(--body);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}
.btn-cta:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }

/* ---------- Responsive Mobile & Tablette ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }

  .hero-bg-image,
  .hero-overlay { display: none; }

  .intro {
    min-height: auto;
    padding: 36px 20px;
    background-image: 
      linear-gradient(180deg, rgba(4, 35, 44, 0.75) 0%, rgba(4, 35, 44, 0.55) 100%),
      url("img.png");
    background-size: cover;
    background-position: 25% center;
  }

  .quote {
    padding: 40px 20px;
    background-image: 
      linear-gradient(180deg, rgba(4, 35, 44, 0.55) 0%, rgba(4, 35, 44, 0.8) 100%),
      url("img.png");
    background-size: cover;
    background-position: 85% center;
  }

  .features-grid { gap: 12px; margin-top: 28px; }
  .quote-card { padding: 30px 22px; }
  .intro-inner { max-width: none; margin-left: auto;margin-right: 0;}
  .intro h1 { margin-top: 20px; }
  .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline li { padding: 0 0 36px 76px; }
  .dot { position: absolute; left: 0; top: 0; margin: 0; }
  .timeline li:not(:last-child)::after { top: 64px; bottom: 8px; left: 28px; right: auto; width: 2px; height: auto; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .row, .row-even { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .btn-next, .btn-cta { width: 100%; }
  .topics-grid { grid-template-columns: minmax(0, 1fr); }
  .features-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
/* ==========================================================
   Modale Partenaires (Pop-up)
   ========================================================== */

.legal-link {
  color: var(--teal-main);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  font-weight: 700;
}

.legal-link:hover {
  color: var(--teal-dark);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 49, 61, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  z-index: 1001;
  width: 90%;
  max-width: 850px; /* Largeur agrandie sur grand écran */
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-height: 85vh;
}

.modal.is-open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  color: var(--ink);
  background: #f0f4f3;
}

.modal-box h3 {
  font-family: var(--display);
  color: var(--ink);
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.partners-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  color: var(--ink);
}

.partners-list li {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--teal-dark);
  color: #a3c2c0;
  padding: 32px 24px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-link {
  background: none;
  border: none;
  padding: 0;
  color: #a3c2c0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

/* Modales défilables (pour accueillir les longs textes) */

.modal-content {
  overflow-y: auto;
  padding-right: 12px;
  margin-top: 16px;
  color: var(--ink);
  line-height: 1.6;
  font-size: 0.95rem;
}
.modal-content h4 {
  font-size: 1.1rem;
  margin: 20px 0 8px 0;
  color: var(--teal-dark);
}

.modal-content h4:first-child {
  margin-top: 0;
}

.modal-content p {
  margin-bottom: 12px;
}

.modal-content a {
  color: var(--teal);
  text-decoration: underline;
}

/* Choix de la ville quand un code postal correspond à plusieurs communes */
.ville-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.ville-picks[hidden] { display: none; }
.ville-picks span { flex-basis: 100%; font-size: 0.95rem; color: var(--muted); }
.ville-picks button {
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--teal-main);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--teal-main);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.ville-picks button:hover { background: var(--teal-main); color: var(--paper); }
.ville-picks button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(8, 66, 82, 0.15); }
/* ---------- LP désactivée (LP_ACTIVE = false) ---------- */
.expired { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--teal-main); }
.expired__card { max-width: 520px; padding: 40px 32px; border-radius: var(--radius-lg); background: var(--paper); text-align: center; box-shadow: var(--shadow-lg); }
.expired__card h1 { font-family: var(--display); font-size: 1.8rem; color: var(--ink); margin-bottom: 12px; }
.expired__card p { color: var(--muted); }
