/* Cembè Conseil & Services - feuille de style
   Mise en page : base sobre façon Apple (grands titres, blancs généreux, récit au défilement)
   + quelques effets façon React Bits réécrits sans React (texte flouté, mot tournant,
   carte projecteur, bouton aimanté, révélation de phrase au défilement). */

:root {
  --encre: #1A0B3D;      /* texte principal, sections sombres */
  --nuit: #120828;       /* fond des sections logiciels */
  --mauve: #6C19FF;      /* couleur de la charte Cembè */
  --mauve-fonce: #4A0FB8;
  --mauve-doux: #B898FF;
  --lilas: #F4F2FA;      /* gris mauve clair de la charte */
  --lilas-2: #EAE3FB;
  --papier: #FFFFFF;
  --gris: #5C5473;
  --trait: #E4DDF5;
  --corail: #FF6B5A;     /* réservé à Cembè école */
  --menthe: #0A9E84;     /* coches et confirmations */
  --erreur: #C63A2B;

  --f-titre: "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-texte: "Karla", "Segoe UI", system-ui, sans-serif;

  --r-grand: 32px;
  --r-moyen: 22px;
  --ombre: 0 30px 60px -36px rgba(26, 11, 61, .55);
  --haut-sur: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-texte); font-size: 17px; line-height: 1.65;
  color: var(--encre); background: var(--papier); overflow-x: clip; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--f-titre); font-variation-settings: "wdth" 112; font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em; margin: 0; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; max-width: 64ch; }
a { color: var(--mauve); }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; height: auto; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--mauve); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
section[id], header[id] { scroll-margin-top: 108px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.surtitre { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mauve); }
.chapeau { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--gris); line-height: 1.55; }
.icone { width: 24px; height: 24px; flex: none; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: 999px;
  border: 2px solid var(--mauve); background: var(--mauve); color: #fff;
  transition: background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn:hover { background: var(--mauve-fonce); border-color: var(--mauve-fonce); box-shadow: 0 16px 30px -16px rgba(108, 25, 255, .9); }
.btn-vide { background: transparent; color: var(--mauve); }
.btn-vide:hover { background: var(--lilas); color: var(--mauve-fonce); border-color: var(--mauve); box-shadow: none; }
.btn-clair { background: #fff; border-color: #fff; color: var(--encre); }
.btn-clair:hover { background: var(--lilas-2); border-color: var(--lilas-2); color: var(--encre); }
.lien-fleche { font-weight: 700; color: var(--mauve); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.lien-fleche:hover { text-decoration: underline; }

/* ---------- barre du haut et navigation ---------- */
.barre { background: var(--encre); color: #D9CDF7; font-size: .84rem; }
.barre .wrap { display: flex; gap: 8px 22px; justify-content: space-between; align-items: center; padding-block: 8px; flex-wrap: wrap; }
.barre a { color: #fff; text-decoration: none; }
.barre a:hover { text-decoration: underline; }
.barre .slogan { color: #fff; font-weight: 700; }
.barre .icone { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; color: var(--mauve-doux); }
.barre .contacts { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.avec-icones li { display: flex; gap: 10px; align-items: center; }
.avec-icones .icone { width: 17px; height: 17px; color: var(--mauve-doux); }
.note-outil { margin-top: 12px; font-size: .88rem; color: var(--gris); }

.nav {
  position: sticky; top: var(--haut-sur); z-index: 60;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--trait);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 8px; position: relative; }
.marque img { height: 84px; width: auto; }
.liens { display: flex; gap: 6px; align-items: center; }
.liens a { color: var(--encre); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .2s ease, color .2s ease; }
.liens a:hover { background: var(--lilas); }
.liens a.actif { background: var(--lilas-2); color: var(--mauve-fonce); }
.liens .btn { padding: 10px 18px; font-size: .92rem; color: #fff; margin-left: 6px; }
.liens .btn:hover { background: var(--mauve-fonce); color: #fff; }
.langue a { font-weight: 700; font-size: .85rem; letter-spacing: .06em; border: 2px solid var(--trait); padding: 6px 12px; }
.langue a:hover { border-color: var(--mauve); background: #fff; color: var(--mauve-fonce); }
.burger { display: none; background: var(--lilas); border: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; place-items: center; color: var(--encre); }

/* ---------- accueil ---------- */
.accueil { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); overflow: clip; }
.accueil::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(108, 25, 255, .14), rgba(108, 25, 255, 0)); pointer-events: none;
}
.accueil-grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.accueil-texte { display: grid; gap: 22px; min-width: 0; }
.accueil h1 .mot { display: inline-block; }
.verbe-tournant {
  display: inline-grid; vertical-align: top; overflow: hidden; height: 1.55em; color: var(--mauve);
  font-weight: 700;
}
.verbe-tournant span { grid-area: 1 / 1; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s ease; }
.verbe-tournant span:not(.vu) { transform: translateY(105%); opacity: 0; }
.verbe-tournant span.sort { transform: translateY(-105%); opacity: 0; }
.verbe-tournant span.vu { transform: none; opacity: 1; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.reperes { display: flex; gap: 14px 36px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--trait); }
.repere strong { display: block; font-family: var(--f-titre); font-variation-settings: "wdth" 112; font-size: 1.45rem; line-height: 1.2; }
.repere span { font-size: .88rem; color: var(--gris); }

.visuel { position: relative; perspective: 1100px; }
.visuel .photo {
  border-radius: var(--r-grand); overflow: hidden; box-shadow: var(--ombre); transform-style: preserve-3d;
  transition: transform .35s ease-out; aspect-ratio: 600 / 760; background: var(--lilas);
}
.visuel .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pastille {
  position: absolute; left: -22px; bottom: 34px; background: #fff; border-radius: 18px; padding: 14px 18px;
  box-shadow: var(--ombre); border: 1px solid var(--trait); display: flex; gap: 12px; align-items: center; max-width: 250px;
}
.pastille .point { width: 10px; height: 10px; border-radius: 50%; background: var(--menthe); flex: none; box-shadow: 0 0 0 5px rgba(10, 158, 132, .16); }
.pastille b { display: block; font-size: .95rem; line-height: 1.25; }
.pastille small { color: var(--gris); font-size: .8rem; }

/* texte qui apparaît mot à mot, flou vers net */
.flou .mot { animation: deflou .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes deflou { from { opacity: 0; filter: blur(12px); transform: translateY(14px); } }

/* ---------- grande phrase révélée au défilement ---------- */
.constat { background: var(--lilas); padding-block: clamp(70px, 11vw, 140px); }
.phrase {
  font-family: var(--f-titre); font-variation-settings: "wdth" 112; font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance;
}
.phrase .m { transition: opacity .25s linear; }
.js .phrase .m { opacity: .22; }
.js .phrase .m.on { opacity: 1; }
.phrase .fort { color: var(--mauve); }

/* ---------- sections communes ---------- */
.bloc { padding-block: clamp(72px, 10vw, 128px); }
.entete { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.entete.centre { text-align: center; margin-inline: auto; justify-items: center; }

/* problèmes */
.problemes-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.problemes { display: grid; gap: 0; border-top: 1px solid var(--trait); }
.probleme { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 20px 4px; border-bottom: 1px solid var(--trait); align-items: center; }
.probleme q { font-family: var(--f-titre); font-variation-settings: "wdth" 106; font-weight: 700; font-size: 1.12rem; quotes: "« " " »"; }
.probleme span { grid-column: 1; color: var(--gris); }
.probleme .fleche {
  grid-column: 2; grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 50%; background: var(--lilas);
  display: grid; place-items: center; color: var(--mauve); transition: background .2s ease, color .2s ease, transform .2s ease;
}
.probleme:hover .fleche { background: var(--mauve); color: #fff; transform: translateX(4px); }
.cadre-photo { border-radius: var(--r-grand); overflow: hidden; box-shadow: var(--ombre); }
.cadre-photo img { width: 100%; height: 100%; object-fit: cover; }
.problemes-grille .cadre-photo { position: sticky; top: 110px; aspect-ratio: 4 / 5; }

/* diagnostic express */
.orienteur { padding-top: 0; }
.orienteur-grille { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.outil { background: var(--lilas); border-radius: var(--r-grand); padding: clamp(22px, 4vw, 36px); display: grid; gap: 22px; min-height: 260px; }
.question { font-family: var(--f-titre); font-variation-settings: "wdth" 108; font-weight: 700; font-size: 1.25rem; margin-bottom: 14px; display: flex; gap: 10px; align-items: baseline; }
.question span { font-family: var(--f-texte); font-size: .8rem; color: var(--mauve); background: #fff; border-radius: 999px; padding: 3px 10px; }
.choix { display: flex; flex-wrap: wrap; gap: 10px; }
.choix button {
  background: #fff; border: 2px solid var(--trait); color: var(--encre); border-radius: 999px; padding: 11px 18px;
  font-weight: 700; font-size: .95rem; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.choix button:hover { border-color: var(--mauve); color: var(--mauve-fonce); transform: translateY(-2px); }
.choix button[aria-pressed="true"] { background: var(--mauve); border-color: var(--mauve); color: #fff; }
.outil-resultat { background: #fff; border-radius: var(--r-moyen); padding: 22px; border: 1px solid var(--trait); display: grid; gap: 10px; animation: monte .35s cubic-bezier(.2, .9, .3, 1) both; }
.outil-resultat[hidden] { display: none; }
.outil-resultat .surtitre { margin: 0; }
.outil-resultat h3 { font-size: 1.45rem; }
.outil-resultat p { color: var(--gris); }
.outil-resultat .actions { margin-top: 6px; }
.recommencer { background: none; border: 0; color: var(--gris); text-decoration: underline; cursor: pointer; padding: 0; font-size: .9rem; justify-self: start; }

/* solutions : cartes projecteur */
.solutions { background: var(--encre); color: #EFE8FF; }
.solutions h2 { color: #fff; }
.solutions .chapeau { color: #C7B9EE; }
.solutions .surtitre { color: var(--mauve-doux); }
.verbes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.projecteur {
  position: relative; overflow: hidden; border-radius: var(--r-moyen); background: #241249; border: 1px solid #36215F;
  --x: 50%; --y: 0%;
}
.projecteur::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(184, 152, 255, .22), transparent 60%);
}
.projecteur:hover::before { opacity: 1; }
.verbe { padding: 28px 24px; display: grid; gap: 14px; align-content: start; }
.verbe .rond { width: 52px; height: 52px; border-radius: 16px; background: rgba(108, 25, 255, .28); color: #fff; display: grid; place-items: center; }
.verbe h3 { color: #fff; font-size: 1.55rem; }
.verbe p { color: #C7B9EE; font-size: .96rem; }
.verbe ul { display: grid; gap: 6px; }
.verbe li { font-size: .92rem; color: #E6DDFF; padding-left: 18px; position: relative; }
.verbe li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--mauve-doux); }

/* logiciels */
.logiciels { background: var(--nuit); color: #EFE8FF; position: relative; overflow: clip; }
.logiciels::before {
  content: ""; position: absolute; left: 50%; top: -280px; width: 900px; height: 560px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(108, 25, 255, .42), rgba(108, 25, 255, 0)); pointer-events: none;
}
.logiciels .wrap { position: relative; }
.logiciels h2, .logiciels h3 { color: #fff; }
.logiciels .chapeau { color: #C7B9EE; }
.logiciels .surtitre { color: var(--mauve-doux); }
.fiches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fiche { padding: 30px 26px; display: flex; flex-direction: column; gap: 16px; }
.fiche-tete { display: flex; gap: 16px; align-items: center; }
.fiche-tete img, .logo-ecole { width: 64px; height: 64px; border-radius: 18px; flex: none; }
.logo-ecole {
  background: #fff; display: grid; place-items: center; align-content: center; gap: 2px; line-height: 1;
  font-family: var(--f-titre); font-variation-settings: "wdth" 110; font-weight: 700; color: #111; font-size: .86rem;
}
.logo-ecole i { font-style: normal; background: var(--corail); color: #fff; font-size: .66rem; padding: 3px 6px; border-radius: 6px; }
.fiche-tete b { display: block; font-family: var(--f-titre); font-variation-settings: "wdth" 112; font-size: 1.4rem; color: #fff; line-height: 1.15; }
.fiche-tete span { font-size: .9rem; color: #C7B9EE; }
.fiche > p { color: #DCD0FA; font-size: .97rem; }
.prix { font-family: var(--f-titre); font-variation-settings: "wdth" 112; font-weight: 700; font-size: 1.6rem; color: #fff; line-height: 1.15; }
.prix small { display: block; font-family: var(--f-texte); font-weight: 500; font-size: .86rem; color: #C7B9EE; margin-top: 4px; font-variation-settings: normal; }
.tarifs { display: grid; gap: 0; }
.tarifs li { font-size: .92rem; color: #EFE8FF; padding: 9px 0 9px 22px; position: relative; border-top: 1px solid #2E1B55; font-variant-numeric: tabular-nums; }
.tarifs li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; background: var(--mauve-doux); }
.fiche.ecole .tarifs li::before { background: var(--corail); }
.fiche .detail {
  margin-top: auto; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  border-radius: 999px; padding: 11px 18px; font-weight: 700; font-size: .92rem; cursor: pointer; justify-self: start; align-self: flex-start;
  transition: background .2s ease;
}
.fiche .detail:hover { background: rgba(255, 255, 255, .16); }
.demo {
  margin-top: 22px; border-radius: var(--r-grand); overflow: hidden; background: #fff; color: var(--encre);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px);
}
.demo h3 { color: var(--encre); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 10px; }
.demo p { color: var(--gris); }
.demo .actions { margin-top: 20px; }
.qr { display: grid; justify-items: center; gap: 8px; text-align: center; }
.qr img { width: 132px; height: 132px; border-radius: 16px; border: 1px solid var(--trait); padding: 8px; background: #fff; }
.qr small { font-size: .8rem; color: var(--gris); max-width: 160px; line-height: 1.4; }
.sur-mesure { margin-top: 22px; color: #C7B9EE; font-size: .95rem; max-width: 80ch; }

/* sites web : cadre de navigateur */
.sites-grille { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.navigateur { border-radius: 20px; overflow: hidden; box-shadow: var(--ombre); border: 1px solid var(--trait); background: #fff; }
.navigateur .chrome { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--lilas); border-bottom: 1px solid var(--trait); }
.navigateur .chrome i { width: 11px; height: 11px; border-radius: 50%; background: #D7CCF2; }
.navigateur .adresse { margin-left: 10px; flex: 1; min-width: 0; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: .8rem; color: var(--gris); display: flex; gap: 6px; align-items: center; overflow: hidden; white-space: nowrap; }
.navigateur .adresse svg { width: 12px; height: 12px; color: var(--menthe); flex: none; }
.navigateur img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.atouts { display: grid; gap: 14px; margin-top: 26px; }
.atout { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.atout .rond { width: 40px; height: 40px; border-radius: 12px; background: var(--lilas); color: var(--mauve); display: grid; place-items: center; }
.atout .rond .icone { width: 20px; height: 20px; }
.atout b { display: block; }
.atout span { color: var(--gris); font-size: .95rem; }

/* formations */
.formations { background: var(--lilas); }
.formations-grille { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.domaines { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.domaines li { background: #fff; border: 1px solid var(--trait); border-radius: 999px; padding: 9px 16px; font-weight: 500; font-size: .94rem; transition: border-color .2s ease, color .2s ease; }
.domaines li:hover { border-color: var(--mauve); color: var(--mauve-fonce); }
.ia {
  margin-top: 26px; display: flex; gap: 16px; align-items: center; background: var(--encre); color: #fff;
  border-radius: var(--r-moyen); padding: 18px 22px;
}
.ia .rond { width: 44px; height: 44px; border-radius: 14px; background: var(--mauve); display: grid; place-items: center; flex: none; }
.ia p { font-size: .98rem; }
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.format { background: #fff; border-radius: 18px; padding: 18px; border: 1px solid var(--trait); }
.format b { display: block; font-family: var(--f-titre); font-variation-settings: "wdth" 108; }
.format span { font-size: .9rem; color: var(--gris); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.duo .cadre-photo { aspect-ratio: 3 / 4; }
.duo .cadre-photo:last-child { margin-top: 56px; }

/* particuliers */
.particuliers .carte-large {
  display: grid; grid-template-columns: .8fr 1.2fr; border-radius: var(--r-grand); overflow: hidden; background: #fff;
  border: 1px solid var(--trait); box-shadow: var(--ombre);
}
.particuliers .carte-large > img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.particuliers .texte { padding: clamp(28px, 4vw, 52px); display: grid; gap: 16px; align-content: center; }
.particuliers .services { display: flex; flex-wrap: wrap; gap: 10px; }
.particuliers .services li { background: var(--lilas); border-radius: 999px; padding: 8px 15px; font-weight: 700; font-size: .92rem; color: var(--mauve-fonce); }

/* méthode */
.methode-grille { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.methode .collant { position: sticky; top: 110px; display: grid; gap: 22px; }
.methode .cadre-photo { aspect-ratio: 3 / 2; }
.etapes { list-style: none; margin: 0; position: relative; display: grid; gap: 0; padding-left: 64px; }
.etapes::before, .etapes::after { content: ""; position: absolute; left: 22px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--trait); }
.etapes::after { background: var(--mauve); transform-origin: top; transform: scaleY(var(--p, 1)); }
.js .etapes::after { transform: scaleY(var(--p, 0)); }
.espace { margin-top: 28px; }
.etape { position: relative; padding-block: 18px 30px; }
.etape .num {
  position: absolute; left: -64px; top: 14px; width: 47px; height: 47px; border-radius: 50%; background: #fff; border: 3px solid var(--trait);
  display: grid; place-items: center; font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem; color: var(--gris);
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.etape.on .num, html:not(.js) .etape .num { background: var(--mauve); border-color: var(--mauve); color: #fff; }
.etape h3 { font-size: 1.45rem; margin-bottom: 6px; }
.etape p { color: var(--gris); }
.accroche { font-family: var(--f-titre); font-variation-settings: "wdth" 112; font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--mauve); line-height: 1.2; }

/* contact */
.contact { background: var(--lilas); }
.contact-grille { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.coordonnees { display: grid; gap: 0; margin-top: 8px; }
.coordonnees li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.coordonnees .icone { color: var(--mauve); width: 22px; height: 22px; margin-top: 2px; }
.coordonnees small { display: block; color: var(--gris); font-size: .85rem; }
.contact .cadre-photo { aspect-ratio: 4 / 3; margin-top: 26px; }
.formulaire { background: #fff; border-radius: var(--r-grand); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--trait); box-shadow: var(--ombre); }
.formulaire h3 { font-size: 1.6rem; margin-bottom: 18px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.champ { display: grid; gap: 6px; min-width: 0; }
.champ.plein { grid-column: 1 / -1; }
label { font-size: .88rem; font-weight: 700; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--trait); background: var(--lilas);
  color: var(--encre); font-family: var(--f-texte); font-size: 1rem; transition: border-color .2s ease, background .2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--mauve); background: #fff; outline: 3px solid rgba(108, 25, 255, .18); }
textarea { min-height: 130px; resize: vertical; }
.pot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consentement { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--gris); font-weight: 400; }
.consentement input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--mauve); }
.envoi { margin-top: 18px; width: 100%; justify-content: center; }
.envoi[disabled] { opacity: .6; cursor: wait; }
.etat { margin-top: 14px; font-size: .95rem; min-height: 1.4em; }
.etat.ok { color: var(--menthe); font-weight: 700; }
.etat.ko { color: var(--erreur); }

/* pied */
.pied { background: var(--encre); color: #C7B9EE; padding-block: 52px 36px; font-size: .9rem; }
.pied-grille { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.pied img { height: 80px; width: auto; margin-bottom: 14px; }
.pied b { color: #fff; display: block; margin-bottom: 8px; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied ul { display: grid; gap: 6px; }
.mentions { margin-top: 36px; padding-top: 20px; border-top: 1px solid #33215E; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; color: #A898D2; }

/* bouton WhatsApp */
.bulle {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 80; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .75); transition: transform .2s ease;
}
.bulle:hover { transform: scale(1.07); }
.bulle svg { width: 30px; height: 30px; }

/* fenêtre de détail */
.fenetre { position: fixed; inset: 0; z-index: 200; background: rgba(18, 8, 40, .72); display: grid; place-items: center; padding: 18px; }
.fenetre[hidden] { display: none; }
.fenetre-corps {
  background: #fff; color: var(--encre); border-radius: 28px; width: min(640px, 100%); max-height: 88vh; overflow-y: auto;
  padding: clamp(24px, 4vw, 36px); position: relative; animation: monte .3s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes monte { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.fenetre-tete { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; padding-right: 40px; }
.fenetre-tete img, .fenetre-tete .logo-ecole { width: 64px; height: 64px; border-radius: 18px; }
.fenetre-tete .logo-ecole { border: 1px solid var(--trait); }
.fenetre-tete h3 { font-size: 1.5rem; }
.fenetre-tete span { font-size: .9rem; color: var(--gris); }
.fenetre-corps ul { margin: 16px 0; display: grid; gap: 9px; }
.fenetre-corps li { padding-left: 26px; position: relative; font-size: .96rem; }
.fenetre-corps li::before { content: "✓"; position: absolute; left: 0; color: var(--menthe); font-weight: 700; }
.fenetre-prix { background: var(--lilas); border-radius: 18px; padding: 18px 20px; margin: 18px 0 22px; }
.fenetre-prix b { font-family: var(--f-titre); font-variation-settings: "wdth" 112; font-size: 1.45rem; display: block; color: var(--mauve-fonce); }
.fenetre-prix span { font-size: .9rem; color: var(--gris); }
.fermer {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--lilas); color: var(--encre); cursor: pointer; display: grid; place-items: center;
}
.fermer:hover { background: var(--mauve); color: #fff; }

/* apparition au défilement : visible par défaut, animée seulement quand le script est actif */
.js .revele { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .revele.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .revele { opacity: 1; transform: none; }
  .js .phrase .m { opacity: 1; }
  .js .etapes::after { transform: scaleY(1); }
  .verbe-tournant span:not(.vu) { display: none; }
}

@media (max-width: 1080px) {
  .verbes { grid-template-columns: 1fr 1fr; }
  .fiches { grid-template-columns: 1fr; max-width: 640px; }
  .liens { display: none; }
  .liens.ouvert {
    display: grid; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--trait);
    padding: 12px 20px 20px; gap: 4px; box-shadow: 0 20px 30px -24px rgba(26, 11, 61, .5);
  }
  .liens.ouvert .btn { margin: 8px 0 0; justify-content: center; }
  .burger { display: grid; }
}
@media (max-width: 900px) {
  .orienteur-grille, .accueil-grille, .problemes-grille, .sites-grille, .formations-grille, .methode-grille, .contact-grille { grid-template-columns: 1fr; }
  .visuel { max-width: 460px; }
  .problemes-grille .cadre-photo, .methode .collant { position: static; }
  .problemes-grille .cadre-photo { aspect-ratio: 4 / 3; }
  .particuliers .carte-large { grid-template-columns: 1fr; }
  .particuliers .carte-large > img { min-height: 0; aspect-ratio: 4 / 3; object-position: center 25%; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .demo { grid-template-columns: 1fr; }
  .qr { justify-items: start; text-align: left; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .verbes, .formats, .champs { grid-template-columns: 1fr; }
  .marque img { height: 60px; }
  .duo .cadre-photo:last-child { margin-top: 32px; }
  .barre .lieu, .barre .contacts a[href^="mailto"] { display: none; }
  .pastille { position: static; margin-top: 14px; max-width: none; }
  .pied-grille { grid-template-columns: 1fr; }
  .etapes { padding-left: 56px; }
  .etape .num { left: -56px; width: 42px; height: 42px; }
  .etapes::before, .etapes::after { left: 19px; }
}

/* curseur personnalisé : point net + anneau qui suit avec inertie, grossit et affiche un mot sur les éléments actifs */
.curseur { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.curseur-actif, html.curseur-actif a, html.curseur-actif button, html.curseur-actif .probleme, html.curseur-actif label { cursor: none; }
  html.curseur-actif input, html.curseur-actif textarea, html.curseur-actif select { cursor: auto; }
  .curseur { display: block; position: fixed; inset: 0 auto auto 0; z-index: 9999; pointer-events: none; }
  .curseur .point, .curseur .anneau { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
  .curseur .point { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--mauve); box-shadow: 0 0 0 2px #fff; transition: opacity .2s ease; }
  .curseur .anneau {
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 2px solid var(--mauve-doux);
    display: grid; place-items: center; transition: width .25s cubic-bezier(.2, .8, .2, 1), height .25s cubic-bezier(.2, .8, .2, 1), margin .25s cubic-bezier(.2, .8, .2, 1), background .25s ease, border-color .25s ease, opacity .2s ease;
  }
  .curseur .mot-curseur { font: 700 .72rem/1 var(--f-texte); color: #fff; letter-spacing: .04em; opacity: 0; transition: opacity .2s ease; white-space: nowrap; }
  .curseur.survol .anneau { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(108, 25, 255, .14); border-color: var(--mauve); }
  .curseur.etiquette .anneau { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--mauve); border-color: var(--mauve); }
  .curseur.etiquette .mot-curseur { opacity: 1; }
  .curseur.etiquette .point, .curseur.survol .point { opacity: 0; }
  .curseur.appui .anneau { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
  .curseur.cache .point, .curseur.cache .anneau { opacity: 0; }
}

/* guillemets anglais sur la version anglaise */
html[lang="en"] .probleme q { quotes: "\201C" "\201D"; }
