/* Page d'accueil (pages/landing.php) : scenes, mondes, atelier, fonctionnalites phares.
   Charge APRES public/site/css/site.css. Source de travail : maquettes/accueil-v2/. */

/* ===================== Vitrine ===================== */

/* La page prend la couleur du monde affiche par le launcher (--acc), en teinte tres legere */
:root { --acc: #F09AD9; }
body.accueil { background: color-mix(in srgb, var(--acc) 10%, #F6F6F8); transition: background-color .5s ease; }
.entete { background: color-mix(in srgb, color-mix(in srgb, var(--acc) 10%, #F6F6F8) 86%, transparent); }
mark { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--acc) 70%, #fff) 58%, color-mix(in srgb, var(--acc) 70%, #fff) 92%, transparent 92%); color: inherit; padding: 0 .04em; transition: background .8s ease; }

/* ======================== Acte 1 : le launcher, plein cadre puis pose ======================== */
.scene-v { position: relative; height: 340vh; }
/* La scene colle SOUS l'en-tete et occupe exactement le reste de l'ecran : a l'arrivee, le titre
   est centre dans la partie visible, sans coup de defilement a donner. */
.scene-v .colle { position: sticky; top: var(--haut, 64px); height: calc(100vh - var(--haut, 64px)); overflow: hidden; }
.ambiance { position: absolute; left: 50%; top: 54%; width: calc(var(--lw, 1040px) * 1.35); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.ambiance img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(1.7) brightness(1.25); -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent); mask-image: radial-gradient(closest-side, #000 45%, transparent); transition: opacity 1.2s ease; }
.scene-v .cadre { position: absolute; left: 50%; top: 54%; width: var(--lw, 1040px); transform: translate(-50%, -50%) scale(var(--s, 1)); will-change: transform; }
.vl .vl-instant { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.vl .vl-instant.on { opacity: 1; transition: opacity .12s ease; }
.scene-v .cadre .vl { border-radius: calc(12px / var(--s, 1)); box-shadow: 0 30px 80px -30px rgba(9, 9, 11, calc(.4 * var(--ombre, 0))); }
.scene-v .voile { position: absolute; inset: 0; background: color-mix(in srgb, var(--acc) 6%, rgba(244, 242, 246, var(--voile, .62))); backdrop-filter: blur(var(--flou, 8px)) saturate(1.2); -webkit-backdrop-filter: blur(var(--flou, 8px)) saturate(1.2); pointer-events: none; }
.scene-v .hero { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 var(--gouttiere); }
.scene-v .hero-c { display: grid; justify-items: center; gap: 22px; max-width: 1000px; }
.scene-v .hero .t-display { font-size: clamp(42px, 7vw, 98px); }
.scene-v .hero .t-lead { max-width: 640px; color: #3F3F46; }
.scene-v .ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.scene-v .preuve { font-size: 14px; color: var(--t2); }
.scene-v .preuve b { color: var(--t1); font-weight: 620; }
.scene-v .indice { position: absolute; left: 0; right: 0; bottom: 26px; display: grid; justify-items: center; gap: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); }
.scene-v .indice i { width: 1px; height: 36px; background: linear-gradient(var(--t3), transparent); animation: descend 1.8s var(--ease) infinite; }
@keyframes descend { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.scene-v .legende { position: absolute; left: 0; right: 0; top: calc(54% - var(--lh, 586px) / 2 - 92px); text-align: center; display: grid; gap: 6px; opacity: 0; }
.scene-v .legende .t-h2 { font-size: clamp(26px, 2.6vw, 36px); }
.scene-v .notes { position: absolute; inset: 0; pointer-events: none; }
.scene-v .note { position: absolute; width: 200px; font-size: 14px; line-height: 1.4; color: var(--t2); opacity: 0; }
.scene-v .note b { display: block; font-size: 15px; color: var(--t1); font-weight: 600; margin-bottom: 2px; }
.scene-v .note::before { content: ''; position: absolute; top: 9px; width: 48px; height: 1px; background: var(--line-3); }
.scene-v .note::after { content: ''; position: absolute; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line-2); transition: background .8s ease; }
.scene-v .note.g { text-align: right; } .scene-v .note.g::before { right: -60px; } .scene-v .note.g::after { right: -66px; }
.scene-v .note.d::before { left: -60px; } .scene-v .note.d::after { left: -66px; }
.scene-v .mondes { position: absolute; left: 0; right: 0; top: calc(54% + var(--lh, 586px) / 2 + 26px); display: flex; justify-content: center; align-items: center; gap: 16px; opacity: 0; }
.mondes .t3 { font-size: 14px; }
.mondes-l { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px var(--line); }
.mondes-l button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 8px; border-radius: 9px; border: 0; background: none; font: 550 14px var(--font); color: var(--t2); cursor: pointer; }
.mondes-l button i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(9, 9, 11, .12); }
.mondes-l button[aria-pressed="true"] { background: #fff; color: var(--t1); box-shadow: 0 1px 2px rgba(9, 9, 11, .1); }
html:not(.anime-scene) .scene-v { height: auto; }
html:not(.anime-scene) .scene-v .colle { position: relative; height: auto; overflow: visible; display: grid; gap: 40px; padding: 56px 0 24px; }
html:not(.anime-scene) .scene-v .voile, html:not(.anime-scene) .scene-v .indice, html:not(.anime-scene) .scene-v .notes, html:not(.anime-scene) .scene-v .legende, html:not(.anime-scene) .scene-v .ambiance { display: none; }
html:not(.anime-scene) .scene-v .hero { position: relative; padding-top: 0; order: -1; }
html:not(.anime-scene) .scene-v .cadre { position: relative; left: auto; top: auto; transform: none; width: min(100% - 2 * var(--gouttiere), 1040px); margin: 0 auto; }
html:not(.anime-scene) .scene-v .cadre .vl { box-shadow: var(--ombre-launcher); }
html:not(.anime-scene) .scene-v .mondes { position: relative; top: auto; opacity: 1; flex-wrap: wrap; padding: 0 var(--gouttiere); }
html:not(.anime-scene) .scene-v .mondes .t3 { display: none; }
@media (max-width: 520px) { .mondes-l { flex-wrap: wrap; justify-content: center; } }

/* ======================== Acte 2 : la creation, etape par etape ======================== */
.acte { padding: clamp(64px, 9vw, 120px) 0 0; }
.atelier { position: relative; height: 520vh; }
.atelier .colle { position: sticky; top: var(--haut, 64px); height: calc(100vh - var(--haut, 64px)); display: grid; grid-template-columns: minmax(360px, 440px) 1fr; gap: 40px; padding: 24px var(--gouttiere); max-width: 1480px; margin: 0 auto; }
.gauche { position: relative; display: grid; align-content: center; }
.intro { position: absolute; inset: 0; display: grid; align-content: center; gap: 18px; }
.etapes-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; opacity: 0; }
.etapes-l > li { border-radius: var(--r-lg); padding: 14px 16px; transition: background .3s ease, box-shadow .3s ease; }
.etapes-l > li.on { background: var(--s1); box-shadow: 0 1px 2px rgba(9, 9, 11, .05), 0 0 0 1px var(--line); }
.etapes-l .tete { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.01em; color: var(--t3); transition: color .3s ease; }
.etapes-l li.on .tete, .etapes-l li.fait .tete { color: var(--t1); }
.etapes-l .rond { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; transition: all .3s ease; }
.etapes-l li.on .rond { border-color: var(--t1); }
.etapes-l li.fait .rond { background: var(--t1); border-color: var(--t1); color: #fff; }
.etapes-l li.fait .rond span { display: none; } .etapes-l li:not(.fait) .rond svg { display: none; }
.etapes-l .rond svg { width: 13px; height: 13px; }
.etapes-l .corps { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.etapes-l li.on .corps { grid-template-rows: 1fr; }
.etapes-l .corps > div { overflow: hidden; }
.etapes-l .corps p { margin: 10px 0 14px 36px; font-size: 15px; color: var(--t2); }
.mini { margin-left: 36px; display: grid; gap: 10px; padding-bottom: 4px; }
.champ { display: grid; gap: 6px; font-size: 13px; color: var(--t2); font-weight: 550; }
.saisie { height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--s1); display: flex; align-items: center; padding: 0 12px; font-size: 15px; color: var(--t1); font-weight: 450; }
.saisie .curseur { width: 1.5px; height: 18px; background: var(--t1); margin-left: 1px; animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.adresse { font: 13px var(--mono); color: var(--t3); }
.puces { display: flex; gap: 6px; flex-wrap: wrap; }
.puce { height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; font-size: 13px; font-weight: 550; background: var(--s1); }
.puce.on { border-color: var(--t1); box-shadow: inset 0 0 0 1px var(--t1); }
.mods { display: grid; gap: 6px; }
.mods > div { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: 0; transform: translateY(6px); transition: all .35s var(--ease); }
.mods > div.vu { opacity: 1; transform: none; }
.mods img { width: 24px; height: 24px; border-radius: 6px; }
.mods .src { margin-left: auto; font-size: 12px; color: var(--t3); }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--s3); gap: 2px; font-size: 13px; font-weight: 550; }
.seg span { padding: 5px 11px; border-radius: 7px; color: var(--t2); transition: all .25s ease; }
.seg span.on { background: var(--s1); color: var(--t1); box-shadow: 0 1px 2px rgba(9, 9, 11, .08); }
.pastilles { display: flex; gap: 8px; }
.pastilles i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(9, 9, 11, .12); transition: box-shadow .25s ease; }
.pastilles i.on { box-shadow: 0 0 0 2px var(--s1), 0 0 0 4px var(--t1); }
.publier { height: 42px; border-radius: 9px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.jauge { height: 6px; border-radius: 3px; background: var(--s3); overflow: hidden; } .jauge i { display: block; height: 100%; width: 0; background: var(--t1); border-radius: inherit; }
.etat-pub { font-size: 13px; color: var(--t2); display: flex; justify-content: space-between; }
.lien-pub { white-space: nowrap; overflow: hidden; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px; background: var(--s2); border: 1px solid var(--line); font: 13px var(--mono); opacity: 0; transition: opacity .4s ease; }
.lien-pub.vu { opacity: 1; } .lien-pub b { margin-left: auto; font: 600 12px var(--font); color: var(--ok); }
.toile { position: relative; display: grid; place-items: center; padding: 56px 40px 64px; }
/* La toile du dashboard, sans boite : ses points se fondent dans la page */
.toile::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--acc) 30%, rgba(9, 9, 11, .16)) 1.1px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 40%, transparent 100%); pointer-events: none; transition: background-image 1s ease; }
.toile > * { position: relative; }
.toile .etiq, .toile .bas, .toile .toast { position: absolute; }
.toile .etiq { position: absolute; top: 18px; left: 22px; right: 22px; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--t3); }
.toile .etiq span:last-child { letter-spacing: 0; text-transform: none; font-weight: 450; }
.toile .vl { width: min(100%, (100vh - 64px - 48px - 140px) * 980 / 552); box-shadow: var(--ombre-launcher); }
.toile .bas { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 22px; font-size: 13px; color: var(--t2); }
.toile .bas span { display: inline-flex; gap: 6px; align-items: center; } .toile .bas svg { width: 15px; height: 15px; color: var(--t3); }
.toast { position: absolute; left: 50%; bottom: 64px; transform: translate(-50%, 16px); background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; display: flex; gap: 10px; align-items: center; opacity: 0; transition: all .45s var(--ease); white-space: nowrap; }
.toast.vu { opacity: 1; transform: translate(-50%, 0); } .toast svg { width: 16px; height: 16px; color: #86EFAC; }
html:not(.anime-atelier) .atelier { height: auto; }
html:not(.anime-atelier) .atelier .colle { position: relative; top: 0; height: auto; grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
html:not(.anime-atelier) .atelier .gauche { display: contents; }
html:not(.anime-atelier) .atelier .intro { position: relative; order: 0; }
html:not(.anime-atelier) .atelier .etapes-l { opacity: 1; order: 2; margin-top: 8px; }
html:not(.anime-atelier) .atelier .etapes-l li .corps { grid-template-rows: 1fr; }
html:not(.anime-atelier) .atelier .toile { order: 1; padding: 44px 16px 52px; }
html:not(.anime-atelier) .atelier .toile .vl { width: 100%; }
html:not(.anime-atelier) .atelier .mods > div, html:not(.anime-atelier) .atelier .lien-pub { opacity: 1; transform: none; }
html:not(.anime-atelier) .atelier .toast { display: none; }

/* ======================== Acte 3 : les fonctionnalites phares ======================== */
/* Grand ecran : les visuels sont deplaces dans le panneau colle par le script */
html.grand .phare > .vis { display: none; }
.phares-g { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: clamp(28px, 4vw, 64px); }
.phare { min-height: 76vh; display: grid; align-content: center; gap: 12px; opacity: .3; transition: opacity .45s ease; }
.phare.on { opacity: 1; }
.phare .n { font: 500 13px var(--mono); color: var(--t3); }
.phare h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.03em; font-weight: 640; }
.phare p { color: var(--t2); font-size: 17px; }
.phare .faits { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--t2); }
.phare .faits li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; } .phare .faits svg { width: 15px; margin-top: 4px; color: var(--t1); }
.etiq-plan { justify-self: start; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: rgba(9, 9, 11, .06); color: var(--t2); }
.etiq-plan.bientot { background: var(--ink); color: #fff; }
.panneau-c { position: sticky; top: 88px; height: calc(100vh - 120px); align-self: start; }
.panneau { position: relative; height: 100%; border-radius: 28px; background: var(--pc, #F7CDEB); overflow: hidden; transition: background-color .7s ease; }
.panneau .vis { position: absolute; inset: 0; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .55s var(--ease), transform .7s var(--ease); pointer-events: none; display: grid; place-items: center; padding: 48px; }
.panneau .vis.on { opacity: 1; transform: none; pointer-events: auto; }
.vis .plaque { width: 100%; max-width: 860px; border-radius: 14px; box-shadow: 0 2px 4px rgba(9, 9, 11, .06), 0 30px 70px -28px rgba(9, 9, 11, .45); }
.panneau .vis .deborde { position: absolute; left: 48px; top: 56px; width: 128%; max-width: none; }
/* Coffre-fort : fichier en clair → fichier chiffre */
.coffre { width: min(560px, 100%); background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 30px 70px -28px rgba(9, 9, 11, .45); display: grid; gap: 14px; }
.coffre .t { display: flex; align-items: center; gap: 10px; font-weight: 620; } .coffre .t svg { width: 20px; height: 20px; }
.coffre .ligne { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; gap: 10px; font: 13px var(--mono); padding: 10px 12px; border-radius: 10px; background: var(--s2); opacity: 0; transform: translateX(-8px); transition: all .45s var(--ease); }
.vis.on .coffre .ligne { opacity: 1; transform: none; }
.vis.on .coffre .ligne:nth-child(4) { transition-delay: .15s; } .vis.on .coffre .ligne:nth-child(5) { transition-delay: .3s; }
.coffre .ligne > svg { width: 16px; height: 16px; color: var(--t3); }
.coffre .chiffre { color: #3C6EA8; display: flex; align-items: center; gap: 6px; } .coffre .chiffre svg { color: #3C6EA8; width: 13px; height: 13px; flex: none; }
.coffre .pied-c { font-size: 13px; color: var(--t3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* Anti-triche : le journal du lancement */
.console { width: min(600px, 100%); background: #111113; color: #E4E4E7; border-radius: 16px; padding: 22px 24px; box-shadow: 0 30px 70px -28px rgba(9, 9, 11, .6); font: 13.5px/1.75 var(--mono); }
.console .barre { display: flex; justify-content: space-between; gap: 12px; font: 600 12px var(--font); color: #A1A1AA; margin-bottom: 12px; letter-spacing: .02em; }
.console div.l { opacity: 0; transition: opacity .3s ease; display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.vis.on .console div.l { opacity: 1; }
.vis.on .console div.l:nth-child(3) { transition-delay: .3s; } .vis.on .console div.l:nth-child(4) { transition-delay: .6s; } .vis.on .console div.l:nth-child(5) { transition-delay: .9s; } .vis.on .console div.l:nth-child(6) { transition-delay: 1.2s; }
.console .ok { color: #86EFAC; } .console .non { color: #FCA5A5; } .console .gris { color: #71717A; }
@media (max-width: 1000px) {
  .phares-g { grid-template-columns: minmax(0, 1fr); } .panneau-c { display: none; }
  .phare { min-height: 0; opacity: 1; padding: 28px 0; border-top: 1px solid var(--line-2); }
  .phare .vis { position: relative; border-radius: 22px; background: var(--pc); padding: 20px; margin-top: 10px; overflow: hidden; display: grid; place-items: center; }
  .vis .coffre .ligne, .vis .console div.l { opacity: 1; transform: none; }
  .coffre .ligne { grid-template-columns: minmax(0, 1fr); gap: 4px; } .coffre .ligne > svg { display: none; }
  .console { font-size: 12px; padding: 16px; }
}

