/* ==========================================================================
   Résavisa — feuille de style
   Palette : bleu marine profond / blanc / or discret / gris clair

   Règles d'animation appliquées partout dans ce fichier :
   - seuls transform et opacity sont animés (aucun recalcul de mise en page)
   - les effets de survol sont réservés aux souris (pointer: fine)
   - tout est neutralisé si l'utilisateur a demandé moins de mouvement
   ========================================================================== */

:root {
  /* --- Couleurs --- */
  --navy-900: #0b2340;
  --navy-800: #12314f;
  --navy-700: #17395c;
  --navy-600: #1d4a75;
  --navy-100: #e8eef5;
  --gold-600: #9a7728;
  --gold-500: #b08d3f;
  --gold-400: #c9a86a;
  --gold-300: #ddc48a;
  --gold-100: #f6efdf;
  --paper: #ffffff;
  --grey-50: #f5f7f9;
  --grey-100: #eef1f5;
  --grey-300: #d8dfe7;
  --grey-500: #6c7b8c;
  --ink: #17222f;
  --alert-bg: #fdf6f4;
  --alert-line: #d9a99e;
  --alert-ink: #8c3521;
  --green-600: #1f7a4d;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --wa-dark-hover: #0f7368;
  --gold-ink: #1c1403;
  --success-bg: #f0f8f3;
  --success-line: #a9d3bd;
  --navy-notice-heading: #f0c4b8;

  /* --- Texte sur fond marine (nuances distinctes selon le composant) --- */
  --on-navy-1: #dfe7f0; /* .section--navy : texte de corps, notice */
  --on-navy-2: #dbe4ef; /* .hero : texte de corps par défaut */
  --on-navy-3: #cddcec; /* pied de page : liens */
  --on-navy-4: #cdd9e7; /* bandeau confiance : texte */
  --on-navy-5: #c3d2e3; /* .hero__lede, cartes sur fond marine : texte */
  --on-navy-6: #b9cade; /* .hero__points, cartes sur fond marine : liste */
  --on-navy-7: #a9bcd2; /* pied de page : texte de corps */
  --on-navy-8: #93a8c0; /* légende sous l'aperçu de document */

  /* --- Typographie --- */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* --- Échelle fluide --- */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.07rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.7rem + 2vw, 3.4rem);

  /* --- Structure --- */
  --container: 1120px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xs: 4px;
  --radius-badge: 3px;

  /* --- Ombres étagées --- */
  --shadow-xs: 0 1px 2px rgba(11, 35, 64, 0.06);
  --shadow-sm: 0 1px 2px rgba(11, 35, 64, 0.06), 0 2px 8px rgba(11, 35, 64, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 35, 64, 0.08), 0 12px 32px rgba(11, 35, 64, 0.07);
  --shadow-lg: 0 8px 20px rgba(11, 35, 64, 0.1), 0 24px 56px rgba(11, 35, 64, 0.11);
  --shadow-gold: 0 6px 20px rgba(176, 141, 63, 0.28);
  --shadow-wa: 0 6px 20px rgba(18, 140, 126, 0.3);
  --shadow-float: 0 6px 22px rgba(0, 0, 0, 0.26);
  --shadow-float-hover: 0 10px 28px rgba(0, 0, 0, 0.32);
  --shadow-sticky: 0 -4px 18px rgba(11, 35, 64, 0.1);

  /* --- Courbes et durées --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.16s;
  --t-mid: 0.28s;
  --t-slow: 0.55s;

  /* --- Hauteurs d'interface --- */
  --header-h: 60px;
  --nav-h: 46px;
  --sticky-h: 68px;
}

/* ==========================================================================
   1. Réinitialisation
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

/* Garantit que [hidden] masque toujours l'élément, même quand une classe
   (ex. .field { display: flex }) définit par ailleurs son display. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--nav-h) + 12px);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--navy-900);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p { margin: 0 0 1rem; max-width: 68ch; text-wrap: pretty; }

a {
  color: var(--navy-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--t-fast) var(--ease-io);
}
a:hover { color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Chaque cible d'ancre reçoit une marge : le titre ne passe jamais sous
   l'en-tête collant quand on clique sur un lien du menu. */
[id] { scroll-margin-top: calc(var(--header-h) + var(--nav-h) + 16px); }

/* ==========================================================================
   2. Accessibilité du mouvement — neutralise tout le reste du fichier
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   3. Utilitaires
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 700px) { .container { padding-inline: 2rem; } }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; }
.section--tint { background: var(--grey-50); }
.section--navy { background: var(--navy-900); color: var(--on-navy-1); }
.section--navy h2, .section--navy h3 { color: var(--paper); }

/* Filet doré discret en tête des sections contrastées */
.section--tint::before,
.section--navy::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 30%, var(--gold-500) 70%, transparent);
  opacity: 0.4;
}

.section__intro { max-width: 60ch; margin-bottom: 2.5rem; }
.section__intro p:last-child { margin-bottom: 0; }
.section__intro--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.5rem;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-900); color: var(--paper); padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.placeholder {
  background: var(--gold-100);
  border-bottom: 1px dashed var(--gold-600);
  padding: 0 0.2em;
  border-radius: var(--radius-badge);
  font-style: normal;
}

/* ==========================================================================
   4. Révélation au défilement
   Les attributs data-reveal sont posés par le JavaScript. Sans JS, rien
   n'est masqué : le contenu reste entièrement visible et indexable.
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
/* Pas de variantes "left"/"right" (translateX) : un élément proche du bord
   translaté horizontalement avant sa révélation élargit le viewport mobile
   et décale toute la page (vécu en production, ne pas réintroduire). */
[data-reveal="scale"] { transform: scale(0.96) translateY(14px); }

[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   5. Barre de progression de lecture
   ========================================================================== */
.progress {
  position: fixed; top: 0; left: 0; z-index: 80;
  height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  will-change: transform;
  pointer-events: none;
}

/* ==========================================================================
   6. Boutons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color var(--t-fast) var(--ease-io),
    border-color var(--t-fast) var(--ease-io),
    color var(--t-fast) var(--ease-io),
    transform var(--t-fast) var(--ease-io),
    box-shadow var(--t-mid) var(--ease-io);
}

/* Balayage lumineux au survol — souris uniquement */
.btn::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.32) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.62s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { transform: translateX(120%); }
  .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: translateY(0) scale(0.985); transition-duration: 0.06s; }

.btn--primary { background: var(--navy-900); color: var(--paper); }
.btn--primary:hover { background: var(--navy-700); color: var(--paper); box-shadow: var(--shadow-md); }

.btn--gold { background: var(--gold-500); color: var(--gold-ink); }
.btn--gold:hover { background: var(--gold-600); color: var(--paper); box-shadow: var(--shadow-gold); }

.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--grey-300); }
.btn--ghost:hover { background: var(--grey-100); border-color: var(--navy-600); color: var(--navy-900); }

.btn--wa { background: var(--wa-dark); color: var(--paper); }
.btn--wa:hover { background: var(--wa-dark-hover); color: var(--paper); box-shadow: var(--shadow-wa); }

.btn--block { width: 100%; }
.btn__icon { flex: none; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ==========================================================================
   7. En-tête : deux rangées sur mobile, se replie au défilement
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--grey-100);
  transition:
    transform var(--t-mid) var(--ease-io),
    box-shadow var(--t-mid) var(--ease-io);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header {
    backdrop-filter: saturate(1.5) blur(12px);
    background: rgba(255, 255, 255, 0.78);
  }
}

.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

/* Se rétracte quand on descend, revient dès qu'on remonte */
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem; font-weight: 600;
  color: var(--navy-900); text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity var(--t-fast) var(--ease-io);
}
.brand span { color: var(--gold-600); }
.brand:hover { opacity: 0.78; color: var(--navy-900); }

/* --- Navigation : bande défilable sur mobile, rangée centrée sur PC --- */
.nav {
  border-top: 1px solid var(--grey-100);
  margin-inline: -1.25rem;
  min-width: 0;
  flex: 1 1 100%;
}
.nav ul {
  display: flex; gap: 0.4rem;
  list-style: none; margin: 0;
  padding: 0.4rem 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.nav ul::-webkit-scrollbar { display: none; }

.nav a {
  display: flex; align-items: center;
  white-space: nowrap;
  scroll-snap-align: start;
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--grey-50);
  border: 1px solid transparent;
  color: var(--ink);
  font-size: var(--step--1); font-weight: 600;
  text-decoration: none;
  transition:
    background-color var(--t-fast) var(--ease-io),
    color var(--t-fast) var(--ease-io),
    border-color var(--t-fast) var(--ease-io);
}
.nav a:hover { background: var(--navy-100); color: var(--navy-900); }

/* Section en cours de lecture, désignée par le JavaScript */
.nav a.is-active { background: var(--navy-900); color: var(--paper); border-color: var(--navy-900); }

.site-header .btn { display: none; }

@media (min-width: 960px) {
  :root { --header-h: 72px; --nav-h: 0px; }
  .site-header__inner { min-height: 72px; }

  .nav { border-top: 0; margin-inline: 0; flex: 1; }
  .nav ul { justify-content: center; overflow: visible; padding: 0; gap: 0.4rem; }

  .nav a { background: transparent; border-radius: var(--radius-sm); position: relative; }
  /* Soulignement doré qui se déploie depuis le centre */
  .nav a::after {
    content: "";
    position: absolute; left: 50%; bottom: 2px;
    width: 0; height: 2px;
    background: var(--gold-500);
    transform: translateX(-50%);
    transition: width var(--t-mid) var(--ease-out);
  }
  .nav a:hover { background: transparent; }
  .nav a:hover::after { width: calc(100% - 1.7rem); }
  .nav a.is-active { background: transparent; color: var(--navy-900); border-color: transparent; }
  .nav a.is-active::after { width: calc(100% - 1.7rem); }

  .site-header .btn { display: inline-flex; min-height: 44px; padding: 0.55rem 1.2rem; }
}

/* ==========================================================================
   8. Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--on-navy-2);
  padding-block: clamp(2.75rem, 7vw, 5.5rem);
}

/* Deux halos très lents, faible contraste : de la profondeur, pas une animation */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero::before {
  width: 62vw; height: 62vw; max-width: 720px; max-height: 720px;
  top: -22%; left: -14%;
  background: radial-gradient(circle, rgba(29, 74, 117, 0.85), transparent 68%);
  animation: drift-a 26s var(--ease-io) infinite alternate;
}
.hero::after {
  width: 48vw; height: 48vw; max-width: 540px; max-height: 540px;
  bottom: -26%; right: -12%;
  background: radial-gradient(circle, rgba(176, 141, 63, 0.3), transparent 70%);
  animation: drift-b 32s var(--ease-io) infinite alternate;
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6%, 5%, 0) scale(1.1); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to   { transform: translate3d(-7%, -4%, 0) scale(1); }
}

.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; max-width: 700px; margin-inline: auto; text-align: center; }
.hero h1 { color: var(--paper); margin-bottom: 1rem; }
.hero__lede { font-size: var(--step-1); color: var(--on-navy-5); margin-bottom: 1.75rem; margin-inline: auto; }

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 1.75rem; }
.hero__actions .btn { flex: 1 1 auto; min-width: 210px; }

.hero__points {
  list-style: none; padding: 0; display: grid; gap: 0.65rem;
  justify-items: start; margin: 0 auto; max-width: fit-content;
}
.hero__points li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: var(--step--1); color: var(--on-navy-6);
}
.hero__points svg { flex: none; margin-top: 0.28em; color: var(--gold-500); }

@media (min-width: 700px) {
  .hero__actions .btn { flex: 0 1 auto; min-width: 0; }
}

/* ==========================================================================
   10. Bandeau confiance
   ========================================================================== */
.trust { background: var(--navy-800); position: relative; overflow: hidden; }
.trust__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  padding-block: 1.9rem;
}
.trust__list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--on-navy-4); }
.trust__list strong { display: block; color: var(--paper); font-weight: 600; }
.trust__list span { font-size: var(--step--1); }
.trust__list svg {
  flex: none; margin-top: 0.2em; color: var(--gold-500);
  transition: transform var(--t-mid) var(--ease-spring);
}
@media (hover: hover) and (pointer: fine) {
  .trust__list li:hover svg { transform: scale(1.18) rotate(-6deg); }
}

@media (min-width: 640px) { .trust__list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; } }
@media (min-width: 1040px) { .trust__list { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   11. Cartes
   ========================================================================== */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 1.6rem;
  overflow: hidden;
  transition:
    transform var(--t-mid) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-out),
    background-color var(--t-mid) var(--ease-io);
}

/* Filet doré qui se déploie en haut de la carte au survol */
.card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  transition: width var(--t-slow) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-300);
  }
  .card:hover::before { width: 100%; }
  .card:hover .card__mark { transform: translateY(-3px) scale(1.08); color: var(--gold-500); }
}

.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card__mark {
  color: var(--gold-600);
  margin-bottom: 0.9rem;
  transition: transform var(--t-mid) var(--ease-spring), color var(--t-mid) var(--ease-io);
}

.card__list { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.card__list li { display: flex; gap: 0.5rem; font-size: var(--step--1); color: var(--grey-500); }
.card__list svg { flex: none; margin-top: 0.3em; color: var(--green-600); }

/* Cartes posées sur le fond marine */
.section--navy .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
}
.section--navy .card p { color: var(--on-navy-5); }
.section--navy .card__list li { color: var(--on-navy-6); }
@media (hover: hover) and (pointer: fine) {
  .section--navy .card:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(176, 141, 63, 0.5);
  }
}

/* ==========================================================================
   12. Étapes
   ========================================================================== */
.steps { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: var(--paper);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid) var(--ease-io);
}
@media (hover: hover) and (pointer: fine) {
  .step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}

.step__num {
  display: inline-grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  margin: 0 auto 0.85rem;
  background: var(--navy-900); color: var(--paper);
  border-radius: 50%;
  font-family: var(--serif); font-weight: 600; font-size: 0.95rem;
}

.step__icon { display: block; font-size: 1.7rem; line-height: 1; margin-bottom: 0.7rem; }

.step h3 { font-size: var(--step-0); margin-bottom: 0.35rem; }
.step p { font-size: var(--step--1); color: var(--grey-500); margin-bottom: 0; }

.steps__cta { display: flex; justify-content: center; margin-top: 2.25rem; }

/* ==========================================================================
   14. Encadré d'avertissement
   ========================================================================== */
.notice {
  background: var(--alert-bg);
  border: 1px solid var(--alert-line);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.45rem;
}
.notice h3 { color: var(--alert-ink); font-size: var(--step-0); margin-bottom: 0.5rem; }
.notice p:last-child { margin-bottom: 0; }
.section--navy .notice {
  background: rgba(217, 169, 158, 0.09);
  border-color: rgba(217, 169, 158, 0.45);
}
.section--navy .notice h3 { color: var(--navy-notice-heading); }
.section--navy .notice p { color: var(--on-navy-1); }

/* ==========================================================================
   15. Tarifs
   ========================================================================== */
.pricing { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 640px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex; flex-direction: column;
  transition:
    transform var(--t-mid) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-io);
}
.price-card--featured {
  border-color: var(--navy-900);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 900px) { .price-card--featured { transform: translateY(-10px); } }
@media (hover: hover) and (pointer: fine) {
  .price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-400); }
  .price-card--featured:hover { transform: translateY(-15px); }
}

.price-card__amount {
  font-family: var(--serif); font-size: var(--step-2);
  color: var(--navy-900); font-weight: 600;
  margin: 0.35rem 0 0.15rem;
}
.price-card__unit { font-size: var(--step--1); color: var(--grey-500); margin-bottom: 1.1rem; }
.price-card ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.55rem; }
.price-card li { display: flex; gap: 0.5rem; font-size: var(--step--1); }
.price-card li svg { flex: none; margin-top: 0.3em; color: var(--green-600); }
.price-card .btn { margin-top: auto; }

/* ==========================================================================
   16. Formulaire
   ========================================================================== */
.form-wrap {
  background: var(--paper);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  max-width: 880px;
  transition: box-shadow var(--t-slow) var(--ease-out);
}
.form-wrap:focus-within { box-shadow: var(--shadow-lg); }

.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 700px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: 0.35rem; position: relative; }

.field label,
.field-legend {
  font-size: var(--step--1); font-weight: 600; color: var(--navy-900);
  transition: color var(--t-fast) var(--ease-io);
}
.field:focus-within > label { color: var(--navy-600); }

.field .req { color: var(--alert-ink); }
.field .hint { font-size: 0.78rem; color: var(--grey-500); font-weight: 400; margin: 0; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  /* 16 px : empêche le zoom automatique de Safari iOS à la saisie */
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--t-fast) var(--ease-io),
    box-shadow var(--t-fast) var(--ease-io),
    background-color var(--t-fast) var(--ease-io);
}
.field textarea { min-height: 118px; resize: vertical; }

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy-600) 50%),
    linear-gradient(135deg, var(--navy-600) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

@media (hover: hover) {
  .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--grey-500); }
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 4px var(--navy-100);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--gold-500); outline-offset: 1px;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--alert-ink);
  background: var(--alert-bg);
  animation: shake 0.32s var(--ease-io) 1;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.field__error {
  font-size: 0.8rem; color: var(--alert-ink); font-weight: 600;
  margin: 0;
  animation: slide-down var(--t-mid) var(--ease-out) 1;
}
.field__error:empty { display: none; }
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.checkgroup { display: grid; gap: 0.65rem; margin-top: 0.15rem; }
.checkline {
  display: flex; gap: 0.7rem; align-items: flex-start;
  font-size: var(--step--1);
  padding: 0.45rem 0.6rem;
  margin-inline: -0.6rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--t-fast) var(--ease-io);
}
@media (hover: hover) and (pointer: fine) {
  .checkline:hover { background: var(--grey-50); }
}
.checkline input[type="checkbox"] {
  width: 24px; height: 24px; min-height: 24px;
  flex: none; margin-top: 0.1em;
  accent-color: var(--navy-900);
  cursor: pointer;
}
.checkline label { font-weight: 400; cursor: pointer; }

.form-privacy {
  font-size: 0.82rem; color: var(--grey-500);
  border-top: 1px solid var(--grey-100);
  margin: 1.5rem 0 0; padding-top: 1.15rem;
  max-width: none;
}

/* Piège à robots : masqué visuellement et pour les lecteurs d'écran */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-status {
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-weight: 600;
  margin-bottom: 1.3rem;
  animation: slide-down var(--t-mid) var(--ease-out) 1;
}
.form-status:empty { display: none; padding: 0; margin: 0; animation: none; }
.form-status[data-state="error"] { background: var(--alert-bg); border: 1px solid var(--alert-line); color: var(--alert-ink); }
.form-status[data-state="ok"] { background: var(--success-bg); border: 1px solid var(--success-line); color: var(--green-600); }

/* ==========================================================================
   17. FAQ
   ========================================================================== */
.faq { display: grid; gap: 0.8rem; max-width: 820px; }

.faq details {
  background: var(--paper);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition:
    border-color var(--t-mid) var(--ease-io),
    box-shadow var(--t-mid) var(--ease-io);
}
@media (hover: hover) and (pointer: fine) {
  .faq details:hover { border-color: var(--navy-600); box-shadow: var(--shadow-xs); }
}
.faq details[open] { border-color: var(--navy-600); box-shadow: var(--shadow-sm); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3.2rem 1.05rem 1.2rem;
  font-weight: 600;
  color: var(--navy-900);
  position: relative;
  min-height: 52px;
  display: flex; align-items: center;
  transition: background-color var(--t-fast) var(--ease-io);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--grey-50); }

.faq summary::after {
  content: "";
  position: absolute; right: 1.25rem; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--gold-600);
  border-bottom: 2px solid var(--gold-600);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t-mid) var(--ease-spring);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

.faq__answer { padding: 0 1.2rem 1.2rem; }
.faq details[open] .faq__answer { animation: unfold var(--t-mid) var(--ease-out) 1; }
@keyframes unfold {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq .faq__answer p:last-child { margin-bottom: 0; }

/* ==========================================================================
   18. À propos
   ========================================================================== */
.about { display: grid; gap: 2rem; }
@media (min-width: 900px) { .about { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: start; } }

.about__facts {
  background: var(--paper);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-xs);
}
.about__facts dl { margin: 0; display: grid; gap: 0.9rem; }
.about__facts dt { font-size: 0.78rem; color: var(--grey-500); font-weight: 600; }
.about__facts dd { margin: 0.15rem 0 0; font-weight: 600; color: var(--navy-900); }

/* ==========================================================================
   18b. Recherches populaires
   ========================================================================== */
.search-tags {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.search-tags a {
  display: inline-flex; align-items: center;
  padding: 0.6rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--grey-300);
  border-radius: 999px;
  color: var(--navy-600);
  font-size: var(--step--1); font-weight: 600;
  text-decoration: none;
  transition:
    transform var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-io),
    box-shadow var(--t-mid) var(--ease-out),
    color var(--t-fast) var(--ease-io);
}
@media (hover: hover) and (pointer: fine) {
  .search-tags a:hover {
    transform: translateY(-2px);
    border-color: var(--gold-500);
    box-shadow: var(--shadow-sm);
    color: var(--navy-900);
  }
}
.search-tags a:active { transform: translateY(0) scale(0.98); }

/* ==========================================================================
   19. Pied de page
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: var(--on-navy-7);
  padding-block: 3.25rem 1.5rem;
  font-size: var(--step--1);
}
.site-footer a { color: var(--on-navy-3); }
.site-footer a:hover { color: var(--paper); }

.footer__grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }

.footer__grid-title {
  font-family: var(--serif); font-size: var(--step-0); font-weight: 600;
  color: var(--paper); margin: 0 0 0.8rem;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer__grid li a {
  display: inline-block;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-io);
}
@media (hover: hover) and (pointer: fine) {
  .footer__grid li a:hover { transform: translateX(4px); }
}

.footer__brand {
  font-family: var(--serif); font-size: 1.4rem; color: var(--paper);
  display: block; margin-bottom: 0.7rem;
}

.footer__cities {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.3rem; margin-bottom: 1.3rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.footer__legal p { margin: 0; max-width: none; }

/* ==========================================================================
   20. WhatsApp flottant et barre collante
   ========================================================================== */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  display: none;
  width: 58px; height: 58px;
  align-items: center; justify-content: center;
  background: var(--wa); color: var(--paper);
  border-radius: 50%;
  box-shadow: var(--shadow-float);
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid) var(--ease-io);
}
/* Halo qui pulse lentement : signale sans agacer */
.wa-float::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: halo 3.4s var(--ease-out) infinite;
}
@keyframes halo {
  0%   { transform: scale(1); opacity: 0.7; }
  55%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.wa-float:hover { transform: scale(1.08); color: var(--paper); box-shadow: var(--shadow-float-hover); }
.wa-float:active { transform: scale(0.97); }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--grey-300);
  box-shadow: var(--shadow-sticky);
  transform: translateY(110%);
  transition: transform var(--t-mid) var(--ease-out);
}
@supports (backdrop-filter: blur(10px)) {
  .sticky-cta { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); }
}
/* N'apparaît qu'après le hero, pour ne pas masquer le premier écran */
.sticky-cta.is-shown { transform: translateY(0); }
.sticky-cta .btn { flex: 1; padding-inline: 0.75rem; font-size: 0.93rem; }

body { padding-bottom: var(--sticky-h); }

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .wa-float { display: flex; }
}

/* ==========================================================================
   21. Pages secondaires
   ========================================================================== */
.page-head {
  background: var(--grey-50);
  border-bottom: 1px solid var(--grey-100);
  padding-block: 2.6rem 2.1rem;
}
.breadcrumb { font-size: var(--step--1); color: var(--grey-500); margin-bottom: 0.6rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--grey-300); }

.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; }

/* ==========================================================================
   22. Impression
   ========================================================================== */
@media print {
  .site-header, .sticky-cta, .wa-float, .progress, .nav { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero { background: var(--paper); color: var(--ink); }
  .hero h1, .hero__lede { color: var(--ink); }
  body { padding-bottom: 0; }
}
