/* Thème assurance : style.css unique (tokens → base → modules).
   visio.css / appel.css / comparator.css : pages autonomes, hors de ce fichier.
*/

/* ========== Fonts (auto-hébergées, theme/font/) ========== */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../font/dm-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../font/dm-sans-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../font/dm-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../font/dm-sans-700.woff2") format("woff2");
}

/* ========== Tokens / variables (tokens.css) ========== */
/* Design tokens - AssuranceMoto (teal existant) */
:root {
  --primary: #083a39;
  --secondary: #008080;
  --secondary-soft: #e6f4f4;
  --light: #f7faf9;
  --white: #ffffff;
  --text: #1a2e2e;
  --text-muted: #5a6f6f;
  --border: #d0e0e0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(8, 58, 57, 0.08);
  --hero-highlight: #a8e6e0;
  --danger: #b42318;
  --danger-hover: #8f1a12;
  --max: 1080px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

/* ========== Base (base.css) ========== */
/* Base layout */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3 { font-weight: 700; line-height: 1.25; color: var(--primary); margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; color: var(--text-muted); }
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--primary); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.btn-outline:hover { background: var(--secondary); color: var(--white); }

/* ========== Header (header.css) ========== */
/* Header / nav - même barre sur toutes les pages */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 4rem;
  position: relative;
}
.site-header .logo {
  margin-right: auto;
  flex-shrink: 0;
}
.site-header .logo img { height: 2.85rem; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { background: var(--secondary-soft); color: var(--secondary); }
/* Tel : barre header (desktop + mobile), hors menu déroulant */
.nav-phone {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.nav-phone:hover {
  background: var(--primary);
  color: var(--white);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.25rem;
    z-index: 51;
  }
  .site-nav.is-open { display: flex; }
}

/* ========== Hero + features (hero.css) ========== */
/* Hero home
   Sans photo  → .hero (dégradé marque)
   Avec photo  → .hero.hero--photo + .hero-media (s.php hero_image)
   Desktop     : photo à droite dans --max, texte en zone safe à gauche
   Mobile      : même composition (image en fond), overlay plus léger, texte centré
*/
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 55%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem 0 5.5rem;
  overflow: hidden;
}
.hero--photo {
  background: var(--primary);
  padding: 0;
  min-height: 28rem;
  display: flex;
  align-items: center;
}
.hero--photo .hero-media {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, var(--max));
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background-color: var(--primary);
  background-image:
    linear-gradient(
      105deg,
      var(--primary) 0%,
      var(--primary) 36%,
      color-mix(in srgb, var(--primary) 70%, transparent) 52%,
      transparent 72%
    ),
    var(--hero-image);
  background-size: cover, cover;
  background-position: center, right 18%;
  background-repeat: no-repeat;
}
.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 4rem;
  padding-bottom: 5.5rem;
}
/* Zone texte safe : ne chevauche pas la photo */
.hero--photo .container > * {
  max-width: 28rem;
}
.hero h1 {
  color: var(--white);
  max-width: 18ch;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--hero-highlight); }
.hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}
.hero .btn {
  background: var(--white);
  color: var(--primary);
}
.hero .btn:hover { background: var(--secondary-soft); color: var(--primary); }
.hero .btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 0.5rem;
}
.hero .btn-outline:hover { background: var(--white); color: var(--primary); }
.form-related a + a::before {
  content: " · ";
  color: var(--text-muted);
  margin: 0 0.15rem;
}

/* Bloc arguments */
.features {
  padding: 3.5rem 0;
  background: var(--light);
}
.features-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--secondary-soft);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.feature h3 { margin-bottom: 0.5rem; }
.feature p { margin: 0; font-size: 0.95rem; }

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }

  .hero {
    padding: 3rem 0 4.5rem;
    text-align: center;
  }
  .hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }
  .hero h1 {
    max-width: 14ch;
    margin-left: auto;
    margin-right: auto;
  }
  .hero p {
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
  }
  .hero .btn { width: auto; min-width: 12rem; }

  .hero--photo {
    display: flex;
    min-height: 26rem;
  }
  /* Même idée qu’en desktop : image derrière, overlay plus transparent */
  .hero--photo .hero-media {
    position: absolute;
    left: 0;
    transform: none;
    width: 100%;
    height: auto;
    top: 0;
    bottom: 0;
    background-image:
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary) 72%, transparent) 0%,
        color-mix(in srgb, var(--primary) 55%, transparent) 45%,
        color-mix(in srgb, var(--primary) 78%, transparent) 100%
      ),
      var(--hero-image);
    background-size: cover, cover;
    background-position: center, center 22%;
  }
  .hero--photo .container {
    background: transparent;
    padding: 3rem 1.25rem 4rem;
  }
  .hero--photo .container > * {
    max-width: none;
  }
}

/* ========== Products (products.css) ========== */
/* Grille produits (style cartes Acheel) */
.products {
  margin-top: -3rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 2;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.products-section-title {
  margin: 2rem 0 1rem;
  font-size: 1.15rem;
  color: var(--primary);
}
.products-section-title:first-child { margin-top: 0; }
.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.product-card--tarif {
  display: flex;
  flex-direction: column;
  padding-top: 1.5rem;
  padding-bottom: 1.15rem;
}
.product-card--tarif > .product-icon { margin-top: 0; }
.product-card--tarif > h2 { margin-top: 0; }
.product-card--tarif > p { flex: 1; }
.product-card--tarif > .badge-tarif {
  position: static;
  transform: none;
  align-self: center;
  margin-top: 0.85rem;
}
.product-card:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
  color: inherit;
}
.product-card .product-icon {
  font-size: 1.75rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}
.product-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.product-card p {
  margin: 0;
  font-size: 0.88rem;
}

/* Pastille « Tarif immédiat » (pages comparator ON) */
.badge-tarif {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--secondary-soft);
  border: 1px solid color-mix(in srgb, var(--secondary) 22%, transparent);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-tarif::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--secondary) 45%, transparent);
  animation: badge-tarif-pulse 2.6s ease-out infinite;
}
.badge-tarif--on-dark {
  color: var(--white);
  background: color-mix(in srgb, var(--white) 16%, transparent);
  border-color: color-mix(in srgb, var(--white) 32%, transparent);
}
.badge-tarif--on-dark::before {
  background: var(--hero-highlight);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--hero-highlight) 45%, transparent);
}
.form-banner .badge-tarif {
  margin: 0 0 0.75rem;
}
@keyframes badge-tarif-pulse {
  70% { box-shadow: 0 0 0 0.4rem transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .badge-tarif::before { animation: none; }
}
/* Dernière tuile seule sur une ligne (ex. 4e en grille 3) → centrée */
@media (min-width: 901px) {
  .products-grid > :last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
  .products { margin-top: -2rem; }
}

/* ========== Form (form.css) ========== */
/* Formulaire une page - sections via titres h3 */
.form-page {
  background: var(--light);
  flex: 1;
  padding: 2.5rem 0 3.5rem;
}
/* Bandeau devis : couleur marque, photo optionnelle (comme accueil) */
.form-banner {
  position: relative;
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 2.5rem 0;
  overflow: hidden;
  margin: 0;
}
.form-banner h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
  max-width: 28rem;
}
.form-banner h1 span { color: var(--hero-highlight); }
.form-banner p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
}
.form-banner .container { position: relative; z-index: 1; }
.form-banner--photo {
  background: var(--primary);
  padding: 0;
  min-height: 14rem;
  display: flex;
  align-items: center;
}
.form-banner--photo .form-banner-media {
  position: absolute;
  inset: 0;
  left: 50%;
  width: min(100%, var(--max));
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      105deg,
      var(--primary) 0%,
      var(--primary) 42%,
      color-mix(in srgb, var(--primary) 65%, transparent) 58%,
      transparent 78%
    ),
    var(--hero-image);
  background-size: cover, cover;
  background-position: center, right 20%;
  background-repeat: no-repeat;
}
.form-banner--photo .container {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  width: 100%;
}
@media (max-width: 768px) {
  .form-banner--photo { min-height: 12rem; }
  .form-banner--photo .form-banner-media {
    left: 0;
    transform: none;
    width: 100%;
    background-image:
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary) 70%, transparent) 0%,
        color-mix(in srgb, var(--primary) 55%, transparent) 50%,
        color-mix(in srgb, var(--primary) 80%, transparent) 100%
      ),
      var(--hero-image);
    background-position: center, center 22%;
  }
  .form-banner h1 { max-width: none; }
}

/* Textes page devis : pleine largeur du .container (form = carte à part) */
.form-seo {
  margin: 0 0 2rem;
}
.form-seo h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  margin-bottom: 0.5rem;
}
.form-seo p {
  margin: 0;
  font-size: 0.95rem;
}
.form-seo video { display: block; margin: 1.25rem auto; border-radius: var(--radius); }
.form-seo-offer { margin-top: 1.25rem; text-align: left; }
.form-cta-wrap { margin: 1.5rem 0 0; text-align: center; }
.form-message {
  margin: 0 0 2rem;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.form-message h2 { margin: 0; color: var(--secondary); }

.module-form {
  width: 100%;
  max-width: none;
  margin: 0 0 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* Titre de section */
.module-form > h3 {
  margin: 0;
  font-size: 1.2rem;
}
.module-form > h3:not(:first-of-type) {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.module-form > h3 span { color: var(--secondary); }

/* Groupes multi-champs (bénéficiaires, animaux, lead comparateur…) */
.module-form [id^="beneficiaire_"],
.module-form [id^="animal_"],
.module-form [id^="conducteur_secondaire_"],
.module-form #cmp-lead {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.module-form h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}
.module-form label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}
.module-form input[type="text"],
.module-form input[type="email"],
.module-form input[type="tel"],
.module-form input[type="date"],
.module-form input[type="number"],
.module-form input[type="search"],
.module-form select,
.module-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s ease;
}
.module-form input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}
.module-form input:focus,
.module-form select:focus,
.module-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px var(--secondary-soft);
}
.module-form input[type="checkbox"] {
  width: auto;
  display: inline-block;
  margin-right: 0.5rem;
}
.module-form input[type="checkbox"] + label,
.module-form .consent label {
  display: inline;
  font-weight: 400;
  color: var(--text-muted);
}
.module-form .consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.module-form .consent input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.module-form .hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: normal;
}
.module-form button[type="submit"],
.module-form .btn,
.module-form .form-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}
.module-form button[type="submit"]:hover,
.module-form .btn:hover,
.module-form .form-actions button:hover { background: var(--primary); }

/* Ajouter / Supprimer côte à côte (bénéficiaires, animaux…) */
.module-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.module-form .form-actions button {
  width: auto;
  flex: 0 0 auto;
}
.module-form .form-actions .btn-remove {
  background: var(--danger);
}
.module-form .form-actions .btn-remove:hover {
  background: var(--danger-hover);
}

/* FAQ : même largeur container que SEO / bandeau */
.faq-block {
  margin: 3rem 0 0;
}
.faq-block h2 { margin-bottom: 1.5rem; }
.faq-item { margin-bottom: 1.25rem; }
.faq-item h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.faq-item p { margin: 0; font-size: 0.95rem; }

.form-related.products {
  margin-top: 2.5rem;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ========== Form wizard ========== */
/* Wizard par étapes (opt-in via .is-wizard / .is-wizard-parcours) */
.module-form.is-wizard,
.module-form.is-wizard-parcours { position: relative; }
.wizard-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0;
  overflow: hidden;
}
.wizard-bar {
  height: 100%;
  width: 0;
  background: var(--secondary);
  transition: width 0.2s ease;
}
.wizard-step { display: none; }
.wizard-step.is-active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.wizard-step > h3,
.wizard-step > .q-head > h3 { margin-top: 0 !important; padding-top: 0 !important; border-top: none !important; }

/* Titre + pastille ? (details hors du h3 pour le contenu phrasé) */
.q-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}
.q-head > h3 { margin: 0; flex: 1; min-width: 0; }
.aide { position: relative; flex-shrink: 0; }
.aide > summary {
  list-style: none;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--secondary);
  background: var(--secondary-soft);
  color: var(--secondary);
  user-select: none;
}
.aide > summary::-webkit-details-marker { display: none; }
.aide > summary::marker { content: none; }
.aide-ico { display: block; flex-shrink: 0; }
.aide > summary:hover,
.aide[open] > summary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.aide-pop {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(22rem, calc(100vw - 3rem));
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  color: var(--text);
}
.aide-pop h2 { margin: 0 0 0.4rem; font-size: 0.95rem; color: var(--primary); }
.aide-pop p { margin: 0 0 0.5rem; }
.aide-pop ul { margin: 0; padding-left: 1.1rem; color: var(--text-muted); }
.aide-lien { display: inline-block; margin-top: 0.6rem; font-weight: 600; color: var(--secondary); }
.wizard-nav {
  display: flex;
  gap: 0.75rem;
  margin: 0;
}
.wizard-nav .btn {
  flex: 1;
  width: auto;
}
.wizard-nav .wizard-prev { display: none; }
.wizard-nav.is-started .wizard-prev { display: inline-flex; }
.wizard-nav.is-last .wizard-next { display: none; }

/* Tuiles choix (listes courtes) */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
.choice { position: relative; }
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice span {
  display: block;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice input:checked + span {
  border-color: var(--secondary);
  background: var(--secondary-soft);
  color: var(--primary);
}
.choice span small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}
.module-form label.choice {
  margin: 0;
  font-weight: inherit;
}
/* Rétablit .btn-outline, écrasé par .module-form .btn (spécificité) */
.module-form .wizard-nav .btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.module-form .wizard-nav .btn-outline:hover {
  background: var(--secondary);
  color: var(--white);
}

/* Parcours auto v2 */
.choice-grid--2 {
  grid-template-columns: 1fr 1fr;
}
.legal-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pave-list { display: flex; flex-direction: column; gap: 0.75rem; }
.pave-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.pave-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.pave-card__head strong { flex: 1; min-width: 0; }
/* Lien « Supprimer » : ne pas hériter du bouton full-width .module-form button */
.module-form .btn-text,
.module-form .pave-card__head button {
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.25rem 0.5rem;
  background: transparent;
  color: var(--secondary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  cursor: pointer;
  box-shadow: none;
}
.module-form .btn-text:hover,
.module-form .pave-card__head button:hover {
  background: var(--secondary-soft);
  color: var(--primary);
}
.consent--opt { margin: 0; opacity: 0.9; }
.js-when[hidden],
.js-sec-sinistres[hidden] { display: none !important; }
#btn-add-secondaire,
#btn-add-sinistre-principal,
.js-sec-add-sinistre { margin-top: 0.5rem; width: 100%; }

/* ========== Content (content.css) ========== */
/* Contenu texte / pages légales */
.content-block {
  padding: 2.5rem 0;
}
/* Même alignement gauche que le texte du hero (.container) */
.content-block .inner {
  max-width: 28rem;
  margin: 0;
}
@media (max-width: 768px) {
  .content-block {
    text-align: center;
  }
  .content-block .inner {
    max-width: none;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .content-block .btn {
    width: auto;
    min-width: 12rem;
  }
}
.page-banner {
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 2.5rem 0;
}
.page-banner h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-banner p { color: rgba(255,255,255,0.9); margin: 0; max-width: 40rem; }
.page-body {
  padding: 2.5rem 0 3rem;
}
.page-inner {
  max-width: none;
  margin: 0;
}
.page-body h2:first-child { margin-top: 0; }
.page-body h2 { margin-top: 1.5rem; }
.page-body h2#rdv { scroll-margin-top: 5rem; }
.page-body h3 { margin-top: 1.25rem; font-size: 1.05rem; }

/* Honeypot anti-spam (invisible) */
.sujet { display: none !important; }

.page-inner .module-form {
  margin: 1.25rem 0 2rem;
}
.aide-fil { margin: 0 0 1.25rem; font-size: 0.9rem; color: var(--text-muted); }
.aide-fil a { color: var(--secondary); }
.aide-liste { list-style: none; padding: 0; margin: 0 0 2rem; }
.aide-liste li { margin: 0 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.aide-liste a { font-weight: 600; }
.aide-liste p { margin: 0.35rem 0 0; color: var(--text-muted); }
.aide-cta { margin-top: 2rem; }

/* ========== Merci (matrice 2, charge style.css seul) ========== */
body.merci-page {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  min-height: 100vh;
}
.merci {
  max-width: 28rem;
  text-align: center;
}
.merci-brand {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
}
.merci h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}
.merci p { margin: 0 0 1.5rem; }
.merci .btn {
  width: auto;
  min-width: 10rem;
  text-decoration: none;
}

.desktop-only { display: block; }
.mobile-only { display: none; }
@media (max-width: 1000px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}

/* Mentions RGPD (alias historique → même rythme que .hint) */
.module-maintext.secondary {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.55;
}
.module-maintext.secondary a { color: var(--secondary); }

/* ========== Footer (footer.css) ========== */
/* Footer : partenaires → liens → logo marque */
.footer-partners {
  margin-top: auto;
  padding: 2rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-partners p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.footer-partners .partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
}
.footer-partners .partners img {
  height: 2.25rem;
  width: auto;
  max-width: 8.5rem;
  object-fit: contain;
}

.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.88rem;
}
.site-footer a {
  color: var(--hero-highlight);
  margin: 0 0.4rem;
}
.site-footer a:hover { color: var(--white); }
.site-footer p { color: rgba(255, 255, 255, 0.8); margin: 0.35rem 0; }
.footer-brand {
  display: grid;
  place-items: center;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.25rem;
}
.footer-brand img {
  display: block;
  max-width: min(100%, 28rem);
  height: auto;
  max-height: 3.25rem;
  width: auto;
}

/* ========== Tampon (protéger un document) ========== */
.module-form.tampon { max-width: none; width: 100%; }
.tampon-howto ol {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.tampon-howto li { margin: 0.35rem 0; }
.tampon-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  background: var(--light);
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tampon-drop p { margin: 0.35rem 0; }
.tampon-drop i { font-size: 1.75rem; color: var(--secondary); }
.tampon-hint { font-size: 0.85rem; color: var(--text-muted); }
.tampon-drop.is-over { border-color: var(--secondary); background: var(--secondary-soft); }
.tampon-status { margin: 0; font-size: 0.9rem; }
.tampon-status.is-error { color: var(--danger); }
.tampon-presets { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.tampon-preset {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
}
.tampon-preset:hover { border-color: var(--secondary); color: var(--secondary); }
.tampon-preview {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.tampon-page { margin: 0; }
.tampon-page img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.tampon-page figcaption { margin-top: 0.5rem; text-align: center; }
.tampon-page .btn { width: auto; min-width: 8rem; padding: 0.55rem 1rem; font-size: 0.8rem; }
.tampon-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
}
.tampon-actions .btn { width: 100%; }
.tampon-reset {
  font-family: var(--font);
  font-size: 0.9rem;
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  text-decoration: underline;
  padding: 0.5rem 0;
  align-self: center;
}
.tampon-reset:hover { color: var(--primary); }
@media (min-width: 640px) {
  .tampon-preview { grid-template-columns: 1fr 1fr; }
  .tampon-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .tampon-actions .btn { width: auto; }
}

/* ========== Services ========== */
/* Chaque service rend sa propre carte : pas de grille englobante possible */
.svc-card .container {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.svc-card:last-of-type .container { border-bottom: 0; padding-bottom: 3rem; }
.svc-card h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.svc-card p { margin: 0; color: var(--text-muted); }
.svc-back { margin: 0 0 1.25rem; font-size: 0.92rem; }
.svc-row { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .svc-row { grid-template-columns: 8rem 1fr; }
}
.svc-result {
  background: var(--secondary-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}
.svc-result p { margin: 0 0 0.5rem; color: var(--text); }
.svc-result p:last-child { margin: 0; }
.svc-range {
  display: grid;
  gap: 0.65rem;
  margin: 0.85rem 0 1rem;
}
@media (min-width: 640px) {
  .svc-range { grid-template-columns: repeat(3, 1fr); }
}
.svc-range-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
}
.svc-range-item span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.svc-range-item strong { display: block; font-size: 1.35rem; }
.svc-range-item p { margin: 0.35rem 0 0; font-size: 0.85rem; }
.svc-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.svc-check label { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.svc-check input { margin-top: 0.25rem; width: auto; }
.svc-progress { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--primary); }
.svc-letter {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 0 0 2rem;
  max-width: 40rem;
}
.svc-letter p { color: var(--text); }
.svc-letter-place { text-align: right; }
.svc-letter-from { white-space: pre-line; margin-top: 1.5rem; }
.svc-msg-body {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}
@media print {
  body.svc-printing .ltr-upsell,
  body.svc-printing header,
  body.svc-printing .site-header,
  body.svc-printing .form-banner,
  body.svc-printing .form-seo,
  body.svc-printing .faq-block,
  body.svc-printing .svc-back,
  body.svc-printing .module-form.svc,
  body.svc-printing .site-footer,
  body.svc-printing .footer-brand,
  body.svc-printing .footer-partners { display: none !important; }
  body.svc-printing .form-page { background: var(--white); padding: 0; }
  body.svc-printing .svc-letter {
    display: block !important;
    border: none;
    box-shadow: none;
    max-width: none;
    padding: 0;
  }
}

/* ========== Perf overrides ========== */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fontawesome-free-6.7.2-web/webfonts/fa-solid-900.woff2") format("woff2");
}
