/* Mise en page du modèle Poche (marque fictive : Ronde). Les couleurs et les polices se changent dans theme.css. */

:root {
  --marge: clamp(1.1rem, 4vw, 3rem);
  --bord: max(var(--marge), calc(50% - var(--largeur) / 2));   /* marge latérale des sections pleine largeur */
  --bloc: clamp(4.5rem, 12vh, 8.5rem);
  --courbe: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 400 clamp(1rem, .95rem + .25vw, 1.125rem)/1.55 var(--police-texte);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent-2); color: var(--encre); }
:focus-visible { outline: 3px solid var(--accent-3); outline-offset: 3px; border-radius: 10px; }

.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 300; padding: .6rem 1rem; background: var(--texte); color: var(--fond); border-radius: 999px; }
.evitement:focus { top: 1rem; }

/* ---- Éléments communs ---- */
.surtitre { display: inline-flex; align-items: center; padding: .45rem .95rem; border-radius: 999px; background: var(--trait); font: 600 .8rem/1.25 var(--police-texte); letter-spacing: .03em; color: var(--texte); }
.titre-geant { font: 800 clamp(2rem, 5.2vw, 4.2rem)/1.03 var(--police-titre); letter-spacing: -.03em; }
.titre-section { font: 800 clamp(1.6rem, 3.5vw, 2.9rem)/1.08 var(--police-titre); letter-spacing: -.03em; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.4rem; padding: .9rem 1.7rem;
  border: 0; border-radius: 999px; cursor: pointer; background: var(--accent); color: var(--encre);
  font: 700 1.02rem/1.1 var(--police-texte); text-align: center; box-shadow: 0 6px 0 var(--ombre-accent);
  transition: background .3s, color .3s, box-shadow .3s, transform .35s var(--courbe);
}
.bouton:hover { background: var(--texte); box-shadow: 0 6px 0 var(--accent-2); }
.bouton-petit { min-height: 2.75rem; padding: .55rem 1.25rem; font-size: .92rem; box-shadow: 0 4px 0 var(--ombre-accent); }
.bouton-petit:hover { box-shadow: 0 4px 0 var(--accent-2); }
.lien-fleche { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; font-weight: 600; border-bottom: 2px solid var(--trait); transition: border-color .3s; }
.lien-fleche::after { content: "↓"; transition: transform .3s var(--courbe); }
.lien-fleche:hover { border-color: var(--accent-3); }
.lien-fleche:hover::after { transform: translateY(4px); }

/* ---- Écran de chargement ---- */
.chargement { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 1.4rem; background: var(--fond); }
.chargement-piece { width: 4rem; height: 4rem; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 .45rem rgba(21, 10, 44, .14); animation: poche-piece 1s ease-in-out infinite; }
.chargement-mot { font: 800 1.3rem/1 var(--police-titre); letter-spacing: -.02em; }
@keyframes poche-piece { 0%, 100% { transform: translateY(0) scaleX(1); } 50% { transform: translateY(-1.3rem) scaleX(.08); } }

/* ---- En-tête ---- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 1.6rem;
  padding: .9rem var(--marge); transition: transform .5s var(--courbe), background .4s;
}
.entete.is-scrolled { background: rgba(21, 10, 44, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.entete.is-hidden { transform: translateY(-110%); }
.logo { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; margin-right: auto; font: 800 1.2rem/1 var(--police-titre); letter-spacing: -.03em; }
.logo-anneau { width: 1.35em; height: 1.35em; border: .36em solid var(--accent); border-radius: 50%; }
.menu { display: flex; gap: .3rem; font-size: .95rem; font-weight: 500; }
.menu a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .95rem; border-radius: 999px; color: var(--texte-doux); transition: color .3s, background .3s; }
.menu a:hover { color: var(--texte); background: var(--trait); }
.burger { display: none; flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--trait); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--texte); transition: transform .4s var(--courbe), top .4s var(--courbe); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---- Accueil ---- */
.accueil {
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  padding: 7rem var(--bord) 4.5rem;
}
.accueil-fond { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(55% 60% at 78% 42%, #3a1d8a 0, transparent 70%), var(--fond); }
.accueil-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.accueil-fond canvas { position: absolute; inset: 0; opacity: .42; }
.accueil-fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 10, 44, .5) 0, transparent 28%, transparent 60%, var(--fond) 100%), linear-gradient(90deg, rgba(21, 10, 44, .95) 0, rgba(21, 10, 44, .78) 45%, rgba(21, 10, 44, .3) 100%); }
.accueil-texte { display: grid; justify-items: start; gap: 1.35rem; }
.accueil-pour { font: 600 clamp(1.05rem, 1.7vw, 1.35rem)/1.3 var(--police-texte); color: var(--texte-doux); }
.accueil-pour strong { color: var(--accent-3); font-weight: 700; }
.accueil-chapo { max-width: 34rem; color: var(--texte-doux); }
.accueil-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.8rem; margin-top: .3rem; }
.accueil-villes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; font-size: .85rem; color: var(--texte-doux); }
.accueil-villes span { padding: .3rem .85rem; border: 1px solid var(--trait); border-radius: 999px; }
.accueil-visuel { --l: clamp(210px, 36vh, 310px); display: grid; place-items: center; }
.penche { position: relative; font-size: calc(var(--l) / 20); }
.accueil .telephone { transform: rotate(-6deg); }
.bulle {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: .5em; padding: .6em 1em; border-radius: 999px;
  background: var(--ecran); color: var(--encre); font-size: clamp(11.5px, .8em, 13px); font-weight: 600; white-space: nowrap;
  box-shadow: 0 1.2em 2.4em -.8em rgba(0, 0, 0, .7); animation: poche-flotte 5s ease-in-out infinite;
}
.bulle i { display: grid; place-items: center; width: 1.9em; height: 1.9em; margin: -.25em 0 -.25em -.5em; border-radius: 50%; background: var(--accent-2); font-style: normal; font-size: .9em; font-weight: 800; }
.bulle b { font-weight: 800; }
.bulle-1 { left: -5.2em; top: 20%; }
.bulle-2 { right: -4.6em; top: 47%; background: var(--accent-3); animation-delay: -1.7s; }
.bulle-3 { left: -3.2em; bottom: 13%; background: var(--accent); animation-delay: -3.3s; }
@keyframes poche-flotte { 0%, 100% { transform: translateZ(50px) translateY(0); } 50% { transform: translateZ(50px) translateY(-.8em); } }

/* ---- Le téléphone, dessiné en CSS. Toutes ses mesures sont en « em » : --l donne sa largeur. ---- */
.telephone {
  position: relative; width: var(--l, 280px); height: calc(var(--l, 280px) * 2.06); padding: .5em;
  font-size: calc(var(--l, 280px) / 20); line-height: 1.3; border-radius: 2.7em; background: #07030f;
  box-shadow: 0 0 0 .14em #3b2b63, 0 2.5em 5em -1.5em rgba(0, 0, 0, .85), 0 0 7em -1.5em var(--accent-4);
}
.telephone::before { content: ""; position: absolute; z-index: 3; top: 1.05em; left: 50%; width: 5em; height: 1.2em; margin-left: -2.5em; border-radius: 999px; background: #07030f; }
.telephone-ecran { position: relative; height: 100%; overflow: hidden; border-radius: 2.25em; background: var(--ecran); color: var(--encre); }
.ecran { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .75em; padding: 3.1em 1em 1.1em; }
.app-fil { display: flex; align-items: center; justify-content: space-between; font-size: .8em; font-weight: 600; color: var(--encre-doux); }
.app-fil i, .app-liste i, .app-membres i { flex: none; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--accent-2); color: var(--encre); font-style: normal; font-size: .85em; font-weight: 800; }
.app-titre { font: 800 1.25em/1.12 var(--police-titre); letter-spacing: -.03em; }
.app-note { font-size: .72em; color: var(--encre-doux); }
.app-bouton { display: grid; place-items: center; margin-top: auto; padding: .95em; border-radius: 999px; background: var(--encre); color: var(--ecran); font-size: .9em; font-weight: 700; }
.app-solde { display: grid; gap: .15em; padding: 1em 1.1em; border-radius: 1.4em; background: var(--encre); color: var(--ecran); }
.app-solde span, .app-solde small { font-size: .72em; opacity: .78; }
.app-solde b { font: 800 1.7em/1.15 var(--police-titre); letter-spacing: -.03em; color: var(--accent); }
.app-ronde { display: grid; gap: .25em; padding: .85em 1em; border-radius: 1.3em; background: var(--ecran-2); }
.app-ronde b { font-size: .9em; font-weight: 700; }
.app-ronde span, .app-ronde small { font-size: .72em; color: var(--encre-doux); }
.app-ronde i { position: relative; height: .55em; margin: .25em 0; overflow: hidden; border-radius: 999px; background: rgba(21, 10, 44, .12); }
.app-ronde i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--c); box-shadow: inset 0 0 0 1px rgba(21, 10, 44, .2); }
.app-onglets { display: flex; justify-content: space-around; align-items: center; margin-top: auto; padding: .75em 1em; border-radius: 999px; background: var(--encre); }
.app-onglets i { width: 1.1em; height: 1.1em; border-radius: .35em; background: rgba(255, 245, 230, .3); }
.app-onglets i:first-child { border-radius: 50%; background: var(--accent); }
.app-champ { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .1em .6em; padding: .8em 1em; border-radius: 1.2em; background: var(--ecran-2); }
.app-champ span { grid-column: 1 / -1; font-size: .72em; color: var(--encre-doux); }
.app-champ b { font: 800 1.35em/1.15 var(--police-titre); letter-spacing: -.03em; }
.app-champ small { font-size: .72em; color: var(--encre-doux); text-align: right; }
.app-membres { display: flex; align-items: center; }
.app-membres i { width: 2.5em; height: 2.5em; margin-right: -.55em; border: .16em solid var(--ecran); }
.app-membres i:nth-child(2), .app-liste li:nth-child(2) i { background: var(--accent); }
.app-membres i:nth-child(3), .app-liste li:nth-child(3) i { background: var(--accent-3); }
.app-membres i:nth-child(4) { background: var(--accent-4); color: var(--ecran); }
.app-membres i:nth-child(5) { background: var(--accent); }
.app-membres b { margin-left: 1.2em; font-size: .8em; font-weight: 700; }
.app-anneau { position: relative; display: grid; place-items: center; width: 11em; height: 11em; margin: .2em auto; }
.app-anneau svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.app-anneau circle { fill: none; stroke-width: 10; }
.anneau-fond { stroke: var(--ecran-2); }
.anneau-plein { stroke: var(--accent-2); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: calc(264 * (1 - var(--j, .875))); }
.app-anneau p { position: relative; display: grid; gap: .2em; text-align: center; }
.app-anneau b { font: 800 1.5em/1 var(--police-titre); letter-spacing: -.03em; }
.app-anneau span { font-size: .72em; color: var(--encre-doux); }
.app-liste { display: grid; gap: .4em; font-size: .82em; font-weight: 600; }
.app-liste li { display: flex; align-items: center; gap: .6em; padding: .4em .6em .4em .4em; border-radius: 999px; background: var(--ecran-2); }
.app-liste b { margin-left: auto; padding: .25em .75em; border-radius: 999px; background: var(--accent); font-size: .85em; }
.app-liste b.ok { background: var(--accent-3); }
.app-confettis { position: absolute; inset: 0; pointer-events: none; }
.app-confettis i {
  position: absolute; left: 50%; top: 36%; width: .55em; height: .9em; margin: -.45em 0 0 -.27em; border-radius: .15em; background: var(--c);
  opacity: var(--b, 1); transform: translate(calc(var(--x) * var(--b, 1) * 1em), calc(var(--y) * var(--b, 1) * 1em)) rotate(calc(var(--r) * var(--b, 1) * 1deg));
}
.app-bravo { margin-top: 1.6em; font: 800 1.3em/1.12 var(--police-titre); letter-spacing: -.03em; }
.app-somme { position: relative; display: grid; gap: .3em; padding: 1.2em 1em; border-radius: 1.4em; background: var(--accent-3); text-align: center; }
.app-somme b { font: 800 1.75em/1 var(--police-titre); letter-spacing: -.04em; }
.app-somme span { font-size: .72em; font-weight: 600; }
.app-recu { display: grid; gap: .45em; padding: .9em 1em; border-radius: 1.2em; background: var(--ecran-2); font-size: .76em; }
.app-recu p { display: flex; justify-content: space-between; gap: 1em; }
.app-recu span { color: var(--encre-doux); }

/* ---- Bandeau ---- */
.bandeau { margin: clamp(.5rem, 3vh, 2rem) -2vw; transform: rotate(-1.6deg); background: var(--accent); color: var(--encre); }
.bandeau-piste { --mq-gap: 1.8rem; padding: 1rem 0; font: 800 clamp(1.05rem, 2.3vw, 1.8rem)/1 var(--police-titre); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.bandeau i { flex: none; width: .9em; height: .9em; border: .2em solid var(--encre); border-radius: 50%; background: var(--accent-2); }

/* ---- Ensemble : grande photo ---- */
.ensemble { padding: clamp(2rem, 6vh, 4rem) var(--marge) 0; }
.ensemble-photo { position: relative; max-width: var(--largeur); margin: 0 auto; aspect-ratio: 5 / 2; overflow: hidden; border-radius: calc(var(--rayon) * 1.4); background: var(--fond-2); }
.ensemble-cadre { position: absolute; inset: -9% 0; }
.ensemble-cadre img, .projet img, .securite-dessin img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ensemble-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 10, 44, .05) 20%, rgba(21, 10, 44, .9) 78%); }
.ensemble-photo figcaption { position: absolute; z-index: 1; top: 0; bottom: 0; right: clamp(1.2rem, 4vw, 3.5rem); display: grid; align-content: center; gap: 1rem; width: min(44%, 29rem); }
.ensemble-phrase { font: 800 clamp(1.15rem, 2.5vw, 2.1rem)/1.14 var(--police-titre); letter-spacing: -.03em; }
.ensemble-source { font-size: .9rem; color: var(--texte-doux); }

/* ---- Comment ça marche ---- */
.marche { padding-top: var(--bloc); }
.marche-tete { display: grid; justify-items: start; gap: 1.1rem; padding: 0 var(--bord); }
.marche-tete > p:last-child { max-width: 52ch; color: var(--texte-doux); }
/* --p va de 0 à 1 pendant que la section défile ; --e1, --e2, --e3 sont l'opacité des trois écrans. */
.etapes {
  --p: 1;
  --e1: clamp(0, (.29 - var(--p)) * 12.5, 1);
  --e2: min(clamp(0, (var(--p) - .21) * 12.5, 1), clamp(0, (.79 - var(--p)) * 12.5, 1));
  --e3: clamp(0, (var(--p) - .71) * 12.5, 1);
  --j: clamp(.12, (var(--p) - .2) * 2.6, .875);
  --b: clamp(0, (var(--p) - .74) * 5, 1);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 6rem); padding: 0 var(--bord);
}
.etapes-colle { --l: clamp(200px, 34vh, 290px); grid-area: 1 / 2; position: sticky; top: 0; align-self: start; display: grid; place-items: center; height: 100vh; height: 100svh; }
.etapes-textes { grid-area: 1 / 1; }
.etapes .telephone { transform: rotate(calc((var(--p) - .5) * -7deg)); transition: transform .2s linear; }
.etapes .ecran { transition: opacity .15s linear, transform .15s linear; }
.ecran-1 { opacity: var(--e1); transform: scale(calc(.94 + var(--e1) * .06)); }
.ecran-2 { opacity: var(--e2); transform: scale(calc(.94 + var(--e2) * .06)); }
.ecran-3 { opacity: var(--e3); transform: scale(calc(.94 + var(--e3) * .06)); }
.etapes-halo { position: absolute; left: 50%; top: 50%; width: calc(var(--l) * 2.2); height: calc(var(--l) * 2.2); margin: calc(var(--l) * -1.1) 0 0 calc(var(--l) * -1.1); pointer-events: none; }
.etapes-halo i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0, transparent 68%); opacity: calc(var(--e1) * .3); }
.etapes-halo i:nth-child(2) { background: radial-gradient(circle, var(--accent-2) 0, transparent 68%); opacity: calc(var(--e2) * .3); }
.etapes-halo i:nth-child(3) { background: radial-gradient(circle, var(--accent-3) 0, transparent 68%); opacity: calc(var(--e3) * .3); }
.etapes-rail { position: absolute; top: 50%; left: calc(50% + var(--l) / 2 + 2.2rem); width: 2px; height: 9rem; margin-top: -4.5rem; background: var(--trait); }
.etapes-rail::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(var(--p)); transform-origin: 50% 0; }
.etapes-rail i { position: absolute; z-index: 1; left: 50%; top: 0; width: .9rem; height: .9rem; margin: -.45rem; border: 2px solid var(--accent); border-radius: 50%; background: var(--fond); }
.etapes-rail i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); }
.etapes-rail i:nth-child(2) { top: 50%; }
.etapes-rail i:nth-child(2)::after { transform: scale(clamp(0, (var(--p) - .45) * 20, 1)); }
.etapes-rail i:nth-child(3) { top: 100%; }
.etapes-rail i:nth-child(3)::after { transform: scale(clamp(0, (var(--p) - .94) * 20, 1)); }
.etape { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; }
.etape-carte { display: grid; justify-items: start; gap: 1rem; max-width: 30rem; }
.etape-numero { font: 800 clamp(3.2rem, 7vw, 6rem)/.9 var(--police-titre); letter-spacing: -.04em; color: var(--t, var(--accent)); }
@supports (-webkit-text-stroke: 2px black) { .etape-numero { color: transparent; -webkit-text-stroke: 2px var(--t, var(--accent)); } }
.etape:nth-child(2) { --t: var(--accent-2); }
.etape:nth-child(3) { --t: var(--accent-3); }
.etape h3 { font: 800 clamp(1.35rem, 2.5vw, 2rem)/1.12 var(--police-titre); letter-spacing: -.03em; }
.etape-carte > p:not(.etape-numero) { color: var(--texte-doux); }
.etape-points { display: flex; flex-wrap: wrap; gap: .5rem; }
.etape-points li { padding: .4rem .95rem; border: 1px solid var(--trait); border-radius: 999px; font-size: .88rem; }

/* ---- Chiffres ---- */
.chiffres { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: var(--bloc) var(--bord); }
.chiffre-bulle { display: grid; align-content: space-between; gap: 2.5rem; height: 100%; min-height: 15rem; padding: 1.8rem 1.6rem; border-radius: calc(var(--rayon) * 1.4); background: var(--accent); color: var(--encre); font-weight: 500; transform: rotate(-2deg); }
.chiffre:nth-of-type(2) .chiffre-bulle { background: var(--accent-2); transform: translateY(1.4rem) rotate(1.5deg); }
.chiffre:nth-of-type(3) .chiffre-bulle { background: var(--accent-3); transform: rotate(-1deg); }
.chiffre:nth-of-type(4) .chiffre-bulle { background: var(--accent-4); color: var(--texte); transform: translateY(1.4rem) rotate(2deg); }
.chiffre-nombre { font: 800 clamp(1.9rem, 3.5vw, 3.1rem)/1 var(--police-titre); letter-spacing: -.04em; white-space: nowrap; }
.piece { position: absolute; z-index: 1; width: clamp(3rem, 7vw, 5.5rem); aspect-ratio: 1; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 .5rem rgba(21, 10, 44, .14), 0 1.2rem 2rem -1rem #000; pointer-events: none; }
.piece-1 { right: 5%; top: 1.5rem; }
.piece-2 { left: 3%; bottom: 2rem; width: clamp(2rem, 4vw, 3.4rem); background: var(--accent-3); box-shadow: inset 0 0 0 .3rem rgba(21, 10, 44, .14), 0 1.2rem 2rem -1rem #000; }

/* ---- Projets : galerie de photos ---- */
.projets { padding: 0 var(--bord); }
.projets-tete { display: grid; justify-items: start; gap: 1.1rem; max-width: 48rem; }
.projets-liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; margin-top: 2.5rem; }
.projet { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--rayon); background: var(--fond-2); }
.projet:nth-child(even) { margin-top: 2.5rem; }
.projet img { position: absolute; inset: 0; transition: transform 1.2s var(--courbe); }
.projet:hover img { transform: scale(1.06); }
.projet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(21, 10, 44, .92)); }
.projet figcaption { position: absolute; z-index: 1; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; display: grid; justify-items: start; gap: .25rem; }
.projet b { font: 800 1.1rem/1.15 var(--police-titre); letter-spacing: -.02em; }
.projet span { font-size: .86rem; line-height: 1.3; }
.projet strong { margin-top: .5rem; padding: .35rem .85rem; border-radius: 999px; background: var(--accent); color: var(--encre); font: 800 .9rem/1 var(--police-titre); }
.projet:nth-child(2) strong { background: var(--accent-2); }
.projet:nth-child(3) strong { background: var(--accent-3); }
.projet:nth-child(4) strong { background: var(--texte); }

/* ---- Sécurité ---- */
.securite { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: var(--bloc) var(--bord); }
.securite-dessin { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; aspect-ratio: 1; border-radius: 42% 58% 55% 45% / 50% 44% 56% 50%; background: var(--fond-2); background: linear-gradient(150deg, var(--fond-2), color-mix(in srgb, var(--accent-4) 50%, var(--fond-2))); }
.securite-dessin img { position: absolute; inset: 0; z-index: -2; }
.securite-dessin::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(150deg, rgba(33, 17, 63, .72), rgba(106, 72, 242, .6)); }
.bouclier { width: 46%; height: auto; overflow: visible; filter: drop-shadow(0 .6rem 1.2rem rgba(21, 10, 44, .7)); }
.bouclier path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bouclier-forme { stroke: var(--accent-3); stroke-width: 9; }
.bouclier-coche { stroke: var(--accent); stroke-width: 15; }
.securite-orbite { position: absolute; inset: 13%; border: 1px dashed rgba(255, 245, 230, .4); border-radius: 50%; animation: poche-tourne 28s linear infinite; }
.securite-orbite i { position: absolute; left: 50%; top: 0; width: 2.2rem; height: 2.2rem; margin: -1.1rem; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 .3rem rgba(21, 10, 44, .14); }
.securite-orbite i:nth-child(2) { left: 6.7%; top: 75%; background: var(--accent-2); }
.securite-orbite i:nth-child(3) { left: 93.3%; top: 75%; width: 1.4rem; height: 1.4rem; margin: -.7rem; background: var(--accent-3); }
@keyframes poche-tourne { to { transform: rotate(360deg); } }
.securite-texte { display: grid; justify-items: start; gap: 1.1rem; }
.securite-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.securite-liste li { display: grid; align-content: start; gap: .55rem; padding: 1.4rem; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--fond-2); }
.securite-liste li::before { content: ""; width: 1.7rem; height: 1.7rem; margin-bottom: .3rem; border-radius: 50%; background: var(--accent); }
.securite-liste li:nth-child(2)::before { border-radius: .5rem; background: var(--accent-2); }
.securite-liste li:nth-child(3)::before { border-radius: 50% 50% 0 50%; background: var(--accent-3); }
.securite-liste li:nth-child(4)::before { border-radius: 50% 0; background: var(--accent-4); }
.securite-liste h3 { font: 700 1rem/1.25 var(--police-titre); letter-spacing: -.02em; }
.securite-liste p { font-size: .95rem; color: var(--texte-doux); }

/* ---- Frais ---- */
.frais { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: var(--bloc) var(--bord); }
.frais-texte { display: grid; justify-items: start; gap: 1.2rem; }
.frais-texte > p:not(.surtitre) { max-width: 46ch; color: var(--texte-doux); }
.frais-zero { display: flex; flex-wrap: wrap; gap: .6rem; }
.frais-zero li { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1.1rem .45rem .45rem; border: 1px solid var(--trait); border-radius: 999px; background: var(--fond-2); font-size: .92rem; }
.frais-zero b { padding: .4rem .75rem; border-radius: 999px; background: var(--accent-3); color: var(--encre); font: 800 .82rem/1 var(--police-titre); }
.frais-visuel { display: grid; place-items: center; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2.5rem); overflow: hidden; border-radius: calc(var(--rayon) * 1.4); background: var(--fond-2) url("media/tissu.webp") center / cover; }
.ticket-pose { width: min(100%, 24rem); transform: rotate(2.5deg); filter: drop-shadow(0 1.6rem 1.6rem rgba(21, 10, 44, .55)); }
.ticket {
  padding: 1.8rem 1.6rem 2.6rem; border-radius: 1.2rem 1.2rem 0 0; background: var(--ecran); color: var(--encre);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 1.25rem 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 1.25rem 100%;
}
.ticket-tete { display: grid; gap: .3rem; padding-bottom: 1rem; border-bottom: 2px dashed rgba(21, 10, 44, .25); font: 800 1.02rem/1.2 var(--police-titre); letter-spacing: -.02em; }
.ticket-tete span { font: 500 .85rem/1.3 var(--police-texte); letter-spacing: 0; color: var(--encre-doux); }
.ticket-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(21, 10, 44, .12); font-variant-numeric: tabular-nums; }
.ticket-ligne span { color: var(--encre-doux); }
.ticket-ligne b { white-space: nowrap; }
.ticket-total { border-bottom: 0; }
.ticket-total span { color: var(--encre); font-weight: 700; }
.ticket-total b { padding: .25rem .6rem; border-radius: .7rem; background: var(--accent); font: 800 clamp(1.25rem, 2.4vw, 1.8rem)/1.1 var(--police-titre); letter-spacing: -.03em; }
.ticket-pied { margin-top: .3rem; font-size: .8rem; color: var(--encre-doux); }

/* ---- Avis ---- */
.avis { padding: var(--bloc) var(--bord); }
.avis-tete { display: grid; justify-items: start; gap: 1.1rem; }
.avis-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; margin-top: 2.5rem; }
.avis-carte { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.8rem; border-radius: var(--rayon) var(--rayon) var(--rayon) 6px; background: var(--accent); color: var(--encre); }
.avis-carte:nth-child(2) { margin-top: 2rem; background: var(--accent-2); }
.avis-carte:nth-child(3) { background: var(--accent-3); }
.avis-carte blockquote { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
.avis-carte figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: center; font-size: .86rem; line-height: 1.3; }
.avis-carte figcaption i { grid-row: span 2; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--encre); color: var(--ecran); font: 800 1rem/1 var(--police-titre); }
.avis-carte figcaption b { align-self: end; font-size: .95rem; }

/* ---- Lancement ---- */
.lancement { padding: 0 var(--marge) var(--bloc); }
.lancement-cadre {
  position: relative; isolation: isolate; overflow: hidden; max-width: var(--largeur); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(1.5rem, 5vw, 4.5rem); border-radius: calc(var(--rayon) * 1.6); background: linear-gradient(140deg, var(--accent-4), #3b1d8a);
}
.lancement-fond { position: absolute; inset: 0; z-index: -1; opacity: .45; }
.lancement-texte { display: grid; justify-items: start; gap: 1.2rem; }
.lancement .surtitre { background: rgba(255, 255, 255, .18); }
.lancement-offre { padding: .85rem 1.15rem; border-radius: 1.1rem; background: rgba(21, 10, 44, .4); font-weight: 600; }
.formulaire { display: grid; gap: 1rem; padding: clamp(1.3rem, 3vw, 2.2rem); border-radius: var(--rayon); background: var(--ecran); color: var(--encre); box-shadow: 0 2.5rem 4rem -2rem rgba(0, 0, 0, .7); }
.formulaire label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; }
.formulaire input, .formulaire select {
  width: 100%; min-height: 3.2rem; padding: .75rem 1rem; border: 2px solid rgba(21, 10, 44, .2); border-radius: 1rem;
  background: #ffffff; color: var(--encre); font-size: 1rem; font-weight: 500; color-scheme: light; transition: border-color .3s, box-shadow .3s;
}
.formulaire input::placeholder { color: var(--encre-doux); opacity: .7; }
.formulaire input:focus, .formulaire select:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 4px var(--accent); }
.formulaire .bouton { margin-top: .3rem; background: var(--encre); color: var(--ecran); box-shadow: 0 6px 0 var(--accent-2); }
.formulaire .bouton:hover { background: var(--accent-4); box-shadow: 0 6px 0 var(--encre); }
.formulaire-etat { padding: .85rem 1rem; border-radius: 1rem; background: var(--accent-3); color: var(--encre); font-size: .95rem; font-weight: 600; }
.formulaire[data-state="error"] .formulaire-etat { background: #ffd3d3; color: #7a1020; }
.formulaire-mention { font-size: .82rem; color: var(--encre-doux); }

/* ---- Pied de page ---- */
.pied { --p: 1; padding: clamp(1rem, 4vh, 3rem) var(--bord) 1.6rem; border-top: 1px solid var(--trait); }
.pied-pieces { display: flex; gap: .7rem; padding: 1.5rem 0 2.2rem; }
.pied-pieces i {
  position: relative; flex: none; width: clamp(2.4rem, 6vw, 4.4rem); aspect-ratio: 1; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 .32rem rgba(21, 10, 44, .16);
  transform: translateX(calc((1 - var(--p)) * var(--n, 1) * -70vw)) rotate(calc((1 - var(--p)) * var(--n, 1) * -540deg));
}
.pied-pieces i::after { content: ""; position: absolute; left: 50%; top: 22%; width: 12%; height: 26%; margin-left: -6%; border-radius: 99px; background: rgba(21, 10, 44, .3); }
.pied-pieces i:nth-child(2) { --n: .85; background: var(--accent-2); }
.pied-pieces i:nth-child(3) { --n: .7; background: var(--accent-3); }
.pied-pieces i:nth-child(4) { --n: .55; background: var(--accent-4); }
.pied-pieces i:nth-child(5) { --n: .4; background: var(--texte); }
.pied-haut { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2rem; }
.pied-haut nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; font-size: .95rem; color: var(--texte-doux); }
.pied-haut nav a, .pied-bas a { display: inline-flex; align-items: center; min-height: 2.75rem; transition: color .3s; }
.pied-haut nav a:hover, .pied-bas a:hover { color: var(--accent); }
.pied-contact { font-size: .92rem; color: var(--texte-doux); }
.pied-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 2rem; margin-top: 1.6rem; padding-top: .8rem; border-top: 1px solid var(--trait); font-size: .85rem; color: var(--texte-doux); }

/* ---- Écrans moyens et petits ---- */
@media (max-width: 899px) {
  .burger { display: block; }
  .entete .bouton-petit { display: none; }
  .menu {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: .4rem;
    min-height: 100vh; min-height: 100svh; padding: 6rem var(--marge) 3rem; background: var(--fond);
    font: 800 clamp(1.5rem, 7vw, 2.4rem)/1.1 var(--police-titre); letter-spacing: -.03em;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .4s, transform .5s var(--courbe), visibility .4s;
  }
  .menu a { min-height: 3.4rem; padding: 0; color: var(--texte); }
  .menu a:hover { background: none; color: var(--accent); }
  .menu-open .menu { opacity: 1; visibility: visible; transform: none; }
  .menu-open body { overflow: hidden; }
  /* Un en-tête flouté ou déplacé enfermerait le menu plein écran : on annule les deux quand le menu est ouvert. */
  .menu-open .entete { -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; background: none; }

  .accueil { grid-template-columns: minmax(0, 1fr); gap: 3rem; padding: 6.5rem var(--marge) 3.5rem; }
  .accueil-fond::after { background: linear-gradient(180deg, rgba(21, 10, 44, .86) 0, rgba(21, 10, 44, .8) 55%, var(--fond) 100%); }
  .ensemble-photo { aspect-ratio: 4 / 5; }
  .ensemble-cadre img { object-position: 12% 50%; }
  .ensemble-photo::after { background: linear-gradient(180deg, rgba(21, 10, 44, .05) 30%, rgba(21, 10, 44, .94) 72%); }
  .ensemble-photo figcaption { top: auto; left: 1.3rem; right: 1.3rem; bottom: 1.4rem; width: auto; gap: .6rem; }
  .projets-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .projet:nth-child(even) { margin-top: 1.6rem; }
  .projet figcaption { left: .8rem; right: .8rem; bottom: .8rem; }
  .projet b { font-size: .95rem; }
  .projet span { font-size: .78rem; }
  .accueil-visuel { --l: clamp(200px, 56vw, 260px); padding-block: 1rem; }

  /* Le téléphone reste collé en haut de l'écran ; les trois textes montent par-dessus, en bas, l'un après l'autre. */
  .etapes { display: block; padding: 0; }
  .etapes-colle { --l: clamp(160px, 26vh, 230px); place-items: start center; padding-top: 4.4rem; }
  .etapes-rail { display: none; }
  .etapes-halo { top: calc(4.4rem + var(--l) * 1.03); }
  .etapes-textes { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }
  .etape { justify-content: flex-end; padding: 0 var(--marge) 1.1rem; }
  .etape-carte { gap: .5rem; max-width: none; padding: 1.1rem 1.25rem 1.25rem; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--fond-2); box-shadow: 0 -1rem 3rem rgba(0, 0, 0, .45); }
  .gm .etape-carte { opacity: clamp(0, 1 - max(var(--p) - var(--c), var(--c) - var(--p)) * 5, 1); }
  .etape-numero { font-size: 1.05rem; line-height: 1; color: var(--t, var(--accent)); -webkit-text-stroke: 0; }
  .etape h3 { font-size: 1.2rem; }
  .etape-carte > p:not(.etape-numero) { font-size: .95rem; }
  .etape-points { display: none; }

  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
  .chiffre-bulle { min-height: 12rem; gap: 1.5rem; padding: 1.4rem 1.2rem; }
  .chiffre-nombre { font-size: clamp(1.55rem, 7vw, 2.6rem); }
  .securite, .frais, .lancement-cadre { grid-template-columns: minmax(0, 1fr); }
  .securite-dessin { width: min(100%, 22rem); margin-inline: auto; }
  .avis-liste { grid-template-columns: minmax(0, 1fr); }
  .avis-carte:nth-child(2) { margin-top: 0; }
  .ticket-pose { transform: rotate(1.5deg); }
}
@media (max-width: 560px) {
  .securite-liste { grid-template-columns: minmax(0, 1fr); }
  .lancement { padding-inline: .6rem; }
  .lancement-cadre { border-radius: var(--rayon); }
  .accueil-actions { flex-direction: column; align-items: flex-start; }
  .pied-haut { flex-direction: column; align-items: flex-start; }
  .pied-haut .logo { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .chargement-piece, .bulle, .securite-orbite { animation: none; }
  .bulle { transform: translateZ(50px); }
  .etapes .telephone, .pied-pieces i { transform: none; transition: none; }
  .ecran-1, .ecran-2, .ecran-3 { transform: none; }
  .projet img { transition: none; }
}
