/* ============================================================
   FLOWIRE — feuille commune de la landing (flowire.studio)
   Thème clair unique. Couleurs de texte vérifiées : >= 4,5:1 sur
   leurs fonds (3:1 à partir de 24 px). #A89092 = décor seulement.
   Les écrans simulés du logiciel ont leur propre feuille : ecrans.css.
   ============================================================ */

:root {
  --fond: #FBF5F0;
  --surface: #FFFDFB;
  --surface-2: #FAF3EE;
  --surface-3: #F4EAE4;
  --surface-4: #F0E5DF;
  --trait: #EADBD4;
  --trait-fort: #D9C3C0;
  --encre: #3A2A2E;
  --encre-2: #5E4B4E;
  --encre-3: #6E585B;
  --encre-4: #7A6164;
  --accent: #6B5256;
  --accent-survol: #574145;
  --sombre: #34262A;
  --sombre-2: #43333A;
  --pied: #261B1E;
  --sur-sombre: #FBF5F0;
  --sur-sombre-2: #E3D3CE;
  --sur-sombre-3: #D9C3C0;
  --sur-sombre-accent: #E9D6D0;
  --sauge: #4D6350;
  --sauge-fonce: #3B4D3E;
  --sauge-fond: #E6EDE4;
  --sauge-fond-2: #E1E5DC;
  --alerte: #9E4F45;
  --lavande: #E9E0E9;
  --deco: #A89092;

  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --r-pilule: 999px;
  --r-petit: 10px;
  --r-carte: 18px;
  --r-bloc: 24px;
  --r-grand: 28px;

  --ombre-fenetre: 0 60px 120px -50px rgba(52, 38, 42, 0.35);
  --largeur: 1240px;
  --gouttiere: 24px;
  --entete-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 16px); }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--encre); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 600; }
button { font: inherit; color: inherit; }
a, button, summary { -webkit-tap-highlight-color: rgba(107, 82, 86, 0.12); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.bloc--sombre :focus-visible, .pied :focus-visible, .bandeau :focus-visible, .formule--phare :focus-visible { outline-color: #F1D9D2; }
.bloc--sombre .formulaire :focus-visible { outline-color: var(--accent); }
.bloc--sombre a:not(.bouton), .formule--phare a:not(.bouton) { color: var(--sur-sombre); }
.bloc--sombre a:not(.bouton):hover, .formule--phare a:not(.bouton):hover { color: #FFFFFF; }
.formulaire a:not(.bouton) { color: var(--accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.saut {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--encre); color: var(--sur-sombre); padding: 12px 18px; border-radius: var(--r-pilule);
  font-weight: 600; text-decoration: none;
}
.saut:focus { top: 12px; color: var(--sur-sombre); }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }

/* ---------- Typographie ---------- */
.titre-1, .titre-2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.titre-1 { font-size: clamp(2.9rem, 6.6vw, 5.6rem); line-height: 1; }
.titre-2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.04; }
.titre-1 em, .titre-2 em { font-style: italic; color: var(--encre-4); }
.bloc--rose .titre-2 em { color: var(--accent); }
.bloc--sombre .titre-2 em { color: var(--sur-sombre-accent); }
.titre-3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }

.surtitre {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; font-weight: 600; color: var(--encre-4);
}
.surtitre svg { flex: none; width: 28px; height: 10px; }
.bloc--rose .surtitre { color: var(--accent); }
.bloc--sombre .surtitre { color: var(--sur-sombre-3); }

.chapeau { font-size: 1.125rem; line-height: 1.65; color: var(--encre-2); max-width: 62ch; }
.bloc--rose .chapeau { color: #4E3D40; }
.bloc--sombre .chapeau { color: var(--sur-sombre-2); }
.note { font-size: 0.9rem; color: var(--encre-3); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 26px;
  border-radius: var(--r-pilule); border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.bouton--grand { min-height: 56px; padding: 17px 30px; font-size: 1.0625rem; }
.bouton--plein { background: var(--accent); color: #FFFFFF; }
.bouton--plein:hover { background: var(--accent-survol); color: #FFFFFF; }
.bouton--clair { background: var(--surface); color: var(--encre); border-color: var(--trait-fort); }
.bouton--clair:hover { border-color: var(--accent); color: var(--encre); }
.bouton--doux { background: var(--surface-3); color: var(--encre); }
.bouton--doux:hover { background: #EBDCD5; color: var(--encre); }
.bouton--inverse { background: var(--sur-sombre); color: var(--sombre); }
.bouton--inverse:hover { background: #FFFFFF; color: var(--sombre); }
.bouton--bloc { width: 100%; }
.lien-fort { font-weight: 600; text-decoration: none; }
.lien-fort:hover { text-decoration: underline; }

/* ---------- Bandeau d'annonce ---------- */
.bandeau {
  background: var(--sombre); color: #F4EAE6; font-size: 0.875rem; line-height: 1.5;
  padding: 11px 16px; text-align: center;
}
.bandeau strong { color: var(--sur-sombre); }
.bandeau a { color: #F1D9D2; font-weight: 600; margin-left: 8px; }
.bandeau a:hover { color: #FFFFFF; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 245, 240, 0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--trait);
}
.entete__barre {
  position: relative;
  max-width: var(--largeur); margin: 0 auto; padding: 12px var(--gouttiere);
  min-height: var(--entete-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-height: 44px; }
.logo svg { width: 34px; height: 27px; }
.logo__mot { font-weight: 600; font-size: 1.3rem; letter-spacing: 0.1em; color: var(--encre-4); }
.logo:hover .logo__mot { color: var(--encre); }

.nav { display: flex; align-items: center; gap: 2px; font-size: 0.95rem; font-weight: 500; }
.nav__lien, .nav__bouton {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 10px 14px; border-radius: var(--r-pilule);
  color: var(--encre); text-decoration: none; background: transparent; border: 0; cursor: pointer;
}
.nav__lien:hover, .nav__bouton:hover, .nav__bouton[aria-expanded="true"] { background: var(--surface-3); color: var(--encre); }
.nav__lien[aria-current="page"] { background: var(--surface-3); }
.nav__bouton svg { width: 12px; height: 12px; transition: transform .2s ease; }
.nav__bouton[aria-expanded="true"] svg { transform: rotate(180deg); }

.entete__actions { display: flex; align-items: center; gap: 8px; }
.entete__demo { font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 12px 14px; min-height: 44px; display: inline-flex; align-items: center; }
.entete__actions .bouton { min-height: 44px; padding: 11px 18px; font-size: 0.95rem; }

/* Menu « Le logiciel » */
.mega {
  position: absolute; left: var(--gouttiere); right: var(--gouttiere); top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--trait); border-radius: 26px;
  box-shadow: 0 40px 80px -30px rgba(52, 38, 42, 0.35);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.mega[hidden] { display: none; }
.mega__tete { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mega__titre { font-size: 0.95rem; font-weight: 600; color: var(--encre-4); }
.mega__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px; list-style: none; }
.mega__grille a {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px;
  color: var(--encre); text-decoration: none;
}
.mega__grille a:hover { background: var(--surface-2); }
.mega__grille a[aria-current="page"] { background: var(--surface-3); }
.mega__grille b { font-size: 0.95rem; }
.mega__grille span { font-size: 0.82rem; color: var(--encre-3); }
.mega__corps { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.mega__groupe { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mega__groupe--etroit { flex: 1 1 240px; padding-left: 28px; border-left: 1px solid var(--trait); }
.mega__groupe--etroit .mega__grille { grid-template-columns: minmax(0, 1fr); }
.mega__groupe-titre { padding: 0 14px; font-size: 0.82rem; font-weight: 600; color: var(--encre-4); }
.mega__groupe .mega__grille + .mega__groupe-titre { margin-top: 12px; }
.fermer {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center;
}
.fermer svg { width: 14px; height: 14px; }

/* Bouton et menu mobiles */
.burger {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--trait-fort); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger svg { width: 18px; height: 18px; }
.menu-mobile {
  position: fixed; inset: 0; z-index: 60; background: var(--fond);
  display: flex; flex-direction: column; overflow-y: auto;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile__tete {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--trait); min-height: var(--entete-h);
}
.menu-mobile__corps { padding: 20px 16px 32px; display: flex; flex-direction: column; gap: 22px; }
.menu-mobile__liens { list-style: none; display: flex; flex-direction: column; }
.menu-mobile__liens a {
  display: flex; align-items: center; min-height: 52px; padding: 6px 4px;
  border-bottom: 1px solid var(--trait); color: var(--encre); text-decoration: none;
  font-size: 1.15rem; font-weight: 600;
}
.menu-mobile__liens a[aria-current="page"] { color: var(--accent); }
.menu-mobile details { border-bottom: 1px solid var(--trait); }
.menu-mobile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 6px 4px; font-size: 1.15rem; font-weight: 600;
}
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile summary svg { width: 14px; height: 14px; transition: transform .2s ease; }
.menu-mobile details[open] summary svg { transform: rotate(180deg); }
.menu-mobile details ul { list-style: none; padding: 0 0 12px; }
.menu-mobile__sous { padding: 6px 4px 2px 12px; font-size: 0.85rem; font-weight: 600; color: var(--encre-4); }
.menu-mobile details a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.menu-mobile details a {
  display: flex; align-items: center; min-height: 44px; padding: 4px 4px 4px 12px;
  color: var(--encre-2); text-decoration: none; font-weight: 500;
}
.menu-mobile__actions { display: flex; flex-direction: column; gap: 10px; }
body.menu-ouvert { overflow: hidden; }

/* ---------- Sections ---------- */
.bloc { padding: 112px 0; }
.bloc--surface { background: var(--surface); border-top: 1px solid var(--surface-4); }
.bloc--rose { background: var(--surface-3); }
.bloc--sombre { background: var(--sombre); color: var(--sur-sombre); position: relative; overflow: hidden; }
.bloc__tete {
  display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between;
  margin-bottom: 48px;
}
.bloc__tete > div { flex: 1 1 520px; display: flex; flex-direction: column; gap: 18px; }
.bloc__tete > .chapeau { flex: 1 1 360px; }
.bloc__tete--centre { flex-direction: column; align-items: center; text-align: center; }
.bloc__tete--centre > div { flex: none; align-items: center; }
.bloc__tete--centre .chapeau { margin: 0 auto; }
.bloc__tete--centre > .chapeau { flex: none; }
.vague { position: absolute; pointer-events: none; }

/* ---------- Héros ---------- */
.heros { position: relative; overflow: hidden; padding: 96px 0 72px; }
.heros__forme { position: absolute; right: -220px; top: 40px; width: 860px; height: 684px; pointer-events: none; }
.heros__ondes { position: absolute; left: 0; top: 380px; width: 100%; height: 200px; pointer-events: none; }
.heros__corps { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.heros .titre-1 { max-width: 15ch; }
.heros .chapeau { max-width: 47rem; font-size: 1.2rem; }
.pastille {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-pilule);
  padding: 8px 16px 8px 10px; font-size: 0.9rem; font-weight: 500; color: var(--encre-2);
}
.souffle { position: relative; width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.souffle::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #EBDCD5; animation: souffle 8s ease-in-out infinite; }
.souffle::after { content: ''; position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--deco); }
@keyframes souffle { 0%, 100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.rassurance { display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: center; font-size: 0.9rem; color: var(--encre-3); font-weight: 500; list-style: none; }
.rassurance li + li::before { content: '~'; color: #C9B4B1; margin-right: 22px; }
.heros__legende { font-size: 0.9rem; color: var(--encre-3); }
.tableau-indice { display: none; font-size: 0.85rem; color: var(--encre-3); margin-bottom: 8px; }
.tableau.tableau--etroit { min-width: 0; }
.deux-colonnes > .tableau-cadre { align-self: flex-start; }

.confiance { padding: 8px 0 64px; }
.confiance ul { list-style: none; display: flex; gap: 12px 36px; flex-wrap: wrap; justify-content: center; font-size: 0.95rem; font-weight: 500; color: var(--encre-2); }
.confiance li { display: flex; align-items: center; gap: 8px; }
.confiance li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--deco); }

/* ---------- Quotidien ---------- */
.deux-colonnes { display: flex; flex-wrap: wrap; gap: 56px; }
.deux-colonnes > * { flex: 1 1 460px; min-width: 0; }
.pile { display: flex; flex-direction: column; gap: 22px; }
.tirets { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 1rem; }
.tirets li { display: flex; gap: 14px; align-items: flex-start; }
.tirets li::before { content: ''; flex: 0 0 18px; height: 2px; margin-top: 12px; background: var(--deco); border-radius: 2px; }
.bloc--sombre .tirets li { color: #F4EAE6; }
.bloc--sombre .tirets li::before { background: var(--sur-sombre-3); }
.cartes-benefices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-content: start; list-style: none; }
.cartes-benefices li { background: var(--surface); border-radius: var(--r-bloc); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.cartes-benefices h3 { font-size: 1.2rem; font-weight: 600; }
.cartes-benefices p { font-size: 0.95rem; line-height: 1.6; color: var(--encre-2); }
.cartes-benefices svg { width: 30px; height: 30px; }

/* ---------- Disciplines ---------- */
.disciplines { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; list-style: none; }
.disciplines li { position: relative; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-bloc); padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s ease; }
.disciplines svg { width: 32px; height: 32px; }
.disciplines h3 { font-size: 1.2rem; font-weight: 600; }
.disciplines p { font-size: 0.95rem; line-height: 1.55; color: var(--encre-2); }
/* La carte entière mène à la page de la discipline : le lien du titre s'étend sur la carte. */
.disciplines h3 a { color: var(--encre); text-decoration: none; }
.disciplines h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-bloc); }
.disciplines h3 a:focus-visible { outline: none; }
.disciplines h3 a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.disciplines li:hover { border-color: var(--accent); }
.disciplines__suite { margin-top: auto; font-size: 0.9rem; font-weight: 600; color: var(--accent); }

/* ---------- Application élèves ---------- */
.appli { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; position: relative; }
.appli__texte { flex: 1 1 480px; min-width: 0; }
.appli__telephone { flex: 1 1 340px; display: flex; justify-content: center; }
.encart-sombre { background: var(--sombre-2); border-radius: 22px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.encart-sombre__titre { font-size: 0.9rem; font-weight: 600; color: var(--sur-sombre-3); }
.encart-sombre p { font-size: 1rem; line-height: 1.6; color: #F4EAE6; }
.encart-sombre strong { color: var(--sur-sombre); }
.bloc--sombre .vague { left: 0; bottom: 0; width: 100%; height: 300px; }

/* ---------- Migration ---------- */
.etapes { list-style: none; display: flex; flex-direction: column; }
.etapes li { display: flex; gap: 22px; }
.etapes__repere { display: flex; flex-direction: column; align-items: center; }
.etapes__num {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--trait-fort);
  font-family: var(--serif); font-style: italic; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.etapes li:last-child .etapes__num { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.etapes__fil { width: 1.5px; flex: 1; min-height: 24px; background: var(--trait-fort); }
.etapes__texte { padding: 8px 0 28px; display: flex; flex-direction: column; gap: 6px; }
.etapes li:last-child .etapes__texte { padding-bottom: 0; }
.etapes__texte strong { font-size: 1.2rem; }
.etapes__texte span { color: var(--encre-2); }
.carte-claire { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-grand); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.coches { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; }
.coches li { display: flex; gap: 10px; align-items: flex-start; }
.coches li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 4px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%234D6350' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.bloc--sombre .coches li::before, .formule--phare .coches li::before, .coches--inverse li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23E9D6D0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chiffres { display: flex; gap: 14px; }
.chiffres div { flex: 1; background: var(--surface-3); border-radius: var(--r-bloc); padding: 24px; }
.chiffres b { display: block; font-size: 2.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.chiffres span { font-size: 0.9rem; color: var(--encre-2); }

/* ---------- Tableaux (comparatif, limites) ---------- */
.tableau-cadre { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-grand); }
.tableau { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.95rem; }
.tableau th, .tableau td { text-align: left; padding: 16px 26px; vertical-align: top; }
.tableau thead th { padding-top: 22px; padding-bottom: 22px; font-size: 0.9rem; font-weight: 600; color: var(--encre-3); }
.tableau thead th.tableau__nous { font-size: 1rem; font-weight: 600; color: var(--encre); }
.tableau tbody tr { border-top: 1px solid var(--surface-4); }
.tableau tbody th { font-weight: 600; }
.tableau .tableau__nous { background: #F9F1ED; }
.tableau thead .tableau__nous { background: var(--surface-3); }
.tableau td.tableau__autres { color: var(--encre-2); }
.oui, .non { font-weight: 600; margin-right: 4px; }
.oui { color: var(--sauge); }
.non { color: var(--alerte); }
.tableau__groupe th { padding: 18px 26px 6px; font-size: 0.85rem; font-weight: 600; color: var(--encre-4); border-top: 0; }
.tableau tbody tr.tableau__groupe { border-top: 0; }
.tableau--limites th, .tableau--limites td { padding: 12px 22px; }
.tableau--limites tbody th { font-weight: 500; }
.tableau--limites thead small { display: block; font-size: 0.82rem; font-weight: 500; color: var(--encre-3); }
.tableau .vide { color: var(--encre-3); }

/* ---------- Socle ---------- */
.socle { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; list-style: none; }
.socle li { background: var(--surface); border-radius: var(--r-grand); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.socle h3 { font-size: 1.3rem; font-weight: 600; }
.socle p { font-size: 0.95rem; line-height: 1.65; color: var(--encre-2); }
.socle p strong { color: var(--encre); }
.socle .lien-fort { margin-top: auto; }
.bandeau-sombre { margin-top: 16px; background: var(--sombre); color: #F4EAE6; border-radius: var(--r-grand); padding: 32px; display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; }
.bandeau-sombre h3 { flex: 0 0 auto; font-size: 1.3rem; font-weight: 600; color: var(--sur-sombre); }
.bandeau-sombre p { flex: 1 1 520px; font-size: 0.95rem; line-height: 1.65; color: var(--sur-sombre-2); }
.bandeau-sombre strong { color: var(--sur-sombre); }

/* ---------- Tarifs ---------- */
.formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: stretch; list-style: none; }
.formule { background: var(--surface); border: 1px solid var(--trait); border-radius: 32px; padding: 36px; display: flex; flex-direction: column; gap: 20px; position: relative; overflow: hidden; }
.formule h3 { font-size: 1.4rem; font-weight: 600; }
.formule__prix { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.formule__prix b { font-size: 3.5rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.formule__prix span { font-size: 0.95rem; color: var(--encre-3); }
.formule__devis { font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; }
.formule__frais { font-size: 0.9rem; line-height: 1.7; color: var(--encre-2); background: var(--surface-2); border-radius: 16px; padding: 12px 14px; }
.formule__frais strong { color: var(--encre); }
.formule__resume { font-size: 0.95rem; color: var(--encre-2); }
.formule .bouton { margin-top: auto; }
.formule--phare { background: var(--sombre); border-color: var(--sombre); color: var(--sur-sombre); }
.formule--phare .formule__prix span, .formule--phare .formule__resume { color: var(--sur-sombre-2); }
.formule--phare .formule__frais { background: var(--sombre-2); color: var(--sur-sombre-2); }
.formule--phare .formule__frais strong { color: var(--sur-sombre); }
.formule__tete { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.etiquette { font-size: 0.78rem; font-weight: 600; background: var(--sur-sombre-accent); color: var(--sombre); padding: 6px 12px; border-radius: var(--r-pilule); }
.formule__forme { position: absolute; right: -120px; top: -90px; width: 260px; height: 207px; opacity: 0.1; pointer-events: none; }
.formule > *:not(.formule__forme) { position: relative; }
.engagements { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; font-size: 0.9rem; font-weight: 500; color: var(--encre-2); margin-top: 32px; }
.engagements li + li::before { content: '~'; color: #C9B4B1; margin-right: 28px; }
.comparer { display: none; justify-content: center; margin-top: 32px; }
.js .comparer { display: flex; }
.limites { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.js .limites[hidden] { display: none; }
.limites__tete { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.limites__tete h3 { font-size: 1.6rem; font-weight: 600; }
.limites__tete p { color: var(--encre-2); }
.frais-detail { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.frais-detail h3 { font-size: 1.2rem; font-weight: 600; }
.frais-detail dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 0.95rem; }
.frais-detail dt { color: var(--encre-2); }
.frais-detail dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.faq__intro { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; align-self: flex-start; position: sticky; top: calc(var(--entete-h) + 32px); }
.faq__liste { flex: 999 1 560px; min-width: 0; border-top: 1px solid var(--trait); }
.faq__liste details { border-bottom: 1px solid var(--trait); }
.faq__liste summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 4px; font-size: 1.125rem; font-weight: 600; line-height: 1.4;
}
.faq__liste summary::-webkit-details-marker { display: none; }
.faq__liste summary::after {
  content: '+'; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--surface-3);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 400;
  transition: transform .3s ease;
}
.faq__liste details[open] summary::after { transform: rotate(45deg); }
.faq__liste details p { padding: 0 4px 22px; font-size: 1rem; line-height: 1.7; color: var(--encre-2); max-width: 68ch; }
.faq__liste details p + p { margin-top: -10px; }
.faq__liste details strong { color: var(--encre); }

/* ---------- Appel final et formulaire ---------- */
.essai { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; position: relative; }
.essai__texte { flex: 1 1 480px; min-width: 0; }
.essai .vague-logo { position: absolute; left: -160px; bottom: -120px; width: 620px; height: 493px; opacity: 0.07; pointer-events: none; }
.formulaire { flex: 1 1 400px; min-width: 0; background: var(--fond); color: var(--encre); border-radius: 32px; padding: 36px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.formulaire h3 { font-size: 1.5rem; font-weight: 600; }
.formulaire__aide { font-size: 0.95rem; color: var(--encre-2); }
.champ { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.champ input {
  font: inherit; font-weight: 400; font-size: 1rem; min-height: 50px; padding: 13px 16px;
  border: 1px solid var(--trait-fort); border-radius: 14px; background: var(--surface); color: var(--encre);
}
.champ input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.situation { border: 0; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.situation legend { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.situation label {
  flex: 1 1 160px; display: flex; align-items: center; gap: 10px; min-height: 50px;
  border: 1px solid var(--trait-fort); background: var(--surface); border-radius: 14px; padding: 12px 14px; font-size: 0.95rem; cursor: pointer;
}
.situation input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.situation label:has(input:checked) { border-color: var(--accent); background: var(--surface-2); }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__erreur { color: var(--alerte); font-size: 0.9rem; font-weight: 500; }
.formulaire__erreur[hidden] { display: none; }
.formulaire .cf-turnstile { min-height: 65px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--pied); color: #D9C9C4; padding: 80px 0 40px; }
.pied a { color: #D9C9C4; text-decoration: none; }
.pied a:hover { color: #FFFFFF; text-decoration: underline; }
.pied__haut { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.pied__marque { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.pied__marque .logo__mot { color: #F4EAE6; }
.pied__devise { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.3; color: #F4EAE6; }
.pied__colonnes { display: flex; gap: 40px 64px; flex-wrap: wrap; font-size: 0.95rem; }
.pied__colonnes nav, .pied__colonnes div { display: flex; flex-direction: column; gap: 4px; }
.pied__colonnes h2 { font-size: 0.95rem; font-weight: 600; color: #F4EAE6; margin-bottom: 6px; }
.pied__colonnes ul { list-style: none; display: flex; flex-direction: column; }
.pied__colonnes li a { display: inline-flex; align-items: center; min-height: 36px; }
.pied__bas { margin-top: 48px; border-top: 1px solid #45363A; padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; }
.pied__souffle { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--sur-sombre-accent); }
.legal-marks { margin-top: 20px; font-size: 0.75rem; line-height: 1.6; color: #B8A6A1; max-width: 110ch; }

/* ---------- Pages de texte (légal) ---------- */
.page-texte { padding: 72px 0 112px; }
.page-texte .conteneur { max-width: 860px; }
.page-texte__tete { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.page-texte__maj { font-size: 0.9rem; color: var(--encre-3); }
.prose { font-size: 1rem; line-height: 1.75; color: var(--encre-2); }
.prose h2 { font-size: 1.3rem; font-weight: 600; color: var(--encre); margin: 40px 0 12px; line-height: 1.35; }
.prose h3 { font-size: 1.05rem; font-weight: 600; color: var(--encre); margin: 24px 0 8px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { padding-left: 1.25em; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: var(--encre); }
.prose a { overflow-wrap: anywhere; }
.sommaire { background: var(--surface-2); border-radius: var(--r-carte); padding: 20px 24px; margin-bottom: 32px; }
.sommaire h2 { margin: 0 0 10px; font-size: 1rem; }
.sommaire ul { list-style: none; columns: 2 240px; column-gap: 32px; font-size: 0.95rem; }
.sommaire li { margin-bottom: 4px; break-inside: avoid; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .entete__demo, .entete__actions .bouton--plein { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 900px) {
  .heros__legende { display: none; }
  .tableau-indice { display: block; }
  .bloc { padding: 72px 0; }
  .heros { padding: 64px 0 56px; }
  .heros__forme { width: 560px; height: 446px; right: -260px; }
  .faq { gap: 32px; }
  .faq__intro { position: static; }
}
@media (max-width: 640px) {
  :root { --gouttiere: 16px; --entete-h: 64px; }
  .entete__actions .bouton--clair { padding: 10px 14px; }
  .logo__mot { font-size: 1.1rem; }
  .actions { flex-direction: column; align-items: stretch; width: 100%; }
  .actions .bouton { width: 100%; }
  .rassurance li + li::before, .engagements li + li::before { content: none; }
  .rassurance, .engagements { flex-direction: column; align-items: center; gap: 4px; }
  .bloc__tete { margin-bottom: 32px; }
  .formule { padding: 28px 22px; }
  .formulaire { padding: 26px 20px; }
  .chiffres { flex-direction: column; }
  .carte-claire, .socle li, .bandeau-sombre { padding: 24px; }
  .tableau th, .tableau td { padding: 14px 16px; }
  .pied { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Pages secondaires (tarifs, pages légales) ---------- */
.heros--page { padding: 80px 0 40px; }
.heros--page .titre-1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); max-width: 19ch; }
.heros--page .heros__forme { top: -40px; }
.bloc--serre { padding-top: 40px; }
.socle--quatre { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.appel { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.appel .chapeau { max-width: 40rem; }

/* ---------- Pages de fonctionnalités, de discipline et de migration ---------- */
/* Fil d'Ariane : occupe la place de la pastille dans le héros. */
.ariane {
  display: inline-flex; max-width: 100%; padding: 0 6px;
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-pilule);
  font-size: 0.9rem; font-weight: 500; color: var(--encre-2);
}
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.ariane li { display: inline-flex; align-items: center; }
.ariane li + li::before { content: '/'; color: var(--encre-4); margin: 0 2px; }
.ariane a, .ariane [aria-current] { display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px; border-radius: var(--r-pilule); }
.ariane a { color: var(--encre-2); text-decoration: none; }
.ariane a:hover { color: var(--encre); background: var(--surface-3); }
.ariane [aria-current] { color: var(--encre); font-weight: 600; }

.heros--fonction { padding-bottom: 88px; }
.heros--fonction .heros__corps { gap: 24px; }
.heros__ecran { width: 100%; max-width: 1180px; margin-top: 28px; }

/* Ce que montre l'écran du héros : quatre annotations, en texte lisible. */
.reperes {
  list-style: none; width: 100%; max-width: 1180px; margin-top: 40px; text-align: left;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 32px;
}
.reperes li { border-top: 2px solid var(--trait-fort); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.reperes h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.reperes p { font-size: 0.95rem; line-height: 1.6; color: var(--encre-2); }

/* Rangée texte + visuel, inversée une section sur deux sur grand écran. */
.rangee { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.rangee > .pile { flex: 1 1 400px; min-width: 0; }
.rangee__visuel { flex: 1.3 1 520px; min-width: 0; }
.rangee__visuel--etroit { flex: 1 1 360px; display: flex; justify-content: center; }
.rangee--inverse { flex-direction: row-reverse; }
.rangee__visuel .fenetre__corps { min-height: 0; }
.titre-2--section { font-size: clamp(2.1rem, 3.8vw, 3.2rem); }
.pile > .lien-fort { align-self: flex-start; }
.lien-fort { display: inline-flex; align-items: center; min-height: 44px; }
.lien-fort--suite { margin-top: 20px; }
.bloc__tete > .lien-fort { flex: none; }
.bloc--surface .socle li { background: var(--surface-2); }
.carte-claire--large { margin-top: 16px; }
.carte-claire .etapes__texte span { font-size: 0.95rem; line-height: 1.6; }

/* Encadré d'honnêteté : ce que le logiciel ne fait pas. */
.limite { border-left: 3px solid var(--deco); padding: 4px 0 4px 18px; font-size: 0.95rem; line-height: 1.6; color: var(--encre-2); }
.limite strong { color: var(--encre); }
.socle + .limite { margin-top: 24px; max-width: 78ch; }

/* Réglages lisibles d'une catégorie (pages par discipline). */
.carte-claire h3 { font-size: 1.3rem; font-weight: 600; }
.carte-claire__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.carte-claire__tete span { font-size: 0.9rem; color: var(--encre-3); }
.regles { margin: 0; display: grid; grid-template-columns: minmax(min(9em, 50%), 1fr) auto; font-size: 0.95rem; }
.regles dt, .regles dd { padding: 10px 0; border-top: 1px solid var(--surface-4); }
.regles dt:first-of-type, .regles dt:first-of-type + dd { border-top: 0; }
.regles dt { color: var(--encre-2); }
.regles dd { margin: 0; padding-left: 16px; font-weight: 600; text-align: right; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }

/* Liens vers les fonctions voisines, en bas de page. */
.voisins { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.voisins a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 44px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-carte);
  color: var(--encre); text-decoration: none; transition: border-color .2s ease;
}
.voisins a:hover { border-color: var(--accent); color: var(--encre); }
.voisins b { font-size: 1.05rem; }
.voisins span { font-size: 0.9rem; line-height: 1.5; color: var(--encre-2); }
.bloc--rose .voisins a { border-color: transparent; }
.bloc--rose .voisins a:hover { border-color: var(--accent); }

/* Migration : ce qui est repris, ce qui reste. */
.reprise { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.reprise__reste { background: transparent; border-style: dashed; }
.reprise__reste .tirets li { color: var(--encre-2); }
.a-faire { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.a-faire li { background: var(--surface); border-radius: var(--r-carte); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.a-faire h3 { font-size: 1.05rem; font-weight: 600; }
.a-faire p { font-size: 0.95rem; line-height: 1.6; color: var(--encre-2); }

@media (min-width: 901px) {
  .rangee--haut { align-items: flex-start; }
}
@media (max-width: 900px) {
  /* Une seule ligne : en colonne et en « wrap », la ligne prendrait la largeur
     minimale du plus large des visuels (grille des machines, 640 px). */
  .rangee, .rangee--inverse { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 36px; }
  .rangee > .pile, .rangee__visuel { flex: none; }
  .heros--fonction { padding-bottom: 64px; }
  .reperes { margin-top: 28px; }
}
@media (max-width: 640px) {
  .ariane { font-size: 0.85rem; }
  .ariane a, .ariane [aria-current] { padding: 0 7px; }
  .a-faire li { padding: 20px; }
}
