/* Styles propres à Flash. Tout le reste vient de assets/css/site.css.
   Couleur du projet : le turquoise de la marque Flash. */
:root {
  --project-accent: #00AEC3;
  --project-accent-soft: rgba(0, 174, 195, 0.16);
}

/* Écrans de borne, au format paysage (1280 × 800) : on les cale en largeur, pas en hauteur. */
.duo-item img.is-landscape { height: auto; width: min(100%, 680px); }
.steps-figure img.is-landscape { width: min(480px, 100%); }
.steps--live .steps-figure img.is-landscape { height: auto; width: min(100%, 620px); max-height: 70vh; object-fit: contain; }
.screen-shot.is-landscape { border-radius: clamp(10px, 1.4vw, 18px); }

/* Deux écrans de téléphone côte à côte dans un bloc de choix */
.flash-pair { display: flex; gap: 16px; margin-top: 20px; }
.flash-pair img { width: min(200px, 45%); height: auto; border-radius: 18px; border: 1px solid var(--border-strong); }


/* Illustrations 3D du service (fond détouré) et photo du magasin */
.illu-3d { display: block; width: min(100%, 560px); height: auto; margin-inline: auto; }
.illu-3d.is-card { border-radius: 18px; background: #fff; }
.steps-figure .illu-3d { width: min(440px, 100%); max-height: 64vh; object-fit: contain; }
.steps-figure .photo { display: block; width: min(420px, 100%); height: auto; border-radius: 14px; }
.duo-item img.illu-3d { width: min(100%, 620px); height: auto; max-height: none; }
.photo-wide { display: block; width: min(100%, 560px); height: auto; border-radius: 14px; }

/* Les interfaces : la borne en grand, puis les deux apps côte à côte */
.embed { margin: 0; }
.embed--borne { height: 780px; }
.embed--phone { height: 910px; }
.apps-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; width: min(1120px, 100vw - 48px); margin: 56px 0 0 50%; transform: translateX(-50%); }
.apps-duo-item h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.apps-duo-item p { margin: 0 0 16px; color: var(--text-dim); }
.tag-ecarte { font-size: 13px; font-weight: 600; font-family: var(--font-display); color: #E5A04B; border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px; }
.apps-note { font-size: 13px; color: var(--text-dim); margin-top: 16px; }
@media (max-width: 760px) {
  .embed--borne { height: 560px; }
  .apps-duo { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

/* Enchaînement d'écrans dans une étape */
.seq { display: grid; }
.seq > img { grid-area: 1 / 1; opacity: 0; transition: opacity 0.18s ease; }
.seq > img.is-on { opacity: 1; }


/* Source des résultats, lisible (et non plus en note grise) */
.results-source { margin: -8px 0 32px; color: var(--text-muted); font-size: 15px; }

/* Page en deux temps (20/10/2026). Le turquoise de la marque, assombri pour le fond papier. */
:root { --project-accent-on-light: #0C6674; }

/* Écrans clés : illustrations 3D, écrans de borne et écran de téléphone dans un même cadre */
/* Les écrans de borne, en paysage, prennent une case plus large pour rester lisibles */
.key-screens--5 { grid-template-columns: 0.8fr 0.8fr 1.5fr 1.5fr 0.8fr; }
.key-fig { height: 230px; display: flex; align-items: center; justify-content: center; }
.key-screens .key-fig img { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; }
.key-screens .key-fig--land img { height: auto; border-radius: 8px; border: 1px solid var(--border-strong); }
.key-screens .key-fig--phone img { width: auto; max-width: 100%; border-radius: 14px; border: 1px solid var(--border-strong); }

/* Schémas de la version expliquée : les aplats sombres suivent les couleurs du fond papier */
.part-detail .diagram [fill="#131316"] { fill: var(--surface); }
.part-detail .diagram [stroke="#2A2A30"], .part-detail .diagram [stroke="#3A3A40"] { stroke: var(--border-strong); }
.part-detail .diagram [stroke="#1E1E22"] { stroke: var(--border); }
.part-detail .diagram [fill="#3A3A40"] { fill: var(--border-strong); }
.part-detail .diagram [stroke="#5BB8B0"] { stroke: var(--accent-retained); }
.part-detail .diagram [fill="#5BB8B0"] { fill: var(--accent-retained); }
.part-detail .tag-ecarte { color: var(--accent-discarded); }
@media (max-width: 1000px) { .key-screens--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .key-fig { height: 200px; }
  .key-screens li:has(.key-fig--land) { flex-basis: 78vw; }
}

/* « Agrandir » : la borne intégrée couvre tout l'écran du téléphone (voir projet.js). */
.embed.embed--zoom { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 1000; margin: 0; border: 0; background: #0A0A0C; }
html.has-embed-zoom, html.has-embed-zoom body { overflow: hidden; }
html.has-embed-zoom .zoom-host { transform: none !important; filter: none !important; contain: none !important; }




/* Fond sombre teinté au turquoise de Flash (Raph, 22/10). La partie papier garde ses couleurs.
   --text-dim un peu plus clair : 4,7:1 sur --surface. */
:root { --bg: #041517; --surface: #0A2225; --border: #123034; --border-strong: #1A3D42; --text-dim: #888888; }

/* Audit de mouvement 26/10, point 10 : l'illustration 3D du hero se pose avec un léger rebond,
   puis remonte de 8 px au survol (souris seulement) ; les 3D du plan font le même pop in à l'ouverture de l'étape. */
.duo-item { --guided-ease: cubic-bezier(.23, 1, .32, 1); }
.duo-item .illu-3d { animation: pop-3d 700ms var(--ease-out) .3s both; }
@keyframes pop-3d { 0% { opacity: 0; transform: translateY(16px) scale(.96); }
                    70% { opacity: 1; transform: translateY(-4px) scale(1.01); }
                    100% { opacity: 1; transform: none; } }
@keyframes rebond-3d { 0% { translate: 0 0; } 60% { translate: 0 -8px; } 100% { translate: 0 -6px; } }
@media (hover: hover) and (pointer: fine) {
  .duo-item .illu-3d { transition: translate 300ms var(--ease-out); }
  .duo-item:hover .illu-3d { translate: 0 -6px; animation: pop-3d 700ms var(--ease-out) .3s both, rebond-3d 480ms var(--guided-ease); }
}
.route-map--pinned li.is-current .route-map-visual--3d img { animation: pop-3d 520ms var(--guided-ease) 120ms both; }
@keyframes fade-in-3d { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .duo-item .illu-3d, .duo-item:hover .illu-3d { animation: fade-in-3d 300ms ease-out both; translate: none; }
  .route-map--pinned li.is-current .route-map-visual--3d img { animation: fade-in-3d 200ms ease-out both; }
}

