/* ==========================================================================
   Assistant Mail Artisans — feuille de style
   Couleurs : modifiez-les ici, elles s'appliquent partout.
   ========================================================================== */
:root {
  /* Palette vert émeraude + corail. Les noms « ardoise » et « orange » sont gardés :
     --ardoise = couleur principale (vert), --orange = couleur des boutons (corail). */
  --fond: #FBF8F3;
  --fond-carte: #FFFFFF;
  --fond-doux: #F1ECE3;
  --texte: #1A1C1F;
  --texte-doux: #454C57;
  --ardoise: #0B5D4B;
  --ardoise-clair: #17705C;
  --orange: #FF7A5C;
  --orange-fonce: #C2412A;
  --sur-orange: #1A1C1F;
  --vert: #1B7A4F;
  --rouge: #A3341F;
  --bordure: #E2DCD0;
  --rayon: 10px;
  --largeur: 1120px;
  --titre: "Archivo", "Arial Narrow", Arial, sans-serif;
  --corps: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: var(--titre);
  line-height: 1.15;
  color: var(--ardoise);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--ardoise); text-underline-offset: 3px; }
a:hover { color: var(--orange-fonce); }

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

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--blanche { background: var(--fond-carte); border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); }
.section--ardoise { background: var(--ardoise); color: #fff; }
.section--ardoise h2, .section--ardoise h3 { color: #fff; }
.intro { max-width: 680px; color: var(--texte-doux); font-size: 1.2rem; }
.section--ardoise .intro { color: #D3EDE4; }
.surtitre {
  display: inline-block;
  font-family: var(--titre);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-fonce);
  margin-bottom: .6em;
}
.section--ardoise .surtitre { color: var(--orange); }

.lien-evitement {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: var(--sur-orange);
  padding: 10px 16px; z-index: 100; font-weight: 700;
}
.lien-evitement:focus { left: 10px; top: 10px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block;
  vertical-align: middle;
  padding: 15px 24px;
  border-radius: var(--rayon);
  border: 2px solid transparent;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.bouton--principal { background: var(--orange); color: var(--sur-orange); }
.bouton--principal:hover { background: var(--orange-fonce); color: #fff; }
.bouton--secondaire { background: transparent; color: var(--ardoise); border-color: var(--ardoise); }
.bouton--secondaire:hover { background: var(--ardoise); color: #fff; }
.section--ardoise .bouton--secondaire { color: #fff; border-color: #fff; }
.section--ardoise .bouton--secondaire:hover { background: #fff; color: var(--ardoise); }
.bouton--plein { width: 100%; }
.groupe-boutons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sous-bouton { font-size: .95rem; color: var(--texte-doux); margin-top: 10px; }
.section--ardoise .sous-bouton { color: #D3EDE4; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--ardoise);
  color: #fff;
}
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: var(--titre); font-weight: 800; font-size: 1.1rem; line-height: 1.1;
}
.logo:hover { color: #fff; }
.logo svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--orange); }
.entete .bouton { padding: 11px 16px; font-size: .95rem; white-space: nowrap; }
.entete__cta-mobile { display: none; }

@media (max-width: 860px) {
  .nav a:not(.bouton) { display: none; }
}
@media (max-width: 520px) {
  .logo span { font-size: 1rem; }
  .entete .bouton { padding: 11px 12px; font-size: .9rem; }
  .entete__cta-long { display: none; }
  .entete__cta-mobile { display: inline; }
}

/* ---------- Accroche ---------- */
.hero { padding: 56px 0 72px; }
.hero__grille { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__texte .intro { font-size: 1.25rem; margin-bottom: 1.4em; }
.hero__points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.coche { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--vert); }

@media (max-width: 900px) {
  .hero__grille { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Exemple visuel (mail → réponse → alerte) ---------- */
.exemple { display: grid; gap: 0; position: relative; }
.exemple__etiquette {
  font-size: .9rem; color: var(--texte-doux); font-style: italic;
  margin: 0 0 10px;
}
.carte-mail {
  background: var(--fond-carte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 16px 18px;
  box-shadow: 0 2px 0 rgba(11,93,75,.06);
  font-size: 1rem;
}
.carte-mail__entete { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; }
.carte-mail__de { font-weight: 700; color: var(--ardoise); }
.carte-mail__heure { font-size: .85rem; color: var(--texte-doux); }
.carte-mail__objet { font-weight: 700; margin-bottom: 4px; }
.carte-mail p { margin: 0; color: var(--texte-doux); }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 700;
  font-family: var(--titre);
  letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
  background: var(--fond-doux); color: var(--ardoise);
}
.badge--orange { background: var(--orange); color: var(--sur-orange); }
.badge--vert { background: #DCEBDF; color: #1F4A2B; }
.fleche {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0 8px 22px;
  font-size: .9rem; font-weight: 600; color: var(--texte-doux);
}
.fleche svg { width: 20px; height: 28px; color: var(--orange-fonce); flex: none; }
.carte-mail--reponse { border-left: 4px solid var(--vert); }
.telephone {
  background: var(--ardoise);
  color: #fff;
  border-radius: 18px;
  padding: 14px;
  max-width: 340px;
  border: 6px solid #063D31;
}
.telephone__notif {
  background: #fff; color: var(--texte);
  border-radius: 12px; padding: 12px 14px;
  font-size: .95rem;
}
.telephone__notif strong { color: var(--ardoise); }
.telephone__notif dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0 0; }
.telephone__notif dt { font-weight: 700; color: var(--texte-doux); }
.telephone__notif dd { margin: 0; }
.telephone__haut { display: flex; justify-content: space-between; font-size: .8rem; color: #CDE7DD; margin: 0 4px 8px; }

/* ---------- Chiffres ---------- */
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.chiffre {
  background: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 24px;
}
.chiffre__valeur {
  font-family: var(--titre); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1; color: var(--ardoise);
  display: block; margin-bottom: 8px;
}
.chiffre__valeur--orange { color: var(--orange-fonce); }
.chiffre p { margin: 0; color: var(--texte-doux); }
.note { font-size: .95rem; color: var(--texte-doux); margin-top: 20px; }
@media (max-width: 760px) { .chiffres { grid-template-columns: 1fr; } }

/* ---------- Les deux assistants ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.carte {
  background: var(--fond-carte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 28px;
}
.carte__icone {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--ardoise); color: #fff;
  display: grid; place-items: center; margin-bottom: 16px;
}
.carte__icone svg { width: 28px; height: 28px; }
.liste-coches { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.liste-coches li { display: flex; gap: 10px; align-items: flex-start; }
.dossiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Calendrier des relances ---------- */
.frise { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: etape; }
.frise li {
  background: var(--ardoise-clair);
  border-radius: var(--rayon);
  padding: 22px 20px;
  position: relative;
  border-top: 5px solid var(--orange);
}
.frise__jour { font-family: var(--titre); font-weight: 800; font-size: 1.9rem; color: var(--orange); display: block; line-height: 1; margin-bottom: 8px; }
.frise h3 { font-size: 1.15rem; margin-bottom: .4em; }
.frise p { margin: 0; color: #E0F2EB; font-size: 1rem; }
.encart-paye {
  margin-top: 28px;
  background: #fff; color: var(--texte);
  border-radius: var(--rayon);
  padding: 20px 22px;
  display: flex; gap: 16px; align-items: flex-start;
}
.encart-paye svg { width: 30px; height: 30px; flex: none; color: var(--ardoise); margin-top: 2px; }
.encart-paye p { margin: 0; }
.mot-paye { font-family: var(--titre); font-weight: 800; background: var(--orange); color: var(--sur-orange); padding: 1px 8px; border-radius: 4px; }
@media (max-width: 900px) { .frise { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .frise { grid-template-columns: 1fr; } }

/* ---------- Étapes d'installation ---------- */
.etapes { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.etapes li { background: var(--fond-carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 26px; }
.etapes__num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: var(--sur-orange);
  display: grid; place-items: center;
  font-family: var(--titre); font-weight: 800; font-size: 1.3rem;
  margin-bottom: 14px;
}
.etapes p { margin: 0; color: var(--texte-doux); }
@media (max-width: 860px) { .etapes { grid-template-columns: 1fr; } }

/* ---------- Prix ---------- */
.prix-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.carte-prix {
  background: var(--fond-carte);
  border: 2px solid var(--ardoise);
  border-radius: 14px;
  padding: 32px;
}
.carte-prix__montant { font-family: var(--titre); font-weight: 800; font-size: 4rem; line-height: 1; color: var(--ardoise); }
.carte-prix__montant small { font-size: 1.3rem; font-weight: 700; color: var(--texte-doux); }
.carte-prix__tva { font-size: .95rem; color: var(--texte-doux); margin: 6px 0 20px; }
.carte-prix .liste-coches { margin-bottom: 26px; }
@media (max-width: 860px) { .prix-grille { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Données ---------- */
.garanties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.garantie { display: flex; gap: 14px; align-items: flex-start; }
.garantie svg { width: 30px; height: 30px; flex: none; color: var(--ardoise); margin-top: 2px; }
.garantie h3 { font-size: 1.1rem; margin-bottom: .25em; }
.garantie p { margin: 0; color: var(--texte-doux); }
@media (max-width: 760px) { .garanties { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-top: 28px; display: grid; gap: 12px; }
.faq details {
  background: var(--fond-carte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 20px;
  font-family: var(--titre); font-weight: 700; font-size: 1.1rem;
  color: var(--ardoise);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 700; color: var(--orange-fonce);
}
.faq details[open] summary::after { content: "\2212"; }
.faq__reponse { padding: 0 20px 18px; color: var(--texte-doux); }
.faq__reponse p:last-child { margin-bottom: 0; }

/* ---------- Appel final ---------- */
.final { text-align: center; }
.final .intro { margin: 0 auto 28px; }
.final .groupe-boutons { justify-content: center; }

/* ---------- Pied de page ---------- */
.pied { background: #073D32; color: #CDE7DD; padding: 40px 0; font-size: 1rem; }
.pied a { color: #fff; }
.pied a:hover { color: var(--orange); }
.pied__grille { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pied p { margin: 0 0 6px; }

/* ---------- Pages de texte (mentions, confidentialité) ---------- */
.page-texte { padding: 48px 0 72px; }
.page-texte .conteneur { max-width: 820px; }
.page-texte h2 { font-size: 1.5rem; margin-top: 1.8em; }
.page-texte h3 { font-size: 1.15rem; margin-top: 1.4em; }
.page-texte ul { padding-left: 1.2em; }
.page-texte li { margin-bottom: .4em; }
.page-texte .maj { color: var(--texte-doux); font-size: .95rem; }
.tableau-wrap { overflow-x: auto; }
.page-texte table { border-collapse: collapse; width: 100%; font-size: 1rem; background: var(--fond-carte); }
.page-texte th, .page-texte td { border: 1px solid var(--bordure); padding: 10px 12px; text-align: left; vertical-align: top; }
.page-texte th { background: var(--fond-doux); font-family: var(--titre); }

/* ---------- Fenêtre d'essai (formulaire) ---------- */
.fenetre {
  border: none;
  border-radius: 14px;
  padding: 0;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  background: var(--fond-carte);
  color: var(--texte);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.fenetre::backdrop { background: rgba(6, 40, 33, .65); }
.fenetre__interieur { padding: 28px 24px 24px; position: relative; }
.fenetre h2 { font-size: 1.6rem; padding-right: 40px; }
.fenetre__fermer {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px;
  border: none; background: var(--fond-doux); border-radius: 50%;
  cursor: pointer; display: grid; place-items: center; color: var(--ardoise);
}
.fenetre__fermer svg { width: 20px; height: 20px; }
.fenetre__fermer:hover { background: var(--bordure); }

.champ { margin-bottom: 16px; }
.champ label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ardoise); }
.champ input, .champ select {
  width: 100%;
  min-height: 50px;
  font: inherit;
  font-size: 1.05rem;
  padding: 10px 12px;
  border: 2px solid #8C95A1;
  border-radius: 8px;
  background: #fff;
  color: var(--texte);
}
.champ input:focus, .champ select:focus { border-color: var(--ardoise); outline: 3px solid var(--orange); outline-offset: 1px; }
.champ__aide { font-size: .9rem; color: var(--texte-doux); margin-top: 4px; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .champs-2 { grid-template-columns: 1fr; } }
.cache { position: absolute !important; left: -9999px !important; }

.alerte {
  border-radius: 8px; padding: 14px 16px; margin-bottom: 16px;
  font-size: 1rem;
}
.alerte p:last-child { margin-bottom: 0; }
.alerte--info { background: #FFE6DF; border-left: 5px solid var(--orange-fonce); }
.alerte--ok { background: #DCEBDF; border-left: 5px solid var(--vert); }
.alerte--erreur { background: #F6DEDA; border-left: 5px solid var(--rouge); }
.mentions-form { font-size: .9rem; color: var(--texte-doux); margin: 12px 0 0; }
[hidden] { display: none !important; }

/* ==========================================================================
   Mise en valeur : surlignage, exemple animé, avant/après, apparitions
   ========================================================================== */

/* Surlignage orange dans l'accroche */
.surligne {
  box-shadow: inset 0 -0.2em 0 var(--orange);
  padding: 0 .06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Exemple : panneau encadré */
.hero__grille { align-items: start; }
.exemple {
  background: var(--fond-doux);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--bordure);
}
.exemple__barre { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.exemple__direct {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--titre); font-weight: 700; font-size: .9rem;
  color: var(--ardoise);
}
.pastille {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255,122,92,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,122,92,.55); }
  70% { box-shadow: 0 0 0 9px rgba(255,122,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,122,92,0); }
}
.exemple__rejouer {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 4px 12px;
  border: 1px solid var(--bordure); border-radius: 999px;
  background: var(--fond-carte); color: var(--ardoise);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.exemple__rejouer svg { width: 16px; height: 16px; }
.exemple__rejouer:hover { border-color: var(--ardoise); }
.carte-mail, .telephone { box-shadow: 0 6px 18px rgba(11,93,75,.10); }

/* Bandeau compatibilité */
.bandeau-compat { background: var(--ardoise); color: #fff; padding: 18px 0; }
.bandeau-compat__ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; }
.bandeau-compat__titre { font-weight: 600; color: #D3EDE4; }
.bandeau-compat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bandeau-compat li {
  font-family: var(--titre); font-weight: 700; font-size: .95rem;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
}

/* Avant / après */
.avant-apres { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.colonne { border-radius: 14px; padding: 28px; }
.colonne--avant { background: var(--fond-doux); border: 1px solid var(--bordure); }
.colonne--avant h3 { color: var(--texte-doux); }
.colonne--avant li { color: var(--texte-doux); }
.colonne--apres { background: var(--fond-carte); border: 2px solid var(--ardoise); border-top: 6px solid var(--orange); box-shadow: 0 10px 30px rgba(11,93,75,.12); }
.liste-croix { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.liste-croix li { display: flex; gap: 10px; align-items: flex-start; }
.croix { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--rouge); }
@media (max-width: 860px) { .avant-apres { grid-template-columns: 1fr; } }

/* Prix par jour */
.carte-prix { box-shadow: 0 14px 40px rgba(11,93,75,.14); position: relative; }
.carte-prix__jour {
  background: #FFE6DF; border-radius: 8px;
  padding: 10px 14px; margin: -6px 0 20px;
  font-size: 1rem;
}

/* Cartes : léger soulèvement au survol */
.carte, .chiffre, .etapes li { transition: transform .2s, box-shadow .2s; }
@media (hover: hover) {
  .carte:hover, .chiffre:hover, .etapes li:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(11,93,75,.12); }
}
.bouton--principal { box-shadow: 0 4px 0 var(--orange-fonce); transform: translateY(0); transition: background-color .15s, color .15s, transform .1s, box-shadow .1s; }
.bouton--principal:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-fonce); }
.entete .bouton--principal { box-shadow: none; }

/* Apparitions au défilement (seulement si JS actif et animations autorisées) */
.anim .revele { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.anim .revele.visible { opacity: 1; transform: none; }
.anim .exemple .etape-ex { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.anim .exemple .etape-ex.visible { opacity: 1; transform: none; }

/* Barre d'essai fixe sur téléphone */
.barre-mobile { display: none; }
@media (max-width: 760px) {
  .barre-mobile {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--fond-carte);
    border-top: 1px solid var(--bordure);
    box-shadow: 0 -6px 20px rgba(11,93,75,.12);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    text-align: center;
    transform: translateY(110%);
    transition: transform .25s ease;
  }
  .barre-mobile.visible { transform: none; }
  .barre-mobile .bouton { padding: 13px 16px; box-shadow: none; }
  .barre-mobile__note { display: block; font-size: .85rem; color: var(--texte-doux); margin-top: 4px; }
  .pied { padding-bottom: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .pastille { animation: none; }
  .barre-mobile { transition: none; }
}

/* ==========================================================================
   Illustrations et effets
   ========================================================================== */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* En-tête : ombre une fois la page défilée */
.entete { transition: box-shadow .2s; }
.entete--ombre { box-shadow: 0 6px 20px rgba(0,0,0,.18); }

/* Notifications flottantes autour de l'exemple */
.flottant {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: var(--fond-carte);
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--titre); font-weight: 700; font-size: .9rem; color: var(--ardoise);
  box-shadow: 0 12px 30px rgba(11,93,75,.18);
  white-space: nowrap;
}
.flottant svg { width: 20px; height: 20px; color: var(--orange-fonce); flex: none; }
.flottant--1 { top: 150px; right: -44px; }
.flottant--2 { top: 360px; left: -56px; }
.flottant--3 { bottom: 70px; right: -40px; }
@media (max-width: 1180px) { .flottant { display: none; } }
.anim .flottant { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .4s ease, transform .4s ease; }
.anim .flottant.visible { opacity: 1; transform: none; animation: flotte 4.5s ease-in-out infinite; }
.anim .flottant--2.visible { animation-duration: 5.5s; animation-delay: .6s; }
.anim .flottant--3.visible { animation-duration: 5s; animation-delay: 1.2s; }
@keyframes flotte {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Effet machine à écrire sur la réponse automatique */
[data-ecrire] { position: relative; }
.ecrire__fantome { visibility: hidden; }
.ecrire__texte { position: absolute; inset: 0; }
.ecrire__texte.en-cours::after {
  content: ""; display: inline-block; width: 2px; height: 1em;
  background: var(--ardoise); margin-left: 2px; vertical-align: -2px;
  animation: curseur .8s steps(1) infinite;
}
@keyframes curseur { 50% { opacity: 0; } }

/* Bandeau défilant des métiers */
.metiers { padding: 56px 0 48px; overflow: hidden; }
.metiers__titre { text-align: center; font-size: clamp(1.3rem, 3vw, 1.75rem); max-width: 760px; margin: 0 auto 28px; }
.defile { overflow: hidden; border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); background: var(--fond-carte); padding: 18px 0; }
.defile__piste {
  list-style: none; margin: 0; padding: 0;
  display: flex; width: max-content;
  animation: defile 45s linear infinite;
}
.defile__piste li {
  font-family: var(--titre); font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--ardoise);
  padding: 0 26px;
  display: flex; align-items: center; gap: 52px;
  white-space: nowrap;
}
.defile__piste li::after {
  content: ""; width: 10px; height: 10px; background: var(--orange);
  transform: rotate(45deg); margin-right: -26px;
}
.defile:hover .defile__piste { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-50%); } }

/* Illustration du tri des mails */
.chiffres__tete { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.tri { width: 100%; max-width: 440px; justify-self: end; height: auto; }
.tri__legende { font-family: var(--titre); font-weight: 700; font-size: 14px; fill: var(--ardoise); }
.tri__dossier { font-family: var(--titre); font-weight: 700; font-size: 14px; }
.env { transform: translate(var(--dx), var(--dy)); }
@media (prefers-reduced-motion: no-preference) {
  .env { animation: trie 7s ease-in-out infinite both; }
}
@keyframes trie {
  0% { transform: translate(0, 0); opacity: 0; }
  6% { transform: translate(0, 0); opacity: 1; }
  22% { transform: translate(var(--dx), var(--dy)); opacity: 1; }
  84% { transform: translate(var(--dx), var(--dy)); opacity: 1; }
  94%, 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}
@media (max-width: 860px) {
  .chiffres__tete { grid-template-columns: 1fr; gap: 20px; }
  .tri { justify-self: center; }
}

/* Frise des relances : barre de progression */
.progression { height: 8px; background: var(--ardoise-clair); border-radius: 99px; margin-top: 32px; overflow: hidden; }
.progression span { display: block; height: 100%; width: 100%; background: var(--orange); border-radius: 99px; }
.anim .progression span { width: 0; transition: width 2s ease .2s; }
.anim .progression.visible span { width: 100%; }
.progression + .frise { margin-top: 18px; }
@media (max-width: 560px) { .progression { display: none; } }

/* Appel final : enveloppes décoratives */
.final { position: relative; overflow: hidden; }
.final .conteneur { position: relative; z-index: 1; }
.deco { position: absolute; inset: 0; pointer-events: none; color: rgba(255,255,255,.14); }
.deco__env { position: absolute; width: 90px; height: auto; }
.deco__env--1 { top: 18%; left: 6%; transform: rotate(-12deg); }
.deco__env--2 { top: 60%; left: 14%; width: 60px; transform: rotate(8deg); color: rgba(255,122,92,.45); }
.deco__env--3 { top: 14%; right: 8%; width: 70px; transform: rotate(14deg); color: rgba(255,122,92,.45); }
.deco__env--4 { top: 62%; right: 12%; transform: rotate(-6deg); }
@media (prefers-reduced-motion: no-preference) {
  .deco__env { animation: flotteDeco 7s ease-in-out infinite; }
  .deco__env--2 { animation-duration: 9s; }
  .deco__env--3 { animation-duration: 8s; animation-delay: 1s; }
  .deco__env--4 { animation-duration: 10s; animation-delay: .5s; }
}
@keyframes flotteDeco {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@media (max-width: 560px) { .deco__env { width: 50px; } .deco__env--1, .deco__env--4 { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .defile__piste { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .defile__piste li:nth-child(n+17) { display: none; }
}

/* Notifications : posées sur les espaces libres (lignes des flèches, à côté du téléphone) */
.fleche { position: relative; min-height: 46px; }
.flottant--1, .flottant--2 { top: 2px; right: -34px; left: auto; bottom: auto; }
.flottant--3 { top: auto; bottom: 96px; right: -34px; left: auto; }
@media (max-width: 560px) {
  .deco__env--3 { top: 5%; right: 5%; width: 44px; }
  .deco__env--2 { top: 84%; left: 6%; width: 44px; }
}

/* ==========================================================================
   COULEURS ET FONDS À MOTIFS (images SVG légères, sans dégradé)
   ========================================================================== */
:root {
  --bleu-clair: #DDF0E8;
  --peche: #FFE2D9;
  --vert-clair: #FFEDE6;
  --motif-enveloppes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke='%230B5D4B' stroke-opacity='.08' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='10' y='14' width='28' height='19' rx='3'/%3E%3Cpath d='M12 16l12 9 12-9'/%3E%3Crect x='58' y='60' width='24' height='16' rx='3'/%3E%3Cpath d='M60 62l10 7 10-7'/%3E%3C/g%3E%3C/svg%3E");
  --motif-points: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='3' cy='3' r='1.7' fill='%230B5D4B' fill-opacity='.13'/%3E%3C/svg%3E");
  --motif-grille: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M44 0H0V44' fill='none' stroke='%23FFFFFF' stroke-opacity='.07' stroke-width='1.5'/%3E%3C/svg%3E");
  --motif-rayures: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Cpath d='M-4 4l8-8M0 18L18 0M14 22l8-8' stroke='%231A1C1F' stroke-opacity='.09' stroke-width='2'/%3E%3C/svg%3E");
  --motif-points-blancs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='3' cy='3' r='1.7' fill='%23FFFFFF' fill-opacity='.5'/%3E%3C/svg%3E");
}

/* --- Accroche : formes de couleur + enveloppes en fond --- */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--fond);
  background-image: var(--motif-enveloppes);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before {
  width: 620px; height: 620px;
  right: -170px; top: -150px;
  background: var(--orange);
}
.hero::after {
  width: 300px; height: 300px;
  left: -120px; bottom: -150px;
  border: 26px solid var(--ardoise);
  opacity: .1;
}
.hero .conteneur { position: relative; z-index: 1; }
.hero .exemple { background: var(--fond-carte); border-color: rgba(11,93,75,.15); box-shadow: 0 24px 60px rgba(11,93,75,.22); }
@media (max-width: 900px) {
  .hero::before { width: 360px; height: 360px; right: -150px; top: auto; bottom: 120px; }
}

/* --- Fonds de section --- */
.section--bleue { background-color: var(--bleu-clair); background-image: var(--motif-points); }
.section--points { background-image: var(--motif-points); }
.section--enveloppes { background-image: var(--motif-enveloppes); }
.section--peche { background-color: var(--peche); background-image: var(--motif-rayures); }
.section--verte { background-color: var(--vert-clair); background-image: var(--motif-points); }
.section--grille { background-image: var(--motif-grille); }

/* Avant / après sur fond bleu */
.section--bleue .colonne--avant { background: rgba(255,255,255,.55); border-color: rgba(11,93,75,.12); }

/* --- Bandeau des métiers : orange vif, bande ardoise qui défile --- */
.metiers { background-color: var(--orange); background-image: var(--motif-rayures); }
.metiers__titre { color: var(--sur-orange); }
.metiers .defile { background: var(--ardoise); border: none; transform: rotate(-1.5deg); margin: 0 -20px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.metiers .defile__piste li { color: #fff; }
.metiers .defile__piste li::after { background: var(--orange); }

/* --- Chiffres : trois cartes de couleur --- */
.chiffres .chiffre:nth-child(1) { background: var(--ardoise); border-color: var(--ardoise); }
.chiffres .chiffre:nth-child(1) .chiffre__valeur { color: #fff; }
.chiffres .chiffre:nth-child(1) p { color: #D3EDE4; }
.chiffres .chiffre:nth-child(2) { background-color: var(--orange); background-image: var(--motif-rayures); border-color: var(--orange); }
.chiffres .chiffre:nth-child(2) .chiffre__valeur, .chiffres .chiffre:nth-child(2) p { color: var(--sur-orange); }
.chiffres .chiffre:nth-child(3) { background: var(--vert-clair); border-color: #B9D6C1; }
.chiffres .chiffre:nth-child(3) .chiffre__valeur { color: #1F4A2B; }
.chiffres .chiffre:nth-child(3) p { color: #2B3A30; }

/* --- Les deux assistants : une couleur chacun --- */
.duo .carte { border-top: 6px solid var(--orange); box-shadow: 0 10px 30px rgba(11,93,75,.08); }
.duo .carte:first-child .carte__icone { background: var(--orange); color: var(--sur-orange); }
.duo .carte:last-child { border-top-color: var(--vert); }
.duo .carte:last-child .carte__icone { background: var(--vert); color: #fff; }

/* --- Étapes sur fond pêche --- */
.section--peche .etapes li { border-color: rgba(194,65,42,.25); box-shadow: 0 8px 24px rgba(194,65,42,.12); }

/* --- Prix sur fond ardoise --- */
.section--prix .carte-prix { border-color: var(--orange); border-width: 3px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.section--prix .carte-prix::before {
  content: "Essai gratuit"; position: absolute; top: -16px; right: 24px;
  background: var(--orange); color: var(--sur-orange);
  font-family: var(--titre); font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 6px;
}

/* --- Données sur fond vert --- */
.section--verte .garantie svg { color: var(--vert); }

/* --- Calendrier : cartes plus contrastées --- */
.section--grille .frise li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-top: 5px solid var(--orange); }

/* --- Appel final : cercles orange en fond --- */
.final::before, .final::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.final::before { width: 380px; height: 380px; left: -140px; top: -160px; background: var(--orange); opacity: .9; }
.final::after { width: 240px; height: 240px; right: -80px; bottom: -110px; border: 22px solid var(--orange); }
@media (max-width: 560px) {
  .final::before { width: 220px; height: 220px; left: -120px; top: -120px; }
  .final::after { width: 160px; height: 160px; right: -70px; bottom: -80px; border-width: 16px; }
}
.carte-prix { color: var(--texte); }

/* Corrections : bouton de l'en-tête lisible, exemple pleine largeur */
.nav a.bouton--principal { color: var(--sur-orange); }
.nav a.bouton--principal:hover { color: #fff; }
figure.exemple { margin: 0; }
@media (max-width: 520px) { .exemple { padding: 14px; } }

/* ==========================================================================
   EFFETS SPÉCIAUX
   ========================================================================== */

/* Barre de lecture sous l'en-tête */
.barre-lecture {
  position: absolute; left: 0; bottom: -3px; height: 3px; width: 100%;
  background: var(--orange); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* Titre : les mots arrivent un par un */
.anim .hero h1 .mot { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1.2); }
.anim .hero h1.parti .mot { opacity: 1; transform: none; }
.anim .hero .surligne { box-shadow: inset 0 0 0 var(--orange); transition: box-shadow .6s ease .9s; }
.anim .hero h1.parti .surligne { box-shadow: inset 0 -0.2em 0 var(--orange); }

/* Parallaxe des formes du haut de page (souris + défilement) */
.hero::before { transform: translate(calc(var(--mx, 0) * 26px), calc(var(--my, 0) * 26px + var(--decal, 0px))); transition: transform .25s ease-out; }
.hero::after { transform: translate(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -18px - var(--decal, 0px))); transition: transform .25s ease-out; }

/* Inclinaison 3D au survol (souris uniquement) */
.incline { transition: transform .2s ease-out, box-shadow .2s ease-out; will-change: transform; }

/* Boutons : reflet qui passe + onde au clic */
.bouton { position: relative; overflow: hidden; isolation: isolate; }
.anim .bouton--principal::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 22%;
  background: rgba(255,255,255,.45); transform: skewX(-20deg) translateX(-120%);
  animation: reflet 4.5s ease-in-out infinite; pointer-events: none; z-index: -1;
}
@keyframes reflet {
  0%, 65% { transform: skewX(-20deg) translateX(-120%); }
  85%, 100% { transform: skewX(-20deg) translateX(720%); }
}
.onde {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.55); transform: scale(0); opacity: 1;
  animation: onde .6s ease-out forwards; z-index: -1;
}
@keyframes onde { to { transform: scale(2.6); opacity: 0; } }

/* Bouton principal : légère pulsation pour attirer l'œil */
.anim .hero .bouton--principal { animation: appel 2.8s ease-in-out 2.5s infinite; }
@keyframes appel {
  0%, 100% { box-shadow: 0 4px 0 var(--orange-fonce), 0 0 0 0 rgba(255,122,92,.55); }
  50% { box-shadow: 0 4px 0 var(--orange-fonce), 0 0 0 12px rgba(255,122,92,0); }
}

/* Confettis */
.confettis { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1000; }
.anim .hero h1 .surligne.mot { transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1.2), box-shadow .6s ease .9s; }
