/* P212 Learn — Auteur : Aziz Mernissi. Couleurs de l'écosystème P212 : or, noir, violet profond. */
:root {
  --fond: #0b0a10; --surface: #17141f; --bord: #2c2638; --texte: #f3efe6; --doux: #a9a3b5;
  --or: #e2b53c; --or-fonce: #b8901f; --violet: #3b1d6e; --vert: #37c08a; --rouge: #e05a5a;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--fond); color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif; line-height: 1.55; }
a { color: var(--or); }
h1 { font-size: 1.7rem; margin: 0 0 .6rem; } h2 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.bandeau { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .8rem clamp(1rem, 4vw, 3rem); background: linear-gradient(90deg, #120f1a, var(--violet)); border-bottom: 1px solid var(--bord); }
.marque { font-size: 1.35rem; font-weight: 700; color: var(--or); text-decoration: none; letter-spacing: .02em; }
nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
nav a { text-decoration: none; }
.langues { position: relative; }
.langues summary { cursor: pointer; color: var(--doux); list-style: none; padding: .2rem .5rem; border: 1px solid var(--bord); border-radius: 8px; }
.langues summary::-webkit-details-marker { display: none; }
.langues summary::after { content: " ▾"; }
.langues ul { position: absolute; inset-inline-end: 0; z-index: 5; margin: .3rem 0 0; padding: .3rem; list-style: none; min-width: 9rem;
  background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.langues li a { display: block; padding: .45rem .7rem; border-radius: 6px; color: var(--texte); }
.langues li a:hover { background: var(--bord); }
main { flex: 1; width: 100%; padding: 2rem clamp(1rem, 4vw, 3rem); }
footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--doux); font-size: .85rem; border-top: 1px solid var(--bord); }
.hero { padding: 2rem 0 1rem; max-width: 52rem; } .hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.carte, .formulaire { background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; padding: 1.4rem; }
.formulaire { max-width: 34rem; margin: 0 auto; } .centre { text-align: center; }
label { display: block; margin: 0 0 1rem; color: var(--doux); font-size: .92rem; }
label.case { display: flex; gap: .6rem; align-items: flex-start; color: var(--texte); }
input:not([type=checkbox]):not([type=hidden]), select { display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem; font: inherit;
  color: var(--texte); background: #0f0d15; border: 1px solid var(--bord); border-radius: 10px; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
small { display: block; margin-top: .3rem; color: var(--doux); }
.bouton { display: inline-block; padding: .7rem 1.2rem; font: inherit; font-weight: 600; color: #1a1405; background: var(--or);
  border: 0; border-radius: 10px; text-decoration: none; cursor: pointer; }
.bouton:hover { background: var(--or-fonce); } .bouton[disabled] { opacity: .6; cursor: wait; }
.bouton.clair { color: var(--or); background: transparent; border: 1px solid var(--or); }
.bouton.danger { color: #fff; background: var(--rouge); } .bouton.petit { padding: .35rem .7rem; font-size: .88rem; }
button.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--or); cursor: pointer; }
.enligne { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.enligne select { width: auto; margin: 0; padding: .3rem .5rem; }
.avis { padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--bord); background: var(--surface); }
.avis.succes { border-color: var(--vert); } .avis.erreur { border-color: var(--rouge); } .avis.info { border-color: var(--or); }
.alerte { margin-top: 1.5rem; padding: .8rem 1rem; border-inline-start: 4px solid var(--or); background: #1c1710; border-radius: 6px; font-size: .92rem; }
.portrait { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--or); display: inline-block; background: var(--bord); }
.portrait.grand { width: 8rem; height: 8rem; }
.entete-espace { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.badge { display: inline-block; padding: .15rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid var(--doux); color: var(--doux); }
.badge.membre { border-color: var(--or); color: var(--or); } .badge.verifie { border-color: var(--vert); color: var(--vert); }
.etapes { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: 40rem; }
.etapes li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; margin-bottom: .5rem;
  background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; }
.etapes li.fait { border-color: var(--vert); } .etapes em { font-style: normal; color: var(--doux); }
.adresse { word-break: break-all; font-family: ui-monospace, monospace; background: #0f0d15; padding: .6rem; border-radius: 8px; }
.liens { display: flex; gap: 1rem; list-style: none; padding: 0; }
.carte-membre { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; max-width: 46rem; margin: 0 auto 1rem; }
.recto { position: relative; overflow: hidden; text-align: center; padding: 2rem 1.4rem; border-radius: 18px; border: 1px solid var(--or);
  background: linear-gradient(150deg, #1b1526, var(--violet)); }
.filigrane { display: block; color: var(--or); font-weight: 700; letter-spacing: .15em; margin-bottom: 1rem; }
.qr { text-align: center; background: #fff; color: #111; border-radius: 18px; padding: 1.2rem; }
.qr svg { width: 100%; max-width: 15rem; height: auto; } .petit-texte { font-size: .85rem; color: var(--doux); } .qr .petit-texte { color: #444; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 10px; overflow: hidden; display: block; overflow-x: auto; }
th, td { padding: .6rem .8rem; text-align: start; border-bottom: 1px solid var(--bord); white-space: nowrap; }
th { color: var(--doux); font-weight: 600; font-size: .88rem; }
.pieces { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.pieces figure { margin: 0; background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; padding: .6rem; }
.pieces img { width: 100%; height: auto; border-radius: 6px; } figcaption { color: var(--doux); font-size: .88rem; margin-bottom: .4rem; }
.decision { max-width: 34rem; } .decision .bouton { margin-inline-end: .5rem; }
.recherche { display: flex; gap: .5rem; max-width: 26rem; margin-bottom: 1rem; } .recherche input { margin: 0; }
.onglets { margin-bottom: 1rem; }
h3 { font-size: 1.05rem; margin: .5rem 0 .4rem; }
.concept .carte p { margin: 0; color: var(--doux); font-size: .95rem; }
.etat { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid var(--bord); color: var(--doux); }
.etat.pret { border-color: var(--vert); color: var(--vert); }
.utilite { margin-top: 1rem; max-width: 46rem; } .utilite h2 { margin-top: 0; }
/* Groupes et discussion */
textarea { display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem; font: inherit; color: var(--texte); background: #0f0d15;
  border: 1px solid var(--bord); border-radius: 10px; resize: vertical; }
textarea:focus { outline: 2px solid var(--or); outline-offset: 2px; }
.titre-action, .entete-groupe { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.entete-groupe { margin-bottom: 1rem; } .actions-groupe { display: flex; gap: .5rem; flex-wrap: wrap; }
a.carte.groupe { display: block; color: var(--texte); text-decoration: none; }
a.carte.groupe:hover { border-color: var(--or); } a.carte.groupe p { margin: .3rem 0 0; color: var(--doux); font-size: .95rem; }
.recherche.large { max-width: 40rem; flex-wrap: wrap; } .recherche.large select { width: auto; margin: 0; flex: 1 1 10rem; } .recherche.large input { flex: 2 1 12rem; }
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 3fr) minmax(14rem, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .deux-colonnes { grid-template-columns: minmax(0, 1fr); } }
.fil { list-style: none; margin: 0 0 1rem; padding: .8rem; max-height: 60vh; min-height: 12rem; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; }
.message { display: flex; gap: .6rem; margin-bottom: .8rem; align-items: flex-start; }
.message.mien { flex-direction: row-reverse; }
.portrait.mini { width: 2.2rem; height: 2.2rem; border-width: 1px; flex: none; }
.bulle { max-width: min(42rem, 85%); padding: .5rem .8rem; border-radius: 14px; background: #221d2e; min-width: 0; }
.message.mien .bulle { background: #2f2408; border: 1px solid #5a4410; }
.bulle p { margin: 0; } .entete { font-size: .85rem; color: var(--doux); } .entete strong { color: var(--texte); }
.texte { white-space: pre-wrap; overflow-wrap: anywhere; } .outils { margin-top: .2rem; }
.outils:empty { display: none; }
button.lien.discret { color: var(--doux); font-size: .8rem; margin-inline-end: .6rem; }
.coche { color: var(--vert); font-weight: 700; }
.ecrire { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: end; }
.ecrire .emojis { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .2rem; }
.emoji { background: none; border: 0; font-size: 1.25rem; padding: .15rem .3rem; border-radius: 8px; cursor: pointer; }
.emoji:hover { background: var(--bord); } .ecrire textarea { margin: 0; }
.personnes { list-style: none; padding: 0; margin: 0; }
.personnes li { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid var(--bord); flex-wrap: wrap; }
.personnes li > span:not(.portrait) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.signalements { list-style: none; padding: 0; display: grid; gap: .8rem; max-width: 50rem; }
/* Photos, vocaux et messages privés */
.une-colonne { max-width: 54rem; }
.jointe { display: block; max-width: min(100%, 22rem); max-height: 22rem; border-radius: 10px; margin: .3rem 0; }
.vocal { display: block; width: min(100%, 19rem); margin: .3rem 0; }
.joindre { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.joindre label.bouton { margin: 0; color: var(--or); font-size: .88rem; cursor: pointer; }
.point { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: var(--rouge); animation: clignote 1s infinite; }
@keyframes clignote { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .point { animation: none; } }
.conversations { max-width: 40rem; margin-bottom: 1.5rem; } .conversations a { flex: 1; min-width: 0; overflow-wrap: anywhere; text-decoration: none; }
[hidden] { display: none !important; }
/* Appels */
.appels-boutons { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .5rem 0 1rem; }
.appel-en-cours { border-color: var(--vert) !important; }
.message .annonce { margin: .2rem 0; } .message .annonce a { font-weight: 600; }
.mosaique { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 1rem 0; }
.tuile { position: relative; aspect-ratio: 4 / 3; background: #15121d; border: 1px solid var(--bord); border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.tuile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.tuile.avec-image video { opacity: 1; } .tuile.avec-image .visage { display: none; }
.tuile[data-id="moi"] video { transform: scaleX(-1); }
.legende { position: absolute; inset-inline-start: .5rem; bottom: .5rem; padding: .1rem .5rem; border-radius: 8px; background: rgba(0, 0, 0, .6); font-size: .85rem; }
.commandes { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin: 1rem 0; }
.bouton.coupe { color: var(--rouge); border-color: var(--rouge); text-decoration: line-through; }
/* Chiffrement des messages privés */
.chiffrement { margin: .5rem 0 1rem; } .chiffrement .formulaire { margin: 0; }
.chiffrement details { margin-top: .8rem; } .chiffrement summary { cursor: pointer; color: var(--or); }
.code-securite { display: inline-block; vertical-align: top; margin: 0 0 0 .8rem !important; }
.code-securite .adresse { font-size: 1.15rem; letter-spacing: .08em; margin: .5rem 0; }
.texte.illisible { color: var(--doux); font-style: italic; }

/* Daret */
.darets-groupe { margin: 1rem 0 1.5rem; } .darets-groupe h2 { margin: 0; }
.tour-courant { margin: 1.5rem 0; border-color: var(--or); } .tour-courant h2 { margin: .6rem 0; }
.coordonnees { padding: .6rem .8rem; border: 1px dashed var(--bord); border-radius: 10px; }
.etat.retard { border-color: var(--rouge); color: var(--rouge); }
details.formulaire { margin-top: 1.5rem; } details.formulaire summary { cursor: pointer; color: var(--or); }
/* Prise de vue : selfie et scan du document */
.capture { margin: 1rem 0; } .capture .libelle { display: block; margin-bottom: .4rem; color: var(--doux); }
.capture [hidden] { display: none; }
.capture .cadre { position: relative; width: 100%; max-width: 22rem; margin-bottom: .6rem; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--bord); }
.capture .cadre video, .capture .cadre img { display: block; width: 100%; height: 100%; object-fit: cover; }
.capture[data-mode="selfie"] .cadre video { transform: scaleX(-1); }
.capture[data-mode="document"] .cadre { max-width: 28rem; aspect-ratio: 856 / 540; border: 2px solid var(--or); }
.capture[data-mode="document"] .cadre.passeport { aspect-ratio: 125 / 88; }
.capture[data-mode="document"] .cadre::after { content: ""; position: absolute; inset: 4%; border: 2px dashed rgba(255, 255, 255, .7); border-radius: 8px; pointer-events: none; }
.capture-boutons { display: flex; flex-wrap: wrap; gap: .5rem; } .capture small { display: block; margin-top: .4rem; color: var(--doux); }
/* Daret */
.darets-groupe { margin: 1rem 0 1.5rem; } .darets-groupe h2 { margin: 0; }
.tour-courant { margin: 1.5rem 0; border-color: var(--or); } .tour-courant h2 { margin: .6rem 0; }
.coordonnees { padding: .6rem .8rem; border: 1px dashed var(--bord); border-radius: 10px; }
.etat.retard { border-color: var(--rouge); color: var(--rouge); }
details.formulaire { margin-top: 1.5rem; } details.formulaire summary { cursor: pointer; color: var(--or); }
/* Selfie pris avec la caméra */
.selfie { margin: 1rem 0; } .selfie .libelle { display: block; margin-bottom: .4rem; color: var(--doux); }
.selfie video, .selfie img { display: block; width: 100%; max-width: 22rem; border-radius: 12px; border: 1px solid var(--bord); margin-bottom: .6rem; background: #000; }
.selfie video[hidden], .selfie img[hidden], .selfie [hidden] { display: none; }
.selfie video { transform: scaleX(-1); } .selfie-boutons { display: flex; flex-wrap: wrap; gap: .5rem; }
.selfie small { display: block; margin-top: .4rem; color: var(--doux); }
.personnes li > span.etat { flex: 0 0 auto; }

/* P212 en dirhams et marché */
.carte.agent h3 { margin: 0; } .carte.agent .recherche { margin: .8rem 0 0; }
.adresse { font-family: ui-monospace, monospace; font-size: .82rem; overflow-wrap: anywhere; }
.actions-groupe form.pleine { flex: 1 1 100%; }
.annonce .vignette { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: .7rem; background: var(--bord); color: var(--doux); }
.remise { color: var(--vert); font-weight: 600; } a.carte.groupe p.remise { color: var(--vert); }
.fiche-annonce { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; align-items: start; }
.fiche-annonce img.grande { width: 100%; border-radius: 14px; border: 1px solid var(--bord); }
.fiche-annonce .prix { font-size: 1.4rem; margin: .4rem 0; } .fiche-annonce .actions-groupe { margin: 1rem 0; }

/* Sécurité du compte */
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .5rem; }
.codes code { display: block; padding: .5rem; text-align: center; border: 1px dashed var(--bord); border-radius: 8px; font-size: 1.05rem; }
.carte .qr { max-width: 13rem; background: #fff; border-radius: 10px; padding: .4rem; margin: .6rem 0; }

/* ---------- Menu compact sur téléphone ---------- */
.menu-case, .menu-bouton { display: none; }
@media (max-width: 860px) {
  .menu-bouton { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; font-size: 1.4rem; color: var(--or);
    border: 1px solid var(--bord); border-radius: 10px; cursor: pointer; user-select: none; }
  .menu-case { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  .menu-case:focus-visible + .menu-bouton { outline: 2px solid var(--or); }
  .bandeau nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: .2rem; padding-top: .4rem; }
  .bandeau nav a, .bandeau nav button.lien { display: block; padding: .45rem 0; }
  .menu-case:checked ~ nav { display: flex; }
}

/* ---------- Salons : la discussion façon messagerie ---------- */
.portrait.lettre { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #1a1405;
  background: linear-gradient(135deg, var(--or), #9a6cff); border-color: transparent; }
.portrait.grand.lettre { font-size: 3rem; } .portrait.mini.lettre { font-size: 1rem; }
.portrait.fantome { visibility: hidden; height: 0; border: 0; }
.rond { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 50%; font-size: 1.15rem;
  background: transparent; border: 1px solid var(--bord); color: var(--texte); cursor: pointer; text-decoration: none; margin: 0; }
.rond:hover { border-color: var(--or); } .rond.envoyer { background: var(--or); color: #1a1405; border-color: var(--or); }
label.rond { margin: 0; }
.non-lus { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--vert); color: #06140e; font-size: .78rem; font-weight: 700; }
.conv { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; color: var(--texte); text-decoration: none; border-bottom: 1px solid var(--bord); }
.conv:hover, .conv.actif { background: #221d2e; }
.conv-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-texte strong, .conv-texte .petit-texte { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-cote { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; font-size: .75rem; color: var(--doux); flex: none; }
.liste-salons { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: 46rem; background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; overflow: hidden; }
.liste-salons li:last-child .conv { border-bottom: 0; }

.salon { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 60rem; margin: 0 auto; border: 1px solid var(--bord); border-radius: 14px; overflow: hidden; background: var(--surface); }
.salon.avec-liste { grid-template-columns: 20rem minmax(0, 1fr); max-width: none; }
.salon-liste { border-inline-end: 1px solid var(--bord); overflow-y: auto; min-height: 0; background: var(--surface); }
.salon-liste ul { list-style: none; margin: 0; padding: 0; }
.salon-liste-entete { display: flex; justify-content: space-between; align-items: center; padding: .8rem; border-bottom: 1px solid var(--bord); }
.salon-liste-entete a { text-decoration: none; font-size: 1.3rem; }
.salon-fil { display: flex; flex-direction: column; min-height: 0; min-width: 0;
  background-color: #0e0c14;
  background-image: radial-gradient(rgba(226, 181, 60, .07) 1px, transparent 1.5px), radial-gradient(rgba(154, 108, 255, .08) 1px, transparent 1.5px);
  background-size: 26px 26px, 26px 26px; background-position: 0 0, 13px 13px; }
.salon-entete { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; background: #1c1826; border-bottom: 1px solid var(--bord); }
.salon-entete .retour { text-decoration: none; font-size: 1.3rem; padding: 0 .2rem; }
.salon-titre { flex: 1; min-width: 0; } .salon-titre h1 { font-size: 1.05rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.salon-titre h1 a { color: var(--texte); text-decoration: none; } .salon-titre p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.salon-actions { display: flex; align-items: center; gap: .4rem; flex: none; } .salon-actions form { margin: 0; }
.salon-actions .appels-boutons { margin: 0; gap: .4rem; display: inline-flex; }
.salon-porte { padding: 1.2rem; } .salon-fil > .avis, .salon-fil > .chiffrement { margin: .6rem .8rem; }
.bandeau-fil { margin: 0; padding: .35rem .8rem; text-align: center; font-size: .88rem; background: #221d2e; border-bottom: 1px solid var(--bord); }
.bandeau-fil.appel { background: #10291f; } .bandeau-fil.appel a { color: var(--vert); font-weight: 600; text-decoration: none; }

.salon .fil { flex: 1; min-height: 14rem; max-height: 62vh; overflow-y: auto; margin: 0; padding: .8rem clamp(.5rem, 3vw, 2.5rem); background: transparent; border: 0; border-radius: 0; }
.fil-vide { text-align: center; margin: 1rem; }
.fil .jour { display: table; margin: .7rem auto; padding: .15rem .7rem; border-radius: 999px; background: #221d2e; color: var(--doux); font-size: .78rem; }
.fil .message { display: flex; gap: .45rem; margin: .5rem 0 0; align-items: flex-end; flex-direction: row; }
.fil .message.suite { margin-top: .15rem; }
.fil .message.mien { flex-direction: row; justify-content: flex-end; }
.fil .bulle { position: relative; max-width: min(34rem, 82%); min-width: 5.5rem; padding: .4rem .65rem .3rem; border-radius: 14px; border-end-start-radius: 4px;
  background: #221d2e; border: 0; box-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.fil .message.mien .bulle { background: #3a2470; border: 0; border-end-start-radius: 14px; border-end-end-radius: 4px; }
.fil .message.eclaire .bulle { outline: 2px solid var(--or); }
.fil .auteur { margin: 0 0 .1rem; font-size: .82rem; line-height: 1.2; }
.fil .texte { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fil .pied { display: block; text-align: end; font-size: .68rem; color: var(--doux); line-height: 1.1; margin-top: .1rem; }
.fil .message.mien .pied { color: #cfc3ee; }
.fil .jointe { max-width: min(100%, 20rem); max-height: 20rem; border-radius: 10px; margin: .1rem 0 .2rem; }
.fil .cite { display: block; width: 100%; text-align: start; margin: 0 0 .25rem; padding: .25rem .5rem; border: 0; border-inline-start: 3px solid var(--or); border-radius: 6px;
  background: rgba(0, 0, 0, .28); color: var(--texte); font: inherit; font-size: .82rem; cursor: pointer; }
.fil .cite strong { display: block; color: var(--or); } .fil .cite-texte { display: block; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil .plus { position: absolute; top: .1rem; inset-inline-end: .2rem; width: 1.6rem; height: 1.4rem; padding: 0; border: 0; border-radius: 8px; background: rgba(0, 0, 0, .35);
  color: var(--texte); cursor: pointer; opacity: 0; line-height: 1; }
.fil .bulle:hover .plus, .fil .plus:focus-visible, .fil .plus[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .fil .plus { opacity: .55; } }
.reactions { display: flex; flex-wrap: wrap; gap: .25rem; } .reactions:empty { display: none; }
.reaction { margin-top: .25rem; padding: .05rem .45rem; border-radius: 999px; border: 1px solid var(--bord); background: #17141f; color: var(--texte); font-size: .8rem; cursor: pointer; }
.reaction.mienne { border-color: var(--or); background: #2f2408; }
.menu-message { position: absolute; z-index: 4; top: 1.6rem; inset-inline-end: 0; min-width: 11rem; padding: .35rem; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--bord); box-shadow: 0 10px 28px rgba(0, 0, 0, .6); }
.message:not(.mien) .menu-message { inset-inline-end: auto; inset-inline-start: 0; }
.menu-message form { margin: 0; }
.menu-message > button, .menu-message form button { display: block; width: 100%; text-align: start; padding: .45rem .6rem; border: 0; border-radius: 8px; background: none; color: var(--texte); font: inherit; font-size: .92rem; cursor: pointer; }
.menu-message > button:hover, .menu-message form button:hover { background: var(--bord); }
.menu-reactions { display: flex; justify-content: space-between; padding: 0 .2rem .3rem; border-bottom: 1px solid var(--bord); margin-bottom: .3rem; }

.composer { padding: .45rem .6rem; background: #1c1826; border-top: 1px solid var(--bord); }
.composer .barre { display: flex; align-items: flex-end; gap: .4rem; }
.composer .joindre { margin: 0; gap: .4rem; flex-wrap: nowrap; }
.composer .ecrire { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: .4rem; margin: 0; }
.composer .ecrire textarea { flex: 1; min-width: 0; margin: 0; padding: .55rem .9rem; border-radius: 1.3rem; resize: none; min-height: 2.5rem; max-height: 140px; line-height: 1.3; }
.composer .emojis { display: flex; flex-wrap: wrap; gap: .1rem; padding: .4rem 0 0; }
.composer-etat { margin: 0; min-height: 0; } .composer-etat:empty { display: none; }
.citation { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .4rem; padding: .3rem .6rem; border-inline-start: 3px solid var(--or); border-radius: 8px; background: #221d2e; font-size: .85rem; }
.citation div { min-width: 0; } .citation strong { display: block; color: var(--or); }
.citation span { display: block; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.lien.discret.danger { color: var(--rouge); }
.fiche-groupe { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.5rem; } .fiche-groupe > div { flex: 1; min-width: 14rem; }
input.adresse { width: 100%; }

/* La discussion occupe tout l'écran, sous le bandeau du site. */
body.page-salon { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.page-salon main { padding: 0; min-height: 0; display: flex; flex-direction: column; }
body.page-salon main > .avis { margin: .5rem .8rem; }
body.page-salon footer { display: none; }
body.page-salon .salon { flex: 1; min-height: 0; width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; }
body.page-salon .salon .fil { max-height: none; min-height: 0; }
@media (max-width: 860px) {
  .salon.avec-liste { grid-template-columns: minmax(0, 1fr); }
  .salon-liste { display: none; }
  body.page-salon .bandeau { padding-block: .35rem; }
  .fil .bulle { max-width: 88%; }
}
body.page-salon .salon { grid-template-rows: minmax(0, 1fr); }
.composer .ecrire textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Message vocal : pendant l'enregistrement, la barre devient corbeille, compteur, flèche d'envoi. */
.composer.enregistre .joindre, .composer.enregistre .ecrire { display: none; }
.enregistrement { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.enregistrement .compteur { flex: 1; display: flex; align-items: center; gap: .5rem; font-variant-numeric: tabular-nums; }
#vocal { touch-action: none; user-select: none; -webkit-user-select: none; }

/* Niveau du membre : une petite pastille discrète, avec une coche quand l'identité est vérifiée. */
.badge { padding: .1rem .6rem; font-size: .8rem; vertical-align: middle; }
.badge.verifie { background: rgba(55, 192, 138, .12); }
.badge.verifie::before { content: "✓ "; font-weight: 700; }

/* Notifications */
.notifs { margin: 1.5rem 0; max-width: 46rem; } .notifs h2 { margin-top: 0; }

/* Actualités et parrainage */
.fil-actus { display: grid; gap: 1rem; max-width: 46rem; margin: 1rem 0 1.5rem; }
.actu h3 { margin: .2rem 0 .5rem; font-size: 1.15rem; } .actu .petit-texte { margin: 0; }
.actu-photo { display: block; width: 100%; max-height: 22rem; object-fit: cover; border-radius: 10px; margin-bottom: .7rem; }
.chiffre { font-size: 2.2rem; font-weight: 700; color: var(--or); margin: .2rem 0; line-height: 1.2; } .chiffre span { font-size: .95rem; font-weight: 400; color: var(--doux); }
.classement { max-width: 34rem; padding: 0; } .classement strong { color: var(--or); }
.titre-action a { align-self: center; }

/* Protections */
.fil .prudence { margin: .3rem 0 0; padding: .3rem .5rem; border-radius: 8px; font-size: .8rem; background: rgba(224, 90, 90, .14); border: 1px solid rgba(224, 90, 90, .5); color: #ffd9d9; }
.reputation { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .15rem; font-size: .9rem; color: var(--doux); }
.reputation strong { color: var(--or); }

/* Lecteur des messages vocaux */
.lecteur { display: flex; align-items: center; gap: .6rem; width: 15.5rem; max-width: 100%; margin: .15rem 0 .1rem; }
.lecteur audio { display: none; }
.lecteur .jouer { width: 2.4rem; height: 2.4rem; background: var(--or); color: #1a1405; border-color: var(--or); font-size: 1rem; padding-inline-start: .1rem; }
.lecteur.en-lecture .jouer { padding-inline-start: 0; }
.lecteur .piste { flex: 1; height: .45rem; border-radius: 999px; background: rgba(255, 255, 255, .22); cursor: pointer; overflow: hidden; }
.lecteur .avance { height: 100%; width: 0; border-radius: 999px; background: var(--or); }
.lecteur .temps { font-size: .78rem; color: var(--doux); font-variant-numeric: tabular-nums; min-width: 2.2rem; text-align: end; }
.fil .message.mien .lecteur .temps { color: #cfc3ee; }
.fil .bulle:has(.lecteur) { min-width: min(17rem, 82%); }

/* Salon vivant : présence, « écrit… », coches de lecture, sondages */
#sous-titre.vivant { color: var(--vert); }
.fil .coches { letter-spacing: -.15em; color: #cfc3ee; } .fil .coches.lues { color: var(--or); }
.sondage { min-width: min(16rem, 70vw); } .sondage .question { font-weight: 600; margin-bottom: .4rem; }
.sondage-options { display: grid; gap: .35rem; }
.sondage .option { position: relative; display: flex; justify-content: space-between; align-items: center; gap: .6rem; width: 100%; padding: .45rem .7rem; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; background: rgba(0, 0, 0, .22); color: var(--texte); font: inherit; text-align: start; cursor: pointer; }
.sondage .option.choisie { border-color: var(--or); }
.sondage .jauge { position: absolute; inset-block: 0; inset-inline-start: 0; background: rgba(226, 181, 60, .28); transition: width .3s; }
.sondage .libelle, .sondage .compte { position: relative; } .sondage .compte { font-weight: 700; color: var(--or); }
.sondage-total { margin: .35rem 0 0; }
.sondage-form { display: grid; gap: .4rem; margin-bottom: .5rem; padding: .7rem; border: 1px solid var(--bord); border-radius: 12px; background: var(--surface); }
.sondage-form input { margin: 0; }
@media (prefers-reduced-motion: reduce) { .sondage .jauge { transition: none; } }

/* Points, niveaux et badges */
.insignes { margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; } a.lien-insignes { text-decoration: none; }
.niveau, .insigne { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid var(--bord); }
.niveau.bronze { color: #d9a066; border-color: #8a5a2b; } .niveau.argent { color: #d5d9e0; border-color: #8b93a1; }
.niveau.or { color: var(--or); border-color: var(--or); } .niveau.diamant { color: #9be7ff; border-color: #4fb9dd; background: rgba(79, 185, 221, .12); }
.insigne { color: var(--texte); background: #221d2e; }
.liste-badges { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; } .liste-badges li { opacity: .45; } .liste-badges li.obtenu { opacity: 1; }
.liste-badges li.obtenu .insigne { border-color: var(--vert); color: var(--vert); }
.bareme td:first-child { width: 2rem; text-align: center; color: var(--doux); } .bareme tr.fait td:first-child { color: var(--vert); }
.bareme td:last-child { text-align: end; white-space: nowrap; }
.jauge-niveau { height: .5rem; border-radius: 999px; background: var(--bord); overflow: hidden; margin-top: .4rem; }
.jauge-niveau span { display: block; height: 100%; background: var(--or); width: 0; }
.jauge-niveau .p5 { width: 5%; } .jauge-niveau .p10 { width: 10%; } .jauge-niveau .p15 { width: 15%; } .jauge-niveau .p20 { width: 20%; } .jauge-niveau .p25 { width: 25%; } .jauge-niveau .p30 { width: 30%; } .jauge-niveau .p35 { width: 35%; } .jauge-niveau .p40 { width: 40%; } .jauge-niveau .p45 { width: 45%; } .jauge-niveau .p50 { width: 50%; } .jauge-niveau .p55 { width: 55%; } .jauge-niveau .p60 { width: 60%; } .jauge-niveau .p65 { width: 65%; } .jauge-niveau .p70 { width: 70%; } .jauge-niveau .p75 { width: 75%; } .jauge-niveau .p80 { width: 80%; } .jauge-niveau .p85 { width: 85%; } .jauge-niveau .p90 { width: 90%; } .jauge-niveau .p95 { width: 95%; } 
.personnes li > span.niveau, .personnes li > span.insigne { flex: 0 0 auto; }
table.bareme { display: table; max-width: 46rem; }
table.bareme { table-layout: fixed; width: 100%; } .bareme td { overflow-wrap: anywhere; } .bareme td:last-child { width: 5.5rem; }
.bareme td:nth-child(2) { white-space: normal; }

/* Chaîne P212 */
.entete-chaine { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; } .entete-chaine > div { flex: 1; min-width: 12rem; }
.entete-chaine h1 { margin: 0; } .entete-chaine form { margin: 0; } .entete-chaine .portrait { font-size: 2rem; }
.reactions-chaine { display: flex; flex-wrap: wrap; gap: .3rem; margin: .6rem 0 0; }
.reactions-chaine .reaction { margin: 0; padding: .2rem .6rem; font-size: .95rem; }
.liste-salons.chaine { margin-bottom: 1rem; border-color: var(--or); }

/* Événements */
.evenement-date { margin: 0 0 .2rem; font-weight: 600; color: var(--or); } .evenement .petit-texte { margin: .15rem 0; }
.evenement-choix { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0 .2rem; } .evenement-choix .reaction { margin: 0; padding: .25rem .7rem; font-size: .88rem; }
.menu-message.vers-haut { top: auto; bottom: 100%; margin-bottom: .2rem; }

/* Vidéos et documents */
video.film { display: block; max-width: min(100%, 22rem); max-height: 24rem; border-radius: 12px; background: #000; }
a.document { display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem; border-radius: 12px; background: rgba(0, 0, 0, .22); color: inherit; text-decoration: none; max-width: 20rem; }
a.document:hover { background: rgba(0, 0, 0, .34); } .document-icone { font-size: 1.5rem; } .document-nom { overflow-wrap: anywhere; font-weight: 600; font-size: .93rem; }
.plus-bascule { display: none; } .plus-outils { display: contents; }
@media (max-width: 640px) {
  .composer .barre { position: relative; } .composer .plus-bascule { display: inline-flex; }
  .composer .plus-outils { display: none; position: absolute; z-index: 5; bottom: calc(100% + .45rem); inset-inline-start: .3rem; gap: .45rem; padding: .45rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--bord); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
  .composer .plus-outils.ouvert { display: flex; }
}

/* Appel entrant, sur n'importe quelle page du site */
.appel-entrant { position: fixed; z-index: 60; top: .8rem; inset-inline: .8rem; margin-inline: auto; max-width: 34rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .8rem 1rem;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--or); box-shadow: 0 12px 40px rgba(0, 0, 0, .6); animation: appel-entrant 1s ease-in-out infinite alternate; }
.appel-entrant p { margin: 0; flex: 1 1 100%; } .appel-entrant .bouton { margin: 0; }
@keyframes appel-entrant { from { box-shadow: 0 12px 40px rgba(0, 0, 0, .6); } to { box-shadow: 0 12px 40px rgba(0, 0, 0, .6), 0 0 0 6px rgba(226, 181, 60, .28); } }
@media (prefers-reduced-motion: reduce) { .appel-entrant { animation: none; } }
.recherche-contacts { display: flex; gap: .5rem; max-width: 28rem; margin: .6rem 0 1rem; } .recherche-contacts input { flex: 1; margin: 0; } .recherche-contacts .bouton { margin: 0; }

/* ---------- P212 Learn (cours particuliers) — Auteur : Aziz Mernissi ---------- */
body.learn { --violet: #0f3d2e; --accent: #37c08a; }
body.learn .bandeau { background: linear-gradient(90deg, #0b1410, #0f3d2e 60%, #1d2a12); }
.marque-learn { color: var(--vert); }
.petit-texte { color: var(--doux); font-size: .88rem; }
.liste-simple { list-style: none; padding: 0; } .liste-simple li { padding: .5rem 0; border-bottom: 1px solid var(--bord); }
.crs-heros { text-align: center; padding: clamp(1.5rem, 5vw, 3.5rem) 1rem; margin: 0 0 1rem; border-radius: 18px;
  background: radial-gradient(ellipse at top, rgba(55, 192, 138, .18), transparent 60%), radial-gradient(ellipse at bottom right, rgba(226, 181, 60, .14), transparent 55%), var(--surface); border: 1px solid var(--bord); }
.crs-heros h1 { font-size: clamp(1.7rem, 4.5vw, 2.8rem); margin: .3rem 0 .8rem; line-height: 1.15; }
.crs-surtitre { color: var(--vert); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; margin: 0; }
.crs-intro { color: var(--doux); max-width: 44rem; margin: 0 auto 1.4rem; font-size: 1.05rem; }
.crs-recherche { margin: 0 auto 1rem; justify-content: center; } .crs-recherche input { flex: 3 1 16rem; }
.crs-chiffres { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; color: var(--doux); }
.crs-chiffres strong { color: var(--texte); font-size: 1.15rem; }
.crs-fiche .crs-chiffres { justify-content: flex-start; }
.crs-categories { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 0 2rem; }
.crs-categorie { padding: .45rem .9rem; border: 1px solid var(--bord); border-radius: 999px; color: var(--texte); text-decoration: none; background: var(--surface); }
.crs-categorie:hover { border-color: var(--vert); color: var(--vert); }
.crs-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--vert); color: #06140e; font-weight: 800; }
.crs-appel { text-align: center; margin: 2rem 0; background: linear-gradient(135deg, #0f3d2e, var(--surface)); }
.crs-prof { display: flex; flex-direction: column; gap: .6rem; color: var(--texte); text-decoration: none; transition: border-color .15s, transform .15s; }
.crs-prof:hover { border-color: var(--vert); transform: translateY(-2px); }
.crs-prof-tete { display: flex; gap: .9rem; align-items: center; } .crs-prof-tete h3, .crs-prof-tete h1 { margin: 0 0 .25rem; }
.crs-titre { margin: 0; color: var(--texte); font-weight: 600; }
.crs-prof-pied { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--bord); }
.crs-note { color: var(--or); font-weight: 700; } .crs-prix strong { color: var(--vert); font-size: 1.1rem; }
.crs-etiquette { display: inline-block; padding: .1rem .55rem; border-radius: 6px; background: rgba(55, 192, 138, .12); color: var(--vert); font-size: .8rem; font-weight: 600; }
.crs-filtres input[name="prix_max"] { flex: 0 1 8rem; }
.crs-fiche { display: grid; grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr); gap: 1.2rem; align-items: start; margin: 1rem 0; }
@media (max-width: 860px) { .crs-fiche { grid-template-columns: 1fr; } }
.crs-reserver { position: sticky; top: 1rem; }
.crs-bio { white-space: pre-line; }
.crs-avis { padding: .7rem 0; border-bottom: 1px solid var(--bord); } .crs-avis strong { color: var(--or); } .crs-avis p { margin: .3rem 0 0; }
.crs-grille-creneaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .4rem; max-height: 22rem; overflow-y: auto; margin-bottom: 1rem; }
.crs-creneau { display: flex; gap: .4rem; align-items: center; margin: 0; padding: .45rem .5rem; border: 1px solid var(--bord); border-radius: 8px; color: var(--texte); font-size: .85rem; cursor: pointer; }
.crs-creneau input[type=radio] { display: inline-block; width: 1rem; height: 1rem; flex: 0 0 auto; margin: 0; padding: 0; } .crs-creneau time { white-space: nowrap; } .crs-creneau:has(input:checked) { border-color: var(--vert); background: rgba(55, 192, 138, .12); }
.crs-langues { border: 1px solid var(--bord); border-radius: 10px; padding: .6rem 1rem; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.crs-langues label { margin: .2rem 0; } .crs-langues legend { color: var(--doux); font-size: .92rem; }
.crs-dispo-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; } .crs-dispo-form label { margin: 0; flex: 1 1 8rem; }
.crs-resa { margin: .7rem 0; } .crs-resa p { margin: .3rem 0; }
.crs-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .6rem; } .crs-actions input { flex: 1 1 12rem; margin: 0; }
.crs-avis-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-top: .6rem; } .crs-avis-form label { margin: 0; flex: 1 1 10rem; }
.crs-gros { font-size: 2rem; font-weight: 800; color: var(--vert); }
.crs-adresse { display: block; padding: .6rem; background: #0f0d15; border: 1px dashed var(--vert); border-radius: 8px; word-break: break-all; direction: ltr; }
.crs-plus { color: var(--vert); font-weight: 700; } .crs-moins { color: var(--rouge); }
/* salle de cours */
.crs-salle-page main { max-width: none; }
.crs-salle { display: flex; flex-direction: column; gap: .7rem; min-height: calc(100vh - 9rem); }
.crs-salle-tete { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.crs-scene { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: .7rem; min-height: 0; }
.crs-salle.avec-tableau .crs-scene { grid-template-columns: 16rem minmax(0, 1fr) 16rem; }
.crs-videos { position: relative; background: #000; border-radius: 14px; overflow: hidden; min-height: 18rem; }
.crs-salle.avec-tableau .crs-videos { display: flex; flex-direction: column; gap: .5rem; background: none; min-height: 0; }
#crs-autre { width: 100%; height: 100%; object-fit: contain; background: #000; }
#crs-moi { position: absolute; width: 28%; max-width: 14rem; inset-inline-end: .7rem; bottom: .7rem; border-radius: 10px; border: 2px solid var(--vert); background: #111; transform: scaleX(-1); }
.crs-salle.avec-tableau #crs-autre, .crs-salle.avec-tableau #crs-moi { position: static; width: 100%; max-width: none; height: auto; border-radius: 10px; transform: none; }
.crs-tableau { display: flex; flex-direction: column; gap: .5rem; } .crs-tableau[hidden] { display: none; }
#crs-toile { width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid var(--bord); touch-action: none; cursor: crosshair; background: #0b0a10; }
.crs-outils { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.crs-couleur { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--bord); cursor: pointer; color: var(--texte); background: #0b0a10; }
.crs-couleur.choisie { border-color: var(--or); transform: scale(1.12); }
.crs-couleur[data-couleur="#ffffff"] { background: #ffffff; } .crs-couleur[data-couleur="#e2b53c"] { background: #e2b53c; }
.crs-couleur[data-couleur="#e05a5a"] { background: #e05a5a; } .crs-couleur[data-couleur="#37c08a"] { background: #37c08a; }
.crs-couleur[data-couleur="#4aa3ff"] { background: #4aa3ff; }
.crs-discussion { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; min-height: 12rem; }
.crs-messages { flex: 1; overflow-y: auto; padding: .7rem; font-size: .92rem; } .crs-messages p { margin: 0 0 .45rem; word-break: break-word; }
.crs-envoi { display: flex; gap: .4rem; padding: .5rem; border-top: 1px solid var(--bord); } .crs-envoi input { margin: 0; }
.crs-barre { display: flex; justify-content: center; gap: .7rem; align-items: center; flex-wrap: wrap; }
.crs-rond { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1px solid var(--bord); background: var(--surface); font-size: 1.3rem; cursor: pointer; }
.crs-rond.actif { background: var(--vert); border-color: var(--vert); }
.crs-rond[aria-pressed="false"]#crs-micro, .crs-rond[aria-pressed="false"]#crs-camera { background: var(--rouge); border-color: var(--rouge); }
@media (max-width: 860px) {
  .crs-scene, .crs-salle.avec-tableau .crs-scene { grid-template-columns: 1fr; }
  .crs-salle.avec-tableau .crs-videos { flex-direction: row; } .crs-salle.avec-tableau #crs-autre, .crs-salle.avec-tableau #crs-moi { width: 50%; }
  .crs-discussion { max-height: 14rem; }
}

/* Photos de P212 Learn */
.crs-heros { position: relative; overflow: hidden; }
.crs-heros.avec-photo { min-height: 30rem; display: flex; flex-direction: column; justify-content: center; text-align: start; padding-inline: clamp(1.2rem, 5vw, 4rem); }
.crs-heros-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.crs-heros.avec-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 14, 11, .92) 0%, rgba(8, 14, 11, .72) 42%, rgba(8, 14, 11, .1) 75%); }
[dir="rtl"] .crs-heros.avec-photo::before { background: linear-gradient(270deg, rgba(8, 14, 11, .92) 0%, rgba(8, 14, 11, .72) 42%, rgba(8, 14, 11, .1) 75%); }
.crs-heros.avec-photo > *:not(img) { position: relative; z-index: 2; max-width: 36rem; }
.crs-heros.avec-photo .crs-intro, .crs-heros.avec-photo .crs-recherche { margin-inline: 0; }
.crs-heros.avec-photo .crs-chiffres { justify-content: flex-start; }
.crs-etape { overflow: hidden; } .crs-image { display: block; width: calc(100% + 2.4rem); max-width: none; margin: -1.2rem -1.2rem 1rem; aspect-ratio: 4 / 3; object-fit: cover; }
.crs-phares { margin: 1rem 0 2rem; }
.crs-phare { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; border: 1px solid var(--bord); }
.crs-phare img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .crs-phare:hover img { transform: scale(1.04); }
.crs-phare span { position: absolute; inset-inline: 0; bottom: 0; padding: 2rem 1rem .9rem; color: #fff; font-weight: 700; font-size: 1.1rem; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.crs-bandeau-photo { position: relative; margin: 0 0 2rem; border-radius: 18px; overflow: hidden; }
.crs-bandeau-photo img { display: block; width: 100%; max-height: 26rem; object-fit: cover; }
.crs-bandeau-photo figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 2.5rem 1.4rem 1.1rem; color: #fff; font-size: 1.05rem; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); }
.crs-appel.avec-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; text-align: start; padding: 0; overflow: hidden; }
.crs-appel.avec-photo > div { padding: 1.5rem; } .crs-appel-photo { width: 100%; height: 100%; min-height: 16rem; object-fit: cover; }
@media (max-width: 760px) {
  .crs-appel.avec-photo { grid-template-columns: 1fr; }
  .crs-heros.avec-photo { min-height: 0; padding: 0 1.2rem 1.5rem; }
  .crs-heros.avec-photo::before { display: none; }
  .crs-heros-photo { position: relative; display: block; width: calc(100% + 2.4rem); max-width: none; height: auto; aspect-ratio: 16 / 10; margin: 0 -1.2rem 1.2rem; }
}
