/* ==========================================================================
   Pearce'pective Web — feuille de style principale
   Style : studio web clair et sobre. Accroche lumineuse (blanc → bleu pâle),
   bleu nuit pour le texte et deux bandeaux sombres arrondis, cartes blanches
   aux coins arrondis et ombres douces, touches de jaune.
   Mobile d'abord : les règles de base visent le téléphone,
   les @media (min-width) ajoutent la tablette puis l'ordinateur.
   ========================================================================== */

/* ---------- 1. Police auto-hébergée (une seule famille, variable) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Variables ---------- */
:root {
  /* Couleurs */
  --c-navy: #142849;          /* titres, bandeaux sombres */
  --c-texte: #172b4d;         /* texte courant */
  --c-doux: #56667d;          /* texte secondaire (5:1 sur le fond gris-bleu) */
  --c-bleu: #2865c1;          /* boutons, liens, étiquettes (5,6:1 sur blanc) */
  --c-bleu-fonce: #1f539f;    /* survol */
  --c-bleu-vif: #3978d6;      /* décors uniquement (jamais pour du petit texte) */
  --c-fond: #f4f6fa;          /* fond des sections alternées */
  --c-blanc: #ffffff;
  --c-pale: #e6edf8;          /* fond des icônes */
  --c-bord: #e2e8f0;          /* bordures */
  --c-sur-sombre: #c7d4e7;    /* texte secondaire sur bleu nuit (9:1) */

  /* Touches de jaune : toujours en aplat, jamais pour du texte sur fond clair */
  --c-jaune: #ffd84d;
  --c-jaune-survol: #ffe27a;

  /* Couleurs des métiers (galerie d'exemples) */
  --c-plombier: #2865c1;
  --c-electricien: #ffd84d;
  --c-paysagiste: #2e8b57;
  --c-macon: #9c3b2e;

  /* Police */
  --f-texte: "Manrope", "Segoe UI", system-ui, sans-serif;

  /* Ombres douces */
  --ombre-s: 0 4px 12px rgba(20, 40, 73, 0.06);
  --ombre-m: 0 12px 32px rgba(20, 40, 73, 0.1);
  --ombre-l: 0 24px 60px rgba(20, 40, 73, 0.18);

  /* Espacements */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2.25rem;
  --s-6: 3.25rem;
  --section: clamp(2.75rem, 6vw, 4.5rem);  /* marge verticale des sections (compacte) */
  --gouttiere: 1rem;                        /* marge latérale (16 px sur mobile) */
  --largeur: 73rem;

  /* Arrondis */
  --r-xl: 1.6rem;
  --r-grand: 1.25rem;
  --r: 1.1rem;
  --r-petit: 0.65rem;

  --barre-mobile: 3.4rem;
}

/* ---------- 3. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-blanc);
  color: var(--c-texte);
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* place pour la barre d'appel mobile */
  padding-bottom: calc(var(--barre-mobile) + 1.5rem + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  color: var(--c-navy);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
h3 { font-weight: 750; letter-spacing: -0.02em; }

a { color: var(--c-bleu); text-underline-offset: 0.2em; }
a:hover { color: var(--c-bleu-fonce); }

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

small { font-size: 0.85em; }

.wrap {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* Lien d'évitement, visible au clavier */
.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -4rem;
  z-index: 100;
  padding: var(--s-2) var(--s-3);
  background: var(--c-navy);
  color: var(--c-blanc);
  border-radius: var(--r-petit);
}
.skip-link:focus { top: var(--s-2); color: var(--c-blanc); }

/* Ancres : laisser de la place sous l'en-tête fixe */
section[id] { scroll-margin-top: 4.75rem; }

/* Marqueur des contenus à fournir (à supprimer une fois rempli) */
.a-remplir {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #8f2a10;
  background: #fff4ef;
  border: 1.5px dashed #8f2a10;
  border-radius: 0.4rem;
  padding: 0.05rem 0.5rem;
}

/* ---------- 4. Boutons et liens d'action ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0 1.4rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-blanc);
  background: var(--c-bleu);
  border: 1px solid transparent;
  border-radius: 0.9rem;
  box-shadow: 0 8px 18px rgba(40, 101, 193, 0.22);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s, background-color 0.22s, box-shadow 0.22s;
}
.btn:hover {
  color: var(--c-blanc);
  background: var(--c-bleu-fonce);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(40, 101, 193, 0.28);
}
.btn-jaune { color: var(--c-navy); background: var(--c-jaune); box-shadow: 0 8px 18px rgba(232, 181, 0, 0.25); }
.btn-jaune:hover { color: var(--c-navy); background: var(--c-jaune-survol); box-shadow: 0 12px 24px rgba(232, 181, 0, 0.3); }
/* bouton secondaire sur fond sombre : transparent à contour blanc */
.btn-contour-clair { color: var(--c-blanc); background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.55); box-shadow: none; }
.btn-contour-clair:hover { color: var(--c-navy); background: var(--c-blanc); border-color: var(--c-blanc); box-shadow: none; }
.fleche { transition: transform 0.2s; }
a:hover .fleche { transform: translateX(3px); }

/* ---------- 5. En-tête ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--c-blanc);
  border-bottom: 1px solid var(--c-bord);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 4.2rem;
}

/* Logo typographique : « web » dans un petit encadré jaune, surélevé */
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
  color: var(--c-navy);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--c-navy); }
.logo-web {
  display: inline-block;
  margin-left: 0.3em;
  padding: 0.08em 0.38em 0.12em;
  font-size: 0.56em;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  color: var(--c-navy);
  background: var(--c-jaune);
  border-radius: 0.35em;
  vertical-align: 0.65em;
}

/* Bouton du menu mobile */
.menu-bouton {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  color: var(--c-navy);
  background: var(--c-blanc);
  border: 1px solid var(--c-bord);
  border-radius: 0.75rem;
  cursor: pointer;
}
.menu-bouton svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Menu : liste déroulante sur mobile */
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem var(--gouttiere) 1rem;
  background: var(--c-blanc);
  border-bottom: 1px solid var(--c-bord);
  box-shadow: var(--ombre-m);
}
.main-nav.ouvert { display: block; }
.main-nav a {
  display: block;
  padding: 0.8rem 0.2rem;
  font-weight: 650;
  color: #40536f;
  text-decoration: none;
  border-bottom: 1px solid #edf1f6;
}
.main-nav a:hover,
.main-nav a[aria-current="true"] { color: var(--c-bleu); }
.nav-cta { display: none; }

/* ---------- 6. Accroche sur fond sombre (même fond que Exemples et Contact) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-5) var(--s-6);
  color: var(--c-blanc);
  background:
    radial-gradient(ellipse at 78% 30%, rgba(57, 120, 214, 0.42), transparent 40%),
    radial-gradient(ellipse at 0% 100%, rgba(57, 120, 214, 0.2), transparent 40%),
    linear-gradient(120deg, #102342, #172f55);
}
/* deux grands cercles au trait, très discrets */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.hero::before { width: 34rem; height: 34rem; right: -9rem; top: -14rem; }
.hero::after { width: 22rem; height: 22rem; right: 12%; bottom: -18rem; }

.hero-grid { position: relative; z-index: 1; display: grid; gap: var(--s-5); align-items: center; }

.hero h1 {
  margin-bottom: var(--s-3);
  font-size: clamp(2.2rem, 5.5vw + 0.8rem, 3.8rem);
  letter-spacing: -0.045em;
  color: var(--c-blanc);
  max-width: 16ch;
  text-wrap: balance;   /* lignes de longueur égale, pas de mot isolé */
}
.hero .lead { color: var(--c-sur-sombre); }

/* Le prix d'appel (carte des formules) et le mot clé du h1 : étiquette jaune légèrement penchée */
.hero h1 .surligne,
.formule-prix .prix {
  display: inline-block;
  padding: 0 0.22em 0.04em;
  color: var(--c-navy);
  background: var(--c-jaune);
  border-radius: 0.22em;
  transform: rotate(-3deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.formule-prix .prix { font-size: 0.85em; box-shadow: 0 8px 18px rgba(232, 181, 0, 0.3); }   /* un peu plus petite dans la carte */
.hero h1 .surligne { transform: rotate(-2deg); }   /* penchée un peu moins dans le titre */

.lead {
  max-width: 36rem;
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.1rem);
  color: #4d6078;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--s-4);
}
.hero-contact { margin-top: var(--s-3); font-size: 0.95rem; color: var(--c-sur-sombre); }
.hero-contact a { font-weight: 700; white-space: nowrap; color: var(--c-blanc); }
.hero-contact a:hover { color: var(--c-jaune); }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  margin-top: var(--s-3);           /* placées entre le texte d'intro et les boutons */
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-blanc);
}
.hero-points li { display: flex; align-items: center; gap: 0.5rem; }
.hero-points li::before {
  content: "";
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%23142849' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat,
    var(--c-jaune);
}

/* Visuel : ordinateur + téléphone, légèrement incliné */
.hero-visuel {
  position: relative;
  min-width: 0;
  padding: 0.25rem 0 0.5rem;
  perspective: 1300px;
}
.halo {
  position: absolute;
  right: 6%;
  top: 14%;
  width: 76%;
  height: 66%;
  background: rgba(73, 132, 224, 0.35);
  filter: blur(60px);
  border-radius: 50%;
}
.appareils {
  position: relative;
  transform: rotateY(-9deg) rotateX(4deg);
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.35));
  transition: transform 0.45s ease;
}
.hero-visuel:hover .appareils { transform: rotateY(-4deg) rotateX(2deg) translateY(-4px); }
.appareils svg { width: 100%; height: auto; overflow: visible; }

/* Couleurs du dessin (sur fond sombre : appareils clairs) */
.d-coque { fill: #dfe7f2; }
.d-ecran { fill: var(--c-blanc); }
.d-tel { fill: var(--c-blanc); stroke: #dfe7f2; stroke-width: 4; }
.d-champ { fill: var(--c-fond); stroke: #b9c6d8; stroke-width: 1.2; }
.d-trait { fill: none; stroke: var(--c-navy); stroke-width: 2; stroke-linecap: round; }
.d-encre { fill: var(--c-navy); }
.d-bleu { fill: var(--c-bleu-vif); }
.d-gris { fill: #cfd9e4; }
.d-nav { fill: var(--c-fond); }
.d-ciel { fill: #e4f1ff; }
.d-photo-1 { fill: #cfe0f5; }
.d-photo-2 { fill: #ffe9a8; }
.d-photo-3 { fill: #d3ebdc; }
.d-photo-4 { fill: #f1d5cf; }
.d-bouton { fill: var(--c-bleu); }
.d-bouton-texte { fill: var(--c-blanc); }
.d-annot path { fill: none; stroke: var(--c-jaune); stroke-width: 2.4; stroke-linecap: round; }
.d-annot circle { fill: var(--c-jaune); stroke: var(--c-navy); stroke-width: 1.5; }
.d-annot text {
  font-family: var(--f-texte);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  fill: var(--c-blanc);   /* même couleur que le titre de l'accroche */
}
/* sur petit écran, le dessin est réduit : on grossit un peu les légendes */
@media (max-width: 63.99em) {
  .d-annot text { font-size: 18px; }
}
/* traits des légendes : bordés de bleu nuit pour rester lisibles sur l'écran blanc */
.d-annot path { stroke-width: 2.2; paint-order: stroke; filter: drop-shadow(0 0 1.5px rgba(20, 40, 73, 0.9)); }

/* Légendes interactives (main.js) : survol = zone allumée sur le dessin,
   clic = l'élément montré sur la vraie page */
.annot { cursor: pointer; outline: none; }
.annot-cible { fill: transparent; }   /* agrandit la zone cliquable */
.annot text,
.annot circle,
.annot path { transition: fill 0.25s, opacity 0.25s, stroke-width 0.25s; }
.zone-active .annot { opacity: 0.45; }
.zone-active .annot.actif { opacity: 1; }
.annot.actif text { fill: var(--c-jaune); }
.annot.actif path { stroke-width: 3.4; }
/* soulignement au survol et au focus clavier : on comprend que la légende est cliquable */
.annot:hover text,
.annot:focus-visible text { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Cadres pointillés autour de la zone montrée (position calculée par main.js) */
.d-cadres rect { fill: rgba(255, 216, 77, 0.16); stroke: #e8b500; stroke-width: 2; stroke-dasharray: 5 4; }
.d-cadres g { opacity: 0; transition: opacity 0.25s; }
.d-cadres g.actif { opacity: 1; }
.d-onde { transform-box: fill-box; transform-origin: center; fill: none; stroke: #e8b500; stroke-width: 2; opacity: 0; }
/* texte « tapé » dans les champs du formulaire dessiné : caché par défaut */
.d-saisie { fill: #8fa2bd; transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.z-nom, .z-numero, .z-photo, .z-envoi { transform-box: fill-box; transform-origin: center; }

/* Bloc bascule + consigne : main.js le place juste sous l'appareil, centré sur lui */
.visuel-commandes { width: max-content; max-width: 100%; margin-inline: auto; }

/* Bascule ordinateur / téléphone (cachée sans JavaScript : la vue ordinateur reste affichée) */
.bascule { display: none; }
.js .bascule {
  display: flex;
  justify-content: center;
  width: max-content;
  margin: 0.4rem auto 0;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
.bascule button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0 1rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-sur-sombre);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.bascule button:hover { color: var(--c-blanc); }
.bascule button[aria-pressed="true"] { color: var(--c-navy); background: var(--c-jaune); }
.bascule svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Consigne sous le dessin (texte différent souris / écran tactile) */
.visuel-aide { margin-top: 0.5rem; font-size: 0.82rem; text-align: center; color: var(--c-sur-sombre); }
.visuel-aide .aide-doigt { display: none; }
@media (hover: none) {
  .visuel-aide .aide-souris { display: none; }
  .visuel-aide .aide-doigt { display: inline; }
}

/* Repère sur la vraie page après un clic sur une légende (logo, boutons et numéro de contact) */
.repere { outline: 3px solid var(--c-jaune); outline-offset: 5px; }
.btn.repere, .logo.repere, .hero-contact a.repere { position: relative; z-index: 2; }
.logo.repere { border-radius: 0.6rem; }
.hero-contact a.repere { border-radius: 0.3rem; outline-offset: 3px; }
.barre-mobile.repere { outline-offset: 4px; }   /* la barre reste fixe : seul le contour change */

/* le formulaire est la cible d'une légende : il s'arrête sous l'en-tête fixe */
#formulaire-contact { scroll-margin-top: 6rem; }

/* ---------- 7. Sections : structure commune ---------- */
.section { padding-block: var(--section); }
.section-fond { background: var(--c-fond); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-doux);   /* gris foncé, identique dans toutes les sections claires */
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--c-bleu); }

.section-intro { max-width: 42rem; margin-bottom: var(--s-4); }
.section-intro h2,
.titre-section {
  margin-bottom: 0.6rem;
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.5rem);
}
.section-intro p { color: var(--c-doux); }

/* Icône au trait dans un carré bleu pâle */
.icone {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  color: var(--c-bleu);
  background: var(--c-pale);
  border-radius: 0.95rem;
}
.icone svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Carte blanche générique */
.carte {
  padding: 1.5rem;
  background: var(--c-blanc);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--r-grand);
  box-shadow: var(--ombre-s);
}

/* Badge (sur une carte) */
.badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;                       /* centré sur la carte */
  transform: translateX(-50%);
  padding: 0.2rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
  color: var(--c-navy);
  background: var(--c-jaune);
  border-radius: 999px;
}

/* ---------- 8. Offre et prix ---------- */
.offre-grid { display: grid; gap: var(--s-5); align-items: start; }
.offre-texte .lead { margin-bottom: var(--s-3); }

.points { display: grid; gap: 0.7rem; }
.points li { position: relative; padding-left: 2.1rem; font-size: 0.97rem; color: #4d6078; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%232865c1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat,
    #e8f1ff;
}
.points strong { color: var(--c-navy); }

/* La carte des formules */
.carte-prix {
  position: relative;
  padding: 1.75rem;
  background: linear-gradient(145deg, #ffffff, #f3f7fd);
  border: 1px solid var(--c-bord);
  border-radius: var(--r-xl);
  box-shadow: var(--ombre-m);
}
/* même taille et même écart que le titre « Option Sérénité » */
.carte-prix-titre { margin-bottom: var(--s-2); font-size: 1.15rem; }
/* titres des cartes de l'offre soulignés d'un trait jaune */
.carte-prix-titre,
.offre-details h3 {
  text-decoration: underline;
  text-decoration-color: var(--c-jaune);
  text-decoration-thickness: 0.2em;
  text-underline-offset: 0.3em;
  text-decoration-skip-ink: none;
}
.formules li { padding-block: 0.9rem; }
.formules li:first-child { padding-top: 0.2rem; }
.formules li + li { border-top: 1px solid var(--c-bord); }
/* nom + description à gauche, prix centré verticalement à droite sur les deux lignes */
.formules li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "nom prix" "desc prix";
  align-items: center;
  column-gap: var(--s-3);
}
.formule-ligne { display: contents; }
.formule-nom { grid-area: nom; align-self: end; }
.formule-desc { grid-area: desc; align-self: start; }
.formule-prix { grid-area: prix; }
.formule-nom { font-weight: 750; font-size: 1.05rem; color: var(--c-navy); }
.formule-desc { font-size: 0.88rem; color: var(--c-doux); }
.formule-prix { flex: none; font-size: 2rem; font-weight: 800; letter-spacing: -0.05em; color: var(--c-navy); }
.formules li:first-child .formule-prix { font-size: 2.5rem; }
.carte-prix-note { margin-bottom: var(--s-3); font-size: 0.85rem; color: var(--c-doux); }
.carte-prix .btn { width: 100%; }

/* Options + Sérénité côte à côte */
.offre-details { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.offre-details h3 { margin-bottom: var(--s-2); font-size: 1.15rem; }
.tarif li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: 0.65rem;
  font-size: 0.97rem;
}
.tarif li + li { border-top: 1px solid var(--c-bord); }
.tarif-nom { font-weight: 650; line-height: 1.35; }
.tarif-nom small { display: block; font-weight: 400; color: var(--c-doux); }
.tarif-prix { flex: none; font-weight: 800; white-space: nowrap; color: var(--c-navy); }

/* Les trois cartes de tarifs (formules, options, Sérénité) : même cadre bleu, place pour un badge */
.carte-prix,
.offre-details .carte { position: relative; border: 2px solid var(--c-bleu); box-shadow: var(--ombre-m); }
.serenite-prix { margin: 0.1rem 0 var(--s-2); color: var(--c-doux); }

/* Connecteur entre la carte des formules et la carte Sérénité :
   un trait pointillé et un rond « + » montrent que l'option s'ajoute au site.
   Sur mobile, la carte Sérénité passe juste sous les formules (avant les options). */
.offre-details { --lien: 4.5rem; margin-top: var(--lien); }
.offre-details .serenite { order: -1; }
.serenite-lien {
  position: absolute;
  bottom: 100%;
  left: 50%;
  height: calc(var(--lien) + 2px);      /* + l'épaisseur du cadre de la carte */
  border-left: 2px dashed var(--c-bleu);
  transform: translateX(-1px);
}
.serenite-lien-rond {
  position: absolute;
  top: 45%;
  left: -1px;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--c-blanc);
  background: var(--c-bleu);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.serenite-lien-texte {
  position: absolute;
  top: 45%;
  left: 1.6rem;
  width: 7.5rem;                         /* sur deux lignes : tient sur les petits écrans */
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-bleu);
  transform: translateY(-50%);
}
.serenite .badge { z-index: 1; }
.serenite-prix span { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.05em; color: var(--c-navy); }
.coches li { position: relative; margin: 0.4rem 0; padding-left: 1.7rem; font-size: 0.93rem; color: #4d6078; }
.coches li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 3.8L16 5.5' fill='none' stroke='%232865c1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- 9. Méthode ---------- */
.etapes { display: grid; gap: var(--s-4); }
.etape { position: relative; text-align: center; }
.etape-icone {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto 0.9rem;
  color: var(--c-bleu);
  background: var(--c-blanc);
  border: 1px solid #dce7f6;
  border-radius: 50%;
  box-shadow: var(--ombre-s);
}
.etape-icone svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.etape h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.etape p { font-size: 0.92rem; color: var(--c-doux); }
.etape strong { color: var(--c-navy); }

/* ---------- 10. Sections sombres pleine largeur (Exemples, Contact) ---------- */
.section-sombre {
  position: relative;
  overflow: hidden;
  color: var(--c-blanc);
  background:
    radial-gradient(ellipse at 75% 0%, rgba(57, 120, 214, 0.38), transparent 40%),
    radial-gradient(ellipse at 0% 100%, rgba(57, 120, 214, 0.2), transparent 40%),
    linear-gradient(120deg, #102342, #172f55);
}
.section-sombre::before {
  content: "";
  position: absolute;
  right: 10%;
  top: -20rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.section-sombre h2 { color: var(--c-blanc); }
.section-sombre .eyebrow { color: var(--c-sur-sombre); }
.section-sombre .eyebrow::before { background: var(--c-jaune); }
.section-sombre .section-intro p,
.section-sombre .contact-info > p { color: var(--c-sur-sombre); }
.section-intro-centre { margin-inline: auto; text-align: center; }
.section-intro-centre .eyebrow { justify-content: center; }

/* ---------- 10 bis. Carrousel d'exemples en anneau ---------- */
/* Sans JavaScript : une rangée de cartes qui défile horizontalement. */
.carrousel {
  position: relative;
  max-width: 82rem;
  margin-inline: auto;
  isolation: isolate;   /* les cartes restent sous l'en-tête fixe quand on fait défiler */
}
.carrousel:focus-visible { outline-offset: -4px; }
.carrousel-piste {
  display: flex;
  gap: 1.25rem;
  padding: 1rem var(--gouttiere) 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.carrousel-fleche { display: none; }

/* Une carte = une fenêtre de navigateur aux couleurs du métier */
.exemple {
  flex: 0 0 min(76%, 17rem);
  scroll-snap-align: center;
  text-align: center;
}
.fenetre {
  overflow: hidden;
  background: var(--c-blanc);
  border: 3px solid var(--metier, var(--c-bleu));
  border-radius: 0.9rem;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
}
.fenetre-barre {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  background: var(--metier, var(--c-bleu));
}
.fenetre-barre i { width: 0.55rem; height: 0.55rem; background: rgba(255, 255, 255, 0.75); border-radius: 50%; }
.fenetre-barre b { flex: 1; max-width: 55%; height: 0.6rem; margin-left: 0.5rem; background: rgba(255, 255, 255, 0.35); border-radius: 99px; }
.fenetre-ecran {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 0.75rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--c-doux);
  background:
    repeating-linear-gradient(135deg, transparent 0 16px, rgba(255, 255, 255, 0.55) 16px 17px),
    var(--metier-pale, var(--c-pale));
}
.exemple h3 { margin-top: 0.9rem; font-size: 1.15rem; color: var(--c-blanc); text-align: center; }

/* Carte reliée à une page d'exemple : capture d'écran + invitation à ouvrir */
.exemple-lien { display: block; color: inherit; text-decoration: none; }
.fenetre-ecran.fenetre-capture { padding: 0; background: var(--c-blanc); }
.fenetre-capture img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
/* Nombre de pages de l'exemple, pour faire le lien avec les formules */
.exemple-pages {
  display: block;
  width: fit-content;
  margin: 0.4rem auto 0;
  padding: 0.1rem 0.65rem;
  border: 1px solid rgba(199, 212, 231, 0.5);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--c-sur-sombre);
}
.exemple-voir {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--c-jaune);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.exemple-lien:hover .exemple-voir { color: var(--c-jaune-survol); }
.exemple-lien:focus-visible { outline: 3px solid var(--c-jaune); outline-offset: 6px; border-radius: 0.9rem; }

.exemple-plombier    { --metier: var(--c-plombier);    --metier-pale: #e3edfb; }
.exemple-electricien { --metier: var(--c-electricien); --metier-pale: #fff6d1; }
.exemple-paysagiste  { --metier: var(--c-paysagiste);  --metier-pale: #e1f1e7; }
.exemple-macon       { --metier: var(--c-macon);       --metier-pale: #f5e2de; }
/* barre jaune : points et adresse en bleu nuit pour rester visibles */
.exemple-electricien .fenetre-barre i { background: rgba(20, 40, 73, 0.55); }
.exemple-electricien .fenetre-barre b { background: rgba(20, 40, 73, 0.2); }

/* Avec JavaScript : anneau (main.js place chaque carte autour d'un cercle vu de face) */
.carrousel.anneau .carrousel-piste {
  position: relative;
  display: block;
  height: var(--hauteur-anneau, 22rem);
  padding: 0;
  overflow: visible;
}
.carrousel.anneau .exemple {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: var(--largeur-carte, 17rem);
  margin-left: calc(var(--largeur-carte, 17rem) / -2);
  cursor: pointer;
  will-change: transform, opacity;
}
.carrousel.anneau .exemple.devant { cursor: default; }
.carrousel.anneau .exemple.devant .exemple-lien { cursor: pointer; }
.carrousel.anneau .exemple:not(.devant) h3 { opacity: 0.75; }
.carrousel.anneau .exemple:not(.devant) .exemple-voir { visibility: hidden; }

.carrousel.anneau .carrousel-fleche {
  position: absolute;
  top: calc(var(--hauteur-anneau, 22rem) / 2 - 1.5rem);
  z-index: 300;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--c-navy);
  background: var(--c-blanc);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--ombre-l);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.carrousel.anneau .carrousel-fleche:hover { background: var(--c-jaune); transform: scale(1.06); }
/* bouton pause / lecture : petite icône discrète en haut à droite de la section */
.carrousel-pause {
  position: absolute;
  top: 1rem;
  right: var(--gouttiere);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--c-sur-sombre);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.carrousel-pause[hidden] { display: none; }
.carrousel-pause:hover { color: var(--c-blanc); background: rgba(255, 255, 255, 0.12); }
.carrousel-pause svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.carrousel-pause .icone-lecture { display: none; fill: currentColor; stroke: none; }
.carrousel-pause[aria-pressed="true"] .icone-pause { display: none; }
.carrousel-pause[aria-pressed="true"] .icone-lecture { display: block; }
.carrousel-precedent { left: var(--gouttiere); }
.carrousel-suivant { right: var(--gouttiere); }
.carrousel-fleche svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 11. Engagements ---------- */
.benefices { display: grid; gap: var(--s-3); }
.benefice { display: flex; gap: 0.9rem; }
.benefice h3 { margin-bottom: 0.2rem; font-size: 1.05rem; }
.benefice p { font-size: 0.93rem; color: var(--c-doux); }

/* ---------- 12. FAQ ---------- */
.faq-liste { display: grid; gap: 0.6rem; max-width: 52rem; }
.faq-liste details {
  background: var(--c-blanc);
  border: 1px solid var(--c-bord);
  border-radius: var(--r);
  box-shadow: var(--ombre-s);
  transition: border-color 0.2s;
}
.faq-liste details:hover,
.faq-liste details[open] { border-color: var(--c-bleu-vif); }
.faq-liste summary {
  position: relative;
  padding: 0.95rem 3.6rem 0.95rem 1.3rem;
  font-weight: 750;
  color: var(--c-navy);
  cursor: pointer;
  list-style: none;
  border-radius: var(--r);
}
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-top: -0.95rem;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--c-bleu);
  background: var(--c-pale);
  border-radius: 50%;
}
.faq-liste details[open] summary::after { transform: rotate(45deg); }
.faq-liste details p { padding: 0 1.3rem 1rem; color: var(--c-doux); }
.faq-liste details p + p { margin-top: -0.4rem; }

/* ---------- 13. Contact (sur fond sombre) ---------- */
.contact-grid { position: relative; display: grid; gap: var(--s-5); align-items: start; }
.contact-appel { margin-top: var(--s-4); }
.contact-appel svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.section-sombre .contact-detail { color: var(--c-sur-sombre); }
.section-sombre .contact-detail .icone { color: #8bb8ff; background: rgba(255, 255, 255, 0.08); }
.section-sombre .contact-detail small { color: #9fb1c9; }
.section-sombre .contact-detail a { color: var(--c-blanc); }
.section-sombre .contact-detail a:hover { color: var(--c-jaune); }
/* le formulaire reste blanc pour ressortir sur le fond sombre */
.section-sombre .formulaire { color: var(--c-texte); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.contact-info > p { color: var(--c-doux); }
.contact-details { display: grid; gap: 0.8rem; margin-top: var(--s-4); }
.contact-detail { display: flex; align-items: center; gap: 0.9rem; font-size: 0.97rem; color: #4d6078; }
.contact-detail .icone { width: 2.6rem; height: 2.6rem; border-radius: 0.8rem; }
.contact-detail .icone svg { width: 1.2rem; height: 1.2rem; }
.contact-detail a { font-weight: 750; color: var(--c-navy); text-decoration: none; overflow-wrap: anywhere; }
.contact-detail a:hover { color: var(--c-bleu); }
.contact-detail small { display: block; font-size: 0.8rem; color: var(--c-doux); }

/* Formulaire */
.formulaire { display: grid; gap: 0.9rem; }
.champ { display: grid; gap: 0.35rem; }
.formulaire label { font-size: 0.85rem; font-weight: 700; color: var(--c-navy); }
.formulaire label span { font-weight: 500; color: var(--c-doux); }
.formulaire input,
.formulaire select,
.formulaire textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--c-texte);
  background: #fbfcfe;
  border: 1px solid #c3cfdf;
  border-radius: 0.65rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
/* Menu déroulant : flèche dessinée en SVG, à droite */
.formulaire select {
  appearance: none;
  padding-right: 2.6rem;
  cursor: pointer;
  background: #fbfcfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23142849' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 0.9rem center / 1.1rem no-repeat;
}
.formulaire input:focus,
.formulaire select:focus,
.formulaire textarea:focus { outline: none; border-color: var(--c-bleu); box-shadow: 0 0 0 3px rgba(57, 120, 214, 0.18); }
.formulaire textarea { min-height: 7.5rem; resize: vertical; }
.form-aide { font-size: 0.82rem; color: var(--c-doux); }
.cache { position: absolute; left: -9999px; }

/* ---------- 15. Pied de page ---------- */
.site-footer {
  padding-block: var(--s-5) var(--s-4);
  background: var(--c-blanc);
  border-top: 1px solid var(--c-bord);
  font-size: 0.88rem;
}
.footer-haut { display: grid; gap: var(--s-3); padding-bottom: var(--s-4); }
.footer-marque p { margin-top: 0.3rem; font-size: 0.85rem; color: var(--c-doux); }
.footer-liens { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-weight: 650; }
.footer-liens a,
.footer-bas a { color: #4d6078; text-decoration: none; }
.footer-liens a:hover,
.footer-bas a:hover { color: var(--c-bleu); }
.footer-bas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-bord);
  font-size: 0.8rem;
  color: var(--c-doux);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

/* ---------- 16. Barre d'appel mobile (flottante) ---------- */
.barre-mobile {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: grid;
  overflow: hidden;
  background: var(--c-bleu);
  border-radius: 1rem;
  box-shadow: var(--ombre-l);
  transition: transform 0.25s ease;
}
.barre-mobile a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--barre-mobile);
  font-weight: 750;
  color: var(--c-navy);
  text-decoration: none;
}
.barre-mobile a:first-child { color: var(--c-blanc); background: var(--c-bleu); }
.barre-mobile a:first-child svg { fill: var(--c-blanc); }
.barre-mobile svg { fill: var(--c-bleu); }
/* masquée quand la section contact est à l'écran (voir main.js) */
.barre-mobile.est-masquee { transform: translateY(calc(100% + 2rem)); }

/* ---------- 17. Pages légales et page merci ---------- */
.page-legale { padding-block: var(--s-5) var(--section); background: var(--c-fond); }
.page-legale h1 { margin-bottom: var(--s-3); font-size: clamp(2rem, 3vw + 1.2rem, 3rem); }
.page-legale .eyebrow a { color: inherit; }
.legale-head { margin-bottom: var(--s-4); }
.legale-head p { max-width: 42rem; color: var(--c-doux); }
.legale-texte {
  padding: 0.5rem 1.5rem;
  background: var(--c-blanc);
  border: 1px solid var(--c-bord);
  border-radius: var(--r-grand);
  box-shadow: var(--ombre-s);
}
.legale-texte section { padding-block: var(--s-4); }
.legale-texte section + section { border-top: 1px solid var(--c-bord); }
.legale-texte h2 { margin-bottom: var(--s-3); font-size: 1.35rem; }
.legale-texte p,
.legale-texte .liste { max-width: 44rem; color: #4d6078; }
.legale-texte p + p { margin-top: var(--s-2); }
.legale-texte .liste li { position: relative; padding: 0.25rem 0 0.25rem 1.4rem; }
.legale-texte .liste li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.9rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--c-bleu);
  border-radius: 50%;
}
.legale-texte .liste + p { margin-top: var(--s-2); }
.fiche { padding: var(--s-2) var(--s-3); background: var(--c-fond); border-radius: var(--r); }
.fiche div { display: grid; gap: 0 var(--s-3); padding-block: 0.6rem; }
.fiche div + div { border-top: 1px solid var(--c-bord); }
.fiche dt { font-size: 0.85rem; font-weight: 650; color: var(--c-doux); }
.fiche dd { overflow-wrap: anywhere; }
.maj { padding-block: var(--s-4); border-top: 1px solid var(--c-bord); font-size: 0.9rem; color: var(--c-doux); }

.page-merci { min-height: 60vh; padding-block: var(--s-6); text-align: center; background: var(--c-fond); }
.page-merci h1 { margin-bottom: var(--s-3); font-size: clamp(2rem, 3vw + 1.2rem, 3rem); }
.page-merci p { max-width: 34rem; margin: 0 auto var(--s-4); color: var(--c-doux); }

/* ==========================================================================
   Tablette (768 px et plus)
   ========================================================================== */
@media (min-width: 48em) {
  :root { --gouttiere: 2rem; }

  body { padding-bottom: 0; }
  .barre-mobile { display: none; }

  /* En-tête fixe en haut */
  .site-header { position: sticky; top: 0; }
  .nav-cta { display: inline-flex; min-height: 2.7rem; padding: 0 1.1rem; font-size: 0.88rem; }

  .hero { padding-block: 3rem 3.5rem; }
  .hero-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-4); }
  .hero-visuel { margin-right: calc(-1 * var(--gouttiere) + 0.5rem); }   /* le dessin mord un peu sur la marge */
  .hero h1 { font-size: clamp(2.3rem, 4.4vw + 0.2rem, 3.6rem); max-width: 17ch; }   /* nettement plus grand que les h2 (2.5rem) */

  .offre-details { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .offre-details .serenite { order: 0; }   /* Sérénité à droite, sous les formules */

  .etapes { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
  /* trait reliant les icônes */
  .etape:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.8rem;
    left: calc(50% + 2.4rem);
    width: calc(100% - 3.4rem);
    height: 1px;
    background: #cbd9ec;
  }


  .benefices { grid-template-columns: 1fr 1fr; gap: var(--s-4); }


  .formulaire { grid-template-columns: 1fr 1fr; }
  .champ-large,
  .formulaire .btn,
  .form-aide,
  .formulaire .cache { grid-column: 1 / -1; }
  .formulaire .btn { justify-self: start; }

  .footer-haut { grid-template-columns: auto 1fr; align-items: center; }
  .footer-liens { justify-content: flex-end; }
  .footer-bas { flex-direction: row; justify-content: space-between; }

  .fiche div { grid-template-columns: 10rem 1fr; align-items: baseline; }
  .legale-texte { padding: 0.5rem 2.25rem; }
}

/* ==========================================================================
   Ordinateur (1024 px et plus)
   ========================================================================== */
@media (min-width: 64em) {
  /* menu horizontal, plus de bouton */
  .menu-bouton { display: none; }
  .main-nav {
    display: block;
    position: static;
    padding: 0;
    margin-left: auto;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .main-nav ul { display: flex; gap: 2rem; }
  .main-nav a { padding: 0.3rem 0; font-size: 0.9rem; border: 0; }
  .nav-row { gap: 2rem; }

  .hero { padding-block: 3.5rem 4rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }   /* le dessin prend un peu moins de place */
  /* débordement jusqu'à 7rem dans la marge de droite, sans jamais toucher le bord de l'écran */
  .hero-visuel {
    margin-right: calc(-1 * min(7rem, max(var(--gouttiere), (100vw - var(--largeur)) / 2 + var(--gouttiere)) - 1rem));
  }
  /* inclinaison fixe : la bascule et sa consigne restent bien alignées sous l'appareil */
  .appareils,
  .hero-visuel:hover .appareils { transform: rotateY(-7deg) rotateX(3deg); }
  .halo { width: 86%; height: 74%; }

  .offre-grid { grid-template-columns: 1fr 0.95fr; gap: 3.5rem; align-items: center; }
  /* mêmes colonnes que la grille du dessus : Sérénité tombe pile sous les formules,
     et la carte des formules descend en bas de sa ligne pour rejoindre le connecteur */
  .offre-details { grid-template-columns: 1fr 0.95fr; gap: 3.5rem; }
  .carte-prix { align-self: end; }
  .serenite-lien-texte { width: auto; white-space: nowrap; }   /* assez de place : une seule ligne */
  .benefices { grid-template-columns: repeat(4, 1fr); }
  .benefice { flex-direction: column; gap: 0.75rem; }
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
}

/* Grand écran (≈ 1250 px et plus) : les trois points cochés de l'accroche sur une seule ligne */
@media (min-width: 78em) {
  .hero-points { flex-wrap: nowrap; gap: 0.5rem 1rem; font-size: 0.86rem; }
  .hero-points li { white-space: nowrap; }
}

/* ==========================================================================
   Animations : uniquement si l'utilisateur ne demande pas de réduction
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Apparition douce des blocs (classe .js posée par main.js : sans JS, tout reste visible) */
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.visible { opacity: 1; transform: none; }

  /* Les traits d'annotation du dessin se tracent à l'arrivée (longueur normalisée à 100 : pathLength) */
  .d-annot path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: tracer 0.9s 0.3s ease-out forwards;
  }
  .d-annot > :nth-child(2) path { animation-delay: 0.45s; }
  .d-annot > :nth-child(3) path { animation-delay: 0.6s; }
  .d-annot > :nth-child(4) path { animation-delay: 0.75s; }

  /* Zones du dessin montrées par les légendes */
  .d-cadres rect { animation: fourmis 1s linear infinite; }
  .zone-nom .z-nom { animation: rebond 0.6s ease; }                     /* votre nom : petit rebond */
  .zone-numero .z-numero { animation: vibre 0.5s ease 2; }              /* numéro : vibre comme un appel */
  .zone-numero .d-onde { animation: onde 1.1s ease-out infinite; }
  .zone-numero .d-onde-2 { animation-delay: 0.55s; }
  .zone-galerie .z-photo { animation: rebond 0.5s ease both; }          /* photos : l'une après l'autre */
  .zone-galerie .d-photo-2 { animation-delay: 0.12s; }
  .zone-galerie .d-photo-3 { animation-delay: 0.24s; }
  .zone-galerie .d-photo-4 { animation-delay: 0.36s; }
  .zone-formulaire .d-saisie { animation: saisie 0.9s steps(9) forwards; }   /* champs remplis, */
  .zone-formulaire .z-envoi { animation: appui 0.35s ease 1s; }             /* puis bouton enfoncé */

  /* Repère sur la vraie page : anneau qui pulse */
  .repere { animation: entourer 0.9s ease-out 3; }

  .faq-liste summary::after { transition: transform 0.25s; }
}
@media (prefers-reduced-motion: reduce) {
  .appareils,
  .hero-visuel:hover .appareils,
  .carrousel-fleche { transition: none; }
  /* sans animation : état final des zones */
  .zone-formulaire .d-saisie { transform: none; }
  .zone-numero .d-onde { opacity: 0.6; }
}

@keyframes tracer {
  to { stroke-dashoffset: 0; }
}
@keyframes fourmis { to { stroke-dashoffset: -18; } }
@keyframes rebond { 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes vibre {
  20% { transform: rotate(-6deg); } 40% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); } 80% { transform: rotate(4deg); }
}
@keyframes onde { 0% { opacity: 0.9; transform: scale(0.5); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes saisie { to { transform: scaleX(1); } }
@keyframes appui { 50% { transform: scale(0.88); } }
@keyframes entourer {
  0% { box-shadow: 0 0 0 0 rgba(255, 216, 77, 0.85); }
  100% { box-shadow: 0 0 0 18px rgba(255, 216, 77, 0); }
}
