/* Couche d'effets et composants des autres pages. S'appuie sur styles.css. */

[hidden] { display: none !important; }

/* -- effets generaux -------------------------------------------------------------- */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes tourne { to { --angle: 360deg; } }

.progression-lecture {
  position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 3px; z-index: 60;
  background: var(--aurore); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  box-shadow: 0 0 12px rgba(202, 147, 255, 0.8); pointer-events: none;
}

.bouton { position: relative; overflow: hidden; isolation: isolate; }
.bouton::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform 0.8s ease;
}
.bouton:hover::after { transform: translateX(130%); }
.bouton[disabled], .bouton[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }

.bouton-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.9em 1.5em; border-radius: 999px;
  background: var(--blanc); color: #1F1F1F; border: 1px solid rgba(51, 51, 51, 0.18); font: 500 1rem var(--sans);
  text-decoration: none; cursor: pointer; box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bouton-google:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.4); }
.bouton-google svg { width: 20px; height: 20px; flex: none; }
.lien-discret { color: var(--encre-douce); text-decoration: none; font-size: 0.95rem; }
.lien-discret:hover { color: var(--encre); }

.js-effets [data-reveal] { transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.9s ease; }
.js-effets [data-reveal]:not(.vu) { opacity: 0.22; transform: translateY(36px) scale(0.985); filter: blur(4px); }
.js-effets [data-delai="1"] { transition-delay: 0.08s; }
.js-effets [data-delai="2"] { transition-delay: 0.16s; }
.js-effets [data-delai="3"] { transition-delay: 0.24s; }
.js-effets [data-delai="4"] { transition-delay: 0.32s; }

.mot { display: inline-block; animation: monte 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 65ms + 120ms); }
@keyframes monte { from { transform: translateY(0.5em) rotate(2deg); opacity: 0; filter: blur(8px); } }

.projecteur { --mx: 50%; --my: 20%; }
.projecteur::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(202, 147, 255, 0.13), transparent 45%);
}
.constellation { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
[data-tilt] { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: transform; }
[data-aimant] { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }

.defile { overflow: hidden; padding-block: 1.1rem; border-block: 1px solid rgba(51, 51, 51, 0.08); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.defile__piste { display: flex; gap: 2.4rem; width: max-content; animation: defile 42s linear infinite; }
.defile:hover .defile__piste { animation-play-state: paused; }
.defile span { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--encre-douce); white-space: nowrap; display: inline-flex; align-items: center; gap: 2.4rem; }
.defile span::after { content: "✦"; color: var(--violet); }
@keyframes defile { to { transform: translateX(-50%); } }

/* -- lecteur video du presentateur (emplacement Vimeo) ------------------------------ */
.cadre--vivant { position: relative; isolation: isolate; background: conic-gradient(from var(--angle), var(--aurore-1), var(--aurore-2), var(--aurore-3), #5CF2B0, var(--aurore-1)); animation: tourne 7s linear infinite; }
.cadre--vivant::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; filter: blur(34px); opacity: 0.5;
  background: conic-gradient(from var(--angle), var(--aurore-1), var(--aurore-2), var(--aurore-3), #5CF2B0, var(--aurore-1)); animation: tourne 7s linear infinite;
}
.lecteur { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rayon); overflow: hidden; color: var(--blanc); background: #1A0F0B; text-align: left; }
.lecteur__decor {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 55% at 82% 28%, rgba(255, 170, 90, 0.55), transparent 70%),
    radial-gradient(35% 45% at 12% 70%, rgba(255, 101, 53, 0.25), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 46px, rgba(0, 0, 0, 0.22) 46px 52px),
    linear-gradient(180deg, #4A2A1C 0%, #2B1812 55%, #140C10 100%);
}
.lecteur__decor::before, .lecteur__decor::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); }
.lecteur__decor::before { width: 70px; height: 70px; left: 14%; top: 18%; background: radial-gradient(circle, rgba(255, 210, 150, 0.55), transparent 70%); animation: flotte 7s ease-in-out infinite; }
.lecteur__decor::after { width: 46px; height: 46px; right: 26%; top: 58%; background: radial-gradient(circle, rgba(202, 147, 255, 0.5), transparent 70%); animation: flotte 9s ease-in-out infinite reverse; }
@keyframes flotte { 50% { transform: translate(14px, -18px) scale(1.15); opacity: 0.6; } }
.lecteur__personne { position: absolute; left: 50%; bottom: 0; width: 46%; transform: translateX(-50%); filter: drop-shadow(0 0 30px rgba(255, 140, 70, 0.35)); animation: respiration 5s ease-in-out infinite; }
@keyframes respiration { 50% { transform: translateX(-50%) translateY(-4px) scale(1.01); } }
.lecteur::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 30%, transparent 55%, rgba(0, 0, 0, 0.65)); pointer-events: none; }
.lecteur__son {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 12px; border: 0; background: var(--violet); color: var(--blanc); font: 500 0.9rem var(--sans); cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(105, 86, 249, 0.9); animation: appel 2.4s ease-in-out infinite;
}
.lecteur.son-actif .lecteur__son { animation: none; background: rgba(18, 13, 38, 0.6); }
@keyframes appel { 50% { box-shadow: 0 0 0 8px rgba(105, 86, 249, 0.18), 0 8px 24px -8px rgba(105, 86, 249, 0.9); } }
.lecteur__lecture {
  position: absolute; left: 50%; top: 50%; z-index: 3; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(12px); display: grid; place-items: center; color: var(--blanc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); transition: transform 0.25s ease, opacity 0.3s ease;
}
.lecteur__lecture::before, .lecteur__lecture::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); animation: onde 2.4s ease-out infinite; }
.lecteur__lecture::after { animation-delay: 1.2s; }
@keyframes onde { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.lecteur__lecture:hover { transform: scale(1.06); }
.lecteur.en-lecture .lecteur__lecture { opacity: 0; pointer-events: none; }
.lecteur__soustitre {
  position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 3; margin: 0; max-width: 80%; text-align: center;
  padding: 0.35rem 0.8rem; border-radius: 8px; background: rgba(0, 0, 0, 0.55); font-size: clamp(0.8rem, 1.6vw, 1.05rem); color: #fff;
}
.lecteur__controles { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 0.9rem; font-family: var(--mono); font-size: 0.74rem; }
.lecteur__controles button { border: 0; background: transparent; color: #fff; cursor: pointer; padding: 4px; display: grid; place-items: center; }
.lecteur__piste { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.lecteur__rempli { display: block; width: 0; height: 100%; background: var(--aurore); }
.lecteur__etiquette { position: absolute; top: 20px; left: 20px; z-index: 3; color: rgba(255, 255, 255, 0.75); display: inline-flex; align-items: center; gap: 0.5rem; }
.lecteur__etiquette i { width: 7px; height: 7px; border-radius: 50%; background: var(--aurore-1); box-shadow: 0 0 10px var(--aurore-1); }
@media (max-width: 760px) {
  .lecteur { aspect-ratio: 4 / 5; }
  .lecteur__personne { width: 88%; }
  .lecteur__etiquette { display: none; }
  .lecteur__soustitre { bottom: 58px; max-width: 90%; }
}

/* -- section : le papier devient une app --------------------------------------------- */
.demo { padding-block: clamp(4rem, 8vw, 6rem); }
.demo .cadre { margin-top: 0; width: 100%; }

/* -- inscription (bloc Jotform) -------------------------------------------------------- */
.inscription-carte {
  width: min(460px, 100%); margin-inline: auto; padding: 1.6rem; border-radius: 24px; display: grid; gap: 0.8rem;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--nuit-trait); backdrop-filter: blur(14px);
}
.inscription-carte .bouton, .inscription-carte .bouton-google { width: 100%; }
.ou { display: flex; align-items: center; gap: 0.8rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--nuit-doux); }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--nuit-trait); }
.papier .ou, .carte-acces .ou { color: var(--encre-douce); }
.papier .ou::before, .papier .ou::after, .carte-acces .ou::before, .carte-acces .ou::after { background: rgba(51, 51, 51, 0.12); }

/* -- page d'acces (inscription / connexion) --------------------------------------------- */
.acces { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.acces__nuit { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); display: grid; align-content: space-between; gap: 2rem; }
.acces__nuit .conteneur-interne { position: relative; z-index: 1; display: grid; gap: 1.6rem; max-width: 520px; }
.acces__papier { display: grid; place-items: center; padding: clamp(2rem, 5vw, 4rem) clamp(16px, 4vw, 3rem); }
.carte-acces { width: min(440px, 100%); display: grid; gap: 1.1rem; }
.onglets { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--sable); }
.onglets button { border: 0; background: transparent; padding: 0.7rem; border-radius: 999px; font: 500 0.95rem var(--sans); color: var(--encre-douce); cursor: pointer; }
.onglets button[aria-selected="true"] { background: var(--blanc); color: var(--encre); box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.3); }
.champ-texte { display: grid; gap: 0.4rem; }
.champ-texte label { font-size: 0.9rem; font-weight: 500; }
.champ-texte input, .champ-texte textarea {
  width: 100%; padding: 0.9rem 1rem; border-radius: 14px; border: 1px solid rgba(51, 51, 51, 0.16); background: var(--blanc);
  font: 400 1rem var(--sans); color: var(--encre); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.champ-texte input:focus, .champ-texte textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(105, 86, 249, 0.15); }
.legal-mini { font-size: 0.82rem; color: var(--encre-douce); margin: 0; }
.prochaines { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.prochaines li { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: start; padding: 1rem; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--nuit-trait); }
.prochaines b { display: block; color: var(--nuit-texte); font-weight: 500; }
.prochaines span.num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 500 0.85rem var(--mono); border: 1px solid rgba(202, 147, 255, 0.55); box-shadow: 0 0 20px -6px rgba(202, 147, 255, 0.7); }
@media (max-width: 900px) { .acces { grid-template-columns: 1fr; } .acces__nuit { order: 2; } }

/* -- commande en 4 etapes ------------------------------------------------------------------ */
.commande { display: grid; grid-template-columns: 320px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem) 5rem; }
.rail { position: sticky; top: 90px; display: grid; gap: 1.4rem; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; position: relative; }
.rail ol li { display: grid; grid-template-columns: 38px 1fr; gap: 0.8rem; align-items: center; padding: 0.6rem; border-radius: 16px; color: var(--encre-douce); transition: background 0.3s ease; }
.rail ol li i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 500 0.8rem var(--mono); font-style: normal; border: 1px solid rgba(51, 51, 51, 0.2); background: var(--blanc); transition: all 0.35s ease; }
.rail ol li.actuel { background: var(--blanc); color: var(--encre); box-shadow: 0 12px 30px -20px rgba(105, 86, 249, 0.7); }
.rail ol li.actuel i { background: var(--violet); border-color: var(--violet); color: var(--blanc); box-shadow: 0 0 0 5px rgba(105, 86, 249, 0.15); }
.rail ol li.fait i { background: var(--menthe); border-color: transparent; color: var(--encre); }
.rail ol li.fait i::before { content: "✓"; }
.rail ol li.fait i span { display: none; }
.rail ol li b { display: block; font-weight: 500; }
.rail ol li small { font-size: 0.8rem; }
.pastille-delai { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.9rem; border-radius: 14px; background: var(--nuit); color: var(--nuit-texte); font-size: 0.88rem; }
.pastille-delai i { width: 8px; height: 8px; border-radius: 50%; background: #5CF2B0; box-shadow: 0 0 10px #5CF2B0; animation: pouls 1.8s ease-in-out infinite; flex: none; }
.panneau-etape { background: var(--blanc) var(--grain); border-radius: 30px; padding: clamp(1.5rem, 4vw, 2.8rem); display: grid; gap: 1.5rem; box-shadow: 0 40px 90px -60px rgba(51, 51, 51, 0.5); border: 1px solid rgba(51, 51, 51, 0.06); animation: entree 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes entree { from { opacity: 0; transform: translateY(18px) scale(0.99); } }
.panneau-etape h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.panneau-etape > p { margin: 0; color: var(--encre-douce); }
.navigation-etape { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.5rem; }
.retour { border: 0; background: transparent; font: 500 0.95rem var(--sans); color: var(--encre-douce); cursor: pointer; }
.depot {
  position: relative; display: grid; place-items: center; gap: 0.6rem; text-align: center; padding: 2.4rem 1rem; border-radius: 22px; cursor: pointer;
  border: 2px dashed rgba(105, 86, 249, 0.35); background: linear-gradient(180deg, rgba(208, 198, 243, 0.18), rgba(208, 198, 243, 0.04)); transition: border-color 0.25s ease, transform 0.25s ease;
}
.depot:hover { border-color: var(--violet); transform: translateY(-2px); }
.depot svg { width: 46px; color: var(--violet); animation: flotte 4s ease-in-out infinite; }
.depot b { font-weight: 500; font-size: 1.05rem; }
.depot small { color: var(--encre-douce); }
.fichier-charge { display: grid; grid-template-columns: 44px 1fr auto; gap: 0.9rem; align-items: center; padding: 0.9rem 1rem; border-radius: 16px; background: var(--papier); border: 1px solid rgba(51, 51, 51, 0.08); }
.fichier-charge__icone { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--rose); font: 500 0.7rem var(--mono); }
.fichier-charge small { color: var(--encre-douce); }
.barre-envoi { grid-column: 2 / 4; height: 5px; border-radius: 5px; background: rgba(51, 51, 51, 0.08); overflow: hidden; }
.barre-envoi i { display: block; height: 100%; width: 100%; background: var(--aurore); animation: envoi-fichier 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes envoi-fichier { from { width: 0; } }
.choix-usage { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; border: 0; padding: 0; margin: 0; }
.choix-usage legend { font-weight: 500; margin-bottom: 0.7rem; }
.option { position: relative; display: grid; gap: 0.5rem; padding: 1.1rem; border-radius: 20px; border: 1.5px solid rgba(51, 51, 51, 0.12); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.option:hover { transform: translateY(-2px); }
.option input { position: absolute; opacity: 0; }
.option svg { width: 38px; height: 38px; color: var(--encre); }
.option small { color: var(--encre-douce); }
.option:has(input:checked) { border-color: var(--violet); background: rgba(208, 198, 243, 0.25); box-shadow: 0 0 0 4px rgba(105, 86, 249, 0.1); }
.option:has(input:focus-visible) { outline: 3px solid var(--aurore-3); outline-offset: 3px; }
.coche { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem; border-radius: 16px; background: var(--papier); cursor: pointer; }
.coche input { width: 20px; height: 20px; accent-color: var(--violet); margin-top: 2px; flex: none; }
.carte-stripe { display: grid; gap: 0.6rem; padding: 1.2rem; border-radius: 18px; border: 1px solid rgba(51, 51, 51, 0.12); background: var(--blanc); }
.carte-stripe__ligne { display: grid; grid-template-columns: 1.6fr 1fr 0.8fr; gap: 0.6rem; }
.faux-champ { padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid rgba(51, 51, 51, 0.14); color: var(--encre-douce); font-family: var(--mono); font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; }
.carte-stripe small { color: var(--encre-douce); font-size: 0.78rem; }
.zero { display: flex; align-items: baseline; gap: 0.6rem; }
.zero b { font: 700 italic clamp(3rem, 7vw, 4.6rem)/1 var(--serif); letter-spacing: -0.03em; }
.succes-anim { position: relative; width: 110px; height: 110px; margin-inline: auto; }
.succes-anim svg { width: 110px; height: 110px; }
.succes-anim circle.fond { stroke: rgba(92, 242, 176, 0.25); }
.succes-anim circle.trait { stroke: #2EC98B; stroke-dasharray: 314; stroke-dashoffset: 314; animation: trace 1s 0.1s ease forwards; transform: rotate(-90deg); transform-origin: center; }
.succes-anim path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: trace 0.5s 0.9s ease forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.eclat { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 2px; opacity: 0; animation: eclate 1.2s 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards; }
@keyframes eclate { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(220deg) scale(0.6); } }
.anneau { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-inline: auto; }
.anneau svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.anneau circle { fill: none; stroke-width: 6; }
.anneau .piste { stroke: rgba(51, 51, 51, 0.08); }
.anneau .jauge { stroke: url(#grad-anneau); stroke-linecap: round; stroke-dasharray: 427; stroke-dashoffset: calc(427 * (1 - var(--p, 0.26))); transition: stroke-dashoffset 1s linear; }
.anneau b { font: 500 1.35rem var(--mono); letter-spacing: -0.02em; }
.anneau small { display: block; text-align: center; font-size: 0.72rem; color: var(--encre-douce); }
.succes { display: grid; gap: 1.4rem; text-align: center; justify-items: center; }
.succes .liste-verifiee { text-align: left; }
@media (max-width: 900px) {
  .commande { grid-template-columns: 1fr; }
  .rail { position: static; }
  .rail ol { grid-template-columns: repeat(4, 1fr); }
  .rail ol li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0.4rem; }
  .rail ol li small { display: none; }
  .rail ol li b { font-size: 0.72rem; }
}
@media (max-width: 560px) { .choix-usage { grid-template-columns: 1fr; } .carte-stripe__ligne { grid-template-columns: 1fr 1fr; } .carte-stripe__ligne .faux-champ:first-child { grid-column: 1 / -1; } }

/* -- espace client ------------------------------------------------------------------------- */
.tableau { padding-block: clamp(2rem, 5vw, 3.5rem) 5rem; display: grid; gap: 1.6rem; }
.tableau__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.tableau__tete h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.echantillon { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--jaune); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.chiffre { padding: 1.3rem 1.4rem; border-radius: 22px; background: rgba(255, 255, 255, 0.65); border: 1px solid rgba(51, 51, 51, 0.06); display: grid; gap: 0.3rem; }
.chiffre b { font: 700 italic clamp(2.2rem, 4vw, 3rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.chiffre b.mono { font: 500 clamp(1.5rem, 3vw, 2rem)/1.2 var(--mono); font-style: normal; }
.chiffre small { color: var(--encre-douce); }
.grille-tableau { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.2rem; align-items: start; }
.liste-formulaires { display: grid; gap: 1rem; }
.fiche { position: relative; display: grid; gap: 1rem; padding: 1.4rem 1.5rem; border-radius: 24px; background: var(--blanc); border: 1px solid rgba(51, 51, 51, 0.07); overflow: hidden; }
.fiche::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--bande, var(--lavande)); }
.fiche--live { --bande: #2EC98B; }
.fiche--apercu { --bande: var(--violet); }
.fiche--fabrication { --bande: var(--aurore-1); }
.fiche__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; }
.fiche__tete h3 { font-size: 1.15rem; }
.statut-pastille { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 500; }
.statut-pastille i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.statut-pastille--live { background: rgba(46, 201, 139, 0.14); color: #1E8A5E; }
.statut-pastille--live i { animation: pouls 1.8s ease-in-out infinite; }
.statut-pastille--apercu { background: rgba(105, 86, 249, 0.12); color: var(--violet-fonce); }
.statut-pastille--fabrication { background: rgba(255, 101, 53, 0.12); color: #C2461C; }
.frise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.frise span { height: 4px; border-radius: 4px; background: rgba(51, 51, 51, 0.08); }
.frise span.ok { background: var(--aurore); }
.frise-legende { display: grid; grid-template-columns: repeat(4, 1fr); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-douce); margin-top: -0.6rem; }
.jauge-usage { display: grid; gap: 0.4rem; }
.jauge-usage__barre { height: 10px; border-radius: 10px; background: rgba(51, 51, 51, 0.07); overflow: hidden; position: relative; }
.jauge-usage__barre i { position: absolute; inset: 0 auto 0 0; width: var(--v, 70%); background: linear-gradient(90deg, #5CF2B0, #2EC98B); border-radius: 10px; transition: width 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.jauge-usage__barre::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: 100%; width: 2px; background: var(--encre); transform: translateX(-2px); }
.fiche__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.fiche__actions .bouton { padding: 0.65em 1.2em; font-size: 0.92rem; }
.rebours { display: flex; align-items: center; gap: 1rem; }
.rebours .anneau { width: 96px; height: 96px; margin: 0; }
.rebours .anneau b { font-size: 0.95rem; }
.cote { display: grid; gap: 1rem; }
.carte-drive { position: relative; overflow: hidden; padding: 1.4rem; border-radius: 24px; background: var(--nuit); color: var(--nuit-texte); display: grid; gap: 0.9rem; }
.carte-drive > * { position: relative; z-index: 1; }
.carte-drive p { margin: 0; color: var(--nuit-doux); font-size: 0.93rem; }
.connecte { display: inline-flex; align-items: center; gap: 0.5rem; color: #5CF2B0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.connecte i { width: 8px; height: 8px; border-radius: 50%; background: #5CF2B0; box-shadow: 0 0 10px #5CF2B0; animation: pouls 1.8s ease-in-out infinite; }
.activite { padding: 1.4rem; border-radius: 24px; background: rgba(255, 255, 255, 0.65); border: 1px solid rgba(51, 51, 51, 0.06); display: grid; gap: 0.9rem; }
.activite ol { list-style: none; margin: 0; padding: 0 0 0 1.1rem; display: grid; gap: 0.9rem; border-left: 1px solid rgba(105, 86, 249, 0.25); }
.activite li { position: relative; font-size: 0.92rem; }
.activite li::before { content: ""; position: absolute; left: calc(-1.1rem - 5px); top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(105, 86, 249, 0.12); }
.activite time { display: block; font-family: var(--mono); font-size: 0.68rem; color: var(--encre-douce); letter-spacing: 0.06em; }
@media (max-width: 900px) { .grille-tableau, .chiffres { grid-template-columns: 1fr; } }

/* -- apercu ----------------------------------------------------------------------------------- */
.apercu { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem) 5rem; }
.scene-appareil { position: relative; display: grid; place-items: center; padding: 2rem 1rem; border-radius: 32px; background: var(--nuit); overflow: hidden; min-height: 640px; }
.bascule-appareil { position: relative; z-index: 2; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--nuit-trait); margin-bottom: 1.4rem; }
.bascule-appareil button { border: 0; background: transparent; color: var(--nuit-doux); padding: 0.5rem 1.1rem; border-radius: 999px; font: 500 0.88rem var(--sans); cursor: pointer; }
.bascule-appareil button[aria-pressed="true"] { background: var(--violet); color: var(--blanc); }
.appareil { position: relative; z-index: 1; width: 300px; height: 560px; padding: 12px; border-radius: 44px; background: linear-gradient(145deg, #2A2250, #0E0A1E); box-shadow: 0 0 0 1px rgba(208, 198, 243, 0.25), 0 40px 80px -30px rgba(83, 103, 255, 0.6); transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), height 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), border-radius 0.6s ease; }
.appareil[data-appareil="tablette"] { width: min(460px, 100%); height: 560px; border-radius: 30px; }
.appareil__ecran { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--papier); color: var(--encre); position: relative; }
.appareil[data-appareil="tablette"] .appareil__ecran { border-radius: 20px; }
.defile-vertical { display: grid; gap: 0.9rem; padding: 1.2rem; animation: monte-page 18s ease-in-out infinite alternate; }
@keyframes monte-page { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(calc(-100% + 520px)); } }
.appareil__ecran:hover .defile-vertical { animation-play-state: paused; }
.form-tete { display: grid; gap: 0.5rem; }
.form-tete b { font-size: 1.1rem; }
.form-champ { display: grid; gap: 0.3rem; font-size: 0.82rem; }
.form-champ span { padding: 0.65rem 0.75rem; border-radius: 12px; background: var(--blanc); border: 1px solid rgba(51, 51, 51, 0.12); font-size: 0.9rem; }
.form-puces { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.form-puces span { padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid rgba(51, 51, 51, 0.15); font-size: 0.8rem; background: var(--blanc); }
.form-puces .on { background: var(--violet); color: var(--blanc); border-color: transparent; }
.form-signature { height: 90px; border-radius: 14px; border: 1.5px dashed rgba(51, 51, 51, 0.25); background: var(--blanc); display: grid; place-items: center; color: var(--stylo); }
.form-signature svg { width: 150px; }
.form-bouton { padding: 0.85rem; border-radius: 999px; background: var(--violet); color: var(--blanc); text-align: center; font-weight: 500; }
.panneau-decision { display: grid; gap: 1.3rem; position: sticky; top: 90px; }
.verifs { display: grid; gap: 0.6rem; }
.verifs label { display: flex; gap: 0.8rem; align-items: center; padding: 0.9rem 1rem; border-radius: 16px; background: var(--blanc); border: 1px solid rgba(51, 51, 51, 0.08); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.verifs label:has(input:checked) { border-color: rgba(46, 201, 139, 0.6); background: rgba(201, 245, 227, 0.45); }
.verifs input { width: 20px; height: 20px; accent-color: #2EC98B; flex: none; }
.en-ligne { display: grid; gap: 1rem; padding: 1.5rem; border-radius: 24px; background: var(--nuit); color: var(--nuit-texte); position: relative; overflow: hidden; animation: entree 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.en-ligne > * { position: relative; z-index: 1; }
.adresse { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--nuit-trait); font-family: var(--mono); font-size: 0.85rem; }
.adresse em { font-style: normal; color: #5CF2B0; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 900px) { .apercu { grid-template-columns: 1fr; } .panneau-decision { position: static; } .scene-appareil { min-height: 0; } .appareil, .appareil[data-appareil="tablette"] { width: min(300px, 100%); } }

/* -- pages legales ------------------------------------------------------------------------------ */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-block: 1rem 5rem; }
.sommaire { position: sticky; top: 96px; display: grid; gap: 0.2rem; }
.sommaire a { display: block; padding: 0.45rem 0.8rem; border-radius: 10px; text-decoration: none; color: var(--encre-douce); font-size: 0.93rem; border-left: 2px solid transparent; }
.sommaire a:hover, .sommaire a.actif { color: var(--encre); background: rgba(255, 255, 255, 0.6); border-left-color: var(--violet); }
.texte-legal { max-width: 68ch; }
.texte-legal h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.6rem 0 0.8rem; scroll-margin-top: 96px; }
.texte-legal h2:first-of-type { margin-top: 0; }
.texte-legal p { margin: 0 0 1rem; color: #45404B; }
.en-bref { margin: 0 0 2.4rem; padding: 1.4rem 1.5rem; border-radius: 22px; background: var(--nuit); color: var(--nuit-texte); display: grid; gap: 0.7rem; position: relative; overflow: hidden; }
.en-bref > * { position: relative; z-index: 1; }
.en-bref ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; color: var(--nuit-doux); }
.brouillon { display: inline-flex; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--jaune); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .sommaire { position: static; grid-auto-flow: column; overflow-x: auto; padding-bottom: 0.4rem; } .sommaire a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; } }

@media (prefers-reduced-motion: reduce) {
  .js-effets [data-reveal]:not(.vu) { opacity: 1; transform: none; filter: none; }
  .mot { animation: none; }
  .cadre--vivant, .cadre--vivant::before { animation: none; }
  .defile__piste { animation: none; }
  .defile-vertical { animation: none; }
}

/* -- calculateur de temps ------------------------------------------------------------------ */
.calculateur { --remplissage: 30%; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.5rem, 4vw, 2.8rem); border-radius: 32px; background: var(--blanc) var(--grain); border: 1px solid rgba(51, 51, 51, 0.07); box-shadow: 0 40px 90px -60px rgba(51, 51, 51, 0.5); }
.curseur { display: grid; gap: 0.6rem; }
.curseur label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 500; }
.curseur output { font: 500 1.1rem var(--mono); color: var(--violet); }
.curseur input[type=range] { width: 100%; accent-color: var(--violet); height: 28px; }
.curseur small { color: var(--encre-douce); }
.resultat { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--nuit); color: var(--nuit-texte); display: grid; gap: 0.6rem; }
.resultat > * { position: relative; z-index: 1; }
.resultat::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--remplissage); background: linear-gradient(180deg, rgba(83, 103, 255, 0.35), rgba(255, 101, 53, 0.25)); transition: height 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.resultat b { font: 700 italic clamp(3.6rem, 9vw, 6rem)/0.95 var(--serif); letter-spacing: -0.04em; }
.resultat p { margin: 0; color: var(--nuit-doux); }
@media (max-width: 860px) { .calculateur { grid-template-columns: 1fr; } }

/* -- notre histoire, en frise ----------------------------------------------------------------- */
.histoire { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding-top: 5.5rem; }
.histoire__courbe { position: absolute; left: 0; right: 0; top: 0; height: 120px; width: 100%; overflow: visible; }
.histoire__courbe path { fill: none; stroke: url(#grad-histoire); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 0; }
.js-effets .histoire:not(.vu) .histoire__courbe path { stroke-dashoffset: 1400; }
.js-effets .histoire .histoire__courbe path { transition: stroke-dashoffset 2.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.chapitre { position: relative; display: grid; gap: 0.6rem; align-content: start; padding: 1.3rem; border-radius: 22px; background: var(--blanc) var(--grain); border: 1px solid rgba(51, 51, 51, 0.07); box-shadow: 0 24px 50px -40px rgba(51, 51, 51, 0.5); }
.chapitre::before { content: ""; position: absolute; top: -2.2rem; left: 1.3rem; width: 16px; height: 16px; border-radius: 50%; background: var(--blanc); border: 3px solid var(--violet); box-shadow: 0 0 0 6px rgba(105, 86, 249, 0.12); }
.chapitre:nth-child(3) { margin-top: 1.5rem; } .chapitre:nth-child(4) { margin-top: 0.5rem; } .chapitre:nth-child(5) { margin-top: -0.5rem; } .chapitre:nth-child(6) { margin-top: -1.5rem; }
.chapitre h3 { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; }
.chapitre p { margin: 0; color: var(--encre-douce); font-size: 0.95rem; }
.chapitre .tache { width: 46px; height: 42px; }
.chapitre .tache svg { width: 22px; height: 22px; }
@media (max-width: 1000px) {
  .histoire { grid-template-columns: 1fr; padding-top: 0; padding-left: 2.4rem; }
  .histoire__courbe { display: none; }
  .histoire::before { content: ""; position: absolute; left: 0.55rem; top: 0.5rem; bottom: 0.5rem; width: 3px; border-radius: 3px; background: var(--aurore); }
  .chapitre, .chapitre:nth-child(n) { margin-top: 0; }
  .chapitre::before { top: 1.4rem; left: -2.35rem; }
}

/* -- integrations Google ------------------------------------------------------------------------ */
.integrations { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 0; margin-top: 1rem; }
.appli-noeud { display: grid; justify-items: center; gap: 0.8rem; text-align: center; }
.appli-noeud__icone { width: 112px; height: 112px; border-radius: 30px; display: grid; place-items: center; background: var(--blanc); box-shadow: 0 0 0 1px rgba(208, 198, 243, 0.25), 0 30px 60px -24px rgba(83, 103, 255, 0.55); animation: flotte-doux 6s ease-in-out infinite; }
.appli-noeud:nth-child(3) .appli-noeud__icone { animation-delay: -2s; }
.appli-noeud:nth-child(5) .appli-noeud__icone { animation-delay: -4s; }
.appli-noeud__icone svg { width: 58px; height: 58px; }
.appli-noeud__icone--marque { background: var(--aurore); }
.appli-noeud b { font-weight: 500; color: var(--nuit-texte); }
.appli-noeud small { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nuit-doux); max-width: 22ch; }
@keyframes flotte-doux { 50% { transform: translateY(-10px); } }
.cable { position: relative; width: clamp(60px, 10vw, 150px); height: 2px; background: repeating-linear-gradient(90deg, rgba(208, 198, 243, 0.45) 0 6px, transparent 6px 12px); }
.cable i { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #5CF2B0; box-shadow: 0 0 14px #5CF2B0; animation: parcours 2.6s ease-in-out infinite; }
.cable:nth-of-type(2) i { animation-delay: 1.3s; }
@keyframes parcours { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.logos-ligne { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem 1.4rem; margin-top: 2.4rem; }
.logo-pastille { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--nuit-trait); color: var(--nuit-texte); font-size: 0.9rem; }
.logo-pastille svg { width: 20px; height: 20px; }
.confiance .logo-inline { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .integrations { grid-template-columns: 1fr; justify-items: center; gap: 0.4rem; }
  .cable { width: 2px; height: 46px; background: repeating-linear-gradient(180deg, rgba(208, 198, 243, 0.45) 0 6px, transparent 6px 12px); }
  .cable i { left: -4px !important; animation-name: parcours-vertical; }
}
@keyframes parcours-vertical { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .appli-noeud__icone, .cable i { animation: none; } }

/* le fond etoile reste en arriere-plan, meme dans les cartes qui positionnent leurs enfants */
.carte-drive > .constellation, .en-ligne > .constellation, .en-bref > .constellation, .resultat > .constellation, .acces__nuit > .constellation { position: absolute; z-index: 0; }

@media (max-width: 760px) { .barre nav .micro { display: none !important; } }

@media (min-width: 1001px) { .chapitre::before { display: none; } }

/* -- resultats mesures ----------------------------------------------------------------------- */
.resultats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; width: min(1060px, 100%); margin-top: 2.4rem; }
.resultat-carte { position: relative; overflow: hidden; padding: 1.4rem 1.5rem; border-radius: 24px; background: var(--blanc) var(--grain); border: 1px solid rgba(51, 51, 51, 0.07); display: grid; gap: 0.35rem; align-content: start; text-align: left; box-shadow: 0 30px 60px -50px rgba(51, 51, 51, 0.5); }
.resultat-carte b { font: 700 italic clamp(2.8rem, 5.4vw, 3.8rem)/1 var(--serif); letter-spacing: -0.03em; background: var(--aurore); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: start; padding-right: 0.1em; }
.resultat-carte h3 { font-size: 1.05rem; }
.passage { display: flex; align-items: center; gap: 0.5rem; font: 500 0.82rem var(--mono); color: var(--encre-douce); }
.passage s { color: #C2461C; }
.passage strong { color: #1E8A5E; }
.resultat-carte small { color: var(--encre-douce); }
.note-source { margin: 1rem 0 0; font-size: 0.82rem; color: var(--encre-douce); max-width: 70ch; }
.choix-preuves { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.choix-preuves legend { font-weight: 500; margin-bottom: 0.7rem; }
.choix-preuves small { color: var(--encre-douce); font-weight: 400; }
@media (max-width: 760px) { .resultats { grid-template-columns: 1fr; } }

/* lecteur : la vraie video remplace l'animation des qu'un identifiant Vimeo est pose */
.lecteur__video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; }
.offre--pleine { margin-top: 0; border: 0; width: 100%; }

/* commande reelle : titres d'etape, rail, formulaire de carte */
.titre-etape { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.rail__titre { display: grid; gap: 0.4rem; }
.rail__accroche { margin: 0; font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -0.035em; }
.rail__promesses { font-size: 0.92rem; color: var(--encre-douce); }
.micro--ligne { display: inline-flex; }
.bouton-google--gauche { justify-self: start; }
.depot--choisi { border-style: solid; border-color: var(--violet); }
.formulaire-carte { display: grid; gap: 1.2rem; }
.conditions { margin: 0; color: var(--encre-douce); }
.succes__echeance { margin: 0; color: var(--encre-douce); }

/* espace client reel : etats en attente et coupe, carte Drive, notes */
.defs-svg { position: absolute; width: 0; height: 0; overflow: hidden; }
.fiche--attente { --bande: var(--jaune); }
.fiche--coupe { --bande: rgba(51, 51, 51, 0.25); }
.statut-pastille--attente { background: rgba(251, 227, 142, 0.5); color: #7A5B00; }
.statut-pastille--coupe { background: rgba(51, 51, 51, 0.08); color: var(--encre-douce); }
.fiche__texte { margin: 0; color: var(--encre-douce); }
.fiche__note { color: var(--encre-douce); }
.jauge-usage__ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem; font-size: 0.92rem; }
.bouton--petit { padding: 0.55em 1em; }
.drive-tete { display: flex; align-items: center; gap: 0.8rem; }
.drive-titre { font-size: 1.05rem; font-weight: 500; letter-spacing: 0; }
.carte-drive .etiquette { color: var(--nuit-doux); }
.carte-drive .liaison { display: grid; gap: 0.8rem; }
.coche--nuit { background: rgba(255, 255, 255, 0.06); color: var(--nuit-texte); font-size: 0.9rem; }
.carte-drive__fort { color: var(--nuit-texte); }
.tableau__titre { display: grid; gap: 0.6rem; justify-items: start; }

/* apercu reel : attente, liens sur la nuit, decision */
.apercu-attente { margin: 0; height: 100%; display: grid; place-items: center; padding: 2rem; text-align: center; color: var(--encre-douce); }
.micro--nuit { position: relative; z-index: 1; margin-top: 1.2rem; color: var(--nuit-doux); }
.lien-nuit { position: relative; z-index: 1; color: var(--nuit-texte); font-size: 0.9rem; }
.panneau-decision__tete { display: grid; gap: 0.6rem; }
.titre-decision { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.decision { display: grid; gap: 1rem; }
.titre-en-ligne { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.en-ligne__texte { margin: 0; color: var(--nuit-doux); }
.actions--gauche { justify-content: flex-start; }
