/* 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;
}

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); }

/* 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: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--bandeau); color: #ffffff; }
.logo-marque .ic { width: 20px; height: 20px; color: var(--rose); }
.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); }
.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 */
.auto-carte { transition: translate 0.6s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.6s cubic-bezier(0.32, 0.72, 0, 1); }
@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: #157a41; }
.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); }
@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 input:checked + label { border-color: var(--accent); background: var(--accent-pale); color: var(--texte); }
.choix input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 600; }
.champ input, .champ textarea { font: inherit; color: var(--texte); background: var(--fond); border: 1px solid #9aa8a1;
  border-radius: var(--rayon-champ); padding: 12px 14px; width: 100%; }
.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; }
@media (prefers-color-scheme: dark) { .champ .erreur { color: #ff8f84; } .champ input, .champ textarea { border-color: #4a5a52; } }
.champ [aria-invalid="true"] { border-color: #b42318; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.message-envoi { 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; }
.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; }
.faq details { max-width: 860px; }

/* 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; }
body { overflow-x: clip; }
