/* AutomatePro, site vitrine. CSS fait main, sans framework (site léger pour connexions lentes).
   Règles de forme : boutons en pilule, cartes et cadres à 16px, champs à 10px. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --fond: #f6f6fa;
  --surface: #ffffff;
  --surface-2: #eeedf6;
  --texte: #17162b;
  --texte-doux: #4f4d66;
  --trait: #dddcea;
  --accent: #302386;
  --accent-fort: #241a6b;
  --accent-texte: #ffffff;
  --accent-pale: #ecebf8;
  --rose: #f83895;
  --rose-texte: #c4126a;
  --bandeau: #302386;
  --ombre: 0 18px 40px -24px rgb(48 35 134 / 0.35);
  --rayon: 16px;
  --rayon-champ: 10px;
  --largeur: 1180px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #11101c;
    --surface: #181726;
    --surface-2: #201e31;
    --texte: #ecebf6;
    --texte-doux: #aaa8c2;
    --trait: #2c2a42;
    --accent: #a69cff;
    --accent-fort: #c2bbff;
    --accent-texte: #14122a;
    --accent-pale: #26234a;
    --rose: #ff5aa8;
    --rose-texte: #ff7dbb;
    --bandeau: #302386;
    --ombre: 0 18px 40px -24px rgb(0 0 0 / 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* aucune page ne défile sur le côté, même si un élément déborde */
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.ic { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section-titre { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 650; }
.section-intro { color: var(--texte-doux); max-width: 62ch; margin: 0 0 40px; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, border-color 0.2s;
}
.bouton:active { transform: translateY(1px) scale(0.98); }
.bouton-plein { background: var(--accent); color: var(--accent-texte); }
.bouton-plein:hover { background: var(--accent-fort); }
.bouton-contour { border-color: var(--accent); color: var(--accent); background: transparent; }
.bouton-contour:hover { background: var(--accent-pale); }
/* Bouton WhatsApp du héros : vert WhatsApp foncé (contraste 5,4:1 avec le texte blanc) */
.bouton-wa { background: #0f7a3d; border-color: #0f7a3d; color: #fff; }
.bouton-wa:hover { background: #0b6331; border-color: #0b6331; }

/* En-tête : îlot flottant en pilule, détaché du haut */
.entete { position: sticky; top: 12px; z-index: 20; padding: 0 16px; margin-top: 12px; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px;
  max-width: 1120px; padding: 0 10px 0 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: 0 12px 32px -20px rgb(48 35 134 / 0.35); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--texte); text-decoration: none; letter-spacing: -0.01em; }
.logo-marque { width: 40px; height: 40px; flex: none; } /* logo AutomatePro (éclair + engrenage), fond transparent */
.logo b { color: var(--rose-texte); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.bouton) { color: var(--texte); text-decoration: none; font-weight: 500; transition: color 0.3s cubic-bezier(0.32, 0.72, 0, 1); }
.nav a:not(.bouton):hover { color: var(--accent); }
.nav .bouton { padding: 10px 18px; }
.menu-bouton { display: none; background: none; border: 0; color: var(--texte); padding: 8px; cursor: pointer; }
.menu-bouton .ic { width: 28px; height: 28px; }
@media (max-width: 860px) {
  .entete { padding: 0 12px; }
  .entete .conteneur { padding: 0 6px 0 14px; height: 58px; }
  .menu-bouton { display: inline-flex; }
  .nav { position: absolute; top: 66px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border: 1px solid var(--trait); border-radius: 22px; padding: 8px 18px 18px;
    box-shadow: 0 24px 48px -24px rgb(20 15 60 / 0.45); display: none; }
  .nav.ouvert { display: flex; }
  .nav a:not(.bouton) { padding: 14px 0; border-bottom: 1px solid var(--trait); }
  .nav .bouton { margin-top: 14px; justify-content: center; }
}

/* Héros : halos de couleur + scène en cascade (facture + notifications réelles du système) */
.heros { position: relative; margin-top: -88px; padding: 160px 0 96px; overflow: hidden; } /* passe sous la barre flottante */
.heros-halo { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(38% 42% at 78% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(30% 34% at 92% 72%, color-mix(in srgb, var(--rose) 18%, transparent), transparent 70%),
    radial-gradient(34% 40% at 8% 10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.heros .conteneur { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pastille { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-pale); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.heros h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 700; }
.heros h1 em { font-style: normal; color: var(--rose); }
.heros-sous { font-size: 1.2rem; color: var(--texte-doux); margin: 0 0 34px; max-width: 34ch; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Bouton « îlot » : flèche dans son propre cercle, qui bouge au survol */
.bouton-ilot { padding: 8px 8px 8px 24px; gap: 14px; }
.bouton-rond { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center;
  background: rgb(255 255 255 / 0.16); transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1); }
.bouton-rond .ic { width: 18px; height: 18px; }
.bouton-ilot:hover .bouton-rond { transform: translateX(3px) scale(1.06); }

/* Coque double (plateau + plaque) */
.coque { padding: 8px; border-radius: 28px; background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: 0 40px 80px -40px rgb(48 35 134 / 0.45), 0 2px 6px -2px rgb(48 35 134 / 0.12); }
.noyau { border-radius: 20px; overflow: hidden; background: #ffffff; box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.6); }
.noyau img { width: 100%; }

.heros-scene { position: relative; padding: 28px 0 52px 36px; }
.heros-facture { transform: rotate(2.5deg); }
.notif { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 20px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: 0 24px 48px -24px rgb(20 15 60 / 0.5); max-width: 330px; }
.notif-icone { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-pale); color: var(--accent); }
.notif-icone.notif-rose { background: color-mix(in srgb, var(--rose) 16%, transparent); color: var(--rose-texte); }
.notif-icone .ic { width: 22px; height: 22px; }
.notif-texte { display: grid; line-height: 1.3; min-width: 0; }
.notif-texte strong { font-size: 0.98rem; }
.notif-texte span { font-size: 0.86rem; color: var(--texte-doux); }
.notif-heure { align-self: flex-start; font-size: 0.75rem; color: var(--texte-doux); white-space: nowrap; }
.notif-1 { top: -6px; left: -18px; transform: rotate(-3deg); }
.notif-2 { top: 44%; right: -26px; transform: rotate(2deg); }
.notif-3 { bottom: 6px; left: 4px; transform: rotate(-1.5deg); }

@media (prefers-reduced-motion: no-preference) {
  .js .notif { opacity: 0; translate: 0 18px; filter: blur(6px);
    animation: arrivee 0.9s cubic-bezier(0.32, 0.72, 0, 1) forwards, flotte 6s ease-in-out 1.6s infinite alternate; }
  .js .notif-1 { animation-delay: 0.35s, 1.6s; }
  .js .notif-2 { animation-delay: 0.85s, 2.4s; }
  .js .notif-3 { animation-delay: 1.35s, 3.2s; }
  .js .heros-facture { animation: posee 1.1s cubic-bezier(0.32, 0.72, 0, 1) both; }
}
@keyframes arrivee { to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes flotte { from { translate: 0 0; } to { translate: 0 -6px; } }
@keyframes posee { from { opacity: 0; transform: rotate(5deg) translateY(24px); } to { opacity: 1; transform: rotate(2.5deg) translateY(0); } }

@media (max-width: 860px) {
  .heros { margin-top: -82px; padding: 114px 0 64px; }
  .heros .conteneur { grid-template-columns: 1fr; gap: 40px; }
  .heros-scene { padding: 0; display: grid; gap: 12px; }
  .heros-facture { transform: none; order: 2; }
  .notif { position: static; transform: none; max-width: none; }
  .notif-1 { order: 1; } .notif-2 { order: 3; } .notif-3 { order: 4; }
  @media (prefers-reduced-motion: no-preference) { .js .heros-facture { animation: none; } }
}

/* Problèmes : liste sur 2 colonnes, sans cartes */
.problemes { background: var(--surface); border-block: 1px solid var(--trait); }
.liste-problemes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 56px; }
.liste-problemes li { display: flex; gap: 16px; align-items: flex-start; }
.liste-problemes .ic { width: 28px; height: 28px; color: var(--rose); margin-top: 2px; }
.liste-problemes strong { display: block; font-size: 1.1rem; }
.liste-problemes span { color: var(--texte-doux); }
@media (max-width: 760px) { .liste-problemes { grid-template-columns: 1fr; } }

/* Ce qui se fait tout seul : grille asymétrique (12 colonnes), chaque carte montre une petite scène de l'automatisation */
#solutions { position: relative; padding: 112px 0 120px; }
.auto-entete { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.auto-entete .section-titre { margin: 0; max-width: 16ch; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; }
.auto-entete .section-titre em { font-style: normal; color: var(--rose); }
.auto-entete .section-intro { margin: 0 0 18px; }
.outils { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.outils li { padding: 6px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 500; color: var(--texte-doux);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); }

.auto { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.auto-prospects { grid-column: span 7; }
.auto-factures { grid-column: span 5; }
.auto-relances { grid-column: span 5; }
.auto-rdv { grid-column: span 3; }
.auto-rapport { grid-column: span 4; }
.auto-emails { grid-column: span 12; }
.auto-carte { padding: 6px; border-radius: 26px; box-shadow: 0 30px 60px -44px rgb(48 35 134 / 0.5);
  transition: translate 0.6s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.6s cubic-bezier(0.32, 0.72, 0, 1); }
.auto-noyau { height: 100%; display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; }
.auto-texte { padding: 22px 26px 26px; display: grid; gap: 8px; }
.auto-texte h3 { margin: 0; font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.01em; }
.auto-texte p { margin: 0; color: var(--texte-doux); }
.auto-visuel { flex: 1; margin: 8px 8px 0; border-radius: 15px; background: var(--fond); min-height: 168px; }

/* Survol : la carte se soulève légèrement */
@media (hover: hover) { .auto-carte:hover { translate: 0 -4px; box-shadow: 0 40px 70px -40px rgb(48 35 134 / 0.55); } }

/* 1. Prospects : carte sombre indigo, flux en trois étapes */
.auto-sombre { background: var(--bandeau); color: #ffffff; }
.auto-sombre .auto-texte p { color: #ffffff; opacity: 0.86; }
.auto-sombre .auto-texte h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); max-width: 22ch; }
.flux { background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.1); padding: 22px; display: grid; align-content: center; }
.flux-etape { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.1); }
.flux-etape strong { display: block; font-size: 0.98rem; line-height: 1.3; }
.flux-etape small { display: block; font-size: 0.82rem; opacity: 0.72; }
.flux-icone { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgb(255 255 255 / 0.12); }
.flux-icone .ic { width: 20px; height: 20px; }
.flux-rose { background: var(--rose); }
.flux-lien { position: relative; display: block; width: 2px; height: 22px; margin-left: 28px; overflow: hidden;
  background: repeating-linear-gradient(to bottom, rgb(255 255 255 / 0.35) 0 4px, transparent 4px 8px); }
.flux-lien i { position: absolute; left: -2px; top: 0; width: 6px; height: 8px; border-radius: 3px; background: var(--rose); opacity: 0; }

/* 2. Factures : extrait de la facture réelle, coupé en bas par un fondu */
.facture-visuel { position: relative; overflow: hidden; background: #ffffff; min-height: 220px; }
.facture-visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.facture-visuel::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to top, #ffffff, transparent); }
.etiquette { position: absolute; z-index: 1; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; color: #17162b;
  background: #ffffff; border: 1px solid #e4e2f2; box-shadow: 0 16px 30px -16px rgb(20 15 60 / 0.5); }
.etiquette .ic { width: 22px; height: 22px; padding: 4px; border-radius: 999px; background: #1f9d55; color: #ffffff; }

/* 3. Relances : frise, la dernière étape est barrée car la facture est payée */
.frise { padding: 26px 22px; display: grid; align-content: center; }
.frise ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.frise ol::before { content: ""; position: absolute; top: 13px; left: 10%; right: 10%; height: 2px; background: var(--trait); }
.frise li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 0.78rem; line-height: 1.25; color: var(--texte-doux); }
.frise li > span { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--trait); }
.frise .fait > span { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 5px var(--surface); }
.frise .paye { color: var(--texte); font-weight: 600; }
.frise .paye > span { border-color: #1f9d55; background: #1f9d55; color: #ffffff; }
.frise .paye .ic { width: 15px; height: 15px; }
.frise .annule { text-decoration: line-through; opacity: 0.55; }
.frise .annule > span { border-style: dashed; }

/* 4. Rendez-vous : petite carte d'agenda */
.agenda { padding: 18px; display: grid; gap: 12px; align-content: center; }
.agenda-date { padding: 14px 16px; border-radius: 14px; background: var(--surface); border-left: 4px solid var(--rose); }
.agenda-date small { display: block; font-size: 0.8rem; color: var(--texte-doux); }
.agenda-date strong { font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1.1; }
.agenda-rappels { display: flex; flex-wrap: wrap; gap: 6px; }
.agenda-rappels span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 500;
  background: var(--accent-pale); color: var(--accent); }
.agenda-rappels .ic { width: 14px; height: 14px; }

/* 5. Rapport du soir : chiffre clé et mini barres */
.rapport { padding: 20px 22px 0; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; overflow: hidden; }
.rapport-chiffre strong { display: block; font-size: 2rem; letter-spacing: -0.03em; line-height: 1; }
.rapport-chiffre small { color: var(--texte-doux); font-size: 0.85rem; }
.barres { display: flex; align-items: flex-end; gap: 8px; height: 82px; }
.barres i { flex: 1; height: var(--h); border-radius: 8px 8px 0 0; background: color-mix(in srgb, var(--accent) 28%, transparent); transform-origin: bottom; }
.barres i:last-child { background: var(--rose); }

/* 6. Emails : texte à gauche, boîte de réception triée à droite */
.auto-emails .auto-noyau { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; }
.auto-emails .auto-texte { padding: 30px 32px; }
.boite { list-style: none; margin: 8px; padding: 10px; min-height: 0; display: grid; gap: 8px; }
.boite li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.boite strong { font-size: 0.95rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boite small { font-size: 0.8rem; color: var(--texte-doux); white-space: nowrap; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; min-width: 92px; text-align: center; }
.tag-demande { background: var(--accent-pale); color: var(--accent); }
.tag-fournisseur { background: color-mix(in srgb, #1f9d55 16%, transparent); color: #0f6b38; }
.tag-reclamation { background: color-mix(in srgb, var(--rose) 16%, transparent); color: var(--rose-texte); }
@media (prefers-color-scheme: dark) { .tag-fournisseur { color: #5fd394; } }

/* Animations des scènes, lancées quand la carte apparaît (.visible) */
@media (prefers-reduced-motion: no-preference) {
  .js .auto-carte.visible .flux-lien i { animation: impulsion 2.4s cubic-bezier(0.32, 0.72, 0, 1) infinite; }
  .js .auto-carte.visible .flux-lien + .flux-etape + .flux-lien i { animation-delay: 1.2s; }
  .js .auto-carte .barres i { transform: scaleY(0.1); transition: transform 1s cubic-bezier(0.32, 0.72, 0, 1); }
  .js .auto-carte.visible .barres i { transform: none; }
  .js .auto-carte.visible .barres i:nth-child(2) { transition-delay: 0.08s; }
  .js .auto-carte.visible .barres i:nth-child(3) { transition-delay: 0.16s; }
  .js .auto-carte.visible .barres i:nth-child(4) { transition-delay: 0.24s; }
  .js .auto-carte.visible .barres i:nth-child(5) { transition-delay: 0.32s; }
  .js .auto-carte.visible .barres i:nth-child(6) { transition-delay: 0.40s; }
  .js .auto-carte .frise li { opacity: 0; translate: 0 8px; transition: opacity 0.6s cubic-bezier(0.32, 0.72, 0, 1), translate 0.6s cubic-bezier(0.32, 0.72, 0, 1); }
  .js .auto-carte.visible .frise li { opacity: 1; translate: 0 0; }
  .js .auto-carte.visible .frise li.annule { opacity: 0.55; }
  .js .auto-carte.visible .frise li:nth-child(2) { transition-delay: 0.15s; }
  .js .auto-carte.visible .frise li:nth-child(3) { transition-delay: 0.3s; }
  .js .auto-carte.visible .frise li:nth-child(4) { transition-delay: 0.45s; }
  .js .auto-carte.visible .frise li:nth-child(5) { transition-delay: 0.6s; }
  .js .auto-carte.visible .boite li { animation: arrivee-ligne 0.8s cubic-bezier(0.32, 0.72, 0, 1) both; }
  .js .auto-carte.visible .boite li:nth-child(2) { animation-delay: 0.15s; }
  .js .auto-carte.visible .boite li:nth-child(3) { animation-delay: 0.3s; }
  .js .auto-carte.apparition { transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    translate 0.6s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.6s cubic-bezier(0.32, 0.72, 0, 1); }
  /* Décalage d'apparition entre les cartes */
  .js .auto-factures.apparition, .js .auto-rdv.apparition { transition-delay: 0.08s; }
  .js .auto-rapport.apparition { transition-delay: 0.16s; }
}
@keyframes impulsion { 0% { opacity: 0; transform: translateY(-8px); } 25% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(22px); } }
@keyframes arrivee-ligne { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .auto-prospects, .auto-factures, .auto-emails { grid-column: span 12; }
  .auto-relances { grid-column: span 12; }
  .auto-rdv, .auto-rapport { grid-column: span 6; }
}
@media (max-width: 760px) {
  #solutions { padding: 72px 0 80px; }
  .auto-entete { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
  .auto { gap: 14px; }
  .auto-rdv, .auto-rapport { grid-column: span 12; }
  .auto-emails .auto-noyau { grid-template-columns: 1fr; }
  .auto-emails .auto-texte { padding: 22px 22px 8px; order: 0; }
  .auto-texte { padding: 20px 22px 22px; }
  .frise { padding: 22px 10px; }
  .frise li { font-size: 0.72rem; }
  .boite li { grid-template-columns: auto 1fr; }
  .boite small { display: none; }
}

/* Métiers : onglets */
.onglets-liste { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.onglet { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--trait);
  background: var(--surface); color: var(--texte); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.onglet[aria-selected="true"] { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.panneau { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; background: var(--surface); border: 1px solid var(--trait);
  border-radius: var(--rayon); padding: 36px; }
.panneau[hidden] { display: none; }
.panneau h3 { font-size: 1.6rem; margin: 0 0 10px; line-height: 1.2; }
.panneau p { color: var(--texte-doux); margin: 0; }
.panneau ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.panneau li { display: flex; gap: 12px; align-items: flex-start; }
.panneau li .ic { color: var(--accent); margin-top: 3px; }
@media (max-width: 760px) { .panneau { grid-template-columns: 1fr; padding: 24px; gap: 20px; } }

/* Comment ça marche : 3 étapes sur une ligne */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: etape; }
.etapes li { padding: 0 32px 0 0; position: relative; }
.etapes li + li { padding-left: 32px; border-left: 1px solid var(--trait); }
.etapes .ic { width: 34px; height: 34px; color: var(--accent); margin-bottom: 14px; }
.etapes h3 { margin: 0 0 8px; font-size: 1.3rem; }
.etapes p { margin: 0; color: var(--texte-doux); }
.etapes p a { color: var(--accent); font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  .etapes { grid-template-columns: 1fr; gap: 28px; }
  .etapes li, .etapes li + li { padding: 0; border-left: 0; }
}

/* Offres */
.offres { background: var(--surface); border-block: 1px solid var(--trait); }
.offres-grille { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 20px; align-items: stretch; }
.offre { border: 1px solid var(--trait); border-radius: var(--rayon); padding: 30px; display: flex; flex-direction: column; gap: 16px; background: var(--fond); }
.offre-mise-en-avant { border: 2px solid var(--rose); background: var(--surface); box-shadow: var(--ombre); }
.offre h3 { margin: 0; font-size: 1.35rem; }
.offre .pour { color: var(--texte-doux); margin: 0; }
.prix { margin: 0; }
.prix strong { font-size: 1.9rem; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.prix span { color: var(--texte-doux); font-size: 0.95rem; }
.offre ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.offre li { display: flex; gap: 10px; }
.offre li .ic { color: var(--accent); margin-top: 3px; }
.offre .bouton, .formulaire .bouton { justify-content: center; }
.note-offres { color: var(--texte-doux); font-size: 0.95rem; margin: 24px 0 0; }
@media (max-width: 900px) { .offres-grille { grid-template-columns: 1fr; } }

/* Confiance : bandeau plein */
.confiance { background: var(--bandeau); color: #ffffff; }
.confiance .section-titre { color: #ffffff; max-width: 22ch; }
.confiance .ic { color: var(--rose); }
.confiance-liste { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.confiance-liste li { display: flex; gap: 14px; }
.confiance-liste .ic { width: 28px; height: 28px; flex: none; }
.confiance-liste strong { display: block; font-size: 1.1rem; }
.confiance-liste span { opacity: 0.9; }
@media (max-width: 760px) { .confiance-liste { grid-template-columns: 1fr; } }

/* Contact */
.contact .conteneur { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-cote p { color: var(--texte-doux); }
.whatsapp { margin-top: 8px; }
.formulaire { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 32px; display: grid; gap: 18px; }
.choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 0; padding: 0; margin: 0; }
.choix legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.choix label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px solid var(--trait);
  border-radius: var(--rayon-champ); cursor: pointer; font-weight: 500; text-align: center; }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix label:hover { border-color: var(--accent); }
.choix input:checked + label { border-color: var(--accent); background: var(--accent); color: var(--accent-texte); font-weight: 600; }
.choix input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.champ { display: grid; gap: 6px; align-content: start; } /* sans align-content, la colonne voisine s'étire et se décale */
.champ label { font-weight: 600; }
.champ input, .champ textarea { font: inherit; color: var(--texte); background: var(--fond);
  border: 1px solid color-mix(in srgb, var(--texte) 28%, transparent);
  border-radius: var(--rayon-champ); padding: 12px 14px; width: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.champ ::placeholder { color: color-mix(in srgb, var(--texte-doux) 75%, transparent); }
.facultatif { font-weight: 400; color: var(--texte-doux); }
.champ textarea { min-height: 110px; resize: vertical; }
.champ .aide { font-size: 0.9rem; color: var(--texte-doux); }
.champ .erreur { font-size: 0.9rem; color: #b42318; min-height: 0; }
.champ .erreur:empty { display: none; }
@media (prefers-color-scheme: dark) { .champ .erreur { color: #ff8f84; } }
.champ [aria-invalid="true"] { border-color: #b42318; }
.champ [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgb(180 35 24 / 0.2); }
.form-note { margin: 0; color: var(--texte-doux); font-size: 0.9rem; }
.ensuite { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 16px; counter-reset: ensuite; }
.ensuite li { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: start; counter-increment: ensuite; }
.ensuite li::before { content: counter(ensuite); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid;
  place-items: center; font-weight: 700; background: var(--accent-pale); color: var(--accent); }
.ensuite strong { line-height: 1.3; }
.ensuite span { color: var(--texte-doux); font-size: 0.95rem; }
.contact-direct { margin-bottom: 12px; }
.contact-tel { margin-top: 14px; color: var(--texte-doux); }
.contact-tel a { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact-tel a:hover { text-decoration: underline; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.message-envoi { display: block; border-radius: var(--rayon-champ); padding: 14px 16px; font-weight: 500; }
.message-envoi[hidden] { display: none; }
.message-envoi.ok { background: var(--accent-pale); }
.message-envoi.ko { background: #fde8e6; color: #7a1d14; }
@media (prefers-color-scheme: dark) { .message-envoi.ko { background: #3b1916; color: #ffc9c2; } }
.formulaire .bouton[disabled] { opacity: 0.65; cursor: progress; }
@media (max-width: 860px) {
  .contact .conteneur { grid-template-columns: 1fr; gap: 32px; }
  .deux-colonnes, .choix { grid-template-columns: 1fr; }
  .formulaire { padding: 22px; }
}

/* Questions fréquentes */
.faq details { border-bottom: 1px solid var(--trait); padding: 18px 0; max-width: 860px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform 0.2s; color: var(--accent); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { color: var(--texte-doux); margin: 12px 0 0; max-width: 70ch; }

/* Pied de page */
.pied { padding: 40px 0; border-top: 1px solid var(--trait); color: var(--texte-doux); font-size: 0.95rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.pied nav { display: flex; gap: 20px; flex-wrap: wrap; }
.pied a { color: var(--texte-doux); }

/* Bouton WhatsApp flottant (mobile) */
.wa-flottant { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 999px;
  display: none; place-items: center; background: #1f9d55; color: #fff; box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.45); }
.wa-flottant .ic { width: 30px; height: 30px; }
@media (max-width: 860px) { .wa-flottant { display: grid; } }

/* Apparition au défilement : seulement si le script tourne (classe .js), sinon tout reste visible.
   Désactivée si l'utilisateur limite les animations. */
@media (prefers-reduced-motion: no-preference) {
  .js .apparition { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .js .apparition.visible { opacity: 1; transform: none; }
}

/* Pages légales */
.legal { padding: 56px 0 88px; }
.legal .conteneur { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.15; margin: 0 0 8px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--texte-doux); }
.legal .a-completer { background: #fff4d6; color: #5c4400; padding: 0 4px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { .legal .a-completer { background: #3d3112; color: #ffe08a; } }

/* Les éléments de grille ne doivent jamais dépasser leur colonne (sinon l'image de 960 px élargit la page sur mobile). */
.conteneur > *, .grille > *, .panneau > *, .offres-grille > *, .deux-colonnes > *, .choix > * { min-width: 0; }

/* Offre pilote (encadré au-dessus des offres) */
.pilote { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 32px; align-items: center; margin-bottom: 28px; padding: 32px;
  border-radius: var(--rayon); border: 2px solid var(--rose); background: color-mix(in srgb, var(--rose) 6%, var(--surface)); }
.pilote h3 { font-size: 1.5rem; margin: 0 0 10px; line-height: 1.2; }
.pilote p { margin: 0; color: var(--texte-doux); }
.pilote .pastille { margin-bottom: 12px; }
.pilote-prix { display: grid; gap: 10px; justify-items: start; }
.pilote-prix strong { font-size: 2rem; letter-spacing: -0.02em; line-height: 1; }
.pilote-prix span { color: var(--texte-doux); }
.pilote-lien { color: var(--accent); font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .pilote { grid-template-columns: 1fr; padding: 24px; gap: 20px; } }

/* Calculateur de gain (calculateur.html) */
.cache-visuel { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.calc { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; }
.calc-bloc { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 28px; }
.calc-bloc h2 { font-size: 1.25rem; margin: 0 0 4px; }
.calc-bloc > p { color: var(--texte-doux); margin: 0 0 18px; }
.onglet[aria-pressed="true"] { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.secteurs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.ligne { display: grid; grid-template-columns: 1fr 110px 24px 110px; gap: 10px; align-items: center; padding: 12px 0;
  border-top: 1px solid var(--trait); }
.ligne > span:first-child strong { display: block; font-size: 0.98rem; }
.ligne > span:first-child small { color: var(--texte-doux); font-size: 0.84rem; }
.ligne input { width: 100%; font: inherit; color: var(--texte); background: var(--fond); border: 1px solid var(--trait);
  border-radius: var(--rayon-champ); padding: 8px 10px; text-align: right; }
.ligne .x { text-align: center; color: var(--texte-doux); }
.ligne label { display: block; font-size: 0.72rem; color: var(--texte-doux); margin-bottom: 2px; }
.reglage { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--trait); }
.reglage input { width: 120px; font: inherit; color: var(--texte); background: var(--fond); border: 1px solid var(--trait);
  border-radius: var(--rayon-champ); padding: 8px 10px; text-align: right; }
.resultat { position: sticky; top: 100px; background: var(--bandeau); color: #fff; }
.resultat > p { color: rgb(255 255 255 / 0.75); }
.gros { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 4px; }
.detail { display: grid; gap: 8px; margin: 20px 0; padding: 16px 0; border-top: 1px solid rgb(255 255 255 / 0.2);
  border-bottom: 1px solid rgb(255 255 255 / 0.2); font-size: 0.95rem; }
.detail div { display: flex; justify-content: space-between; gap: 12px; }
.detail b { white-space: nowrap; }
.offre-propo strong { font-size: 1.1rem; }
.offre-propo p { margin: 6px 0; color: rgb(255 255 255 / 0.85); }
.rembourse { display: inline-block; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.14); font-weight: 600; }
.rembourse[hidden] { display: none; }
.pilote-box { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / 0.1); font-size: 0.92rem; }
.actions-calc { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.resultat .bouton-contour { color: #fff; border-color: #fff; }
.bouton-blanc { background: #fff; color: #302386; }
.bouton-blanc:hover { background: #ecebf8; }
.calc-section { padding-top: 120px; }
.reglage small { color: var(--texte-doux); }
/* Barre simple des pages secondaires (calculateur) : un seul bouton, pas de menu déroulant */
.nav.nav-simple { display: flex; }
@media (max-width: 860px) {
  .nav.nav-simple { position: static; flex-direction: row; background: none; border: 0; padding: 0; box-shadow: none; }
  .nav.nav-simple .bouton { margin-top: 0; padding: 8px 14px; font-size: 0.9rem; }
}
.note-calc { font-size: 0.85rem; color: var(--texte-doux); margin-top: 14px; }
.imprime-seul { display: none; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .resultat { position: static; } }
@media (max-width: 560px) {
  .ligne { grid-template-columns: 1fr 1fr; }
  .ligne > span:first-child { grid-column: 1 / -1; }
  .ligne .x { display: none; }
}
@media print {
  .entete, .pied, .secteurs, .actions-calc, .wa-flottant { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; }
  .calc { grid-template-columns: 1fr 1fr; gap: 16px; }
  .calc-bloc { padding: 14px; break-inside: avoid; }
  .resultat { background: #fff; color: #000; border: 2px solid #302386; }
  .resultat > p, .offre-propo p, .detail { color: #000; border-color: #ccc; }
  .ligne { padding: 6px 0; }
  .imprime-seul { display: block; font-weight: 600; margin-top: 8px; }
}

/* ===================== Gaawly (refonte du 23/10/2026) : montrer plutôt qu'expliquer =====================
   Le rose est réservé à « c'est fait » (étape terminée). Une seule animation automatique : le fil du haut de page.
   Les scènes de démonstration se rejouent quand on choisit un onglet (mouvement en réponse à un clic). */
.marque-signe { display: inline-grid; width: 36px; height: 36px; color: var(--accent); flex: none; }
.marque-signe svg { width: 100%; height: 100%; }
.gaawly .logo { gap: 10px; font-size: 1.45rem; letter-spacing: -0.03em; }

/* Haut de page */
.accueil { position: relative; margin-top: -88px; padding: 150px 0 72px; }
.accueil .conteneur { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.accueil h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.045em; margin: 0 0 20px; max-width: 11ch; }
.accueil-sous { font-size: 1.2rem; color: var(--texte-doux); margin: 0 0 32px; max-width: 34ch; }
.accueil-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Le fil : un vrai déroulé, heure par heure, comme un journal qui se remplit */
.fil { margin: 0; padding: 28px 24px 22px; border-radius: 28px; background: var(--surface); border: 1px solid var(--trait);
  box-shadow: 0 40px 80px -50px rgb(48 35 134 / 0.55); }
.fil-etapes { list-style: none; margin: 0; padding: 0 0 0 22px; display: grid; gap: 14px; position: relative; }
.fil-etapes::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--trait); }
.fil-etape { position: relative; display: grid; gap: 4px; }
.fil-etape::before { content: ""; position: absolute; left: -22px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--rose); box-shadow: 0 0 0 4px var(--surface); }
.fil-heure { font-size: 0.78rem; color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.fil-legende { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--trait); font-weight: 700; font-size: 1.05rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .fil-etape { animation: arrive 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i) * 0.55s + 0.3s); }
  .js .fil-legende { animation: arrive 0.6s ease both 2.8s; }
}
@keyframes arrive { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

/* Fragments d'interface (partagés par le fil et la démonstration) */
.bulle { justify-self: start; max-width: 30ch; padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: var(--surface-2);
  font-size: 0.95rem; line-height: 1.35; }
.bulle small, .bulle-moi small { display: block; font-size: 0.72rem; color: var(--texte-doux); }
.bulle-moi { justify-self: end; border-radius: 14px 4px 14px 14px; background: #d9fdd3; color: #10261a; }
.bulle-moi small { text-align: right; color: #3d6b4f; }
.fiche, .notif-mini, .mail, .doc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--trait); }
.fiche .ic, .notif-mini .ic, .mail .ic { width: 22px; height: 22px; color: var(--accent); flex: none; }
.fiche span, .notif-mini span, .mail span, .doc span { display: grid; line-height: 1.25; min-width: 0; }
.fiche small, .notif-mini small, .mail small, .doc small { font-size: 0.78rem; color: var(--texte-doux); }
.notif-mini { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.notif-mini .ic, .notif-mini small { color: inherit; opacity: 0.9; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-off, .tag-on { font-size: 0.8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--trait); }
.tag-on { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.brouillon { padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--accent); font-size: 0.9rem; }
.brouillon small, .valider small, .paye small { display: block; font-size: 0.75rem; color: var(--texte-doux); }
.valider { display: grid; gap: 6px; justify-items: start; }
.bouton-mini { padding: 7px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-texte); font-weight: 600; font-size: 0.9rem; }
.doc-pdf { display: grid !important; place-items: center; width: 34px; height: 40px; border-radius: 6px; background: #b42318;
  color: #fff; font-size: 0.65rem; font-weight: 700; flex: none; }
.lecture { display: flex; gap: 6px; font-variant-numeric: tabular-nums; }
.cle { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-weight: 700; font-size: 1.1rem; }
.cle-on { background: var(--accent); color: var(--accent-texte); }
.chemin { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.9rem; }
.chemin span::after { content: " ›"; color: var(--texte-doux); }
.chemin strong { padding: 4px 10px; border-radius: 8px; background: var(--accent); color: var(--accent-texte); }
.facture-mini { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--trait); }
.facture-mini small { font-size: 0.75rem; color: var(--texte-doux); }
.facture-mini strong { font-size: 1.2rem; }
.trait { height: 6px; border-radius: 3px; background: var(--surface-2); }
.trait.court { width: 60%; }
.paye { display: grid; justify-items: start; gap: 2px; }
.paye .ic { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--rose); color: #fff; }
.paye strong { font-size: 1.2rem; }

/* Démonstration en onglets */
.demo-onglets { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.demo-onglet { font: inherit; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  border-radius: 999px; border: 1px solid var(--trait); background: var(--surface); color: var(--texte); cursor: pointer; }
.demo-onglet[aria-selected="true"] { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.demo-scene[hidden] { display: none; }
.demo-phrase { font-size: 1.15rem; color: var(--texte-doux); margin: 0 0 22px; max-width: 60ch; }
.demo-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: etape; }
.etape { position: relative; display: grid; grid-template-rows: 1fr auto; gap: 12px; padding: 18px; border-radius: 22px;
  background: var(--fond); border: 1px solid var(--trait); counter-increment: etape; }
.etape:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 10px; height: 10px;
  border-top: 2px solid var(--texte-doux); border-right: 2px solid var(--texte-doux); rotate: 45deg; translate: 0 -50%; }
.etape-visuel { display: grid; align-content: center; min-height: 112px; }
.etape-legende { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; }
.etape-legende::before { content: counter(etape); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2); font-size: 0.8rem; flex: none; }
.etape-coche { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .demo-scene.joue .etape { animation: allume 0.5s ease both; animation-delay: calc(var(--i) * 0.7s - 0.5s); }
  .js .demo-scene.joue .etape-legende::before { background: var(--surface-2); color: inherit;
    animation: coche 0.3s ease both; animation-delay: calc(var(--i) * 0.7s); }
}
@keyframes allume { from { opacity: 0.25; filter: grayscale(1); translate: 0 8px; } to { opacity: 1; filter: none; translate: 0 0; } }
@keyframes coche { to { background: var(--rose); color: #fff; } }
.demo-scene .etape-legende::before { background: var(--rose); color: #fff; } /* état final, sans animation */
.demo-plus { margin: 26px 0 0; color: var(--texte-doux); }
.demo-plus a { color: var(--accent); font-weight: 600; }

/* Offres compactes */
.formules-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.formule { display: grid; align-content: start; gap: 10px; padding: 26px; border-radius: 22px; border: 1px solid var(--trait); background: var(--surface); }
.formule h3 { margin: 0; font-size: 1.3rem; }
.formule p { margin: 0; color: var(--texte-doux); }
.formule .bouton { margin-top: 8px; justify-content: center; }
.formule-prix { color: var(--texte) !important; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.formule-prix small { display: block; font-size: 0.9rem; font-weight: 500; color: var(--texte-doux); letter-spacing: 0; }
.formule-pilote { border: 2px solid var(--rose); }
.formules-note { margin: 18px 0 0; font-size: 0.92rem; color: var(--texte-doux); }

@media (max-width: 900px) {
  .accueil { padding: 112px 0 48px; }
  .accueil .conteneur { grid-template-columns: 1fr; gap: 36px; }
  .demo-etapes { grid-template-columns: 1fr; gap: 22px; }
  .etape { grid-template-columns: 1fr; }
  .etape:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -16px; rotate: 135deg; translate: -50% 0; }
  .formules-liste { grid-template-columns: 1fr; }
}
.gaawly .section { padding: 64px 0; }
@media (max-width: 900px) { .gaawly .section { padding: 48px 0; } }

/* Haut de page Gaawly : fond indigo plein + traits de vitesse (le signe du logo, en grand) */
.accueil { background: #302386; color: #fff; overflow: hidden; isolation: isolate; }
.accueil-fond { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.accueil h1 { color: #fff; }
.accueil-sous { color: #d9d5ff; }
.accueil .fil { color: var(--texte); box-shadow: 0 50px 90px -40px rgb(0 0 0 / 0.55); }
.accueil .bouton-blanc { background: #fff; color: #302386; }
.accueil .bouton-blanc:hover { background: #ecebf8; }
@media (prefers-color-scheme: dark) { .accueil { background: #1d1656; } }
@media (prefers-reduced-motion: no-preference) {
  .js .accueil-fond line { animation: file 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .js .accueil-fond line:nth-child(even) { animation-delay: 0.12s; }
}
@keyframes file { from { opacity: 0; translate: -160px 0; } to { opacity: 1; translate: 0 0; } }

/* Métiers : une ligne par métier, icône + nom + bénéfice en 3 ou 4 mots */
.metiers-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metiers-liste li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--trait); }
.metier-icone { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--accent-pale); color: var(--accent); }
.metier-icone .ic { width: 24px; height: 24px; }
.metiers-liste strong { line-height: 1.2; }
.metiers-liste li > span:last-child { font-size: 0.9rem; color: var(--texte-doux); line-height: 1.3; }

/* Comment ça se passe : 3 étapes reliées (vraie séquence), puis les garanties */
.parcours-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.parcours-etapes::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 32px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--rose)); border-radius: 2px; }
.parcours-etapes li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.parcours-etapes .ic { width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: var(--accent); color: var(--accent-texte);
  box-shadow: 0 0 0 6px var(--fond); margin-bottom: 8px; }
.parcours-etapes strong { font-size: 1.1rem; }
.parcours-etapes span { color: var(--texte-doux); font-size: 0.95rem; }
.garanties { list-style: none; margin: 40px 0 0; padding: 18px 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--trait); }
.garanties li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.garanties .ic { width: 22px; height: 22px; color: var(--rose); flex: none; }

@media (max-width: 900px) {
  .metiers-liste { grid-template-columns: 1fr 1fr; }
  .parcours-etapes { grid-template-columns: 1fr; gap: 26px; }
  .parcours-etapes::before { left: 50%; right: auto; top: 32px; bottom: 32px; width: 3px; height: auto; translate: -50% 0;
    background: linear-gradient(180deg, var(--accent), var(--rose)); }
  .garanties { justify-content: flex-start; }
}
@media (max-width: 520px) { .metiers-liste { grid-template-columns: 1fr; } }

/* Page 404 */
.introuvable { padding-top: 160px !important; min-height: 70vh; }
.introuvable h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; margin: 0 0 14px; }
.introuvable p { color: var(--texte-doux); margin: 0 0 28px; font-size: 1.15rem; }
