/* ==========================================================================
   FORMATION HOTEL HUBS — édition « Maison »

   L'esprit d'un grand hôtel : ivoire, nuit profonde, champagne. Des titres
   en capitales romaines (Cormorant), un texte courant net (Manrope), des
   filets dorés très fins, de vraies photographies — et aucun émoji.

   La lisibilité d'abord : le personnel lit souvent sur téléphone, debout,
   entre deux gestes. Le luxe est dans le calme de la page, pas dans la
   petite taille des caractères.
   ========================================================================== */

:root {
    --encre: #141821;
    --texte: #3a404d;
    --doux: #7b8190;
    --fond: #f6f3ec;
    --ivoire: #fbf9f4;
    --carte: #ffffff;
    --bordure: #e9e2d4;
    --filet: rgba(176, 141, 87, .35);

    --or: #b08d57;
    --or-fonce: #86683a;
    --or-clair: #d9bf8c;
    --or-voile: #f5ede0;
    --champagne: linear-gradient(135deg, #e2c893 0%, #b08d57 48%, #8a6a3b 100%);

    --nuit: #0d1220;
    --nuit-2: #151c2d;
    --nuit-3: #1e2740;

    --vert: #2e7656;
    --vert-voile: #e6f2eb;
    --rouge: #ab4538;
    --rouge-voile: #f8e9e6;
    --bleu: #2f5b86;
    --bleu-voile: #e8eef5;
    --gris-voile: #efece5;

    --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
    --sans: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

    --rayon: 12px;
    --rayon-l: 18px;
    --rayon-xl: 26px;
    --ombre: 0 1px 2px rgba(20, 24, 33, .04), 0 10px 30px rgba(20, 24, 33, .06);
    --ombre-forte: 0 24px 60px rgba(13, 18, 32, .22);
    --transition: 220ms cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--fond); color: var(--texte);
    font: 16px/1.6 var(--sans); letter-spacing: .005em;
    -webkit-font-smoothing: antialiased;
}
[v-cloak] { display: none; }
h1, h2, h3, h4 { color: var(--encre); line-height: 1.18; margin: 0 0 .5em; font-weight: 600; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; }
h1 { font-size: 40px; } h2 { font-size: 30px; } h3 { font-size: 18px; font-weight: 700; } h4 { font-size: 16px; font-weight: 700; }
a { color: var(--or-fonce); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
.ico { display: inline-block; flex: none; vertical-align: middle; }
.flex1 { flex: 1; }
.doux { color: var(--doux); }
.petit { font-size: 14px; }
.centre { text-align: center; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt2 { margin-top: 32px; }
.rangee { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rangee.entre { justify-content: space-between; }
.cache { display: none !important; }

/* L'étiquette en capitales espacées au-dessus d'un titre */
.surtitre {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--or-fonce);
}
.surtitre::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.filet { height: 1px; background: linear-gradient(90deg, transparent, var(--filet), transparent); border: 0; margin: 28px 0; }

/* ---------- Boutons ---------- */
.bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 1px solid transparent; border-radius: 999px; padding: 11px 20px;
    font-weight: 700; font-size: 15px; letter-spacing: .01em; cursor: pointer; text-decoration: none;
    background: var(--gris-voile); color: var(--encre); transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    line-height: 1.2; white-space: nowrap;
}
.bouton:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(20, 24, 33, .10); }
.bouton:active { transform: translateY(0); }
.bouton:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.bouton-or { background: var(--champagne); color: #fff; box-shadow: 0 8px 22px rgba(176, 141, 87, .32); text-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.bouton-or:hover { box-shadow: 0 12px 30px rgba(176, 141, 87, .42); }
.bouton-nuit { background: var(--nuit); color: #f3e7cf; }
.bouton-vert { background: var(--vert); color: #fff; }
.bouton-rouge { background: var(--rouge); color: #fff; }
.bouton-blanc { background: #fff; border-color: var(--bordure); }
.bouton-blanc:hover { border-color: var(--or-clair); }
.bouton-contour { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.bouton-contour:hover { background: rgba(255, 255, 255, .1); }
.bouton-lien { background: none; color: var(--or-fonce); padding: 6px 8px; border-radius: 8px; }
.bouton-lien:hover { box-shadow: none; background: var(--or-voile); }
.bouton-grand { padding: 15px 28px; font-size: 16px; }
.bouton-geant { padding: 18px 30px; font-size: 17px; width: 100%; }
.bouton-petit { padding: 7px 13px; font-size: 13px; gap: 6px; }
.bouton-rond { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

/* ---------- Champs ---------- */
.champ { display: block; margin-bottom: 16px; }
.champ > span { display: block; font-weight: 700; color: var(--encre); margin-bottom: 7px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.champ small { display: block; color: var(--doux); margin-top: 5px; font-size: 13px; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number], input[type=url], input[type=search], select, textarea {
    width: 100%; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 12px 14px;
    background: #fff; color: var(--encre); outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus { border-color: var(--or); box-shadow: 0 0 0 4px rgba(176, 141, 87, .14); }
textarea { min-height: 90px; resize: vertical; }
.case { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; margin-bottom: 12px; }
.case input { width: 19px; height: 19px; accent-color: var(--or); }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }

/* ---------- Cartes, alertes, étiquettes ---------- */
.carte { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon-l); padding: 26px; box-shadow: var(--ombre); }
.carte + .carte { margin-top: 20px; }
.carte-titre { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.carte-titre h3 { margin: 0; }
.carte-titre .ico { color: var(--or); }
.alerte { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--rayon); padding: 14px 18px; font-weight: 600; margin: 14px 0; border: 1px solid transparent; }
.alerte .ico { margin-top: 2px; }
.alerte-or { background: var(--or-voile); color: var(--or-fonce); border-color: #eadcc2; }
.alerte-vert { background: var(--vert-voile); color: var(--vert); border-color: #cfe5d8; }
.alerte-rouge { background: var(--rouge-voile); color: var(--rouge); border-color: #efd2cd; }
.alerte-bleu { background: var(--bleu-voile); color: var(--bleu); border-color: #d3dfeb; }
.etiquette { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; letter-spacing: .03em; background: var(--gris-voile); color: var(--texte); white-space: nowrap; }
.etiquette.vert { background: var(--vert-voile); color: var(--vert); }
.etiquette.or { background: var(--or-voile); color: var(--or-fonce); }
.etiquette.rouge { background: var(--rouge-voile); color: var(--rouge); }
.etiquette.bleu { background: var(--bleu-voile); color: var(--bleu); }
.etiquette.verre { background: rgba(13, 18, 32, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.barre { height: 6px; border-radius: 99px; background: var(--gris-voile); overflow: hidden; }
.barre > span { display: block; height: 100%; border-radius: 99px; background: var(--champagne); transition: width .8s ease; }
.barre.verte > span { background: linear-gradient(90deg, #4f9a78, var(--vert)); }
.barre.grosse { height: 10px; }
.point-direct { width: 9px; height: 9px; border-radius: 50%; background: #3fbf7f; box-shadow: 0 0 0 0 rgba(63, 191, 127, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 191, 127, .55); } 70% { box-shadow: 0 0 0 10px rgba(63, 191, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 127, 0); } }

/* ---------- Tableaux ---------- */
.table-defile { overflow-x: auto; }
table.tableau { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--doux); padding: 12px 10px; border-bottom: 1px solid var(--bordure); white-space: nowrap; font-weight: 700; }
.tableau td { padding: 13px 10px; border-bottom: 1px solid #f1ece2; vertical-align: middle; }
.tableau tr.cliquable { cursor: pointer; transition: background var(--transition); }
.tableau tr.cliquable:hover td { background: var(--ivoire); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Chargement, messages ---------- */
.ecran-chargement { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.rond-chargement { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--bordure); border-top-color: var(--or); animation: tourne .9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(430px, calc(100vw - 40px)); }
.toast { background: var(--nuit); color: #f4ead6; border-radius: 14px; padding: 14px 18px; box-shadow: var(--ombre-forte); font-weight: 600; animation: monte .3s ease; display: flex; gap: 12px; align-items: flex-start; border: 1px solid rgba(217, 191, 140, .25); }
.toast .ico { color: var(--or-clair); margin-top: 2px; }
.toast.succes .ico { color: #7fd1a8; } .toast.erreur .ico { color: #f0a193; }
@keyframes monte { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.apparait { animation: apparait .45s ease both; }

/* ---------- Fenêtres (modales) ---------- */
.voile { position: fixed; inset: 0; background: rgba(13, 18, 32, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; }
.fenetre { background: #fff; border-radius: var(--rayon-xl); width: min(760px, 100%); box-shadow: var(--ombre-forte); animation: monte .25s ease; overflow: hidden; }
.fenetre.large { width: min(1120px, 100%); }
.fenetre-entete { display: flex; align-items: center; gap: 12px; padding: 20px 26px; border-bottom: 1px solid var(--bordure); background: var(--ivoire); }
.fenetre-entete h3 { margin: 0; flex: 1; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.fenetre-corps { padding: 26px; }
.fenetre-pied { display: flex; gap: 10px; justify-content: flex-end; padding: 18px 26px; border-top: 1px solid var(--bordure); flex-wrap: wrap; background: var(--ivoire); }

/* ==========================================================================
   La connexion : une photographie, un écrin
   ========================================================================== */
.page-connexion { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--nuit); }
.connexion-photo { position: relative; background: var(--nuit) center / cover no-repeat; min-height: 100vh; }
.connexion-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 18, 32, .25) 0%, rgba(13, 18, 32, .15) 40%, rgba(13, 18, 32, .85) 100%); }
.connexion-legende { position: absolute; left: 56px; right: 56px; bottom: 56px; z-index: 1; color: #fff; }
.connexion-legende .surtitre { color: var(--or-clair); }
.connexion-legende h2 { color: #fff; font-size: 46px; margin: 14px 0 10px; font-weight: 500; }
.connexion-legende p { color: rgba(255, 255, 255, .78); font-size: 17px; max-width: 520px; margin: 0; }
.connexion-panneau { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: radial-gradient(900px 500px at 100% 0%, #1b2440 0%, transparent 60%), var(--nuit); }
.carte-connexion { width: min(420px, 100%); color: #e9e3d6; }
.carte-connexion .monogramme { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--or-clair); display: flex; align-items: center; justify-content: center; color: var(--or-clair); margin-bottom: 26px; }
.carte-connexion h1 { color: #fff; font-size: 40px; font-weight: 500; margin: 0 0 6px; }
.carte-connexion .sous { color: #9aa3b8; margin: 0 0 30px; font-weight: 500; }
.carte-connexion .champ > span { color: #c9b98f; }
.carte-connexion input { background: rgba(255, 255, 255, .04); border-color: rgba(217, 191, 140, .28); color: #fff; }
.carte-connexion input:focus { border-color: var(--or-clair); box-shadow: 0 0 0 4px rgba(217, 191, 140, .12); }
.carte-connexion .aide { color: #7f889d; font-size: 14px; margin-top: 18px; text-align: center; }
/* Les deux entrées : l'hôtellerie, le restaurant */
.choix-espace { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 12px 18px 12px 12px; margin-bottom: 14px;
    border-radius: 18px; border: 1px solid rgba(217, 191, 140, .28); background: rgba(255, 255, 255, .04); color: #e9e3d6; cursor: pointer; font: inherit;
    transition: border-color var(--transition), background var(--transition), transform var(--transition); }
.choix-espace:hover { border-color: var(--or-clair); background: rgba(217, 191, 140, .08); transform: translateX(3px); }
.choix-espace .choix-photo { width: 86px; height: 70px; border-radius: 12px; flex: none; background: var(--nuit-3) center / cover no-repeat; }
.choix-espace .choix-texte { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.choix-espace strong { font-family: var(--serif); font-size: 23px; font-weight: 600; color: #fff; line-height: 1.1; }
.choix-espace small { color: #9aa3b8; font-size: 13px; font-weight: 500; }
.choix-espace .ico { color: var(--or-clair); }
.retour-espace { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: #9aa3b8; cursor: pointer; font: 600 13px var(--sans); padding: 0; margin-bottom: 24px; }
.retour-espace:hover { color: var(--or-clair); }
/* Le restaurant : le numéro, puis le code PIN au pavé, comme dans son application */
.carte-connexion .champ-tel { font-size: 20px; font-weight: 700; letter-spacing: .12em; }
.compteur-chiffres { font-size: 12px; color: #7f889d; margin: -8px 0 16px; font-weight: 700; letter-spacing: .06em; }
.compteur-chiffres.complet { color: #7fd1a8; }
.rappel-tel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 18px;
    border: 1px solid rgba(217, 191, 140, .28); border-radius: var(--rayon); background: rgba(255, 255, 255, .04); color: #fff; font-weight: 700; letter-spacing: .12em; }
.pin-points { display: flex; gap: 12px; }
.pin-points i { flex: 1; height: 54px; position: relative; border: 1px solid rgba(217, 191, 140, .28); border-radius: var(--rayon); background: rgba(255, 255, 255, .04); transition: border-color var(--transition); }
.pin-points i.plein { border-color: var(--or-clair); }
.pin-points i.plein::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--or-clair); }
.pin-points.erreur i { border-color: #f0a193; }
.pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 6px; }
.pave button { height: 60px; border-radius: 14px; border: 1px solid rgba(217, 191, 140, .22); background: rgba(255, 255, 255, .05); color: #fff;
    font: 600 24px var(--sans); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition), border-color var(--transition); }
.pave button:hover { background: rgba(217, 191, 140, .12); border-color: var(--or-clair); }
.pave button:active { background: rgba(217, 191, 140, .22); }
.pave button.action { color: #9aa3b8; }
.pave button:disabled { opacity: .45; cursor: wait; }
.mdp { position: relative; }
.mdp button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; color: #9aa3b8; display: flex; }

/* ==========================================================================
   L'écran de l'apprenant
   ========================================================================== */
.entete { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 12px 34px;
    background: rgba(251, 249, 244, .88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--bordure); }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); line-height: 1.05; }
.marque .sceau { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--or); display: flex; align-items: center; justify-content: center; color: var(--or-fonce); background: #fff; }
.marque strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.marque small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--doux); font-weight: 700; margin-top: 3px; }
.entete-liens { display: flex; gap: 2px; align-items: center; }
.entete-liens a, .entete-liens button { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--texte); font-weight: 600; padding: 9px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.entete-liens a.actif, .entete-liens a:hover, .entete-liens button:hover { background: var(--or-voile); color: var(--or-fonce); }
.anneau { position: relative; width: 46px; height: 46px; flex: none; }
.anneau svg { transform: rotate(-90deg); }
.anneau span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--encre); }
.menu-mobile { display: none; border: 0; background: none; cursor: pointer; color: var(--encre); }
.contenu { max-width: 1180px; margin: 0 auto; padding: 34px 28px 90px; }
.bandeau-apercu { background: var(--nuit); color: #e8dcc2; padding: 11px 34px; font-weight: 600; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; border-bottom: 1px solid rgba(217, 191, 140, .25); }
.bandeau-apercu select { width: auto; padding: 6px 10px; border-radius: 8px; }
.bandeau-apercu a { color: var(--or-clair); }

/* Le grand bandeau d'accueil, en photographie */
.accueil-hero { position: relative; border-radius: var(--rayon-xl); overflow: hidden; min-height: 380px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; padding: 44px; color: #fff; background: var(--nuit) center / cover no-repeat; box-shadow: var(--ombre-forte); }
.accueil-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13, 18, 32, .92) 0%, rgba(13, 18, 32, .72) 45%, rgba(13, 18, 32, .2) 100%); }
.accueil-hero > * { position: relative; z-index: 1; }
.accueil-hero .surtitre { color: var(--or-clair); }
.accueil-hero h1 { color: #fff; font-size: 50px; font-weight: 500; margin: 14px 0 12px; }
.accueil-hero p { color: rgba(255, 255, 255, .8); margin: 0 0 24px; font-size: 17px; max-width: 620px; }
.accueil-hero .compte-rendu { color: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 600; }
.grand-anneau { position: relative; width: 168px; height: 168px; }
.grand-anneau svg { transform: rotate(-90deg); }
.grand-anneau .valeur { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; }
.grand-anneau .valeur small { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: rgba(255, 255, 255, .65); margin-top: 8px; }

.section-titre { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 46px 0 18px; flex-wrap: wrap; }
.section-titre h2 { margin: 6px 0 0; font-size: 34px; }
.section-titre p { margin: 0; color: var(--doux); max-width: 520px; }

.grille-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.carte-module { position: relative; background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon-l); overflow: hidden; box-shadow: var(--ombre); cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; text-align: left; padding: 0; font: inherit; color: inherit; }
.carte-module:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.carte-module .couverture { position: relative; height: 188px; background: var(--nuit-2) center / cover no-repeat; overflow: hidden; }
.carte-module .couverture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 18, 32, 0) 35%, rgba(13, 18, 32, .78) 100%); transition: opacity var(--transition); }
.carte-module .couverture .numero { position: absolute; left: 20px; bottom: 16px; z-index: 1; color: #fff; font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; }
.carte-module .couverture .numero small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--or-clair); font-weight: 700; margin-bottom: 4px; }
.carte-module .couverture .etat { position: absolute; top: 14px; right: 14px; z-index: 1; }
.carte-module.verrouille { cursor: not-allowed; }
.carte-module.verrouille .couverture { filter: grayscale(.85) brightness(.8); }
.carte-module.verrouille:hover { transform: none; box-shadow: var(--ombre); }
.carte-module .corps { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.carte-module h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.carte-module p { margin: 0; color: var(--doux); font-size: 15px; flex: 1; }
.carte-module .pied { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--doux); letter-spacing: .02em; }

.fil { font-size: 13px; font-weight: 600; color: var(--doux); margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; letter-spacing: .02em; }
.fil a { color: var(--doux); text-decoration: none; }
.fil a:hover { color: var(--or-fonce); }
.fil .ico { opacity: .5; }

/* Le bandeau photo d'une formation ou d'un chapitre */
.bandeau-photo { position: relative; border-radius: var(--rayon-xl); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; padding: 40px; color: #fff; background: var(--nuit) center / cover no-repeat; box-shadow: var(--ombre-forte); margin-bottom: 26px; }
.bandeau-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 18, 32, .1) 0%, rgba(13, 18, 32, .55) 55%, rgba(13, 18, 32, .92) 100%); }
.bandeau-photo > * { position: relative; z-index: 1; }
.bandeau-photo .surtitre { color: var(--or-clair); }
.bandeau-photo h1 { color: #fff; font-size: 46px; font-weight: 500; margin: 12px 0 8px; max-width: 900px; }
.bandeau-photo p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 17px; max-width: 760px; }
.bandeau-photo .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.bandeau-contenu { display: flex; gap: 28px; align-items: flex-end; width: 100%; flex-wrap: wrap; }

.liste-chapitres { margin-top: 8px; }
.chap-ligne { display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon-l); padding: 12px 22px 12px 12px; margin-bottom: 14px; cursor: pointer; transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); text-align: left; width: 100%; font: inherit; color: inherit; }
.chap-ligne:hover { border-color: var(--or-clair); transform: translateY(-2px); box-shadow: var(--ombre); }
.chap-ligne .vignette { position: relative; width: 120px; height: 84px; border-radius: 12px; background: var(--nuit-2) center / cover no-repeat; overflow: hidden; }
.chap-ligne .vignette::after { content: ""; position: absolute; inset: 0; background: rgba(13, 18, 32, .35); }
.chap-ligne .vignette span { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--serif); font-size: 32px; font-weight: 600; }
.chap-ligne.reussi .vignette::after { background: rgba(46, 118, 86, .55); }
.chap-ligne.ouvert .vignette::after { background: linear-gradient(135deg, rgba(176, 141, 87, .55), rgba(13, 18, 32, .35)); }
.chap-ligne.verrouille { cursor: not-allowed; background: var(--ivoire); }
.chap-ligne.verrouille .vignette { filter: grayscale(1); }
.chap-ligne.verrouille .vignette::after { background: rgba(13, 18, 32, .55); }
.chap-ligne.verrouille:hover { transform: none; border-color: var(--bordure); box-shadow: none; }
.chap-ligne h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.chap-ligne p { margin: 0; color: var(--doux); font-size: 14px; }
.chap-ligne .details { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--doux); }
.chap-ligne .details span { display: inline-flex; align-items: center; gap: 5px; }

.video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--rayon-l); overflow: hidden; background: #000; margin-bottom: 26px; box-shadow: var(--ombre-forte); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.image-chapitre { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--rayon-l); margin-bottom: 26px; box-shadow: var(--ombre); }
.outils-lecture { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }

/* Le texte d'un chapitre : une page de livre */
.texte-chapitre { font-size: 18px; line-height: 1.8; color: #333946; }
article.texte-chapitre { padding: 44px 52px; }
.texte-chapitre h2 { font-size: 30px; margin-top: 1.5em; padding-bottom: 10px; border-bottom: 1px solid var(--bordure); }
.texte-chapitre h3 { font-size: 20px; margin-top: 1.3em; }
.texte-chapitre h2:first-child, .texte-chapitre h3:first-child { margin-top: 0; }
.texte-chapitre p { margin: 0 0 1em; }
.texte-chapitre ul, .texte-chapitre ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.texte-chapitre li { margin-bottom: .5em; }
.texte-chapitre ul li::marker { color: var(--or); }
.texte-chapitre img { border-radius: 14px; margin: 12px 0; box-shadow: var(--ombre); }
.texte-chapitre table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; display: block; overflow-x: auto; }
.texte-chapitre th, .texte-chapitre td { border-bottom: 1px solid var(--bordure); padding: 11px 12px; text-align: left; vertical-align: top; }
.texte-chapitre th { background: var(--ivoire); color: var(--encre); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--or-clair); }
.texte-chapitre blockquote { margin: 0 0 1.1em; padding: 14px 22px; border-left: 2px solid var(--or); background: var(--ivoire); font-family: var(--serif); font-size: 21px; font-style: italic; }
.texte-chapitre kbd, .texte-chapitre .touche { display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1px solid #d3cdc0; border-bottom-width: 2px; background: #fff; font-size: .85em; font-weight: 700; font-family: var(--sans); }
.texte-chapitre .bouton-app { display: inline-block; padding: 1px 11px; border-radius: 999px; background: var(--nuit); color: #f1e3c4; font-weight: 700; font-size: .82em; letter-spacing: .03em; }

/* Les encadrés : une icône au trait, dessinée en CSS */
.texte-chapitre .encadre { border-radius: 14px; padding: 18px 22px 18px 64px; margin: 0 0 1.4em; position: relative; font-weight: 600; font-size: 17px; line-height: 1.7; border: 1px solid transparent; }
.texte-chapitre .encadre::before { content: ""; position: absolute; left: 22px; top: 19px; width: 24px; height: 24px; background: currentColor;
    -webkit-mask: var(--pictogramme) center / contain no-repeat; mask: var(--pictogramme) center / contain no-repeat; }
.texte-chapitre .encadre p:last-child { margin-bottom: 0; }
.texte-chapitre .encadre.retenir { background: var(--vert-voile); color: #24583f; border-color: #cfe5d8;
    --pictogramme: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7c.6.5 1 1.3 1 2.1V17h6v-.2c0-.8.4-1.6 1-2.1A7 7 0 0 0 12 2z'/%3E%3C/svg%3E"); }
.texte-chapitre .encadre.attention { background: var(--rouge-voile); color: #8c3328; border-color: #efd2cd;
    --pictogramme: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.texte-chapitre .encadre.astuce { background: var(--bleu-voile); color: #264b70; border-color: #d3dfeb;
    --pictogramme: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16l4-4-4-4M8 12h8'/%3E%3C/svg%3E"); }
.texte-chapitre .encadre.regle { background: var(--or-voile); color: var(--or-fonce); border-color: #eadcc2;
    --pictogramme: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.texte-chapitre .ecran { background: linear-gradient(135deg, var(--nuit-3), var(--nuit)); color: #dfe4ee; border-radius: 16px; padding: 20px 24px; margin: 0 0 1.4em; font-size: 17px; border: 1px solid rgba(217, 191, 140, .22); }
.texte-chapitre .ecran::before { content: "Ce que vous voyez à l’écran"; display: block; font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--or-clair); margin-bottom: 8px; }
.texte-chapitre .ecran p:last-child { margin-bottom: 0; }
.texte-chapitre .ecran strong { color: #fff; }
.texte-chapitre .ecran .bouton-app { background: var(--or); color: #fff; }
.texte-chapitre ol.etapes { list-style: none; counter-reset: etape; padding-left: 0; }
.texte-chapitre ol.etapes > li { counter-increment: etape; position: relative; padding: 12px 0 12px 62px; border-bottom: 1px solid #f0ebe1; margin: 0; }
.texte-chapitre ol.etapes > li:last-child { border-bottom: 0; }
.texte-chapitre ol.etapes > li::before { content: counter(etape, decimal-leading-zero); position: absolute; left: 0; top: 9px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--or); color: var(--or-fonce); font-family: var(--serif); font-size: 19px; font-weight: 600; display: flex; align-items: center; justify-content: center; background: #fff; }

.barre-quiz { position: sticky; bottom: 0; margin-top: 34px; padding: 16px 20px; background: rgba(251, 249, 244, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--bordure); border-radius: var(--rayon-l); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; box-shadow: 0 -10px 30px rgba(20, 24, 33, .06); }
.carte-quiz-appel { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: linear-gradient(135deg, var(--nuit-2), var(--nuit)); color: #fff; border-radius: var(--rayon-l); padding: 26px 30px; margin-top: 26px; border: 1px solid rgba(217, 191, 140, .25); }
.carte-quiz-appel .sceau-quiz { width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--or-clair); display: flex; align-items: center; justify-content: center; color: var(--or-clair); }
.carte-quiz-appel h3 { color: #fff; font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 0 0 4px; }
.carte-quiz-appel p { margin: 0; color: rgba(255, 255, 255, .72); }

/* ---------- Le quiz ---------- */
.quiz-tete { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; margin-bottom: 18px; }
.quiz-tete h1 { font-size: 38px; margin: 8px 0 0; }
.quiz-points { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 22px; }
.quiz-points button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bordure); background: #fff; font-weight: 700; cursor: pointer; color: var(--doux); font-size: 13px; transition: all var(--transition); }
.quiz-points button.repondu { background: var(--or-voile); border-color: var(--or-clair); color: var(--or-fonce); }
.quiz-points button.actuel { border-color: var(--or); background: var(--nuit); color: #f1e3c4; }
.question { padding: 38px 40px; }
.question .numero { font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--or-fonce); margin-bottom: 10px; }
.question h2 { font-size: 32px; font-weight: 600; margin-bottom: 26px; line-height: 1.25; }
.choix { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 17px 20px; margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--bordure); background: #fff; cursor: pointer; font-size: 17px; font-weight: 600; color: var(--texte); transition: border-color var(--transition), background var(--transition), transform var(--transition); }
.choix:hover { border-color: var(--or-clair); transform: translateX(3px); }
.choix .lettre { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--or-clair); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--or-fonce); }
.choix.choisi { border-color: var(--or); background: var(--or-voile); color: var(--encre); }
.choix.choisi .lettre { background: var(--champagne); border-color: transparent; color: #fff; }

.resultat-tete { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; padding: 42px 46px; border-radius: var(--rayon-xl); color: #fff; box-shadow: var(--ombre-forte); overflow: hidden; background: linear-gradient(135deg, var(--nuit-3), var(--nuit)); border: 1px solid rgba(217, 191, 140, .3); }
.resultat-tete.echoue { background: linear-gradient(135deg, #2b2330, var(--nuit)); }
.resultat-tete .surtitre { color: var(--or-clair); }
.resultat-tete h2 { color: #fff; margin: 12px 0 8px; font-size: 40px; font-weight: 500; }
.resultat-tete p { margin: 0; max-width: 640px; color: rgba(255, 255, 255, .78); font-size: 17px; }
.resultat-note { position: relative; width: 170px; height: 170px; }
.resultat-note svg { transform: rotate(-90deg); }
.resultat-note .valeur { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 58px; font-weight: 600; }
.resultat-note .valeur small { font-size: 24px; opacity: .6; margin-left: 2px; }
.correction { border-radius: 14px; padding: 16px 18px 16px 54px; margin-bottom: 12px; border: 1px solid var(--bordure); position: relative; background: #fff; }
.correction .marque-c { position: absolute; left: 16px; top: 16px; }
.correction.juste .marque-c { color: var(--vert); }
.correction.faux { background: #fdf9f8; }
.correction.faux .marque-c { color: var(--rouge); }
.correction .q { font-weight: 700; color: var(--encre); margin-bottom: 6px; }
.correction .r { font-size: 15px; margin: 2px 0; }
.correction .exp { font-size: 15px; color: var(--doux); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--bordure); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon-l); padding: 22px; box-shadow: var(--ombre); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; background: var(--champagne); opacity: .8; }
.stat .libelle { font-size: 11px; font-weight: 800; color: var(--doux); text-transform: uppercase; letter-spacing: .18em; }
.stat .valeur { font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--encre); margin-top: 6px; line-height: 1.1; }
.stat .sous { font-size: 13px; color: var(--doux); font-weight: 600; margin-top: 4px; }
.stat.or .valeur { color: var(--or-fonce); } .stat.vert .valeur { color: var(--vert); } .stat.bleu .valeur { color: var(--bleu); } .stat.rouge .valeur { color: var(--rouge); }

/* ==========================================================================
   L'administration
   ========================================================================== */
.admin { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.admin-menu { background: radial-gradient(600px 400px at 0% 0%, #1d2742 0%, transparent 70%), var(--nuit); color: #aab2c4; padding: 24px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid rgba(217, 191, 140, .12); }
.admin-menu .marque { color: #fff; padding: 0 24px 22px; margin-bottom: 14px; border-bottom: 1px solid rgba(217, 191, 140, .14); }
.admin-menu .marque .sceau { background: transparent; border-color: var(--or-clair); color: var(--or-clair); }
.admin-menu .marque small { color: #7c869c; }
.admin-menu .groupe { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: #5f6980; font-weight: 800; padding: 14px 26px 8px; }
.admin-menu a { display: flex; align-items: center; gap: 13px; padding: 11px 24px; margin: 1px 12px; color: #b4bccc; text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 10px; transition: background var(--transition), color var(--transition); }
.admin-menu a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.admin-menu a.actif { background: linear-gradient(90deg, rgba(217, 191, 140, .16), rgba(217, 191, 140, .04)); color: #f4e6c8; box-shadow: inset 2px 0 0 var(--or-clair); }
.admin-menu a .ico { color: var(--or-clair); opacity: .85; }
.admin-menu .compteur { margin-left: auto; background: #3fbf7f; color: #062014; border-radius: 99px; padding: 1px 8px; font-size: 11px; font-weight: 800; }
.admin-principal { min-width: 0; }
.admin-haut { display: flex; align-items: center; gap: 16px; padding: 18px 34px; background: rgba(251, 249, 244, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--bordure); position: sticky; top: 0; z-index: 40; }
.admin-haut h2 { margin: 0; font-size: 30px; flex: 1; font-weight: 600; }
.admin-haut .qui { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--doux); }
.admin-haut .initiales { width: 36px; height: 36px; border-radius: 50%; background: var(--champagne); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.admin-corps { padding: 30px 34px 70px; }
.admin-burger { display: none; border: 0; background: none; cursor: pointer; color: var(--encre); }

.graphe-barres { display: flex; align-items: flex-end; gap: 7px; height: 160px; padding-top: 10px; }
.graphe-barres .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; height: 100%; min-width: 0; }
.graphe-barres .b { width: 100%; max-width: 26px; border-radius: 5px 5px 0 0; }
.graphe-barres .b.r { background: linear-gradient(180deg, var(--or-clair), var(--or)); } .graphe-barres .b.e { background: #d9cfc0; border-radius: 0; }
.graphe-barres .j { font-size: 10px; color: var(--doux); font-weight: 700; margin-top: 6px; letter-spacing: .04em; }
.legende { display: flex; gap: 18px; font-size: 12px; font-weight: 700; color: var(--doux); letter-spacing: .04em; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.fil-direct { max-height: 580px; overflow-y: auto; }
.evt { display: flex; gap: 14px; padding: 12px 4px; border-bottom: 1px solid #f1ece2; align-items: flex-start; }
.evt.neuf { animation: flash 2.5s ease; }
@keyframes flash { 0% { background: #fbf2dd; } 100% { background: transparent; } }
.evt .pastille { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; background: var(--gris-voile); color: var(--doux); }
.evt .pastille.vert { background: var(--vert-voile); color: var(--vert); } .evt .pastille.rouge { background: var(--rouge-voile); color: var(--rouge); } .evt .pastille.or { background: var(--or-voile); color: var(--or-fonce); } .evt .pastille.bleu { background: var(--bleu-voile); color: var(--bleu); }
.evt .quoi { font-weight: 600; color: var(--encre); }
.evt .quand { font-size: 13px; color: var(--doux); }
.en-ligne-ligne { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid #f1ece2; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--nuit-2) center / cover no-repeat; flex: none; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--or-clair); display: flex; align-items: center; justify-content: center; color: #f1e3c4; font-weight: 800; font-size: 14px; }

.parcours-editeur { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.boite-liste { border: 1px dashed var(--or-clair); border-radius: var(--rayon); padding: 10px; min-height: 200px; max-height: 470px; overflow-y: auto; background: var(--ivoire); }
.element-liste { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--bordure); border-radius: 11px; padding: 8px 10px; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.element-liste .mini { width: 44px; height: 32px; border-radius: 7px; background: var(--nuit-2) center / cover no-repeat; flex: none; }
.element-liste .rang { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--or); color: var(--or-fonce); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none; }

.vignette-admin { width: 64px; height: 44px; border-radius: 8px; background: var(--nuit-2) center / cover no-repeat; flex: none; }
.cellule-titre { display: flex; align-items: center; gap: 14px; }

/* L'éditeur de texte riche */
.editeur { border: 1px solid var(--bordure); border-radius: var(--rayon-l); overflow: hidden; background: #fff; }
.editeur:focus-within { border-color: var(--or); box-shadow: 0 0 0 4px rgba(176, 141, 87, .12); }
.editeur-outils { display: flex; flex-wrap: wrap; gap: 3px; padding: 8px; background: var(--ivoire); border-bottom: 1px solid var(--bordure); position: sticky; top: 76px; z-index: 5; }
.editeur-outils button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: none; border-radius: 8px; padding: 7px 10px; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--encre); }
.editeur-outils button:hover { background: #fff; border-color: var(--bordure); }
.editeur-outils .ico { color: var(--or-fonce); }
.editeur-outils .sep { width: 1px; background: var(--bordure); margin: 4px 5px; }
.editeur-zone { min-height: 400px; max-height: 70vh; overflow-y: auto; padding: 24px 30px; outline: none; }
.editeur-html { width: 100%; min-height: 400px; border: 0; border-radius: 0; font: 13px/1.55 Consolas, "Courier New", monospace; }

.question-edit { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 16px 18px; margin-bottom: 12px; background: #fff; }
.question-edit.inactive { opacity: .55; }

.grille-medias { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.media { border: 1px solid var(--bordure); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; box-shadow: var(--ombre); }
.media .apercu { aspect-ratio: 4 / 3; background: var(--nuit-2) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--or-clair); }
.media .apercu video { width: 100%; height: 100%; object-fit: cover; }
.media .infos { padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.media .infos .nom { font-weight: 700; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media.selectionnable { cursor: pointer; transition: box-shadow var(--transition), border-color var(--transition); }
.media.selectionnable:hover { border-color: var(--or); box-shadow: 0 0 0 3px rgba(176, 141, 87, .2); }
.depot { display: flex; flex-direction: column; align-items: center; gap: 10px; border: 1px dashed var(--or); border-radius: 18px; padding: 28px; text-align: center; background: var(--ivoire); font-weight: 700; color: var(--or-fonce); cursor: pointer; transition: background var(--transition); }
.depot.survol { background: var(--or-voile); }

/* ==========================================================================
   Téléphone
   ========================================================================== */
@media (max-width: 1000px) {
    .page-connexion { grid-template-columns: 1fr; }
    .connexion-photo { min-height: 34vh; }
    .connexion-legende { left: 26px; right: 26px; bottom: 24px; }
    .connexion-legende h2 { font-size: 32px; }
    .connexion-legende p { display: none; }
}
@media (max-width: 900px) {
    .admin { grid-template-columns: 1fr; }
    .admin-menu { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 90; transform: translateX(-100%); transition: transform .25s; }
    .admin-menu.ouvert { transform: none; box-shadow: var(--ombre-forte); }
    .admin-burger { display: flex; }
    .admin-corps { padding: 20px 16px 60px; }
    .admin-haut { padding: 14px 16px; }
    .admin-haut h2 { font-size: 24px; }
    .parcours-editeur, .grille-2, .grille-3 { grid-template-columns: 1fr; }
    .editeur-outils { top: 64px; }
}
@media (max-width: 760px) {
    body { font-size: 15px; }
    h1 { font-size: 32px; }
    .entete { padding: 10px 16px; gap: 10px; }
    .entete-liens { display: none; }
    .entete-liens.ouvert { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; right: 12px; background: #fff; border: 1px solid var(--bordure); border-radius: 16px; padding: 8px; box-shadow: var(--ombre-forte); min-width: 230px; }
    .menu-mobile { display: flex; }
    .marque span.nom { display: none; }
    .contenu { padding: 20px 16px 90px; }
    .accueil-hero { grid-template-columns: 1fr; padding: 28px 24px; min-height: 0; }
    .accueil-hero h1 { font-size: 36px; }
    .grand-anneau { width: 130px; height: 130px; }
    .grand-anneau .valeur { font-size: 36px; }
    .grille-modules { grid-template-columns: 1fr; }
    .bandeau-photo { padding: 26px 22px; min-height: 250px; }
    .bandeau-photo h1 { font-size: 32px; }
    .chap-ligne { grid-template-columns: 84px 1fr; gap: 14px; padding-right: 14px; }
    .chap-ligne .vignette { width: 84px; height: 70px; }
    .chap-ligne > :last-child { grid-column: 1 / -1; }
    .chap-ligne h4 { font-size: 19px; }
    article.texte-chapitre { padding: 26px 22px; }
    .texte-chapitre { font-size: 17px; }
    .question { padding: 26px 22px; }
    .question h2 { font-size: 25px; }
    .choix { font-size: 16px; padding: 14px 15px; }
    .resultat-tete { grid-template-columns: 1fr; padding: 30px 24px; text-align: center; justify-items: center; }
    .resultat-tete h2 { font-size: 30px; }
    .carte-quiz-appel { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .quiz-tete { grid-template-columns: 1fr; }
    .carte { padding: 18px; }
    .section-titre h2 { font-size: 28px; }
}

@media print {
    body { background: #fff; }
    .ne-pas-imprimer { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
