/* ==========================================================================
   ASTRAMED — Page d'accueil (index.html)
   © 2026 Sami KHILAN. Tous droits réservés.

   Une seule feuille, sans framework. Sombre la nuit, claire le jour (classe
   « clair » posée sur <html> de 7 h à 19 h par le petit script du <head> ;
   ?theme=clair ou ?theme=sombre pour forcer). Le jour, les maquettes passent
   au mode clair de l'application. Section 13.
   Couleurs : palette Nébuleuse de l'application (bleu, violet, rose).
   Les teintes neutres des surfaces et des textes passent par deux jetons,
   --s (surfaces, filets) et --t (texte des maquettes), que le mode clair
   inverse : rgba(var(--s), 0.06) éclaircit le sombre et fonce le clair.
   Animations : transform et opacity seulement, lancées à l'apparition par
   js/accueil.js (classes .is-in et .is-playing), figées dans leur état final
   si le système demande de réduire les animations.

   Sommaire
     1. Jetons            7. Atouts (rangées texte + maquette)
     2. Socle             8. Maquettes : item, cartes, tuteur, journée
     3. Ciel              9. Tuiles « Et aussi »
     4. Marque           10. Méthode, questions, appel
     5. Boutons          11. Pied
     6. Ouverture        12. Apparitions, mouvement réduit, appareils modestes
                         13. Version claire (le jour)
   ========================================================================== */

/* 1. Jetons ================================================================ */
:root {
    color-scheme: dark;
    --s: 255, 255, 255;
    --t: 233, 237, 248;
    --fond: #05060d;
    --encre: #f3f5fc;
    --encre-2: #a9b0c9;
    --encre-3: #6f7693;
    --trait: rgba(var(--s), 0.07);
    --trait-2: rgba(var(--s), 0.12);

    --bleu: #49a2fe;
    --violet: #9d69f3;
    --rose: #f65eab;
    --action: #5e95fc;
    --pervenche: #9bbefd;
    --lavande: #c4aafd;
    --turquoise: #64ded7;
    --or: #febd56;

    --degrade: linear-gradient(100deg, #49a2fe 0%, #9d69f3 52%, #f65eab 100%);
    --degrade-bouton: linear-gradient(100deg, #3d8bff 0%, #6c63f6 55%, #a15cf1 100%);
    --couchant: linear-gradient(100deg, #ffb347 0%, #ff6a5b 55%, #f65eab 100%);

    --p-titre: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    --p-texte: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
    --p-marque: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;

    --doux: cubic-bezier(0.22, 1, 0.36, 1);
    --aller-retour: cubic-bezier(0.65, 0, 0.35, 1);
    --largeur: 1200px;
    --marge: clamp(16px, 4vw, 40px);
}

/* 2. Socle ================================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    background: var(--fond);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--fond);
    color: var(--encre);
    font-family: var(--p-texte);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

/* Les lueurs décoratives débordent de leur bloc : on les rogne ici, sinon
   le téléphone élargit la page (et pousse l'en-tête hors de l'écran). */
main { overflow-x: hidden; }
@supports (overflow: clip) { main { overflow-x: clip; } }

img,
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
mark { color: inherit; background: none; }

::selection { background: rgba(157, 105, 243, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--pervenche); outline-offset: 3px; border-radius: 10px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement {
    position: fixed; z-index: 100; left: 16px; top: -64px;
    padding: 10px 16px; border-radius: 12px;
    background: #111633; color: var(--encre); font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--trait-2);
    transition: top 0.2s;
}
.evitement:focus { top: 12px; }

.ico {
    width: 1.25em; height: 1.25em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}

.ico-plein { fill: currentColor; stroke: none; }
/* Icônes de l'application (Material Symbols, Font Awesome) : tracés pleins. */
.icm { display: block; flex: none; width: 1.2em; height: 1.2em; fill: currentColor; }

.cadre { width: min(100% - 2 * var(--marge), var(--largeur)); margin-inline: auto; }
.cadre-large { width: min(100% - 2 * var(--marge), 1240px); margin-inline: auto; }
.cadre-etroit { width: min(100% - 2 * var(--marge), 820px); }

/* Liseré en dégradé posé sur le bord d'une surface : un calque découpé par
   masque (des dégradés, pas de fichier : fonctionne aussi en file://). */
.fen::before,
.video-cadre::after,
.tuile::before,
.appel::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: var(--lisere, linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(var(--s), 0.05) 38%, rgba(var(--s), 0.03) 62%, rgba(var(--teinte, 157, 105, 243), 0.35)));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

/* 3. Ciel ================================================================== */
.ciel {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(120% 70% at 50% 120%, rgba(40, 30, 90, 0.18), transparent 60%),
        var(--fond);
}
.ciel-etoiles { width: 100%; height: 100%; }
.ciel-etoiles circle { fill: #dfe6ff; }
/* Les étoiles qui scintillent sont des éléments HTML à part : leur opacité
   s'anime sur la carte graphique, sans redessiner le ciel entier. */
.etoile {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px 1px rgba(190, 210, 255, 0.8);
    animation: scintille 5s ease-in-out infinite;
}
@keyframes scintille { 0%, 100% { opacity: 0.85; } 50% { opacity: 0.12; } }

/* 4. Marque (même dessin que l'en-tête de l'application et les pages juridiques) */
.marque {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 14px;
    -webkit-tap-highlight-color: transparent;
}
.marque-signe { position: relative; flex: none; width: 2.5rem; height: 2.5rem; }
.marque-signe::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(59, 130, 246, 0.42), rgba(59, 130, 246, 0));
    opacity: 0.6;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.7s var(--doux);
}
.marque:hover .marque-signe::before { opacity: 1; transform: scale(1.3); }
.marque-signe img {
    position: relative;
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.45));
    transition: filter 0.5s ease;
}
.marque:hover .marque-signe img { filter: drop-shadow(0 0 12px rgba(147, 197, 253, 0.7)) drop-shadow(0 0 26px rgba(59, 130, 246, 0.45)); }
.marque-mot {
    position: relative;
    display: inline-block;
    font-family: var(--p-marque);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.4286;
    letter-spacing: 0.42em;
    margin-right: -0.42em;
    text-transform: uppercase;
    white-space: nowrap;
}
.marque-mot > span {
    color: #dbeafe;
    color: color-mix(in srgb, #bfdbfe calc(var(--i, 0) * 13%), #ffffff);
    transition: color 0.45s ease;
    transition-delay: calc(var(--i, 0) * 40ms);
}
.marque:hover .marque-mot > span {
    color: #93c5fd;
    color: color-mix(in srgb, #60a5fa calc(15% + var(--i, 0) * 9%), #e0f2fe);
}
/* Le A sans barre : découpe mesurée sur le glyphe Space Grotesk 700. */
.a-nobar {
    display: inline-block;
    clip-path: polygon(-50% -50%, 150% -50%, 150% 150%, 0.4879em 150%, 0.4879em 1.0893em, 0.3263em 0.4429em, 0.3076em 0.4429em, 0.1460em 1.0893em, 0.1460em 150%, -50% 150%);
    clip-path: polygon(-50% -50%, 150% -50%, 150% 150%,
        0.4879em 150%,
        0.4879em calc(1.0893em + (1lh - 1.4286em) / 2),
        0.3263em calc(0.4429em + (1lh - 1.4286em) / 2),
        0.3076em calc(0.4429em + (1lh - 1.4286em) / 2),
        0.1460em calc(1.0893em + (1lh - 1.4286em) / 2),
        0.1460em 150%,
        -50% 150%);
}
.marque-mot::after {
    content: '';
    position: absolute;
    left: 0; right: 0.42em; bottom: -2px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #93c5fd 20%, #3b82f6 80%, transparent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.7s var(--doux);
}
.marque:hover .marque-mot::after { transform: scaleX(1); }

/* 5. Boutons =============================================================== */
.btn {
    --h: 48px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    height: var(--h);
    padding: 0 1.35em;
    border-radius: 14px;
    font-family: var(--p-titre);
    font-weight: 700;
    font-size: 0.975rem;
    letter-spacing: -0.005em;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    transition: transform 0.35s var(--doux), box-shadow 0.35s var(--doux), background-color 0.25s, color 0.25s;
}
.btn .ico { width: 1.05em; height: 1.05em; stroke-width: 2.2; transition: transform 0.35s var(--doux); }
.btn:hover .ico-fleche { transform: translateX(3px); }
.btn-sm { --h: 40px; padding: 0 1.05em; font-size: 0.9rem; border-radius: 12px; }
.btn-lg { --h: 56px; padding: 0 1.6em; font-size: 1.0625rem; border-radius: 16px; }

.btn-plein {
    color: #fff;
    background: var(--degrade-bouton);
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(140, 150, 255, 0.22),
        0 12px 32px -12px rgba(100, 110, 255, 0.8);
}
/* Reflet qui traverse le bouton au survol. */
.btn-plein::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.26) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform 0.9s var(--doux);
}
.btn-plein:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(160, 165, 255, 0.35), 0 18px 44px -12px rgba(120, 110, 255, 0.9); }
.btn-plein:hover::after { transform: translateX(110%); }
.btn-plein:active { transform: translateY(0) scale(0.98); }

.btn-verre {
    color: var(--encre);
    background: rgba(var(--s), 0.045);
    box-shadow: inset 0 0 0 1px var(--trait-2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.btn-verre:hover { background: rgba(var(--s), 0.085); }
.btn-verre:active { transform: scale(0.98); }

@media (hover: none) {
    .btn-plein:hover { transform: none; }
    .btn-plein:hover::after { transform: translateX(-110%); }
    .btn:hover .ico-fleche { transform: none; }
}

/* En-tête ------------------------------------------------------------------ */
.entete {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s ease, border-color 0.4s ease, -webkit-backdrop-filter 0.4s ease, backdrop-filter 0.4s ease;
}
.entete.is-scrolled {
    background: rgba(6, 8, 18, 0.62);
    border-bottom-color: var(--trait);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
}
.entete-in { height: 72px; display: flex; align-items: center; gap: 24px; }
.entete-liens { display: flex; gap: 2px; margin-left: auto; }
.entete-liens a {
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--encre-2);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s, background-color 0.2s;
}
.entete-liens a:hover { color: var(--encre); background: rgba(var(--s), 0.05); }
.entete-actions { display: flex; gap: 10px; align-items: center; margin-left: 12px; }

@media (max-width: 900px) {
    .entete-liens { display: none; }
    .entete-actions { margin-left: auto; }
}
@media (max-width: 560px) {
    .entete-in { height: 64px; }
    .entete-inscription { display: none; }
    .marque { gap: 0.65rem; }
    .marque-signe { width: 2.25rem; height: 2.25rem; }
    .marque-mot { font-size: 1.02rem; letter-spacing: 0.34em; margin-right: -0.34em; }
    .marque-mot::after { right: 0.34em; }
}

/* 6. Ouverture ============================================================= */
.ouverture {
    position: relative;
    isolation: isolate;
    padding-top: clamp(124px, 17vh, 176px);
}
/* Lueur de nébuleuse derrière le titre et la vidéo (elle défile avec la page). */
.ouverture-lueur {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: -120px;
    width: min(1500px, 170vw);
    height: 1300px;
    transform: translateX(-50%);
    pointer-events: none;
    background:
        radial-gradient(38% 30% at 50% 22%, rgba(70, 110, 255, 0.22), transparent 70%),
        radial-gradient(24% 22% at 64% 30%, rgba(157, 105, 243, 0.16), transparent 70%),
        radial-gradient(22% 20% at 36% 34%, rgba(246, 94, 171, 0.09), transparent 70%),
        radial-gradient(46% 26% at 50% 66%, rgba(80, 90, 255, 0.13), transparent 72%);
}
.ouverture-grille {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 900px;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(var(--s), 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--s), 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    background-position: center -1px;
    -webkit-mask-image: radial-gradient(55% 50% at 50% 28%, #000 20%, transparent 75%);
    mask-image: radial-gradient(55% 50% at 50% 28%, #000 20%, transparent 75%);
}
.ouverture-tete { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* La place de l'ancienne pastille « Nouveau » (34 px) et de son écart
   (28 px) est gardée au-dessus du titre. */
.ouverture-titre {
    margin-top: 62px;
    font-family: var(--p-titre);
    font-weight: 800;
    font-size: clamp(2.3rem, 10.4vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}
.ouverture-titre .l1,
.ouverture-titre .l2 { display: block; padding-bottom: 0.06em; }
.ouverture-titre .l1 {
    background: linear-gradient(180deg, #ffffff 35%, #c3cbe6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* Le dégradé du logo, qui glisse lentement en boucle (comme la barre ASTRAMED). */
.ouverture-titre .l2 {
    background: linear-gradient(100deg, #5aa8ff, #9d69f3 30%, #f65eab 50%, #9d69f3 70%, #5aa8ff) 0 0 / 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: derive 14s linear infinite;
}
@keyframes derive { to { background-position: -200% 0; } }

.ouverture-chapo {
    margin-top: 24px;
    max-width: 36em;
    color: var(--encre-2);
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    text-wrap: pretty;
}
.ouverture-actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ouverture-plus {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    color: var(--encre-3);
    font-size: 0.875rem;
}
.ouverture-plus li { display: inline-flex; align-items: center; gap: 7px; }
.ouverture-plus .ico { width: 1em; height: 1em; stroke-width: 2.4; color: var(--pervenche); }

/* Entrée de l'ouverture, au chargement. */
.entree { animation: entree 1.1s var(--doux) both; animation-delay: calc(80ms + var(--n, 0) * 90ms); }
@keyframes entree {
    from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}
/* La vidéo : sa propre entrée (le filtre en continu sur elle coûterait trop). */
.scene-video.entree { animation-name: entree-video; animation-duration: 1.4s; }
@keyframes entree-video { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* Emplacement de la vidéo -------------------------------------------------- */
.scene-video {
    position: relative;
    margin-top: clamp(56px, 8vw, 88px);
    perspective: 2200px;
    perspective-origin: 50% 0;
}
/* Lumière derrière le bord haut, comme un astre qui se lève. */
.scene-video::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: 50%;
    top: -14%;
    width: 88%;
    height: 70%;
    transform: translateX(-50%);
    background: radial-gradient(50% 50% at 50% 50%, rgba(94, 120, 252, 0.42), rgba(157, 105, 243, 0.14) 48%, transparent 72%);
    pointer-events: none;
}
.video {
    margin: 0;
    border-radius: clamp(14px, 1.8vw, 22px);
    transform-origin: 50% 0;
    will-change: transform;
}
.video-cadre {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: inherit;
    overflow: hidden;
    background: #070915;
    box-shadow:
        0 0 0 1px rgba(var(--s), 0.04),
        0 50px 120px -30px rgba(0, 0, 0, 0.95),
        0 0 100px -30px rgba(94, 120, 252, 0.45);
    --lisere: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(var(--s), 0.06) 30%, rgba(157, 105, 243, 0.18) 100%);
}
.video-voile {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(26% 32% at 50% 50%, rgba(5, 6, 13, 0.4), transparent 75%);
    transition: opacity 0.4s;
}
.video-lire {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 1.6vw, 18px);
    cursor: default;
    border-radius: 24px;
}
.video[data-pret] .video-lire { cursor: pointer; }
.lire-disque {
    --d: clamp(58px, 7.5vw, 92px);
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: var(--d);
    height: var(--d);
    border-radius: 50%;
    background: rgba(12, 15, 32, 0.55);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 0 0 1px rgba(var(--s), 0.14), 0 24px 60px -12px rgba(0, 0, 0, 0.7), 0 0 60px -10px rgba(120, 110, 255, 0.5);
    transition: transform 0.5s var(--doux);
}
/* Anneau en dégradé du logo qui tourne lentement autour du bouton. */
.lire-disque::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #49a2fe, #9d69f3, #f65eab, #49a2fe);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
    animation: tourne 7s linear infinite;
}
@keyframes tourne { to { transform: rotate(1turn); } }
.lire-disque .ico { position: relative; width: calc(var(--d) * 0.34); height: calc(var(--d) * 0.34); fill: #fff; stroke: none; }
.video[data-pret] .video-lire:hover .lire-disque { transform: scale(1.06); }
.lire-texte { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lire-titre {
    font-family: var(--p-titre);
    font-weight: 700;
    font-size: clamp(0.875rem, 1.4vw, 1.0625rem);
    color: #fff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}
.lire-etat {
    padding: 4px 11px;
    border-radius: 999px;
    font-family: var(--p-marque);
    font-weight: 600;
    font-size: clamp(0.625rem, 0.9vw, 0.71875rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffd59a;
    background: rgba(255, 170, 70, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 180, 90, 0.32);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.video[data-pret] .lire-etat { display: none; }
.video-lecteur { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; border: 0; background: #000; }
@media (max-width: 560px) {
    .lire-titre { display: none; }
}

/* Image d'attente de la vidéo (apercu-video.jpg) : claire dans les deux
   thèmes, comme la vidéo. Le logo occupe le centre : le bouton de lecture se
   pose en dessous, sous le nom. */
.video-affiche { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .video-voile { display: none; }
.video .video-lire {
    top: auto;
    bottom: 8%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: clamp(10px, 1.2vw, 16px);
}
.video .lire-disque {
    --d: clamp(46px, 5vw, 64px);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 1px rgba(20, 28, 70, 0.1), 0 18px 40px -16px rgba(28, 38, 110, 0.4), 0 0 40px -10px rgba(120, 110, 255, 0.35);
}
.video .lire-disque .ico { fill: url(#dg-logo); }
.video .lire-texte { align-items: flex-start; }
.video .lire-titre { color: #1d2340; text-shadow: none; }
@media (max-width: 560px) {
    .video .video-lire { bottom: 6%; }
    .video .lire-disque { --d: 38px; }
}

/* Outils ------------------------------------------------------------------ */
/* Le nombre d'outils, puis les outils eux-mêmes : deux rangées de pastilles
   qui défilent lentement, en sens contraire (js/accueil.js double chaque
   rangée pour boucler sans couture et règle la durée sur sa longueur).
   Sans script, ou si le système demande moins d'animations, les pastilles
   s'alignent simplement, à l'arrêt. */
.outils {
    margin-top: clamp(64px, 9vw, 112px);
    display: grid;
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    align-items: center;
    gap: 22px clamp(24px, 4vw, 56px);
    padding: 30px 0;
    border-top: 1px solid var(--trait);
    border-bottom: 1px solid var(--trait);
}
.outils-tete { display: flex; flex-direction: column; gap: 10px; }
.outils-n {
    font-family: var(--p-titre);
    font-weight: 800;
    font-size: clamp(2.75rem, 5vw, 3.75rem);
    line-height: 1;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #ffffff 30%, #9fb0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.outils-l { color: var(--encre-2); font-size: 0.9375rem; line-height: 1.45; max-width: 14em; }
.outils-defile { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.outils-piste { display: flex; }
.outils-lot { display: flex; flex-wrap: wrap; gap: 10px; }
.outil {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 15px 0 12px;
    border-radius: 999px;
    font-family: var(--p-titre);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.005em;
    color: var(--encre-2);
    white-space: nowrap;
    background: rgba(var(--s), 0.035);
    box-shadow: inset 0 0 0 1px rgba(var(--s), 0.08);
}
.outil .ico { width: 17px; height: 17px; color: var(--bleu); }
.outil:nth-child(3n + 2) .ico { color: var(--lavande); }
.outil:nth-child(3n) .ico { color: #ff8cc1; }
/* En défilement : une ligne par rangée, fondue aux deux bouts. */
.outils.is-defile .outils-defile {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.outils.is-defile .outils-piste { width: max-content; animation: defile var(--duree, 90s) linear infinite; }
.outils.is-defile .outils-piste + .outils-piste { animation-direction: reverse; }
.outils.is-defile .outils-lot { flex-wrap: nowrap; padding-right: 10px; }
@media (hover: hover) {
    .outils.is-defile .outils-defile:hover .outils-piste { animation-play-state: paused; }
}
@keyframes defile { to { transform: translateX(-50%); } }
@media (max-width: 780px) {
    .outils { grid-template-columns: minmax(0, 1fr); padding: 28px 0 30px; }
    .outils-tete { flex-direction: row; align-items: center; gap: 16px; }
    .outils-l { max-width: 16em; }
    /* Les rangées vont d'un bord à l'autre de l'écran. */
    .outils.is-defile .outils-defile { margin-inline: calc(-1 * var(--marge)); }
}

/* 7. Sections et atouts ==================================================== */
.section { position: relative; padding-top: clamp(112px, 14vw, 184px); }
.tete { max-width: 780px; margin: 0 auto; text-align: center; }
.surtitre {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--p-marque);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--pervenche);
}
.surtitre::before,
.surtitre::after { content: ''; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, rgba(155, 190, 253, 0.8)); }
.surtitre::after { transform: scaleX(-1); }
.titre-2 {
    margin-top: 18px;
    font-family: var(--p-titre);
    font-weight: 800;
    font-size: clamp(2rem, 4.8vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    text-wrap: balance;
    background: linear-gradient(180deg, #ffffff 40%, #b4bedf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.05em;
}
.chapo {
    margin: 18px auto 0;
    max-width: 36em;
    color: var(--encre-2);
    font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
    text-wrap: pretty;
}

.atouts {
    margin-top: clamp(72px, 9vw, 120px);
    display: flex;
    flex-direction: column;
    gap: clamp(104px, 13vw, 168px);
}
.atout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(36px, 6vw, 96px);
    align-items: center;
}
.atout:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.atout:nth-child(even) .atout-texte { order: 2; }
.atout-etiquette {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--p-marque);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgb(var(--teinte));
}
.atout-tuile {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 11px;
    background: rgba(var(--teinte), 0.12);
    box-shadow: inset 0 0 0 1px rgba(var(--teinte), 0.3), 0 8px 24px -8px rgba(var(--teinte), 0.5);
}
.atout-tuile .ico { width: 18px; height: 18px; }
.atout-formule {
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    font-size: 0.625rem;
    color: #fff;
    background: var(--degrade);
}
.atout h3 {
    margin-top: 22px;
    font-family: var(--p-titre);
    font-weight: 800;
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}
.atout-texte > p:not(.atout-etiquette) { margin-top: 18px; max-width: 30em; color: var(--encre-2); font-size: 1.0625rem; text-wrap: pretty; }
.atout-liste { margin-top: 28px; display: grid; gap: 13px; }
.atout-liste li { display: flex; align-items: flex-start; gap: 12px; color: #d5daeb; font-size: 0.98rem; line-height: 1.45; }
.atout-liste .ico {
    width: 20px; height: 20px;
    padding: 4px;
    margin-top: 0.5px;
    border-radius: 50%;
    stroke-width: 3;
    color: rgb(var(--teinte));
    background: rgba(var(--teinte), 0.14);
}

@media (max-width: 940px) {
    .atout,
    .atout:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
    .atout:nth-child(even) .atout-texte { order: 0; }
    .atout-texte { max-width: 560px; }
}

/* 8. Maquettes ============================================================= */
/* Une scène = une composition de fenêtres de verre. Ses textes sont en em,
   proportionnels à la largeur de la scène (requêtes de conteneur). */
.scene { position: relative; container-type: inline-size; isolation: isolate; }
.scene::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -14% -10%;
    background: radial-gradient(closest-side, rgba(var(--teinte), 0.26), rgba(var(--teinte), 0.09) 50%, transparent);
    pointer-events: none;
}
.fen {
    position: relative;
    border-radius: 1.35em;
    font-family: var(--p-titre);
    color: rgb(var(--t));
    background: linear-gradient(180deg, rgba(22, 27, 56, 0.8), rgba(11, 14, 32, 0.84));
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 2.4em 5em -1.6em rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.scene .fen { font-size: clamp(9.5px, 2.3cqi, 15px); }
.fen .ico { width: 1.2em; height: 1.2em; }

/* — Item (Centraliser) — */
.scene-item { padding: 0 0 7.5% 0; }
.fen-item { width: 84%; padding: 1.6em; }
.it-tete { display: flex; gap: 1.2em; align-items: center; }
/* Comme la page item de l'application : le numéro dans un cercle teinté de
   la matière, la matière avec son icône, « Lu », les vues et les tombés. */
.it-num {
    flex: none;
    display: grid;
    place-items: center;
    width: 4.5em; height: 4.5em;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.15em;
    letter-spacing: -0.04em;
    color: #fff;
    background: radial-gradient(circle at 50% 35%, rgba(246, 94, 126, 0.32), rgba(246, 94, 126, 0.1) 72%);
    box-shadow: inset 0 0 0 1px rgba(246, 94, 126, 0.45), 0 0.8em 2em -0.9em rgba(246, 94, 126, 0.6);
}
.it-titres { display: flex; flex-direction: column; gap: 0.3em; min-width: 0; }
.it-sur { display: flex; align-items: center; gap: 0.4em; font-size: 0.72em; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #ff8a9a; }
.it-sur .icm { width: 1.4em; height: 1.4em; }
.it-titre { font-weight: 800; font-size: 1.75em; letter-spacing: -0.035em; line-height: 1.1; }
.it-puces { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35em 0.75em; margin-top: 0.3em; font-size: 0.74em; font-weight: 600; color: rgba(var(--t), 0.55); }
.it-meta b { font-weight: 800; color: rgba(var(--t), 0.92); }
.it-meta + .it-meta::before { content: '·'; margin-right: 0.75em; color: rgba(var(--t), 0.3); }
.puce-lu {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    height: 2em;
    padding: 0 0.8em 0 0.4em;
    border-radius: 999px;
    font-weight: 700;
    color: rgba(var(--t), 0.85);
    background: rgba(var(--s), 0.04);
    box-shadow: inset 0 0 0 1px rgba(var(--s), 0.12);
    transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.puce-rond { display: grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(var(--t), 0.4); transition: background-color 0.4s, box-shadow 0.4s; }
.puce-rond .ico { width: 0.85em; height: 0.85em; stroke-width: 3.4; color: #fff; opacity: 0; transform: scale(0.4); transition: opacity 0.3s, transform 0.45s var(--doux); }
.it-rubrique { display: flex; align-items: center; gap: 0.55em; margin-top: 1.5em; font-size: 0.74em; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(var(--t), 0.85); }
.it-rubrique .ico { width: 1.25em; height: 1.25em; color: #fbbf24; }
.it-liste { margin-top: 0.8em; display: flex; flex-direction: column; gap: 0.5em; }
/* Une ressource : tuile d'icône, nom, état, bouton. Remplie, elle prend la
   couleur de son type (--c en sombre, --cc en clair, relevées dans
   l'application) ; vide, bord en pointillés et gris. */
.it-ligne {
    --k: var(--c, 152, 191, 255);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85em;
    padding: 0.6em 0.7em 0.6em 0.65em;
    border-radius: 0.95em;
    background: rgba(var(--k), 0.06);
    box-shadow: inset 0 0 0 1px rgba(var(--k), 0.28);
}
.it-ic { flex: none; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 0.8em; color: rgb(var(--k)); background: rgba(var(--k), 0.14); transition: color 0.5s, background-color 0.5s; }
.it-ic .icm { width: 1.35em; height: 1.35em; }
.it-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.it-txt b { font-weight: 700; font-size: 0.95em; }
.it-txt small { font-size: 0.64em; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(var(--k), 0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.5s; }
.it-act { flex: none; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 0.65em; color: rgba(var(--t), 0.6); background: rgba(var(--s), 0.04); box-shadow: inset 0 0 0 1px rgba(var(--s), 0.08); }
.it-act .icm { grid-area: 1 / 1; width: 1.15em; height: 1.15em; transition: opacity 0.4s ease, transform 0.45s var(--doux); }
/* La fiche Astramed : aux couleurs de la marque. */
.it-fiche { background: linear-gradient(135deg, rgba(113, 164, 249, 0.1), rgba(168, 147, 242, 0.13)); box-shadow: inset 0 0 0 1px rgba(150, 160, 250, 0.35), 0 0.7em 1.6em -1.1em rgba(144, 155, 248, 0.85); }
.it-fiche .it-ic { color: #fff; background: linear-gradient(135deg, #71a4f9, #a893f2); }
.it-fiche .it-txt small { color: rgba(173, 184, 254, 0.9); }
/* Vide : pointillés, gris, « Ajouter » et « + ». */
.it-vide { background: transparent; box-shadow: none; }
.it-vide::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px dashed rgba(207, 170, 254, 0.24); pointer-events: none; transition: opacity 0.4s; }
.it-vide .it-ic { color: rgba(157, 161, 175, 0.75); background: rgba(157, 161, 175, 0.08); }
.it-vide .it-txt small { color: rgba(var(--t), 0.42); }
/* La ligne « Fiches » reçoit le PDF : son état passe de « Ajouter » à
   « 1 ressource », le « + » devient une flèche. */
.it-etat { display: grid; }
.it-etat > span { grid-area: 1 / 1; transition: opacity 0.4s ease; }
.e-plein,
.a-plein { opacity: 0; }
.a-plein { transform: translateX(-0.35em); }
/* Le fichier qui glisse dans la liste. */
.it-fichier {
    position: absolute;
    right: -11%;
    top: 31%;
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.7em 1.1em 0.7em 0.7em;
    border-radius: 1em;
    background: rgba(28, 34, 70, 0.92);
    box-shadow: inset 0 0 0 1px rgba(150, 170, 255, 0.35), 0 1.4em 3em -1em rgba(0, 0, 0, 0.8), 0 0 2.4em -0.6em rgba(73, 162, 254, 0.6);
    opacity: 0;
    transform: translate(3em, -2.5em) rotate(6deg);
    z-index: 3;
    white-space: nowrap;
}
.it-fichier-ic { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 0.7em; color: #fff; background: linear-gradient(140deg, #ff6a7a, #f65eab); }
.it-fichier > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.it-fichier b { font-size: 0.92em; }
.it-fichier small { font-size: 0.72em; color: rgba(var(--t), 0.55); font-weight: 600; }
.fen-note {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52%;
    padding: 1.2em 1.3em 1.3em;
    background: linear-gradient(180deg, rgba(30, 36, 72, 0.88), rgba(16, 20, 44, 0.92));
    --lisere: linear-gradient(160deg, rgba(255, 255, 255, 0.24), rgba(var(--s), 0.05) 45%, rgba(254, 189, 86, 0.3));
}
.note-tete { display: flex; align-items: center; gap: 0.5em; font-size: 0.72em; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(var(--t), 0.5); }
.note-l { margin-top: 0.75em; font-family: var(--p-texte); font-size: 0.95em; line-height: 1.55; color: #e3e8f6; }
.note-pale { color: rgba(227, 232, 246, 0.55); font-size: 0.85em; }
.surligne {
    padding: 0 0.1em;
    border-radius: 0.2em;
    background-image: linear-gradient(90deg, rgba(254, 189, 86, 0.38), rgba(254, 189, 86, 0.38));
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 1.1s var(--aller-retour);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

[data-scene="item"].is-playing .it-fichier { animation: fichier 1.9s var(--aller-retour) 0.35s both; }
@keyframes fichier {
    0% { opacity: 0; transform: translate(3em, -2.5em) rotate(6deg); }
    22% { opacity: 1; transform: translate(0, 0) rotate(3deg); }
    55% { opacity: 1; transform: translate(-1em, 2.4em) rotate(-1deg); }
    100% { opacity: 0; transform: translate(-6em, 6.6em) rotate(0deg) scale(0.92); }
}
[data-scene="item"].is-playing .it-recoit { animation: brille 2.2s ease 1.55s forwards; }
@keyframes brille {
    0% { background-color: rgba(var(--k), 0.2); box-shadow: inset 0 0 0 1px rgba(var(--k), 0.75), 0 0 2em -0.4em rgba(var(--k), 0.6); }
    100% { background-color: rgba(var(--k), 0.06); box-shadow: inset 0 0 0 1px rgba(var(--k), 0.28), 0 0 0 0 rgba(var(--k), 0); }
}
[data-scene="item"].is-playing .it-recoit::before { opacity: 0; transition-delay: 1.55s; }
[data-scene="item"].is-playing .it-recoit .it-ic { color: rgb(var(--k)); background: rgba(var(--k), 0.14); transition-delay: 1.55s; }
[data-scene="item"].is-playing .it-recoit .it-txt small { color: rgba(var(--k), 0.9); transition-delay: 1.55s; }
[data-scene="item"].is-playing .it-recoit .e-vide { opacity: 0; transition-delay: 1.55s; }
[data-scene="item"].is-playing .it-recoit .e-plein { opacity: 1; transition-delay: 1.7s; }
[data-scene="item"].is-playing .it-recoit .a-vide { opacity: 0; transform: rotate(90deg) scale(0.6); transition-delay: 1.55s; }
[data-scene="item"].is-playing .it-recoit .a-plein { opacity: 1; transform: none; transition-delay: 1.7s; }
[data-scene="item"].is-playing .surligne { background-size: 100% 100%; transition-delay: 2.6s; }
/* « Lu » se coche, en vert comme le statut Lu de l'application. */
[data-scene="item"].is-playing .puce-lu { color: #86efac; background: rgba(34, 197, 94, 0.12); box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.5); transition-delay: 3.4s; }
[data-scene="item"].is-playing .puce-rond { background: #22c55e; box-shadow: none; transition-delay: 3.4s; }
[data-scene="item"].is-playing .puce-rond .ico { opacity: 1; transform: none; transition-delay: 3.45s; }

/* — Cartes (S'entraîner) — */
.scene-cartes { padding: 7% 0 17% 0; }
.fen-fc { width: 66%; margin-left: auto; padding: 1.4em; perspective: 90em; }
.fc-haut { display: flex; align-items: center; justify-content: space-between; }
.fc-paquet { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; font-size: 0.9em; color: rgba(var(--t), 0.8); }
.fc-paquet .ico { color: var(--lavande); }
.fc-prog { font-size: 0.82em; font-weight: 700; color: rgba(var(--t), 0.5); font-variant-numeric: tabular-nums; }
.fc-n { position: relative; display: inline-grid; color: #fff; }
.fc-n > span { grid-area: 1 / 1; transition: opacity 0.35s, transform 0.45s var(--doux); }
.fc-n-b { opacity: 0; transform: translateY(0.6em); }
.fc-barre { display: block; margin-top: 0.8em; height: 0.3em; border-radius: 999px; background: rgba(var(--s), 0.07); overflow: hidden; }
.fc-barre > span { display: block; height: 100%; width: 29.2%; border-radius: inherit; background: var(--degrade); transition: width 0.7s var(--doux); }
.fc-carte {
    position: relative;
    margin-top: 1.2em;
    height: 13.5em;
    transform-style: preserve-3d;
    transition: transform 0.95s var(--aller-retour);
}
.fc-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 1.3em 1.4em;
    border-radius: 1.1em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: linear-gradient(160deg, rgba(40, 44, 92, 0.9), rgba(22, 24, 56, 0.95));
    box-shadow: inset 0 0 0 1px rgba(196, 170, 253, 0.22), 0 1.2em 2.6em -1.2em rgba(0, 0, 0, 0.7);
}
.fc-verso { transform: rotateY(180deg); background: linear-gradient(160deg, rgba(56, 40, 104, 0.92), rgba(28, 22, 64, 0.96)); box-shadow: inset 0 0 0 1px rgba(196, 170, 253, 0.35), 0 1.2em 2.6em -1.2em rgba(0, 0, 0, 0.7); }
.fc-sur { display: flex; align-items: center; gap: 0.5em; font-size: 0.7em; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(var(--t), 0.5); }
.fc-q { margin-top: auto; margin-bottom: auto; font-weight: 700; font-size: 1.3em; line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; }
.fc-aide { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.72em; font-weight: 600; color: rgba(var(--t), 0.4); }
.fc-r { margin: auto 0; display: flex; flex-direction: column; gap: 0.6em; }
.fc-r > span { display: flex; align-items: center; gap: 0.6em; font-weight: 700; font-size: 1.2em; letter-spacing: -0.015em; }
.fc-r > span::before { content: ''; width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--lavande); box-shadow: 0 0 0.8em rgba(196, 170, 253, 0.9); }
.fc-actions { position: relative; margin-top: 1.1em; height: 2.9em; display: flex; gap: 0.6em; }
.fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    flex: 1;
    height: 100%;
    border-radius: 0.9em;
    font-weight: 700;
    font-size: 0.9em;
    transition: opacity 0.4s ease, transform 0.4s var(--doux), box-shadow 0.4s ease, background-color 0.4s;
}
.fc-voir { position: absolute; inset: 0; color: #fff; background: rgba(157, 105, 243, 0.24); box-shadow: inset 0 0 0 1px rgba(196, 170, 253, 0.45); }
.fc-revoir,
.fc-savais { opacity: 0; transform: translateY(0.4em); }
.fc-revoir { color: rgba(var(--t), 0.75); background: rgba(var(--s), 0.05); box-shadow: inset 0 0 0 1px rgba(var(--s), 0.1); }
.fc-savais { color: #fff; background: linear-gradient(100deg, rgba(73, 162, 254, 0.35), rgba(157, 105, 243, 0.4)); box-shadow: inset 0 0 0 1px rgba(170, 160, 255, 0.55); }

[data-scene="cartes"].is-playing .fc-voir { animation: appui 0.5s ease 0.55s, efface 0.35s ease 1.05s forwards; }
@keyframes appui { 40% { transform: scale(0.96); box-shadow: inset 0 0 0 1px rgba(220, 200, 255, 0.8), 0 0 1.6em -0.2em rgba(157, 105, 243, 0.8); } }
@keyframes efface { to { opacity: 0; visibility: hidden; } }
[data-scene="cartes"].is-playing .fc-carte { transform: rotateY(180deg); transition-delay: 0.85s; }
[data-scene="cartes"].is-playing .fc-revoir,
[data-scene="cartes"].is-playing .fc-savais { opacity: 1; transform: none; transition-delay: 1.35s; }
[data-scene="cartes"].is-playing .fc-savais { animation: appui-savais 0.6s ease 2.9s; }
@keyframes appui-savais { 40% { transform: scale(0.95); box-shadow: inset 0 0 0 1px rgba(220, 210, 255, 0.9), 0 0 2em -0.2em rgba(120, 140, 255, 0.9); } }
[data-scene="cartes"].is-playing .fc-barre > span { width: 33.3%; transition-delay: 3.2s; }
[data-scene="cartes"].is-playing .fc-n-a { opacity: 0; transform: translateY(-0.6em); transition-delay: 3.2s; }
[data-scene="cartes"].is-playing .fc-n-b { opacity: 1; transform: none; transition-delay: 3.2s; }

.fen-quiz {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40%;
    padding: 1.15em 1.2em 1.2em;
    background: linear-gradient(180deg, rgba(30, 34, 72, 0.9), rgba(15, 18, 42, 0.94));
    --lisere: linear-gradient(140deg, rgba(73, 162, 254, 0.6), rgba(157, 105, 243, 0.2) 50%, rgba(246, 94, 171, 0.55));
}
.qz-haut { display: flex; align-items: center; justify-content: space-between; }
.qz-titre { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 800; font-size: 0.92em; }
.qz-titre .ico { color: var(--pervenche); }
.qz-n { font-size: 0.75em; font-weight: 700; color: rgba(var(--t), 0.5); }
.qz-sur { display: block; margin-top: 0.9em; font-size: 0.66em; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--m)); }
.qz-q { display: block; margin-top: 0.35em; font-weight: 700; font-size: 0.95em; line-height: 1.3; letter-spacing: -0.01em; }
.qz-opts { margin-top: 0.8em; display: flex; flex-direction: column; gap: 0.4em; }
.qz-o {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6em 0.8em;
    border-radius: 0.75em;
    font-size: 0.82em;
    font-weight: 600;
    color: rgba(var(--t), 0.82);
    background: rgba(var(--s), 0.04);
    box-shadow: inset 0 0 0 1px rgba(var(--s), 0.08);
    transition: opacity 0.5s ease, color 0.5s ease, background-color 0.5s ease;
}
/* Bonne réponse : contour au dégradé du logo, teinte franche à l'intérieur
   (pas de vert ni de rouge, comme le Quiz du jour de l'application). */
.qz-o::after,
.tu-o::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: var(--degrade);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.qz-coche,
.tu-coche {
    display: grid;
    place-items: center;
    width: 1.5em; height: 1.5em;
    border-radius: 50%;
    color: #fff;
    background: var(--degrade);
    transform: scale(0);
    transition: transform 0.5s var(--doux);
}
.qz-coche .ico,
.tu-coche .ico { width: 0.9em; height: 0.9em; stroke-width: 3.2; }
[data-scene="cartes"].is-playing .qz-o:not(.qz-bon) { opacity: 0.45; transition-delay: 1.9s; }
[data-scene="cartes"].is-playing .qz-bon { color: #fff; background: rgba(90, 130, 255, 0.16); transition-delay: 1.9s; }
[data-scene="cartes"].is-playing .qz-bon::after { opacity: 1; transition-delay: 1.9s; }
[data-scene="cartes"].is-playing .qz-coche { transform: scale(1); transition-delay: 2.05s; }

.fen-anki {
    position: absolute;
    top: 0;
    left: 6%;
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.6em 1em 0.6em 0.65em;
    border-radius: 999px;
    background: rgba(26, 30, 64, 0.86);
    --lisere: linear-gradient(100deg, rgba(196, 170, 253, 0.5), rgba(var(--s), 0.06));
}
.scene .fen-anki { font-size: clamp(9px, 2cqi, 13px); }
.fen-anki .ico { width: 2em; height: 2em; padding: 0.45em; border-radius: 50%; color: #fff; background: rgba(157, 105, 243, 0.4); stroke-width: 2.4; }
.fen-anki > span { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: 0.95em; }
.fen-anki small { font-size: 0.78em; font-weight: 600; color: rgba(var(--t), 0.55); }

/* — Tuteur IA — */
.fen-tut { width: 92%; margin: 0 auto; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tu-haut { display: flex; align-items: center; gap: 0.8em; padding: 1.1em 1.3em; border-bottom: 1px solid rgba(var(--s), 0.07); }
.tu-avatar { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 0.8em; color: #fff; background: linear-gradient(140deg, #9d69f3, #f65eab); box-shadow: 0 0.6em 1.5em -0.5em rgba(246, 94, 171, 0.8); }
.tu-nom { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.tu-nom b { font-size: 1em; font-weight: 800; }
.tu-nom small { font-size: 0.74em; font-weight: 600; color: rgba(var(--t), 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tu-mode { padding: 0.35em 0.8em; border-radius: 999px; font-size: 0.72em; font-weight: 800; letter-spacing: 0.1em; color: #ffc4e1; background: rgba(246, 94, 171, 0.14); box-shadow: inset 0 0 0 1px rgba(246, 94, 171, 0.35); }
.tu-fil { position: relative; display: flex; flex-direction: column; gap: 0.8em; padding: 1.2em 1.3em; }
.bulle-moi {
    align-self: flex-end;
    max-width: 78%;
    padding: 0.7em 1em;
    border-radius: 1.1em 1.1em 0.35em 1.1em;
    font-family: var(--p-texte);
    font-weight: 500;
    font-size: 0.95em;
    color: #fff;
    background: linear-gradient(120deg, #4b8dff, #7a5cf5);
    opacity: 0;
    transform: translateY(0.6em) scale(0.97);
    transform-origin: 100% 100%;
    transition: opacity 0.45s ease, transform 0.5s var(--doux);
}
.tu-ecrit { position: absolute; left: 1.3em; top: 4.6em; display: inline-flex; gap: 0.3em; padding: 0.8em 1em; border-radius: 1.1em 1.1em 1.1em 0.35em; background: rgba(var(--s), 0.06); opacity: 0; }
.tu-ecrit i { width: 0.45em; height: 0.45em; border-radius: 50%; background: rgba(var(--t), 0.7); opacity: 0.5; }
[data-scene="tuteur"].is-playing .tu-ecrit i { animation: point 0.9s ease-in-out 0.85s 2; }
[data-scene="tuteur"].is-playing .tu-ecrit i:nth-child(2) { animation-delay: 1s; }
[data-scene="tuteur"].is-playing .tu-ecrit i:nth-child(3) { animation-delay: 1.15s; }
@keyframes point { 30% { transform: translateY(-0.3em); opacity: 1; } 0%, 60%, 100% { transform: none; opacity: 0.5; } }
.tu-rep {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    max-width: 92%;
    padding: 1em 1.1em;
    border-radius: 1.1em 1.1em 1.1em 0.35em;
    background: rgba(var(--s), 0.045);
    box-shadow: inset 0 0 0 1px rgba(var(--s), 0.07);
    opacity: 0;
    transform: translateY(0.8em);
    transition: opacity 0.5s ease, transform 0.6s var(--doux);
}
.tu-q { font-weight: 700; font-size: 0.98em; line-height: 1.35; letter-spacing: -0.01em; }
.tu-opts { display: flex; flex-direction: column; gap: 0.4em; }
.tu-o {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.5em 0.7em 0.5em 0.5em;
    border-radius: 0.75em;
    font-size: 0.86em;
    font-weight: 600;
    color: rgba(var(--t), 0.82);
    background: rgba(var(--s), 0.035);
    box-shadow: inset 0 0 0 1px rgba(var(--s), 0.07);
    opacity: 0;
    transform: translateX(-0.4em);
    transition: opacity 0.4s ease, transform 0.5s var(--doux);
}
.tu-l { flex: none; display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 0.5em; font-size: 0.85em; font-weight: 800; background: rgba(var(--s), 0.07); color: rgba(var(--t), 0.7); transition: background-color 0.5s, color 0.5s; }
.tu-coche { margin-left: auto; }
.tu-expl {
    font-family: var(--p-texte);
    font-size: 0.86em;
    line-height: 1.5;
    color: rgba(var(--t), 0.75);
    padding-top: 0.7em;
    border-top: 1px solid rgba(var(--s), 0.07);
    opacity: 0;
    transform: translateY(0.4em);
    transition: opacity 0.5s ease, transform 0.6s var(--doux);
}
.tu-expl b { color: #fff; font-family: var(--p-titre); }
.tu-saisie { display: flex; align-items: center; justify-content: space-between; margin: 0 1.1em 1.1em; padding: 0.4em 0.4em 0.4em 1.1em; border-radius: 999px; font-size: 0.88em; font-weight: 500; color: rgba(var(--t), 0.4); font-family: var(--p-texte); background: rgba(var(--s), 0.04); box-shadow: inset 0 0 0 1px rgba(var(--s), 0.09); }
.tu-envoi { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; color: #fff; background: linear-gradient(140deg, #9d69f3, #f65eab); }
.tu-envoi .ico { width: 1em; height: 1em; }

[data-scene="tuteur"].is-playing .bulle-moi { opacity: 1; transform: none; transition-delay: 0.25s; }
[data-scene="tuteur"].is-playing .tu-ecrit { animation: ecrit 1.3s ease 0.85s both; }
@keyframes ecrit { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; } }
[data-scene="tuteur"].is-playing .tu-rep { opacity: 1; transform: none; transition-delay: 2.05s; }
/* Les options arrivent (transition), puis la réponse est choisie : les autres
   s'estompent, la bonne prend le dégradé (animations, qui partent ensuite). */
[data-scene="tuteur"].is-playing .tu-o { opacity: 1; transform: none; }
[data-scene="tuteur"].is-playing .tu-o:nth-child(1) { transition-delay: 2.25s; }
[data-scene="tuteur"].is-playing .tu-o:nth-child(2) { transition-delay: 2.35s; }
[data-scene="tuteur"].is-playing .tu-o:nth-child(3) { transition-delay: 2.45s; }
[data-scene="tuteur"].is-playing .tu-o:nth-child(4) { transition-delay: 2.55s; }
[data-scene="tuteur"].is-playing .tu-o:not(.tu-bon) { animation: estompe 0.5s ease 3.5s forwards; }
@keyframes estompe { to { opacity: 0.45; } }
[data-scene="tuteur"].is-playing .tu-bon { animation: choisi 0.5s ease 3.5s forwards; }
@keyframes choisi { to { color: var(--choisi, #fff); background-color: rgba(120, 110, 255, 0.16); } }
[data-scene="tuteur"].is-playing .tu-bon::after { opacity: 1; transition-delay: 3.5s; }
[data-scene="tuteur"].is-playing .tu-bon .tu-l { animation: choisi-lettre 0.5s ease 3.5s forwards; }
@keyframes choisi-lettre { to { color: #fff; background-color: var(--choisi-lettre, rgba(157, 105, 243, 0.5)); } }
[data-scene="tuteur"].is-playing .tu-coche { transform: scale(1); transition-delay: 3.65s; }
[data-scene="tuteur"].is-playing .tu-expl { opacity: 1; transform: none; transition-delay: 4.1s; }

/* — Journée (Organiser) — */
.jo-grille {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    grid-template-rows: auto auto;
    gap: 1.1em;
    font-size: clamp(9.5px, 2.3cqi, 15px);
}
.jo-grille .fen { font-size: 1em; }
.jo-col { display: flex; flex-direction: column; gap: 1.1em; }
.mi-bloc { position: relative; display: flex; }
.mi-bloc > .fen-min { flex: 1; }
.fen-min { padding: 1.2em 1.3em 1.4em; display: flex; flex-direction: column; align-items: center; gap: 0.85em; }
/* Le halo du minuteur en marche, comme dans l'application : cadre conique
   flouté qui déborde dans le fond. Élément frère de la carte (et non pseudo-
   élément) : le verre de la carte crée un contexte d'empilement qui l'aurait
   peint devant son fond. Arrêté quand la scène n'est pas à l'écran. */
.mi-halo {
    position: absolute;
    inset: -0.5em;
    border-radius: 1.8em;
    background: conic-gradient(from var(--angle, 0deg), #49a2fe, #9d69f3, #f65eab, #49a2fe);
    filter: blur(1.6em);
    opacity: 0.42;
    animation: halo 9s linear infinite;
    pointer-events: none;
}
/* Boucles arrêtées hors de l'écran (la classe is-visible est posée par
   js/accueil.js ; sans script, elles tournent). */
.js .scene-journee:not(.is-visible) .mi-halo,
.js .scene-journee:not(.is-visible) .mi-ecg-point,
.js .scene-journee:not(.is-visible) .mi-creature svg,
.js .tuile-recherche:not(.is-visible) .re-curseur,
.js .ouverture:not(.is-visible) .ouverture-titre .l2,
.js .ouverture:not(.is-visible) .outils-piste,
.js .ouverture:not(.is-visible) .lire-disque::before { animation-play-state: paused; }
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes halo { to { --angle: 360deg; } }
/* Valeurs relevées sur le minuteur de l'application (bouton lecture, boutons
   ronds, étiquette du sujet), ramenées à l'échelle de la maquette. */
.mi-haut { align-self: stretch; display: flex; align-items: center; gap: 0.5em; }
.mi-obj { padding: 0.45em 0.9em; border-radius: 999px; font-size: 0.8em; font-weight: 700; color: rgba(221, 233, 255, 0.8); background: rgba(62, 127, 253, 0.16); font-variant-numeric: tabular-nums; }
.mi-obj b { color: #fff; font-weight: 800; }
.mi-haut .mi-cible { margin-left: auto; }
.mi-haut .mi-rond { width: 2.3em; height: 2.3em; }
.mi-haut .mi-petit { width: 1.9em; height: 1.9em; }
.mi-haut .mi-rond .icm { width: 1.15em; height: 1.15em; }
/* La créature (le chat) : une seule couleur, comme dans l'application ; elle
   respire doucement pendant la séance. */
.mi-creature { margin-top: auto; }
.mi-creature svg { display: block; width: 4.4em; height: 3.9em; fill: rgb(112, 161, 253); animation: respire 4s ease-in-out infinite; }
@keyframes respire { 50% { transform: translateY(-0.12em) scale(1.025); } }
/* Le temps posé sur le tracé d'ECG, qu'un point lumineux parcourt. */
.mi-cadran { position: relative; display: grid; place-items: center; width: 100%; padding: 0.35em 0; }
.mi-ecg { position: absolute; left: -0.3em; top: 50%; width: calc(100% + 0.6em); height: 3.6em; transform: translateY(-50%); overflow: visible; }
.mi-ecg-fond { fill: none; stroke: url(#dg-ecg); stroke-width: 1.4; opacity: 0.4; vector-effect: non-scaling-stroke; }
.mi-ecg-point { fill: none; stroke: #eef3ff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 4 96; stroke-dashoffset: 100; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px #8fb6ff) drop-shadow(0 0 5px #3b82f6); animation: balaye 2.8s linear infinite; }
@keyframes balaye { to { stroke-dashoffset: 0; } }
.mi-temps { position: relative; font-family: var(--p-marque); font-weight: 700; font-size: 3.2em; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 0.25em rgba(62, 127, 253, 0.8); }
.mi-milli { position: absolute; left: 100%; top: 0.1em; margin-left: 0.06em; font-size: 0.28em; color: rgba(255, 255, 255, 0.25); text-shadow: none; letter-spacing: 0; }
.mi-sujet { display: inline-flex; align-items: center; gap: 0.45em; max-width: 100%; padding: 0.5em 0.75em; border-radius: 0.8em; font-family: var(--p-texte); font-size: 0.8em; font-weight: 500; color: rgba(221, 233, 255, 0.7); background: rgba(var(--s), 0.04); white-space: nowrap; }
.mi-sujet > span { overflow: hidden; text-overflow: ellipsis; }
.mi-sujet .icm { width: 1.25em; height: 1.25em; }
.mi-commandes { margin-top: auto; display: flex; align-items: center; gap: 1.5em; }
.mi-rond {
    display: grid;
    place-items: center;
    width: 2.7em; height: 2.7em;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.55);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.016) 50%, rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 0.3em 0.8em -0.3em rgba(0, 0, 0, 0.4);
}
.mi-rond .icm { width: 1.1em; height: 1.1em; }
/* Terminer la séance : drapeau vert. */
.mi-drapeau { color: rgba(3, 194, 141, 0.85); box-shadow: inset 0 0 0 1px rgba(3, 194, 141, 0.28), 0 0 0.5em rgba(3, 194, 141, 0.2), inset 0 0 0.45em rgba(3, 194, 141, 0.1); }
.mi-lecture { position: relative; display: grid; place-items: center; width: 4.3em; height: 4.3em; }
.mi-anneau { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mi-piste { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 2; }
.mi-arc { fill: none; stroke: rgb(62, 127, 253); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 29.5; }
/* Le bouton lecture : un disque de verre au liseré bleu. */
.mi-pause {
    display: grid;
    place-items: center;
    width: 3.75em; height: 3.75em;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.05));
    box-shadow:
        inset 0 0 0 1px rgba(62, 127, 253, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        inset 0 -1px 0 rgba(255, 255, 255, 0.12),
        0 0.5em 1.5em -0.3em rgba(46, 93, 187, 0.34),
        0 0 0 0.3em rgba(62, 127, 253, 0.045);
}
.mi-pause .icm { width: 1.1em; height: 1.1em; }

/* Jours restants : comme la pastille de l'application (étiquette | nombre et
   sablier), le groupe centré dans la carte. */
.fen-jours {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1em;
    padding: 1em 1.3em;
    background: linear-gradient(100deg, rgba(90, 40, 30, 0.75), rgba(80, 26, 52, 0.75));
    --lisere: var(--couchant);
}
.jr-l { font-size: 0.66em; line-height: 1.2; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #ffb27a; }
.jr-sep { width: 1px; align-self: stretch; background: rgba(255, 160, 100, 0.35); }
.jr-n {
    font-weight: 800;
    font-size: 2em;
    letter-spacing: -0.04em;
    line-height: 1;
    background: var(--couchant);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.jr-val { display: inline-flex; align-items: center; gap: 0.45em; }
.jr-ic { color: #ff8a5c; width: 1.4em; height: 1.4em; }
.fen-obj { padding: 1.15em 1.2em 1.25em; flex: 1; display: flex; flex-direction: column; gap: 0.8em; }
.ob-haut { display: flex; align-items: center; gap: 0.6em; padding-bottom: 0.8em; border-bottom: 1px solid rgba(var(--s), 0.07); }
.ob-ic { flex: none; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 0.7em; color: var(--pervenche); background: rgba(94, 149, 252, 0.12); box-shadow: inset 0 0 0 1px rgba(120, 160, 255, 0.28); }
.ob-ic .ico { width: 1.1em; height: 1.1em; }
.ob-titre { font-weight: 800; font-size: 0.98em; letter-spacing: -0.01em; white-space: nowrap; }
.ob-date { margin-left: auto; font-size: 0.6em; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(var(--t), 0.42); white-space: nowrap; }
.ob-champ { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; padding: 0.6em 0.85em; border-radius: 0.8em; font-family: var(--p-texte); font-size: 0.8em; color: rgba(var(--t), 0.4); background: rgba(var(--s), 0.035); box-shadow: inset 0 0 0 1px rgba(var(--s), 0.08); }
.ob-champ > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ob-champ .ico { flex: none; width: 1.1em; height: 1.1em; }
.ob-liste { display: flex; flex-direction: column; gap: 0.25em; }
.ob { display: flex; align-items: center; gap: 0.55em; padding: 0.36em 0.2em; font-family: var(--p-texte); font-size: 0.9em; font-weight: 500; color: rgba(var(--t), 0.95); transition: color 0.5s ease; }
.ob-poignee { flex: none; width: 0.85em; height: 0.85em; color: rgba(var(--s), 0.18); }
.ob-etoile { flex: none; width: 0.85em; height: 0.85em; color: #46d1ef; filter: drop-shadow(0 0 0.3em rgba(70, 209, 239, 0.6)); }
/* Le trait de la tâche faite se trace de gauche à droite. */
.ob-txt { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: linear-gradient(currentColor, currentColor) 0 58% / 0% 1.5px no-repeat; transition: background-size 0.6s var(--doux); }
.ob.fait .ob-txt { background-size: 100% 1.5px; }
.ob-case {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 1.45em; height: 1.45em;
    border-radius: 0.28em;
    box-shadow: inset 0 0 0 1px rgb(109, 113, 126);
    color: #fff;
    transition: background-color 0.3s, box-shadow 0.3s;
}
.ob-case::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgb(3, 194, 141); opacity: 0; transform: scale(0.6); transition: opacity 0.35s ease, transform 0.45s var(--doux); }
.ob-case .ico { position: relative; width: 0.95em; height: 0.95em; stroke-width: 3.2; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.45s ease 0.15s; }
.ob.fait { color: rgb(109, 113, 126); }
.ob.fait .ob-case { box-shadow: none; }
.ob.fait .ob-case::before { opacity: 1; transform: none; }
.ob.fait .ob-case .ico { stroke-dashoffset: 0; }

[data-scene="journee"].is-playing .ob-1 { color: rgb(109, 113, 126); transition-delay: 1.1s; }
[data-scene="journee"].is-playing .ob-1 .ob-case { box-shadow: none; transition-delay: 1.1s; }
[data-scene="journee"].is-playing .ob-1 .ob-case::before { opacity: 1; transform: none; transition-delay: 1.1s; }
[data-scene="journee"].is-playing .ob-1 .ico { stroke-dashoffset: 0; transition-delay: 1.25s; }
[data-scene="journee"].is-playing .ob-1 .ob-txt { background-size: 100% 1.5px; transition-delay: 1.4s; }

.fen-sem { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5em; padding: 0.8em; }
.se-j {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25em;
    padding: 0.6em 0 0.7em;
    border-radius: 0.9em;
    --se-a: 0.5;
}
.se-j small { font-size: 0.66em; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(var(--t), 0.45); }
.se-j b { font-size: 1.2em; font-weight: 800; letter-spacing: -0.02em; }
.se-j i { width: 0.45em; height: 0.45em; border-radius: 50%; background: rgb(var(--m, 255, 255, 255)); box-shadow: 0 0 0.7em rgba(var(--m, 255, 255, 255), 0.8); }
.se-libre i { visibility: hidden; }
/* Jours travaillés, comme la bande « Ta semaine » de l'appli : taches de
   couleur à l'intérieur du jour (fond vivant du minuteur), aux couleurs des
   matières travaillées (--h1/2/3), d'autant plus présentes qu'on a
   travaillé (--tr), et un liseré de la matière principale. Calque carré,
   assez grand pour couvrir la case quel que soit l'angle (--dep). */
.se-j::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 200%;
    aspect-ratio: 1;
    min-height: 200%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 35% 35%, rgba(var(--h1, 94, 149, 252), var(--se-a)), transparent 30%),
        radial-gradient(circle at 66% 46%, rgba(var(--h2, 157, 105, 243), calc(var(--se-a) * 0.9)), transparent 32%),
        radial-gradient(circle at 44% 68%, rgba(var(--h3, 236, 111, 170), calc(var(--se-a) * 0.8)), transparent 30%);
    transform: translate(-50%, -50%) rotate(var(--dep, 0deg));
    opacity: var(--tr, 0);
}
.se-trav { box-shadow: inset 0 0 0 1px rgba(var(--h1), calc(0.18 + var(--tr, 0) * 0.32)); }
/* Aujourd'hui, le repère : contour franc doublé, nom et numéro à l'accent,
   trait lumineux en haut. Il s'éclaire quand la scène se joue (le minuteur
   y tourne) et ses couleurs tournent. */
.se-auj { background: rgba(94, 149, 252, 0.16); box-shadow: inset 0 0 0 1px rgba(120, 170, 255, 0.9), inset 0 0 0 2px rgba(120, 170, 255, 0.3); }
.se-auj small,
.se-auj b { color: #b9d0ff; }
.se-auj::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 36%;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 0 0 3px 3px;
    background: #9ec0ff;
    box-shadow: 0 0 10px rgba(120, 170, 255, 0.8);
}
.se-auj::after { opacity: 0; transition: opacity 3s ease 0.6s; }
[data-scene="journee"].is-playing .se-auj::after { opacity: 0.4; animation: se-tourne 16s linear infinite; }
@keyframes se-tourne {
    from { transform: translate(-50%, -50%) rotate(var(--dep, 0deg)); }
    to   { transform: translate(-50%, -50%) rotate(calc(var(--dep, 0deg) + 360deg)); }
}

/* 9. Tuiles « Et aussi » =================================================== */
.tuiles {
    margin-top: clamp(56px, 7vw, 88px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.tuile {
    --teinte: 157, 105, 243;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    padding: clamp(20px, 2.4vw, 28px);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(18, 22, 46, 0.66), rgba(10, 12, 28, 0.72));
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    transition: transform 0.6s var(--doux);
    --lisere: linear-gradient(170deg, rgba(var(--s), 0.16), rgba(var(--s), 0.04) 40%, rgba(var(--s), 0.02));
}
.tuile::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 50%;
    top: -30%;
    width: 120%;
    height: 80%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(var(--teinte), 0.14), transparent);
    pointer-events: none;
}
.tuile-visuel { position: relative; flex: 1; min-height: 0; container-type: inline-size; font-family: var(--p-titre); color: rgb(var(--t)); }
.tuile-fiche .tuile-visuel,
.tuile-commu .tuile-visuel,
.tuile-palettes .tuile-visuel { display: flex; flex-direction: column; justify-content: center; }
.tuile-texte h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--p-titre);
    font-weight: 800;
    font-size: 1.1875rem;
    letter-spacing: -0.025em;
}
.tuile-texte h3 .ico { width: 20px; height: 20px; color: rgb(var(--teinte)); }
.tuile-texte p { margin-top: 8px; color: var(--encre-2); font-size: 0.975rem; line-height: 1.55; text-wrap: pretty; }
.tuile-stats { grid-column: span 2; --teinte: 94, 149, 252; }
.tuile-recherche { --teinte: 109, 211, 251; }
.tuile-fiche { --teinte: 157, 105, 243; }
.tuile-commu { --teinte: 246, 94, 171; }
.tuile-palettes { --teinte: 73, 162, 254; }
.tuile-partout { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(24px, 5vw, 64px); --teinte: 94, 149, 252; }
.tuile-partout .tuile-texte { flex: 0 1 25em; }
@media (max-width: 980px) {
    .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tuile-stats { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .tuiles { grid-template-columns: minmax(0, 1fr); }
    .tuile-partout { flex-direction: column-reverse; align-items: stretch; }
    .tuile-partout .tuile-texte { flex: none; }
}

/* Statistiques */
.st-haut { font-size: 0.875rem; color: var(--encre-2); font-family: var(--p-texte); }
.st-haut b { font-family: var(--p-titre); font-weight: 800; font-size: 1.75rem; letter-spacing: -0.04em; color: #fff; margin-right: 6px; }
.st-barres {
    margin-top: 18px;
    height: 132px;
    display: grid;
    grid-template-columns: repeat(19, 1fr);
    align-items: end;
    gap: clamp(4px, 1cqi, 8px);
    padding-bottom: 1px;
    border-bottom: 1px solid var(--trait);
    background: repeating-linear-gradient(180deg, transparent 0 43px, rgba(var(--s), 0.04) 43px 44px);
}
.st-b {
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    transform: scaleY(0.04);
    transform-origin: 50% 100%;
    transition: transform 0.9s var(--doux);
    transition-delay: calc(var(--i) * 35ms);
}
.st-b i { display: block; height: calc(var(--h) * 1px); border-radius: 4px; background: linear-gradient(180deg, rgba(var(--m), 0.95), rgba(var(--m), 0.55)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.st-legende { margin-top: 18px; display: grid; gap: 9px; }
.st-l { display: grid; grid-template-columns: auto 8.5em 1fr auto; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 600; color: #d5daeb; }
.st-l > i:first-child { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--m)); box-shadow: 0 0 10px rgba(var(--m), 0.8); }
.st-l::after { content: ''; grid-column: 3; grid-row: 1; height: 5px; border-radius: 999px; background: linear-gradient(90deg, rgb(var(--m)) 0 var(--p), rgba(var(--s), 0.06) var(--p)); }
.st-l b { grid-column: 4; font-family: var(--p-titre); font-weight: 800; font-size: 0.875rem; color: #fff; }
.tuile-stats.is-playing .st-b { transform: none; }

/* Recherche */
.re-champ {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(30, 24, 70, 0.5);
}
.re-champ::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--degrade); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude; opacity: 0.8; }
.re-champ .ico { width: 18px; height: 18px; color: rgba(var(--t), 0.55); }
@keyframes clignote { 50% { opacity: 0; } }
.re-curseur { width: 1.5px; height: 1.1em; margin-left: -8px; background: #9bbefd; animation: clignote 1s steps(1) infinite; }
.re-res { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.re-l {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(var(--s), 0.035);
    box-shadow: inset 0 0 0 1px rgba(var(--s), 0.06);
    transition: opacity 0.45s ease, transform 0.5s var(--doux);
}
.re-l > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.re-l b { font-size: 0.875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.re-l small { font-family: var(--p-texte); font-size: 0.8rem; color: rgba(var(--t), 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.re-l mark { color: #fff; background: rgba(109, 211, 251, 0.22); border-radius: 2px; }
.re-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: rgb(var(--m)); background: rgba(var(--m), 0.13); }
.re-ic .ico { width: 16px; height: 16px; }
.js .tuile-recherche:not(.is-done) .re-l { opacity: 0; transform: translateY(6px); }
.tuile-recherche .re-l:nth-child(2) { transition-delay: 0.08s; }
.tuile-recherche .re-l:nth-child(3) { transition-delay: 0.16s; }

/* Fiche */
.fi-tete {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(20, 18, 48, 0.8);
    box-shadow: inset 0 0 0 1px rgba(120, 110, 255, 0.28);
}
.fi-num { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; color: #fff; background: linear-gradient(140deg, #5a7dff, #8b5cf6); box-shadow: 0 10px 24px -10px rgba(120, 100, 255, 0.9); }
.fi-titres { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.fi-titres small { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #9d8cff; }
.fi-titres b { margin-top: 4px; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.025em; }
.fi-obj { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 0 4px; font-family: var(--p-texte); font-size: 0.85rem; color: rgba(var(--t), 0.8); line-height: 1.35; }
.fi-obj + .fi-obj { padding-top: 10px; border-top: 1px solid var(--trait); }
.fi-rang { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-family: var(--p-titre); font-weight: 800; font-size: 0.75rem; color: #3a0d1a; background: #ff7b9c; }
.fi-b { color: #6dd3fb; background: transparent; box-shadow: inset 0 0 0 1.5px #6dd3fb; }

/* Communauté */
.co-msg { display: flex; align-items: flex-end; gap: 9px; transition: opacity 0.45s ease, transform 0.5s var(--doux); transition-delay: calc(var(--i) * 0.35s + 0.1s); }
.co-msg + .co-msg { margin-top: 8px; }
.co-av { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: 0.75rem; color: #0b0e22; background: rgb(var(--m)); }
.co-b { padding: 8px 12px; border-radius: 14px 14px 14px 4px; font-family: var(--p-texte); font-size: 0.875rem; color: #e3e8f6; background: rgba(var(--s), 0.06); box-shadow: inset 0 0 0 1px rgba(var(--s), 0.06); }
.co-paquet {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 14px 0 0;
    padding: 10px 10px 10px 12px;
    border-radius: 14px;
    background: linear-gradient(100deg, rgba(246, 94, 171, 0.12), rgba(157, 105, 243, 0.1));
    box-shadow: inset 0 0 0 1px rgba(246, 94, 171, 0.3);
    transition: opacity 0.45s ease, transform 0.5s var(--doux);
    transition-delay: calc(var(--i) * 0.35s + 0.1s);
}
.co-pq-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; background: linear-gradient(140deg, #9d69f3, #f65eab); }
.co-pq-ic .ico { width: 16px; height: 16px; }
.co-paquet > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.co-paquet b { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-paquet small { font-size: 0.75rem; color: rgba(var(--t), 0.55); font-weight: 600; }
.co-pq-btn { flex: none; padding: 6px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: #fff; background: rgba(246, 94, 171, 0.3); box-shadow: inset 0 0 0 1px rgba(246, 94, 171, 0.5); }
.js .tuile-commu:not(.is-playing) .co-msg,
.js .tuile-commu:not(.is-playing) .co-paquet { opacity: 0; transform: translateY(8px); }

/* Palettes */
.tuile-palettes { --pa: #49a2fe; --pb: #9d69f3; --pc: #f65eab; }
.tuile-palettes::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--pb) 22%, transparent), transparent); transition: background 0.6s; }
.pa-orbes { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; padding: 14px 0 0; }
.pa-o {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.35), transparent 40%),
        conic-gradient(from 210deg, var(--a), var(--b), var(--c), var(--a));
    box-shadow: inset 0 0 0 3px var(--f), 0 6px 18px -6px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s var(--doux), box-shadow 0.4s;
}
.pa-o:hover { transform: translateY(-3px) scale(1.06); }
.pa-o[aria-checked="true"] { box-shadow: inset 0 0 0 3px var(--f), 0 0 0 2px #05060d, 0 0 0 3.5px rgba(255, 255, 255, 0.8), 0 10px 24px -6px var(--b); }
.pa-nom { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.pa-nom b { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; background: linear-gradient(100deg, var(--pa), var(--pb), var(--pc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pa-nom span { font-family: var(--p-texte); font-size: 0.85rem; color: var(--encre-3); }

/* Partout */
.pt-appareils { display: flex; align-items: flex-end; justify-content: center; padding: 6px 0 4px; min-height: 180px; }
.pt-portable { display: flex; flex-direction: column; align-items: center; width: min(380px, 74%); }
.pt-portable .pt-ecran { width: 100%; aspect-ratio: 16 / 10; }
.pt-ecran {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6%;
    padding: 5%;
    border-radius: 12px;
    background: radial-gradient(70% 60% at 50% 0%, rgba(40, 60, 140, 0.4), transparent 70%), #0a0f26;
    box-shadow: inset 0 0 0 1px rgba(var(--s), 0.12), 0 0 0 5px #151a30, 0 0 0 6px rgba(var(--s), 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.pt-socle { width: 118%; height: 10px; margin-top: 6px; border-radius: 2px 2px 10px 10px; background: linear-gradient(180deg, #2a3150, #12162b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.pt-barre { display: flex; gap: 4%; }
.pt-barre i { height: 8px; border-radius: 99px; background: rgba(var(--s), 0.1); }
.pt-barre i:first-child { width: 8px; background: var(--degrade); }
.pt-barre i:nth-child(2) { width: 30%; box-shadow: inset 0 0 0 1px rgba(157, 105, 243, 0.6); background: transparent; }
.pt-barre i:last-child { width: 14%; margin-left: auto; background: rgba(255, 140, 80, 0.5); }
.pt-grille { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1.3fr; gap: 6px; }
.pt-grille i,
.pt-pile i { border-radius: 6px; background: rgba(var(--s), 0.06); box-shadow: inset 0 0 0 1px rgba(var(--s), 0.06); }
.pt-grille .pt-l { grid-column: span 2; box-shadow: inset 0 0 0 1px rgba(120, 140, 255, 0.5); background: rgba(90, 110, 255, 0.12); }
/* Le téléphone passe devant le coin du portable. */
.pt-tel { position: relative; z-index: 1; width: min(96px, 21%); margin-left: -7%; margin-bottom: -4px; }
.pt-tel .pt-ecran { aspect-ratio: 9 / 19; border-radius: 16px; padding: 14% 9% 9%; gap: 5%; box-shadow: inset 0 0 0 1px rgba(var(--s), 0.12), 0 0 0 4px #151a30, 0 0 0 5px rgba(var(--s), 0.1), 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.pt-encoche { position: absolute; top: 5%; left: 50%; width: 32%; height: 4%; transform: translateX(-50%); border-radius: 99px; background: #000; }
.pt-pile { flex: 1; display: grid; grid-template-rows: 1fr 1.3fr 1.3fr; gap: 6px; }
.pt-pile .pt-l { box-shadow: inset 0 0 0 1px rgba(120, 140, 255, 0.5); background: rgba(90, 110, 255, 0.12); }
.pt-dock { height: 8%; border-radius: 99px; background: rgba(var(--s), 0.08); }

/* 10. Méthode, questions, appel ============================================ */
.etapes {
    position: relative;
    margin-top: clamp(56px, 7vw, 88px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
    counter-reset: etape;
}
/* Fil qui relie les trois étapes, tracé à l'apparition. */
.etapes::before {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 1px;
    background: linear-gradient(90deg, rgba(73, 162, 254, 0.7), rgba(157, 105, 243, 0.7), rgba(246, 94, 171, 0.7));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.4s var(--aller-retour) 0.3s;
}
.etapes.is-in::before { transform: none; }
.etape { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.etape-n {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-family: var(--p-titre);
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    background: #0c1028;
    box-shadow: 0 0 0 8px var(--fond), 0 0 40px -6px rgba(120, 110, 255, 0.6);
}
.etape-n::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1.5px;
    background: var(--degrade);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}
.etape h3 { margin-top: 24px; font-family: var(--p-titre); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.025em; }
.etape p { margin-top: 8px; max-width: 19em; color: var(--encre-2); font-size: 0.98rem; text-wrap: pretty; }
@media (max-width: 760px) {
    .etapes { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .etapes::before { display: none; }
}

.faq { margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--trait); }
.faq-q { border-bottom: 1px solid var(--trait); }
.faq-q summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 4px;
    cursor: pointer;
    list-style: none;
    font-family: var(--p-titre);
    font-weight: 700;
    font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
    letter-spacing: -0.015em;
    border-radius: 12px;
    transition: color 0.2s;
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary:hover { color: #fff; }
.faq-q summary .ico {
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 50%;
    color: var(--pervenche);
    background: rgba(var(--s), 0.04);
    box-shadow: inset 0 0 0 1px var(--trait-2);
    transition: transform 0.45s var(--doux), background-color 0.3s;
}
.faq-q[open] summary .ico { transform: rotate(45deg); background: rgba(94, 149, 252, 0.15); }
.faq-r { padding: 0 52px 26px 4px; color: var(--encre-2); font-size: 1.0125rem; line-height: 1.65; }
.faq-q[open] .faq-r { animation: deplie 0.5s var(--doux); }
@keyframes deplie { from { opacity: 0; transform: translateY(-6px); } }
.faq-r a { color: var(--pervenche); text-decoration: underline; text-decoration-color: rgba(155, 190, 253, 0.4); text-underline-offset: 3px; }
.faq-r a:hover { text-decoration-color: currentColor; }

.section-appel { padding-bottom: clamp(96px, 12vw, 160px); }
.appel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px) clamp(96px, 11vw, 150px);
    border-radius: 32px;
    text-align: center;
    background: linear-gradient(180deg, rgba(20, 24, 54, 0.7), rgba(8, 10, 24, 0.85));
    --lisere: linear-gradient(180deg, rgba(160, 150, 255, 0.45), rgba(var(--s), 0.05) 40%, rgba(246, 94, 171, 0.25));
}
.appel-lueur {
    position: absolute;
    z-index: -1;
    left: 50%;
    bottom: -60%;
    width: 140%;
    height: 120%;
    transform: translateX(-50%);
    background:
        radial-gradient(40% 40% at 50% 60%, rgba(94, 120, 252, 0.35), transparent 70%),
        radial-gradient(30% 30% at 30% 55%, rgba(157, 105, 243, 0.2), transparent 70%),
        radial-gradient(30% 30% at 70% 55%, rgba(246, 94, 171, 0.14), transparent 70%);
}
/* Horizon d'une planète au bas du panneau : un arc de lumière fine. */
.appel-horizon {
    position: absolute;
    z-index: -1;
    left: 50%;
    bottom: -114%;
    width: 170%;
    height: 125%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, #070918 97%, rgba(7, 9, 24, 0));
    box-shadow:
        0 -1px 0 rgba(175, 195, 255, 0.55),
        0 -8px 40px -8px rgba(110, 140, 255, 0.55),
        0 -40px 120px -20px rgba(157, 105, 243, 0.3);
}
.appel-signe { width: 64px; height: 64px; margin: 0 auto 8px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(94, 140, 255, 0.7)); }
.appel::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(rgba(var(--s), 0.07) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
    mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}
/* Apostrophe des grands titres : l'approche du dessin la laisse trop loin. */
.apo { margin-right: -0.07em; }
.appel-actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* 11. Pied ================================================================= */
.pied { border-top: 1px solid var(--trait); background: rgba(4, 5, 11, 0.6); }
.pied-in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 40px; padding: 48px 0 32px; }
.pied-marque p { margin-top: 12px; color: var(--encre-3); font-size: 0.9rem; }
.marque-petite .marque-signe { width: 1.75rem; height: 1.75rem; }
.marque-petite .marque-mot { font-size: 0.85rem; }
.marque-petite { opacity: 0.8; gap: 0.65rem; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 6px 4px; max-width: 640px; }
.pied-liens a { padding: 6px 12px; border-radius: 10px; color: var(--encre-2); font-size: 0.9rem; transition: color 0.2s, background-color 0.2s; }
.pied-liens a:hover { color: var(--encre); background: rgba(var(--s), 0.05); }
.pied-bas { padding: 20px 0 36px; border-top: 1px solid var(--trait); color: var(--encre-3); font-size: 0.8125rem; }

/* 12. Apparitions ========================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--doux), transform 1.1s var(--doux); transition-delay: calc(var(--n, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .etapes.reveal { transform: none; }
.js .etapes.reveal .etape { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--doux), transform 1s var(--doux); transition-delay: calc(0.15s + var(--n) * 0.25s); }
.js .etapes.reveal.is-in .etape { opacity: 1; transform: none; }

/* Mouvement réduit : tout est montré dans son état final, sans trajet. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
        transition-delay: 0s !important;
    }
    .ouverture-titre .l2,
    .lire-disque::before,
    .mi-halo,
    .mi-ecg-point,
    .mi-creature svg,
    .re-curseur,
    .tu-ecrit i,
    .etoile { animation: none !important; }
    .video { transform: none !important; }
}

/* Appareils modestes : pas de flou derrière les surfaces (fond plein). */
.perf-lite .fen,
.perf-lite .tuile,
.perf-lite .lire-disque,
.perf-lite .btn-verre,
.perf-lite .lire-etat,
.perf-lite .entete.is-scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.perf-lite .entete.is-scrolled { background: rgba(6, 8, 18, 0.94); }
.perf-lite .fen { background: linear-gradient(180deg, #161b38, #0c0f22); }
.perf-lite .tuile { background: linear-gradient(180deg, #11152c, #0a0c1b); }
@media (prefers-reduced-transparency: reduce) {
    .fen { background: linear-gradient(180deg, #161b38, #0c0f22); }
}

/* 13. Version claire (le jour) ============================================== */
/* Posée de 7 h à 19 h (classe « clair » sur <html>, voir le <head>). Mêmes
   formes et mêmes animations : seules les couleurs changent. Les maquettes
   passent au mode clair de l'application (fond bleuté très pâle, cartes
   blanches, minuteur bleu vif) ; le verre reste du verre, en blanc. */
html.clair {
    color-scheme: light;
    --s: 26, 36, 92;
    --t: 20, 26, 60;
    --fond: #f5f7fd;
    --encre: #0e1433;
    --encre-2: #4b5373;
    --encre-3: #7b829d;
    --bleu: #1f6fe0;
    --action: #2f6bea;
    --pervenche: #2a5bd7;
    --lavande: #7046d6;
    --turquoise: #0f9a92;
    --degrade: linear-gradient(100deg, #2f86f6 0%, #8a58ee 52%, #ea4f9f 100%);
    --choisi: #1d3fb8;
    --choisi-lettre: #8b5cf6;
    /* Le logo est blanc : le jour, il prend le dégradé du mode clair de
       l'application, par un masque (image incluse : marche aussi en file://). */
    --logo-masque: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAQAElEQVR4AezdCfx9TzkH8PsXEUKlJCkSSkWWSlKoRCVEi6K0KiJt2veNVkUS0iKVSpaUFpVE2pSykySkpE0hstTnffvN93e/93/uvWe/535/5/ua+Z45c+bMPPPMc555nmeemfsJi/mvYAAuzpebSyReKfHbEm+eeK/En0p8RuILE/8g8Y2Jf5b456eitLzfz70yT8/1sYn3TPz+RHV9Xa5fmnjexLMS5xAMQHouZ1Qw+OdMjz898fMTvzf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MDAGCVc0HRtsa8tMN6YuXNK5Jg6ntNriXcoKwy1iQ3T2v5rqEAlFh3zFoMtnjvaJYJ0/jTOJ0vI8w4nV7UD3N6dy21QRNCK8Su6t5mhLm7ldkF1Nt4iRSYlPHlh9HMxM+qAv+qRv3jkx8SQS4Prg4Ba4Cg6Iu9EUuX7hTGxnjhQhO/opWMZbR06Qqwj08EM+w9EukooRBm5FK7W6wFAuSsvzjE1SWRzTu+pQlzqtc2sDYeGIfPDA4H0E6mdNafJ+tBrMYE+zJzdAzsnt3eae0aRxFcTmF4/4wzHtMHib8mwXuH5eJ4+RuRAGxwjczDTK+IsjrkZE5Rl7JOXAO8xBpk91WdNWNzkOsXIIIKe+O+2ABUxJ9humXtvHAAAA//+gtnA+AAAABklEQVQDAJAhc3P/s6yuAAAAAElFTkSuQmCC);
}
html.clair ::selection { background: rgba(157, 105, 243, 0.28); color: inherit; }
html.clair .evitement { background: #fff; }

/* Ciel de jour : pas d'étoiles, un voile bleuté en haut. */
html.clair .ciel {
    background:
        radial-gradient(80% 45% at 50% -8%, rgba(120, 150, 255, 0.16), transparent 70%),
        radial-gradient(120% 70% at 50% 120%, rgba(157, 105, 243, 0.07), transparent 60%),
        var(--fond);
}
html.clair .ciel-etoiles,
html.clair .etoile { display: none; }

/* Marque */
html.clair .marque-signe::before { background: radial-gradient(closest-side, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0)); }
html.clair .marque-signe img,
html.clair .marque:hover .marque-signe img,
html.clair .appel-signe {
    background: linear-gradient(135deg, #0064b5, #743bc3, #af0f6f);
    -webkit-mask: var(--logo-masque) center / contain no-repeat;
    mask: var(--logo-masque) center / contain no-repeat;
    object-fit: none;
    object-position: -9999px -9999px;
    filter: none;
}
html.clair .marque-mot > span {
    color: #142160;
    color: color-mix(in srgb, #2456d6 calc(var(--i, 0) * 11%), #101a48);
}
html.clair .marque:hover .marque-mot > span {
    color: #1d4ed8;
    color: color-mix(in srgb, #7a43e0 calc(10% + var(--i, 0) * 9%), #1d4ed8);
}
html.clair .marque-mot::after { background: linear-gradient(90deg, transparent, #2a5bd7 20%, #7a43e0 80%, transparent); }

/* Boutons et en-tête */
html.clair .btn-plein {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(90, 100, 240, 0.22),
        0 12px 28px -12px rgba(70, 80, 230, 0.6);
}
html.clair .btn-plein:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(100, 100, 240, 0.3), 0 18px 40px -14px rgba(80, 80, 230, 0.65); }
html.clair .btn-verre { background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(var(--s), 0.13), 0 6px 18px -10px rgba(28, 38, 100, 0.25); }
html.clair .btn-verre:hover { background: #fff; }
html.clair .entete.is-scrolled { background: rgba(247, 249, 255, 0.72); }

/* Ouverture */
html.clair .ouverture-lueur {
    background:
        radial-gradient(38% 30% at 50% 22%, rgba(80, 120, 255, 0.16), transparent 70%),
        radial-gradient(24% 22% at 64% 30%, rgba(157, 105, 243, 0.12), transparent 70%),
        radial-gradient(22% 20% at 36% 34%, rgba(246, 94, 171, 0.08), transparent 70%),
        radial-gradient(46% 26% at 50% 66%, rgba(80, 100, 255, 0.1), transparent 72%);
}
html.clair .ouverture-grille {
    background-image:
        linear-gradient(rgba(var(--s), 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--s), 0.05) 1px, transparent 1px);
}
/* Titres : background-image seulement (le raccourci « background » ôterait
   le découpage sur le texte). */
html.clair .ouverture-titre .l1 { background-image: linear-gradient(180deg, #0e1433 40%, #3b4778); }
html.clair .ouverture-titre .l2 { background-image: linear-gradient(100deg, #1d6ae0, #7a43e0 30%, #d4338a 50%, #7a43e0 70%, #1d6ae0); }
html.clair .titre-2 { background-image: linear-gradient(180deg, #0e1433 45%, #414c7d); }
html.clair .surtitre::before,
html.clair .surtitre::after { background: linear-gradient(90deg, transparent, rgba(42, 91, 215, 0.6)); }

/* Vidéo et tableau de bord recréé */
html.clair .scene-video::before { background: radial-gradient(50% 50% at 50% 50%, rgba(94, 120, 252, 0.24), rgba(157, 105, 243, 0.09) 48%, transparent 72%); }
html.clair .video-cadre {
    background: #f3f6fd;
    box-shadow:
        0 0 0 1px rgba(var(--s), 0.06),
        0 50px 110px -40px rgba(28, 38, 110, 0.38),
        0 0 90px -30px rgba(94, 120, 252, 0.3);
    --lisere: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(var(--s), 0.08) 30%, rgba(157, 105, 243, 0.28) 100%);
}
html.clair .video-voile { background: radial-gradient(26% 32% at 50% 50%, rgba(255, 255, 255, 0.7), transparent 75%); }
html.clair .lire-disque {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 1px rgba(var(--s), 0.1), 0 24px 50px -16px rgba(28, 38, 110, 0.35), 0 0 50px -10px rgba(120, 110, 255, 0.35);
}
html.clair .lire-disque .ico { fill: url(#dg-logo); }
html.clair .lire-titre { color: var(--encre); text-shadow: 0 1px 14px rgba(255, 255, 255, 0.9); }
html.clair .lire-etat { color: #b45309; background: rgba(255, 170, 70, 0.16); box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.35); }


/* Bande des outils */
html.clair .outils-n { background-image: linear-gradient(180deg, #0e1433 30%, #4a5ba8); }
html.clair .outil { color: #3a4266; background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px rgba(var(--s), 0.1), 0 4px 12px -8px rgba(28, 38, 100, 0.25); }
html.clair .outil:nth-child(3n + 2) .ico { color: #7046d6; }
html.clair .outil:nth-child(3n) .ico { color: #d0347f; }

/* Atouts */
html.clair .atout-etiquette { color: rgb(var(--teinte)); color: color-mix(in srgb, rgb(var(--teinte)) 70%, #0e1433); }
html.clair .atout-tuile { background: rgba(var(--teinte), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--teinte), 0.3), 0 8px 20px -10px rgba(var(--teinte), 0.5); }
html.clair .atout-liste li { color: #2a3152; }
html.clair .atout-liste .ico { color: color-mix(in srgb, rgb(var(--teinte)) 75%, #0e1433); background: rgba(var(--teinte), 0.12); }

/* Maquettes : verre blanc, ombres bleutées */
html.clair .scene::after { background: radial-gradient(closest-side, rgba(var(--teinte), 0.2), rgba(var(--teinte), 0.07) 50%, transparent); }
html.clair .fen {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(249, 250, 255, 0.78));
    box-shadow: 0 2.4em 5em -2em rgba(28, 38, 100, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html.clair .fen::before,
html.clair .video-cadre::after,
html.clair .tuile::before,
html.clair .appel::before {
    background: var(--lisere, linear-gradient(160deg, rgba(var(--s), 0.14), rgba(var(--s), 0.05) 38%, rgba(var(--s), 0.04) 62%, rgba(var(--teinte, 157, 105, 243), 0.35)));
}
html.clair .it-sur { color: #d23c55; }
html.clair .it-num { color: #0e1433; background: radial-gradient(circle at 50% 35%, rgba(246, 94, 126, 0.16), rgba(246, 94, 126, 0.05) 72%); box-shadow: inset 0 0 0 1px rgba(220, 70, 100, 0.38), 0 0.8em 2em -1em rgba(246, 94, 126, 0.4); }
/* Ressources : couleurs du mode clair de l'application (--cc). */
html.clair .it-ligne { --k: var(--cc, 83, 133, 215); background: rgba(var(--k), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--k), 0.32), 0 1px 2px rgba(var(--k), 0.08); }
html.clair .it-ligne .it-act { color: rgb(var(--k)); background: #fff; box-shadow: inset 0 0 0 1px rgba(var(--k), 0.25); }
html.clair .it-fiche { background: linear-gradient(135deg, rgba(113, 164, 249, 0.07), rgba(168, 147, 242, 0.1)); box-shadow: inset 0 0 0 1px rgba(130, 140, 230, 0.3), 0 0.7em 1.4em -1.1em rgba(115, 124, 214, 0.6); }
html.clair .it-fiche .it-txt small,
html.clair .it-fiche .it-act { color: rgb(115, 124, 214); }
html.clair .it-fiche .it-act { box-shadow: inset 0 0 0 1px rgba(115, 124, 214, 0.25); }
html.clair .it-vide { background: transparent; box-shadow: none; }
html.clair .it-vide::before { border-color: rgba(152, 111, 200, 0.32); }
html.clair .it-vide .it-ic { color: rgb(157, 161, 175); background: rgb(243, 244, 249); }
html.clair .it-vide .it-txt small { color: rgb(157, 161, 175); }
html.clair .it-vide .it-act { color: rgb(110, 114, 127); background: rgb(249, 250, 253); box-shadow: inset 0 0 0 1px rgb(228, 231, 240); }
html.clair [data-scene="item"].is-playing .it-recoit .it-act { color: rgb(var(--k)); background: #fff; box-shadow: inset 0 0 0 1px rgba(var(--k), 0.25); transition: color 0.4s 1.55s, box-shadow 0.4s 1.55s; }
html.clair [data-scene="item"].is-playing .puce-lu { color: #15803d; background: rgba(34, 197, 94, 0.1); box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.45); }
html.clair .it-fichier { background: rgba(255, 255, 255, 0.97); box-shadow: inset 0 0 0 1px rgba(90, 130, 250, 0.35), 0 1.4em 3em -1em rgba(28, 38, 100, 0.35), 0 0 2em -0.6em rgba(73, 162, 254, 0.45); }
html.clair .fen-note { background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 250, 244, 0.92)); }
html.clair .note-l { color: #1d2448; }
html.clair .note-pale { color: rgba(29, 36, 72, 0.6); }
html.clair .surligne { background-image: linear-gradient(90deg, rgba(254, 189, 86, 0.55), rgba(254, 189, 86, 0.55)); }

html.clair .fc-n { color: var(--encre); }
html.clair .fc-face { background: linear-gradient(160deg, #ffffff, #f5f1ff); box-shadow: inset 0 0 0 1px rgba(140, 100, 240, 0.25), 0 1.2em 2.4em -1.4em rgba(60, 40, 140, 0.35); }
html.clair .fc-verso { background: linear-gradient(160deg, #f7f2ff, #ece4ff); box-shadow: inset 0 0 0 1px rgba(140, 100, 240, 0.4), 0 1.2em 2.4em -1.4em rgba(60, 40, 140, 0.35); }
html.clair .fc-r > span::before { box-shadow: 0 0 0.6em rgba(140, 100, 240, 0.6); }
html.clair .fc-voir { color: #5b2fc0; background: rgba(157, 105, 243, 0.12); box-shadow: inset 0 0 0 1px rgba(140, 100, 240, 0.4); }
html.clair .fc-savais { background: linear-gradient(100deg, #4b8dff, #8b5cf6); box-shadow: 0 0.5em 1.2em -0.5em rgba(110, 100, 250, 0.6); }
html.clair .fen-quiz { background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 249, 255, 0.92)); }
html.clair .qz-sur { color: #c2531a; }
html.clair [data-scene="cartes"].is-playing .qz-bon { color: #1d3fb8; background: rgba(90, 130, 255, 0.1); }
html.clair .fen-anki { background: rgba(255, 255, 255, 0.95); }
html.clair .fen-anki .ico { background: #8b5cf6; }

html.clair .tu-mode { color: #b81d6e; background: rgba(246, 94, 171, 0.1); }
html.clair .tu-expl b { color: var(--encre); }

html.clair .mi-halo { opacity: 0.28; }
html.clair .mi-obj { color: #1d3f9a; background: rgba(23, 97, 242, 0.12); }
html.clair .mi-obj b { color: #0f2f86; }
html.clair .mi-creature svg { fill: rgb(23, 97, 242); }
html.clair .mi-ecg-point { stroke: #3b6cf0; filter: drop-shadow(0 0 2px rgba(59, 108, 240, 0.7)) drop-shadow(0 0 5px rgba(59, 130, 246, 0.5)); }
html.clair .mi-temps { color: rgb(23, 97, 242); text-shadow: none; }
html.clair .mi-milli { color: rgba(23, 97, 242, 0.35); }
html.clair .mi-sujet { color: rgb(80, 86, 104); }
html.clair .mi-piste { stroke: rgba(18, 23, 40, 0.12); }
html.clair .mi-arc { stroke: rgb(23, 97, 242); }
html.clair .mi-rond { color: rgba(77, 83, 104, 0.75); background: linear-gradient(140deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55) 50%, rgba(238, 242, 255, 0.7)); box-shadow: inset 0 0 0 1px rgba(18, 23, 40, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(23, 97, 242, 0.08), 0 0.3em 0.8em -0.3em rgba(18, 23, 40, 0.15); }
html.clair .mi-drapeau { color: rgb(11, 126, 91); box-shadow: inset 0 0 0 1px rgba(3, 194, 141, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 0.3em 0.8em -0.3em rgba(18, 23, 40, 0.15); }
html.clair .mi-pause { color: rgb(23, 97, 242); background: #fff; box-shadow: inset 0 0 0 1px rgb(228, 231, 240), 0 0.7em 1.6em -0.35em rgba(23, 97, 242, 0.25); }
html.clair .fen-jours { background: linear-gradient(100deg, rgba(255, 240, 228, 0.95), rgba(255, 231, 240, 0.95)); }
html.clair .jr-l { color: #cc5a16; }
html.clair .jr-sep { background: rgba(220, 120, 60, 0.3); }
html.clair .jr-ic { color: #e0682c; }
html.clair .ob-etoile { color: #0ea5c6; filter: none; }
html.clair .ob-case { box-shadow: inset 0 0 0 1px rgb(109, 113, 126); }
html.clair .ob { color: rgb(18, 23, 40); }
html.clair .ob-item,
html.clair .ob-item.fait,
html.clair [data-scene="journee"].is-playing .ob-1 { color: rgb(23, 97, 242); }
html.clair .se-j i { box-shadow: 0 0 0.5em rgba(var(--m, 255, 255, 255), 0.5); }
html.clair .se-j { --se-a: 0.36; }
html.clair .se-auj { background: rgba(94, 149, 252, 0.12); box-shadow: inset 0 0 0 1px rgba(42, 91, 215, 0.75), inset 0 0 0 2px rgba(42, 91, 215, 0.25); }
html.clair .se-auj small,
html.clair .se-auj b { color: #2a5bd7; }
html.clair .se-auj::before { background: #2a5bd7; box-shadow: none; }

/* Tuiles « Et aussi » */
html.clair .tuile { background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66)); box-shadow: 0 24px 50px -30px rgba(28, 38, 100, 0.3); }
html.clair .tuile-texte h3 .ico { color: color-mix(in srgb, rgb(var(--teinte)) 75%, #0e1433); }
html.clair .st-haut b,
html.clair .st-l b { color: var(--encre); }
html.clair .st-l { color: #2a3152; }
html.clair .re-champ { background: rgba(255, 255, 255, 0.9); }
html.clair .re-curseur { background: #2a5bd7; }
html.clair .re-l mark { color: #075985; background: rgba(56, 189, 248, 0.2); }
html.clair .re-ic { color: color-mix(in srgb, rgb(var(--m)) 72%, #0e1433); }
html.clair .fi-tete { background: rgba(246, 244, 255, 0.95); box-shadow: inset 0 0 0 1px rgba(120, 100, 240, 0.25); }
html.clair .fi-titres small { color: #6a4fd8; }
html.clair .fi-b { color: #0a7fb0; box-shadow: inset 0 0 0 1.5px #0a9fd8; }
html.clair .co-b { color: #1d2448; }
html.clair .co-paquet { box-shadow: inset 0 0 0 1px rgba(220, 60, 140, 0.3); }
html.clair .co-pq-btn { color: #b81d6e; background: rgba(246, 94, 171, 0.12); box-shadow: inset 0 0 0 1px rgba(220, 60, 140, 0.4); }
html.clair .pa-o { box-shadow: inset 0 0 0 3px var(--f), 0 6px 16px -8px rgba(28, 38, 100, 0.5); }
html.clair .pa-o[aria-checked="true"] { box-shadow: inset 0 0 0 3px var(--f), 0 0 0 2px #fff, 0 0 0 3.5px rgba(26, 36, 92, 0.55), 0 10px 22px -8px var(--b); }
html.clair .pa-nom b { background-image: linear-gradient(100deg, color-mix(in srgb, var(--pa) 55%, #0e1433), color-mix(in srgb, var(--pb) 55%, #0e1433), color-mix(in srgb, var(--pc) 55%, #0e1433)); }
html.clair .pt-ecran {
    background: radial-gradient(70% 60% at 50% 0%, rgba(120, 150, 255, 0.22), transparent 70%), #f3f6fd;
    box-shadow: inset 0 0 0 1px rgba(var(--s), 0.1), 0 0 0 5px #dde2f0, 0 0 0 6px rgba(var(--s), 0.12), 0 26px 50px -24px rgba(28, 38, 100, 0.4);
}
html.clair .pt-tel .pt-ecran { box-shadow: inset 0 0 0 1px rgba(var(--s), 0.1), 0 0 0 4px #dde2f0, 0 0 0 5px rgba(var(--s), 0.14), 0 26px 50px -24px rgba(28, 38, 100, 0.4); }
html.clair .pt-socle { background: linear-gradient(180deg, #e4e8f4, #c6cce0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); }
html.clair .pt-encoche { background: #1b2140; }
html.clair .pt-grille i:not(.pt-l),
html.clair .pt-pile i:not(.pt-l) { background: #fff; }

/* Méthode, questions, appel, pied */
html.clair .etape-n { color: var(--encre); background: #fff; box-shadow: 0 0 0 8px var(--fond), 0 10px 30px -10px rgba(100, 100, 240, 0.45); }
html.clair .faq-q summary:hover { color: #1d3fb8; }
html.clair .faq-q summary .ico { background: #fff; }
html.clair .faq-q[open] summary .ico { background: rgba(94, 149, 252, 0.14); }
html.clair .faq-r a { text-decoration-color: rgba(42, 91, 215, 0.35); }
html.clair .appel { background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(240, 243, 255, 0.9)); box-shadow: 0 30px 70px -40px rgba(28, 38, 100, 0.35); }
html.clair .appel-lueur {
    background:
        radial-gradient(40% 40% at 50% 60%, rgba(94, 120, 252, 0.22), transparent 70%),
        radial-gradient(30% 30% at 30% 55%, rgba(157, 105, 243, 0.14), transparent 70%),
        radial-gradient(30% 30% at 70% 55%, rgba(246, 94, 171, 0.1), transparent 70%);
}
/* L'horizon de jour : une planète claire, liseré bleu. */
html.clair .appel-horizon {
    background: radial-gradient(closest-side, #ffffff 97%, rgba(255, 255, 255, 0));
    box-shadow:
        0 -1px 0 rgba(90, 120, 240, 0.55),
        0 -8px 36px -8px rgba(90, 120, 255, 0.45),
        0 -40px 110px -20px rgba(157, 105, 243, 0.25);
}
html.clair .pied { background: rgba(255, 255, 255, 0.5); }

/* Appareils modestes et transparence réduite : surfaces pleines. */
html.clair.perf-lite .entete.is-scrolled { background: rgba(247, 249, 255, 0.96); }
html.clair.perf-lite .fen { background: linear-gradient(180deg, #ffffff, #f8f9fe); }
html.clair.perf-lite .tuile { background: linear-gradient(180deg, #ffffff, #fafbff); }
@media (prefers-reduced-transparency: reduce) {
    html.clair .fen { background: linear-gradient(180deg, #ffffff, #f8f9fe); }
}
