/* =======================================================
   Musinnov : feuille de style unique
   Change les 3 lignes --orange ci-dessous pour changer
   la couleur de tout le site.
   ======================================================= */

:root{
  --orange:        #f97316;   /* la banderole, les accents      */
  --orange-dark:   #c2410c;   /* survol, texte orange sur blanc (contraste 5,2) */
  --orange-soft:   #fff4ec;   /* fonds très légers              */

  --ink:   #1f2328;           /* texte principal */
  --muted: #5b6672;           /* texte secondaire */
  --line:  #e6e8eb;           /* bordures */

  --max: 1120px;              /* largeur max du contenu */
}

/* ---------- Réglages de base ---------- */
*,*::before,*::after{ box-sizing:border-box; }

/* L'attribut « hidden » du HTML veut dire « ne pas afficher ». Le
   navigateur l'applique avec display:none, mais n'importe quelle
   règle de cette feuille qui repose un display gagne contre lui :
   c'est ce qui faisait apparaître le bouton « Retour » dès la
   première étape de l'inscription, ou « Retirer la photo » alors
   qu'il n'y avait pas de photo.
   Le !important est ici à sa place : il n'y a jamais de bonne
   raison d'afficher un élément marqué caché. */
[hidden]{ display:none !important; }

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:#fff;
  color:var(--ink);
  font-family:"Segoe UI",system-ui,-apple-system,Inter,Arial,sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,p{ margin:0; }
a{ color:inherit; text-decoration:none; }
img,svg{ display:block; max-width:100%; }
button,input,textarea,select{ font:inherit; color:inherit; }

/* visible uniquement pour les lecteurs d'écran */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

:where(a,button):focus-visible{ outline:3px solid var(--ink); outline-offset:2px; }
.topbar :where(a,button):focus-visible{ outline-color:#fff; }

/* ---------- La banderole orange ---------- */
.topbar{
  background:var(--orange);
  color:#fff;
  position:sticky; top:0; z-index:20;
}
.topbar__inner{
  max-width:var(--max); margin:0 auto; padding:0 24px;
  height:68px;
  display:flex; align-items:center; gap:28px;
}

/* logo + nom, en haut à gauche */
.brand{ display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.brand__mark{ width:32px; height:32px; }
.brand__name{ font-size:1.25rem; font-weight:700; letter-spacing:-.01em; }

/* navigation */
.nav{ display:flex; align-items:center; gap:4px; flex:1 1 auto; }
.nav__link{
  padding:8px 14px; border-radius:999px; white-space:nowrap;
  font-weight:600; font-size:.95rem; color:#fff; opacity:.9;
  transition:background .15s, opacity .15s;
}
.nav__link:hover{ background:rgba(255,255,255,.16); opacity:1; }
.nav__link.is-active{ background:rgba(255,255,255,.22); opacity:1; }

/* zone connexion, en haut à droite */

/* ---------- Boutons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:42px; padding:0 20px;
  border:0; border-radius:999px;
  font-weight:600; font-size:.95rem; white-space:nowrap; cursor:pointer;
  transition:background .15s, transform .05s;
}
.btn:active{ transform:translateY(1px); }
.btn--onorange{ background:#fff; color:var(--orange-dark); }
.btn--onorange:hover{ background:#fff6f0; }
.btn--primary{ background:var(--orange); color:#fff; }
.btn--primary:hover{ background:var(--orange-dark); }
.btn--block{ width:100%; }

/* ---------- Mise en page ---------- */
.page{
  flex:1 1 auto; width:100%;
  max-width:var(--max); margin:0 auto; padding:0 24px;
}
.page--center{ display:flex; align-items:center; justify-content:center; padding:56px 24px; }

/* ---------- Accueil ---------- */
.hero{ max-width:720px; margin:0 auto; padding:88px 0 96px; text-align:center; }
.hero__title{ font-size:clamp(1.9rem,4.5vw,2.75rem); font-weight:700; letter-spacing:-.02em; }
.hero__sub{ margin-top:14px; color:var(--muted); font-size:1.05rem; }

/* barre de recherche */
.search{
  margin:34px auto 0;
  display:flex; align-items:center; gap:8px;
  padding:6px 6px 6px 18px;
  background:#fff; border:1.5px solid var(--line); border-radius:999px;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
  transition:border-color .15s, box-shadow .15s;
}
.search:focus-within{ border-color:var(--orange); box-shadow:0 0 0 4px rgba(249,115,22,.15); }
.search__icon{ display:flex; flex:0 0 auto; color:var(--muted); }
.search__input{
  flex:1 1 auto; min-width:0; height:42px;
  border:0; background:transparent; outline:none;
}
.search__input::placeholder{ color:#97a1ad; }
.search__note{
  margin-top:14px; min-height:1.4em;
  font-size:.9rem; color:var(--orange-dark);
}

/* suggestions d'instruments */
.chips{ margin:26px 0 0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.chip{
  padding:7px 14px;
  background:#fff; border:1px solid var(--line); border-radius:999px;
  font-size:.88rem; color:var(--muted); cursor:pointer;
  transition:border-color .15s, color .15s, background .15s;
}
.chip:hover{ border-color:var(--orange); color:var(--orange-dark); background:var(--orange-soft); }

/* ---------- Page simple (Cours) ---------- */
.section{ max-width:720px; padding:72px 0 96px; }
.section__title{ font-size:clamp(1.7rem,4vw,2.25rem); font-weight:700; letter-spacing:-.02em; }
.placeholder{
  margin-top:24px; padding:44px 24px;
  border:1.5px dashed var(--line); border-radius:12px;
  background:#fcfcfd; text-align:center; color:var(--muted);
}

/* ---------- Connexion ---------- */
.card{
  background:#fff; border:1px solid var(--line); border-radius:16px;
  box-shadow:0 8px 28px rgba(16,24,40,.06);
}
.auth{ width:100%; max-width:404px; padding:32px; }
.auth__title{ font-size:1.6rem; font-weight:700; letter-spacing:-.02em; text-align:center; }
.auth__sub{ margin-top:6px; text-align:center; color:var(--muted); font-size:.94rem; }

.form{ margin-top:24px; display:grid; gap:16px; }
.field{ display:grid; gap:6px; }
.field label{ font-size:.88rem; font-weight:600; }
.field input{
  height:44px; padding:0 14px;
  border:1.5px solid var(--line); border-radius:10px; background:#fff; outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.field input:focus{ border-color:var(--orange); box-shadow:0 0 0 4px rgba(249,115,22,.15); }
.form__note{ min-height:1.4em; margin:0; text-align:center; font-size:.88rem; color:var(--orange-dark); }

.auth__alt{ margin-top:20px; text-align:center; font-size:.9rem; color:var(--muted); }
.auth__alt a{ color:var(--orange-dark); font-weight:600; }
.auth__alt a:hover{ text-decoration:underline; }

/* ---------- Pied de page ---------- */
.footer{ margin-top:auto; border-top:1px solid var(--line); }
.footer__inner{
  max-width:var(--max); margin:0 auto; padding:22px 24px;
  color:var(--muted); font-size:.87rem;
}

/* ---------- Téléphone ---------- */
@media (max-width:640px){
  .topbar__inner{ height:auto; padding:12px 16px; gap:12px; flex-wrap:wrap; }
  .brand{ flex:1 1 auto; }
  .nav{ order:3; flex-basis:100%; justify-content:center; flex-wrap:wrap; row-gap:4px; }
  /* « Mes cours » sur deux lignes faisait une pastille bancale :
     un lien reste sur une ligne, quitte à passer à la ligne suivante. */
  .nav__link{ padding:7px 11px; white-space:nowrap; }
  .page{ padding:0 16px; }
  .hero{ padding:56px 0 64px; }
  .search{ flex-wrap:wrap; padding:12px; border-radius:16px; }
  .search__input{ flex:1 1 140px; }
  .search .btn{ width:100%; }
  .auth{ padding:24px; }
}

/* Petit téléphone : liens resserrés. Avec « Musiciens », le menu
   passe sur deux lignes centrées, sans jamais déborder. */
@media (max-width:400px){
  .nav{ gap:2px; }
  .nav__link{ padding:7px 8px; font-size:.88rem; }
}

/* Tablette : le menu passe sous le logo plutôt que de se tasser
   et de couper « Mes cours » en deux lignes. */
@media (min-width:641px) and (max-width:1000px){
  .topbar__inner{ height:auto; padding-top:12px; padding-bottom:12px; gap:10px 28px; flex-wrap:wrap; }
  .brand{ flex:1 1 auto; }
  .nav{ order:3; flex-basis:100%; justify-content:center; }
}
/* Entre la tablette et le grand écran, la barre tient sur une ligne
   à condition de ne garder que la pastille du compte (les initiales) :
   avec le pseudo en plus, elle débordait jusqu'à 1 120 px. */
@media (min-width:1001px) and (max-width:1180px){
  .topbar__inner{ gap:18px; }
  .userchip__nom{ display:none; }
}
/* Tablette et téléphone : boutons de la barre un peu resserrés. Sans
   ça, le bouton « ? » de l'aide (présent sur certaines pages, pas sur
   l'accueil) faisait passer la barre sur une ligne de plus : elle
   n'avait plus la même hauteur d'une page à l'autre. */
@media (max-width:1000px){
  .topbar__inner{ column-gap:16px; }
  .topbar__actions{ gap:6px; }
  .userchip__nom{ display:none; }
  .userchip{ padding-right:5px; }
}
@media (max-width:420px){
  .brand__name{ font-size:1.1rem; }
  .topbar__actions .btn{ padding:0 14px; }
}

/* =======================================================
   Inscription (assistant en étapes) & page Compte
   ======================================================= */

/* ---------- Cartouche utilisateur dans la banderole ---------- */
.userchip{
  display:flex; align-items:center; gap:9px;
  padding:5px 15px 5px 5px; border-radius:999px;
  background:rgba(255,255,255,.18);
  font-weight:600; font-size:.92rem;
  transition:background .15s;
}
.userchip:hover{ background:rgba(255,255,255,.3); }
.userchip__photo{
  display:flex; align-items:center; justify-content:center;
  width:30px; height:30px; border-radius:50%; overflow:hidden;
  background:#fff; color:var(--orange-dark);
  font-size:.76rem; font-weight:700;
}
.userchip__photo img{ width:100%; height:100%; object-fit:cover; }
.userchip__nom{ max-width:96px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ---------- Boutons supplémentaires ---------- */
.btn--outline{ background:#fff; color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--line); }
.btn--outline:hover{ background:#f7f8f9; box-shadow:inset 0 0 0 1.5px #cfd4da; }
.btn--ghost{ background:transparent; color:var(--muted); }
.btn--ghost:hover{ background:#f2f4f6; color:var(--ink); }
.btn--danger{ background:#fff; color:#b42318; box-shadow:inset 0 0 0 1.5px #f3c7c2; }
.btn--danger:hover{ background:#fef3f2; }
.btn--google{ background:#fff; color:#3c4043; box-shadow:inset 0 0 0 1.5px #dadce0; }
.btn--google:hover{ background:#f8f9fa; }
.btn--sm{ height:36px; padding:0 14px; font-size:.88rem; }

.separator{ display:flex; align-items:center; gap:14px; margin:22px 0; color:var(--muted); font-size:.85rem; }
.separator::before, .separator::after{ content:""; flex:1 1 auto; height:1px; background:var(--line); }

/* ---------- Assistant d'inscription ---------- */
.wizard{ max-width:660px; margin:0 auto; padding:40px 0 80px; }

.progress{ display:flex; gap:5px; margin-bottom:9px; }
.progress__seg{ flex:1 1 0; height:6px; border-radius:999px; background:var(--line); transition:background .25s, opacity .25s; }
.progress__seg.is-done{ background:var(--orange); }
.progress__seg.is-current{ background:var(--orange); opacity:.4; }
.progress__meta{ display:flex; justify-content:space-between; gap:12px; font-size:.84rem; color:var(--muted); }
.progress__meta strong{ color:var(--ink); font-weight:600; }

.step{ padding-top:32px; }
.step__title{ font-size:1.55rem; font-weight:700; letter-spacing:-.02em; }
.step__hint{ margin-top:8px; color:var(--muted); font-size:.95rem; }
.step__body{ margin-top:26px; }

.wizard__nav{
  margin-top:32px; padding-top:22px; border-top:1px solid var(--line);
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
}
.wizard__nav .spacer{ flex:1 1 auto; }
.wizard__erreur{ margin-top:14px; min-height:1.3em; font-size:.88rem; color:#b42318; }

/* ---------- Grilles de cases à cocher ---------- */
.grid-choices{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:9px; }
.grid-choices--pleine{ grid-template-columns:1fr; }

.choice{
  display:flex; align-items:flex-start; gap:11px;
  padding:12px 14px; border:1.5px solid var(--line); border-radius:11px;
  cursor:pointer; transition:border-color .15s, background .15s;
}
.choice:hover{ border-color:#cfd4da; }
.choice:has(.choice__input:focus-visible){ outline:3px solid var(--ink); outline-offset:2px; }
.choice__input{ position:absolute; width:1px; height:1px; opacity:0; }
.choice__box{
  flex:0 0 auto; display:flex; align-items:center; justify-content:center;
  width:20px; height:20px; margin-top:1px;
  border:1.5px solid #c3cad2; border-radius:5px; background:#fff;
  transition:border-color .15s, background .15s;
}
.choice--radio .choice__box{ border-radius:50%; }
.choice__label{ display:block; font-size:.93rem; font-weight:500; }
.choice__desc{ display:block; margin-top:2px; color:var(--muted); font-size:.83rem; }

.choice.is-checked{ border-color:var(--orange); background:var(--orange-soft); }
.choice.is-checked .choice__box{ border-color:var(--orange); background:var(--orange); }
.choice.is-checked .choice__box::after{
  content:""; width:13px; height:13px;
  background:center/13px 13px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5 11-11'/%3E%3C/svg%3E");
}
.choice--radio.is-checked .choice__box::after{
  width:8px; height:8px; border-radius:50%; background:#fff;
}

.compteur-choix{ margin-top:12px; font-size:.84rem; color:var(--muted); }

/* ---------- Photo de profil ---------- */
.photo{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.avatar{
  flex:0 0 auto; display:flex; align-items:center; justify-content:center;
  width:96px; height:96px; border-radius:50%; overflow:hidden;
  border:1.5px solid var(--line); background:var(--orange-soft);
  color:var(--orange-dark); font-weight:700; font-size:1.7rem;
}
.avatar--xl{ width:112px; height:112px; font-size:2rem; }
/* Les tailles réduites : dans une liste de messages, un avatar de
   96 px prend plus de place que le message lui-même. */
.avatar--md{ width:52px; height:52px; font-size:1.05rem; }
.avatar--sm{ width:38px; height:38px; font-size:.85rem; border-width:1px; }
.avatar img{ width:100%; height:100%; object-fit:cover; }

.photo__zone{ flex:1 1 240px; min-width:0; }
.photo__drop{
  padding:20px 18px; border:1.5px dashed var(--line); border-radius:12px;
  background:#fcfcfd; text-align:center; color:var(--muted); font-size:.9rem;
  cursor:pointer; transition:border-color .15s, background .15s, color .15s;
}
.photo__drop:hover{ border-color:#cfd4da; }
.photo__drop.is-over{ border-color:var(--orange); background:var(--orange-soft); color:var(--orange-dark); }
.photo__drop strong{ color:var(--orange-dark); font-weight:600; }
.photo__actions{ margin-top:10px; display:flex; gap:8px; flex-wrap:wrap; }
.photo__erreur{ margin-top:8px; font-size:.84rem; color:#b42318; }

/* ---------- Champs : compléments ---------- */
.field textarea{
  min-height:120px; padding:12px 14px;
  border:1.5px solid var(--line); border-radius:10px; background:#fff;
  font-family:inherit; line-height:1.55; resize:vertical; outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.field textarea:focus{ border-color:var(--orange); box-shadow:0 0 0 4px rgba(249,115,22,.15); }
.field__hint{ font-size:.82rem; color:var(--muted); }
.field__erreur{ margin:0; font-size:.82rem; color:#b42318; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"]{ border-color:#d92d20; }
.field__duo{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field__compteur{ font-size:.79rem; color:var(--muted); text-align:right; }

.pwd{ position:relative; display:flex; }
.pwd input{ flex:1 1 auto; min-width:0; padding-right:82px; }
.pwd__toggle{
  position:absolute; right:6px; top:6px; height:32px; padding:0 10px;
  border:0; border-radius:8px; background:transparent;
  color:var(--muted); font-size:.82rem; font-weight:600; cursor:pointer;
}
.pwd__toggle:hover{ background:#f2f4f6; color:var(--ink); }
.strength{ display:flex; gap:4px; }
.strength__seg{ flex:1 1 0; height:4px; border-radius:999px; background:var(--line); transition:background .2s; }
.strength__seg.is-on{ background:var(--orange); }

.note{ padding:12px 14px; border-radius:10px; background:var(--orange-soft); color:var(--orange-dark); font-size:.87rem; }
.note--neutre{ background:#f7f8f9; color:var(--muted); }

/* ---------- Page Compte ---------- */
.profil{ display:grid; gap:18px; padding:40px 0 80px; }

.profil__entete{ display:flex; align-items:center; gap:22px; padding:26px; flex-wrap:wrap; }
.profil__ident{ flex:1 1 220px; min-width:0; }
.profil__pseudo{ font-size:1.5rem; font-weight:700; letter-spacing:-.02em; }
.profil__nom{ color:var(--muted); }
.profil__meta{ margin-top:10px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:.85rem; color:var(--muted); }
.badge{
  display:inline-flex; align-items:center; padding:4px 11px; border-radius:999px;
  background:var(--orange-soft); color:var(--orange-dark);
  font-size:.8rem; font-weight:600;
}

.completion{ padding:20px 26px; }
.completion__head{ display:flex; justify-content:space-between; gap:12px; font-size:.88rem; }
.completion__head strong{ font-weight:600; }
.completion__bar{ margin-top:9px; height:8px; border-radius:999px; background:var(--line); overflow:hidden; }
.completion__fill{ height:100%; border-radius:999px; background:var(--orange); transition:width .35s; }
.completion__reste{ margin-top:9px; font-size:.83rem; color:var(--muted); }

.bloc{ padding:26px; }
.bloc__titre{ font-size:1.05rem; font-weight:700; }
.bloc__hint{ margin-top:4px; color:var(--muted); font-size:.87rem; }
.bloc__corps{ margin-top:18px; }

.savebar{
  position:sticky; bottom:16px; z-index:10;
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:14px 18px; border-radius:14px;
  background:var(--ink); color:#fff;
  box-shadow:0 10px 30px rgba(16,24,40,.22);
}
.savebar__txt{ flex:1 1 160px; font-size:.9rem; }
.savebar .btn--ghost{ color:#c9ced4; }
.savebar .btn--ghost:hover{ background:rgba(255,255,255,.12); color:#fff; }

.zone-danger{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:22px 26px; }
.zone-danger p{ flex:1 1 220px; font-size:.87rem; color:var(--muted); }

.vide{ max-width:470px; margin:0 auto; padding:88px 0; text-align:center; }
.vide__titre{ font-size:1.5rem; font-weight:700; letter-spacing:-.02em; }
.vide p{ margin-top:10px; color:var(--muted); }
.vide__actions{ margin-top:26px; display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

/* ---------- Téléphone ---------- */
@media (max-width:640px){
  .grid-choices{ grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); gap:8px; }
  .field__duo{ grid-template-columns:1fr; }
  .wizard{ padding:28px 0 60px; }
  .wizard__nav .btn{ flex:1 1 auto; }
  .profil__entete, .bloc, .completion, .zone-danger{ padding:20px; }
  .userchip__nom{ display:none; }
}

/* le libellé doit pouvoir se couper dans une colonne étroite */
.choice__text{ min-width:0; }
.choice__label{ overflow-wrap:break-word; }

/* =======================================================
   Fenêtre de recadrage de la photo
   ======================================================= */
.modal{
  position:fixed; inset:0; z-index:100;
  display:flex; align-items:center; justify-content:center; padding:20px;
  background:rgba(16,24,40,.6);
}
.modal__box{
  width:100%; max-width:340px; padding:22px;
  border-radius:16px; background:#fff;
  box-shadow:0 20px 60px rgba(16,24,40,.3);
}
.modal__titre{ font-size:1.1rem; font-weight:700; letter-spacing:-.01em; }
.modal__hint{ margin-top:6px; color:var(--muted); font-size:.86rem; }
.modal__actions{ margin-top:18px; display:flex; gap:10px; }
.modal__actions .btn{ flex:1 1 auto; }

.crop{
  position:relative; margin:18px auto 0; max-width:100%;
  overflow:hidden; border-radius:50%;
  background:#f2f4f6; cursor:grab; touch-action:none;
}
.crop.is-drag{ cursor:grabbing; }
.crop img{
  position:absolute; top:0; left:0;
  transform-origin:0 0; max-width:none;
  user-select:none; -webkit-user-select:none; -webkit-user-drag:none;
}
.crop__cadre{
  position:absolute; inset:0; border-radius:50%; pointer-events:none;
  border:2px solid rgba(255,255,255,.85);
}
.crop-zoom{
  display:flex; align-items:center; gap:12px; margin-top:14px;
  font-size:.84rem; color:var(--muted);
}
.crop-zoom input[type="range"]{ flex:1 1 auto; min-width:0; accent-color:var(--orange); }

/* =======================================================
   Barre de recherche compacte (page Cours)
   ======================================================= */
.search--compact{
  margin-top:22px; max-width:520px; margin-left:0;
  padding:4px 4px 4px 14px;
}
.search--compact .search__input{ height:36px; font-size:.94rem; }
.search--compact .btn{ height:34px; padding:0 16px; font-size:.9rem; }
.search--compact .search__icon svg{ width:17px; height:17px; }

@media (max-width:640px){
  .search--compact{ padding:10px; }
  .search--compact .btn{ height:38px; }
}

/* intitulé d'un groupe de cases à l'intérieur d'une étape */
.sous-titre{ margin:26px 0 10px; font-size:.88rem; font-weight:600; }

/* =======================================================
   Icône de la messagerie dans la banderole
   ======================================================= */
.topbar__actions{ flex:0 0 auto; display:flex; align-items:center; gap:10px; }

.iconbtn{
  position:relative; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,.18); color:#fff;
  transition:background .15s;
}
.iconbtn:hover{ background:rgba(255,255,255,.32); }
.iconbtn__badge{
  position:absolute; top:-2px; right:-3px;
  display:flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 5px; border-radius:999px;
  background:#fff; color:var(--orange-dark);
  font-size:.68rem; font-weight:700; line-height:1;
}

/* =======================================================
   Résultats de recherche
   ======================================================= */
.resultats{ margin-top:26px; display:grid; gap:10px; text-align:left; }

.resultat{
  display:flex; align-items:center; gap:12px;
  padding:13px 15px; border:1.5px solid var(--line); border-radius:12px;
  background:#fff; transition:border-color .15s, box-shadow .15s;
}
.resultat:hover{ border-color:#cfd4da; box-shadow:0 2px 10px rgba(16,24,40,.05); }
.resultat__lien{ display:flex; align-items:center; gap:13px; flex:1 1 auto; min-width:0; }
.resultat__avatar{ width:46px; height:46px; font-size:.95rem; }
.resultat__corps{ min-width:0; flex:1 1 auto; }
.resultat__pseudo{ display:block; font-weight:700; font-size:.98rem; }
.resultat__ligne{
  display:block; margin-top:1px; color:var(--muted); font-size:.85rem;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.resultat__actions{ flex:0 0 auto; }

.recherche-vide{ margin:0; padding:14px 2px; color:var(--muted); font-size:.92rem; }

.btn--suivi{ background:var(--orange-soft); color:var(--orange-dark); box-shadow:inset 0 0 0 1.5px #f7c9a6; }
.btn--suivi:hover{ background:#ffe6d5; }

/* =======================================================
   Profil public
   ======================================================= */
.profil__actions{
  flex:0 0 auto; display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.profil__mutuel{
  flex-basis:100%; margin:0; text-align:right;
  color:var(--muted); font-size:.83rem;
}
.profil__chiffres{ margin-top:10px; font-size:.9rem; color:var(--muted); }
.profil__chiffres strong{ color:var(--ink); font-weight:700; }
.profil__chiffres .sep{ margin:0 9px; }

.tags{ display:flex; flex-wrap:wrap; gap:7px; }
.tag{
  padding:6px 13px; border-radius:999px;
  background:#f4f6f8; font-size:.87rem;
}
.texte-libre{ white-space:pre-wrap; line-height:1.65; }

/* =======================================================
   Messagerie
   ======================================================= */
.messagerie{
  display:grid; grid-template-columns:290px 1fr; gap:18px;
  margin:22px 0 70px; align-items:start;
}

/* minmax(0, 1fr) : sans lui, un aperçu de message trop long poussait
   la ligne hors de sa colonne, par-dessus la conversation ouverte. */
.convos{ display:grid; grid-template-columns:minmax(0, 1fr); gap:5px; align-content:start; }
.convo{
  display:flex; align-items:center; gap:11px; width:100%;
  padding:10px 12px; border:1.5px solid transparent; border-radius:12px;
  background:transparent; text-align:left; cursor:pointer;
  transition:background .15s, border-color .15s;
}
.convo:hover{ background:#f6f7f9; }
.convo.is-active{ background:var(--orange-soft); border-color:#f7c9a6; }
.convo__avatar{ width:42px; height:42px; font-size:.88rem; flex:0 0 auto; }
.convo__corps{ min-width:0; flex:1 1 auto; }
.convo__nom{ display:block; font-weight:600; font-size:.93rem; }
.convo__extrait{
  display:block; margin-top:1px; color:var(--muted); font-size:.82rem;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.convo__pastille{
  flex:0 0 auto; width:9px; height:9px; border-radius:50%; background:var(--orange);
}

.fil{
  display:flex; flex-direction:column; min-height:440px;
  border:1px solid var(--line); border-radius:16px; background:#fff; overflow:hidden;
}
.fil__entete{
  display:flex; align-items:center; gap:12px;
  padding:13px 16px; border-bottom:1px solid var(--line);
}
.fil__avatar{ width:40px; height:40px; font-size:.85rem; flex:0 0 auto; }
.fil__ident{ flex:1 1 auto; min-width:0; }
.fil__pseudo{ display:block; font-weight:700; font-size:.98rem; }
.fil__pseudo:hover{ text-decoration:underline; }
.fil__nom{ color:var(--muted); font-size:.84rem; }

.fil__corps{
  flex:1 1 auto; display:flex; flex-direction:column; gap:9px;
  padding:18px; overflow-y:auto; max-height:50vh;
}
.bulle{
  max-width:78%; padding:10px 14px; border-radius:16px;
  font-size:.93rem; line-height:1.5;
  overflow-wrap:break-word;
}
/* Seul le texte du message garde ses retours à la ligne : appliqué à
   toute la bulle, pre-wrap gardait aussi les espaces du code, et une
   bulle d'une ligne faisait quatre lignes de haut. */
.bulle__texte{ white-space:pre-wrap; }
.bulle--moi{ align-self:flex-end; background:var(--orange); color:#fff; border-bottom-right-radius:5px; }
.bulle--eux{ align-self:flex-start; background:#f2f4f6; border-bottom-left-radius:5px; }
.bulle__heure{ display:block; margin-top:4px; font-size:.71rem; opacity:.75; }

.composer{ display:flex; gap:10px; padding:13px 16px; border-top:1px solid var(--line); }
.composer textarea{
  flex:1 1 auto; min-width:0; min-height:44px; max-height:120px;
  padding:11px 14px; border:1.5px solid var(--line); border-radius:12px;
  font-family:inherit; font-size:.94rem; line-height:1.5; resize:none; outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.composer textarea:focus{ border-color:var(--orange); box-shadow:0 0 0 4px rgba(249,115,22,.15); }
.composer .btn{ flex:0 0 auto; align-self:flex-end; }

.fil--vide{
  align-items:center; justify-content:center; gap:16px;
  min-height:440px; color:var(--muted); text-align:center; padding:30px;
}
.fil--vide p{ margin:0; }

/* ---------- Téléphone ---------- */
@media (max-width:820px){
  .messagerie{ grid-template-columns:1fr; }
  .convos{ grid-auto-flow:row; max-height:230px; overflow-y:auto; }
  .fil, .fil--vide{ min-height:360px; }
  .fil__corps{ max-height:44vh; }
}
@media (max-width:640px){
  .profil__actions{ flex-basis:100%; }
  .profil__mutuel{ text-align:left; }
  .resultat{ flex-wrap:wrap; }
  .resultat__actions{ flex-basis:100%; }
  .resultat__actions .btn{ width:100%; }
}

/* barre « mode test » de la messagerie (temporaire) */
.composer__mode{
  display:flex; align-items:center; gap:9px; flex-wrap:wrap;
  padding:9px 16px; border-top:1px solid var(--line);
  background:#fbfcfd; font-size:.79rem; color:var(--muted);
}
.composer__mode select{
  padding:4px 9px; border:1px solid var(--line); border-radius:8px;
  background:#fff; color:var(--ink); font-size:.79rem; cursor:pointer;
}
.composer{ border-top:0; }

/* =======================================================
   Cours : la case « + », les cartes, le formulaire
   ======================================================= */
.section__sous-titre{
  margin:44px 0 16px; font-size:1.15rem; font-weight:700; letter-spacing:-.01em;
}

.cours-grille{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px;
}

/* la case « + créer votre propre cours » */
.cours-creer{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
  min-height:176px; padding:24px 18px;
  border:2px dashed var(--line); border-radius:14px;
  background:#fcfcfd; color:var(--muted); text-align:center;
  transition:border-color .15s, background .15s, color .15s;
}
.cours-creer:hover{ border-color:var(--orange); background:var(--orange-soft); color:var(--orange-dark); }
.cours-creer__plus{
  display:flex; align-items:center; justify-content:center;
  width:46px; height:46px; border-radius:50%;
  background:var(--orange); color:#fff;
  font-size:1.7rem; font-weight:400; line-height:1;
  padding-bottom:3px;
}
.cours-creer__texte{ font-size:.95rem; font-weight:600; }

/* une carte de cours */
.cours-carte{
  display:flex; flex-direction:column; gap:7px;
  min-height:176px; padding:18px;
  border:1.5px solid var(--line); border-radius:14px; background:#fff;
}
.cours-carte__tete{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.cours-carte__titre{ font-size:1.05rem; font-weight:700; }
.cours-carte__ligne{ color:var(--muted); font-size:.87rem; }
.cours-carte__pied{
  margin-top:auto; padding-top:14px;
  display:flex; align-items:flex-end; justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.cours-carte__prix{ display:flex; flex-direction:column; }
.cours-carte__prix strong{ font-size:1.15rem; }
.cours-carte__net{ color:var(--muted); font-size:.78rem; }

/* =======================================================
   Formulaire de création
   ======================================================= */
.lien-retour{
  display:inline-block; margin-bottom:18px;
  color:var(--muted); font-size:.88rem; font-weight:600;
}
.lien-retour:hover{ color:var(--orange-dark); }

.wizard .bloc{ margin-bottom:16px; }

/* saisie d'un montant */
.montant{ position:relative; display:flex; }
.montant input{
  flex:1 1 auto; min-width:0; height:44px; padding:0 38px 0 14px;
  border:1.5px solid var(--line); border-radius:10px; background:#fff; outline:none;
  font-size:1.05rem; font-weight:600;
  transition:border-color .15s, box-shadow .15s;
}
.montant input:focus{ border-color:var(--orange); box-shadow:0 0 0 4px rgba(249,115,22,.15); }
.montant__unite{
  position:absolute; right:14px; top:0; height:44px;
  display:flex; align-items:center; color:var(--muted); font-weight:600;
}

/* =======================================================
   Disponibilités
   ======================================================= */
.dispos{ display:grid; gap:9px; }

.jour{ padding:12px 14px; border:1.5px solid var(--line); border-radius:12px; }
.jour__tete{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.jour__bascule{ border:0; padding:0; background:none; flex:1 1 auto; }
.jour__bascule.is-checked{ background:none; border-color:transparent; }
.jour__bascule .choice__label{ font-weight:600; }
.jour__plages{ display:grid; gap:8px; }
.jour__plages:not(:empty){ margin-top:12px; }

.plage{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.plage input[type="time"]{
  height:38px; padding:0 10px;
  border:1.5px solid var(--line); border-radius:9px; background:#fff; outline:none;
  font-family:inherit; font-size:.92rem;
  transition:border-color .15s, box-shadow .15s;
}
.plage input[type="time"]:focus{ border-color:var(--orange); box-shadow:0 0 0 3px rgba(249,115,22,.15); }
.plage__fleche{ color:var(--muted); }
.plage__retirer{
  display:flex; align-items:center; justify-content:center;
  width:30px; height:30px; border:0; border-radius:50%;
  background:transparent; color:var(--muted);
  font-size:1.25rem; line-height:1; cursor:pointer;
  transition:background .15s, color .15s;
}
.plage__retirer:hover{ background:#fdeceb; color:#b42318; }

/* =======================================================
   Récapitulatif
   ======================================================= */
.recap{ background:#fcfcfd; }
.recap__liste{ margin:0; display:grid; gap:0; }
.recap__ligne{
  display:flex; align-items:baseline; justify-content:space-between; gap:16px;
  padding:9px 0; border-bottom:1px solid var(--line);
}
.recap__ligne:last-child{ border-bottom:0; }
.recap__ligne dt{ color:var(--muted); font-size:.88rem; }
.recap__ligne dd{ margin:0; font-weight:600; text-align:right; }

.recap__jours{ margin:16px 0 0; padding:0; list-style:none; display:grid; gap:7px; }
.recap__jours li{ font-size:.88rem; color:var(--muted); }
.recap__jours strong{ display:inline-block; min-width:80px; color:var(--ink); }
.recap__compte{ color:var(--orange-dark); font-weight:600; }
.recap__vide{ margin:16px 0 0; color:var(--muted); font-size:.88rem; font-style:italic; }

@media (max-width:640px){
  .cours-grille{ grid-template-columns:1fr; }
  .recap__ligne{ flex-direction:column; gap:2px; }
  .recap__ligne dd{ text-align:left; }
  .recap__jours strong{ min-width:0; margin-right:6px; }
}

/* =======================================================
   Catalogue des cours
   ======================================================= */
.section__intro{ margin:-6px 0 16px; color:var(--muted); font-size:.9rem; }

.cours-carte--offre{ min-height:0; }

.cours-carte__prof{
  display:flex; align-items:center; gap:11px;
  margin:-4px -4px 10px; padding:6px; border-radius:10px;
  transition:background .15s;
}
.cours-carte__prof:hover{ background:#f6f7f9; }
.cours-carte__avatar{ width:40px; height:40px; font-size:.85rem; flex:0 0 auto; }
.cours-carte__identite{ min-width:0; }
.cours-carte__pseudo{ display:block; font-weight:600; font-size:.92rem; }
.cours-carte__nom{
  display:block; color:var(--muted); font-size:.8rem;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.cours-carte__actions{ display:flex; gap:7px; }

/* =======================================================
   Fiche d'un cours
   ======================================================= */
.detail{ display:grid; gap:16px; padding:26px 0 80px; }

.detail__entete{ display:flex; align-items:flex-start; gap:20px; padding:24px; flex-wrap:wrap; }
.detail__prof{ flex:0 0 auto; }
.detail__ident{ flex:1 1 200px; min-width:0; }
.detail__titre{ font-size:1.5rem; font-weight:700; letter-spacing:-.02em; }
.detail__pseudo{ display:inline-block; margin-top:4px; font-weight:600; color:var(--orange-dark); }
.detail__pseudo:hover{ text-decoration:underline; }
.detail__nom{ color:var(--muted); font-size:.9rem; }
.detail__meta{
  margin-top:10px; display:flex; align-items:center; gap:9px; flex-wrap:wrap;
  color:var(--muted); font-size:.87rem;
}
.detail__tarif{
  flex:0 0 auto; display:flex; flex-direction:column; align-items:flex-end; gap:3px;
}
.detail__prix{ font-size:1.55rem; font-weight:700; letter-spacing:-.02em; }
.detail__prixNote{ color:var(--muted); font-size:.8rem; }
.detail__tarif .btn{ margin-top:9px; }

/* =======================================================
   Agenda
   ======================================================= */
.agenda__tete{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
}
.agenda__nav{ display:flex; align-items:center; gap:9px; }
.agenda__periode{ min-width:118px; text-align:center; font-size:.87rem; font-weight:600; }
.agenda__nav .btn:disabled{ opacity:.4; cursor:default; }

.agenda{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(112px,1fr)); gap:10px;
}
.agenda__jour{
  padding:12px 10px; border:1.5px solid var(--line); border-radius:12px; background:#fcfcfd;
}
.agenda__entete{ text-align:center; padding-bottom:9px; border-bottom:1px solid var(--line); }
.agenda__nomJour{ display:block; font-size:.82rem; font-weight:700; }
.agenda__date{ display:block; color:var(--muted); font-size:.76rem; }
.agenda__creneaux{ margin-top:10px; display:grid; gap:6px; }
.agenda__vide{ margin:0; color:var(--muted); font-size:.92rem; }

.creneau{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:8px 6px; border:1.5px solid var(--line); border-radius:9px;
  background:#fff; color:var(--ink);
  font-family:inherit; font-size:.88rem; font-weight:600; cursor:pointer;
  transition:border-color .15s, background .15s, color .15s;
}
.creneau:hover{ border-color:var(--orange); background:var(--orange-soft); color:var(--orange-dark); }
.creneau:focus-visible{ outline:3px solid var(--ink); outline-offset:2px; }
.creneau.is-choisi{
  border-color:var(--orange); background:var(--orange); color:#fff;
}
.creneau--passe, .creneau--pris{
  cursor:default; background:#f4f5f7; color:#9aa3ad; border-color:transparent; font-weight:500;
}
.creneau--passe{ text-decoration:line-through; }
.creneau--pris small{ font-size:.68rem; font-weight:600; text-transform:uppercase; letter-spacing:.03em; }

/* =======================================================
   Réservation
   ======================================================= */
.reserve__choix{ font-size:.95rem; color:var(--muted); }
.reserve__choix strong{ color:var(--ink); }
.reserve__actions{ margin-top:16px; }
.reserve__actions .btn:disabled{
  background:#e9ebee; color:#9aa3ad; cursor:not-allowed;
}
.reserve__message{ margin-top:12px; min-height:1.3em; font-size:.9rem; color:var(--orange-dark); }
.reserve__message a{ font-weight:600; text-decoration:underline; }

@media (max-width:640px){
  .agenda{ grid-template-columns:repeat(auto-fit,minmax(92px,1fr)); gap:8px; }
  .detail__tarif{ align-items:flex-start; flex-basis:100%; }
  .agenda__tete{ align-items:flex-start; flex-direction:column; }
  .agenda__nav{ width:100%; justify-content:space-between; }
}

/* =======================================================
   Filtres du catalogue
   ======================================================= */
.catalogue__tete{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
}
.catalogue__tete .section__sous-titre{ margin:44px 0 16px; }

.filtres__pastille{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:19px; height:19px; margin-left:7px; padding:0 5px;
  border-radius:999px; background:var(--orange); color:#fff;
  font-size:.72rem; font-weight:700; line-height:1;
}

.filtres{
  margin-bottom:18px; padding:18px;
  border:1.5px solid var(--line); border-radius:14px; background:#fcfcfd;
}
.filtres__grille{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:14px;
}
.filtres__champ{ display:grid; gap:6px; min-width:0; }
.filtres__champ > span{ font-size:.83rem; font-weight:600; }
.filtres__champ--large{ grid-column:1 / -1; }

.filtres select{
  height:40px; padding:0 10px;
  border:1.5px solid var(--line); border-radius:9px; background:#fff;
  font-family:inherit; font-size:.9rem; color:var(--ink); cursor:pointer; outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.filtres select:focus{ border-color:var(--orange); box-shadow:0 0 0 3px rgba(249,115,22,.15); }

.filtres__prix{ display:flex; align-items:center; gap:8px; }
.filtres__prix input{
  flex:1 1 0; min-width:0; height:40px; padding:0 10px;
  border:1.5px solid var(--line); border-radius:9px; background:#fff;
  font-family:inherit; font-size:.9rem; outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.filtres__prix input:focus{ border-color:var(--orange); box-shadow:0 0 0 3px rgba(249,115,22,.15); }
.filtres__unite{ color:var(--muted); font-weight:600; }

.filtres__jours{ display:flex; flex-wrap:wrap; gap:7px; }
.puce-jour{
  padding:8px 14px; border:1.5px solid var(--line); border-radius:999px;
  background:#fff; color:var(--muted);
  font-family:inherit; font-size:.85rem; font-weight:600; cursor:pointer;
  transition:border-color .15s, background .15s, color .15s;
}
.puce-jour:hover{ border-color:#cfd4da; }
.puce-jour.is-actif{ border-color:var(--orange); background:var(--orange); color:#fff; }

.filtres__pied{
  margin-top:16px; padding-top:14px; border-top:1px solid var(--line);
  display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap;
}
.filtres__champ--tri{ max-width:220px; flex:1 1 180px; }

/* =======================================================
   Onglets de la messagerie
   ======================================================= */
.onglets{
  display:flex; gap:4px; margin:22px 0 0;
  border-bottom:1.5px solid var(--line);
}
.onglet{
  display:flex; align-items:center; gap:8px;
  padding:11px 16px; border:0; border-bottom:2.5px solid transparent;
  background:transparent; color:var(--muted);
  font-family:inherit; font-size:.93rem; font-weight:600; cursor:pointer;
  transition:color .15s, border-color .15s;
}
.onglet:hover{ color:var(--ink); }
.onglet.is-actif{ color:var(--orange-dark); border-bottom-color:var(--orange); }
.onglet__compte{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:19px; height:19px; padding:0 5px; border-radius:999px;
  background:var(--orange); color:#fff;
  font-size:.72rem; font-weight:700; line-height:1;
}

/* rappel du créneau dans une demande de cours */
.bulle__cours{
  display:block; margin-bottom:7px; padding-bottom:7px;
  border-bottom:1px solid rgba(255,255,255,.35);
  font-size:.81rem; opacity:.95;
}
.bulle--eux .bulle__cours{ border-bottom-color:var(--line); color:var(--muted); }
.bulle--eux .bulle__cours strong{ color:var(--ink); }

/* =======================================================
   Mot pour le prof, avant paiement
   ======================================================= */
.reserve__mot{ margin-top:18px; max-width:560px; }
.reserve__mot textarea{ min-height:92px; }

@media (max-width:640px){
  .filtres__pied{ align-items:stretch; }
  .filtres__champ--tri{ max-width:none; }
  .catalogue__tete{ align-items:flex-start; }
  .catalogue__tete .section__sous-titre{ margin-bottom:0; }
  .onglet{ padding:11px 12px; font-size:.88rem; }
}

/* période de publication d'un cours */
.periode{ margin-top:14px; font-size:.88rem; color:var(--orange-dark); font-weight:600; }
.jour__dates{
  display:block; margin-top:3px;
  font-size:.78rem; font-weight:500; color:var(--muted);
}
.jour__bascule.is-checked .jour__dates{ color:var(--orange-dark); }
.cours-carte__periode{ font-size:.8rem; }


/* =======================================================
   ============  AJOUTS : BASE EN LIGNE, VISIO,
   ============  PANEL ADMIN
   ======================================================= */

/* ---------- Bandeau d'alerte en haut de page ---------- */
.barre-probleme{
  position:sticky; top:0; z-index:60;
  background:#fef2f2; color:#991b1b;
  border-bottom:1px solid #fecaca;
  padding:11px 24px; font-size:14px; font-weight:600; text-align:center;
}

/* ---------- Notes ---------- */
.note--attention{
  background:#fffbeb; border:1px solid #fde68a; color:#78350f;
  border-radius:12px; padding:13px 16px; font-size:14px; line-height:1.5;
}

/* ---------- Lien en forme de bouton ---------- */
.lien-bouton{
  background:none; border:0; padding:0; cursor:pointer;
  color:var(--orange-dark); font-size:14px; text-decoration:underline;
}
.form__oubli{ margin-top:12px; text-align:center; }

/* ---------- Badges ---------- */
.badge--attente{ background:#f1f5f9; color:var(--muted); }
.badge--a_payer{ background:#fff7ed; color:#9a3412; }
.badge--payee,
.badge--terminee{ background:#ecfdf5; color:#065f46; }
.badge--annulee,
.badge--rejete{ background:#fef2f2; color:#991b1b; }
.badge--admin{ background:#eef2ff; color:#3730a3; }
.badge--ouvert{ background:#fff7ed; color:#9a3412; }
.badge--en_cours{ background:#eff6ff; color:#1e40af; }
.badge--clos{ background:#f1f5f9; color:var(--muted); }

.nav__link--admin{ font-weight:700; }


/* =======================================================
   MES COURS  (page Compte)
   ======================================================= */
.cours-ligne{
  display:flex; align-items:flex-start; gap:14px;
  padding:16px 0; border-top:1px solid var(--line);
}
.cours-ligne:first-child{ border-top:0; padding-top:0; }
.cours-ligne__avatar{ flex:0 0 auto; }
.cours-ligne__corps{ flex:1 1 auto; min-width:0; }
.cours-ligne__titre{ font-weight:700; }
.cours-ligne__titre a{ color:var(--orange-dark); }
.cours-ligne__rôle{ font-weight:400; color:var(--muted); font-size:14px; }
.cours-ligne__meta{ color:var(--muted); font-size:14px; margin-top:3px; }
.cours-ligne__mot{
  margin-top:8px; padding:9px 12px; background:#f8fafc;
  border-radius:10px; font-size:14px; font-style:italic; color:var(--muted);
}
.cours-ligne__actions{
  flex:0 0 auto; display:flex; flex-direction:column; gap:7px; align-items:flex-end;
}

@media (max-width:640px){
  .cours-ligne{ flex-wrap:wrap; }
  .cours-ligne__actions{ flex-direction:row; width:100%; justify-content:flex-start; }
}


/* =======================================================
   VISIO
   ======================================================= */
.page--visio{ padding-bottom:32px; }

.attente{ max-width:560px; margin:48px auto; text-align:center; padding:36px 28px; }
.attente__pastille{
  display:block; width:13px; height:13px; margin:0 auto 18px;
  border-radius:50%; background:var(--orange);
  box-shadow:0 0 0 0 rgba(249,115,22,.55);
  animation:pulse 2s infinite;
}
@keyframes pulse{
  70%{ box-shadow:0 0 0 15px rgba(249,115,22,0); }
  100%{ box-shadow:0 0 0 0 rgba(249,115,22,0); }
}
@media (prefers-reduced-motion:reduce){
  .attente__pastille{ animation:none; }
}
.attente__titre{ font-size:24px; font-weight:800; margin-bottom:12px; }
.attente__compte{ font-size:30px; font-weight:800; color:var(--orange-dark); margin-bottom:8px; }
.attente__detail{ color:var(--muted); margin-bottom:20px; }

.visio__tete{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; flex-wrap:wrap; margin:22px 0 14px;
}
.visio__ident{ display:flex; align-items:center; gap:12px; }
.visio__titre{ font-size:19px; font-weight:800; }
.visio__sous{ color:var(--muted); font-size:14px; }
.visio__reglages{ display:flex; align-items:center; gap:16px; }

.visio__cadre{
  position:relative; width:100%; height:min(72vh,700px);
  background:#0f1216; border-radius:16px; overflow:hidden;
  border:1px solid var(--line);
}
.visio__cadre iframe{ width:100%; height:100%; border:0; display:block; }
.visio__chargement{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:#94a3b8; font-size:15px;
}
.visio__aide{ margin-top:12px; color:var(--muted); font-size:13px; }

/* l'essai à deux (visio.html?demo=1) */
.visio__essai{ margin-bottom:14px; line-height:1.55; }
.visio .note + .note{ margin-top:10px; }
.visio__essai p + p{ margin-top:8px; }
.visio__essai .btn{ margin-left:6px; vertical-align:middle; }
.visio__essai a{ color:inherit; font-weight:700; }

/* interrupteur « mode musique » */
.bascule{ display:flex; align-items:center; gap:10px; cursor:pointer; }
.bascule input{ position:absolute; opacity:0; width:0; height:0; }
.bascule__piste{
  position:relative; flex:0 0 auto; width:42px; height:24px;
  background:#cbd5e1; border-radius:999px; transition:background .18s;
}
.bascule__piste::after{
  content:""; position:absolute; top:3px; left:3px; width:18px; height:18px;
  background:#fff; border-radius:50%; transition:transform .18s;
  box-shadow:0 1px 3px rgba(0,0,0,.25);
}
.bascule input:checked + .bascule__piste{ background:var(--orange); }
.bascule input:checked + .bascule__piste::after{ transform:translateX(18px); }
.bascule input:focus-visible + .bascule__piste{ outline:3px solid var(--ink); outline-offset:2px; }
.bascule__texte{ font-size:14px; font-weight:600; line-height:1.25; }
.bascule__texte small{ display:block; font-weight:400; color:var(--muted); font-size:12px; }


/* =======================================================
   PANEL ADMIN
   ======================================================= */
.page--large{ max-width:1320px; }
.admin__titre{ font-size:26px; font-weight:800; margin:28px 0 20px; }

/* chiffres */
.stats{
  display:grid; gap:14px; margin-bottom:26px;
  grid-template-columns:repeat(auto-fit,minmax(168px,1fr));
}
.stat{
  background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 18px;
}
.stat--fort{ background:var(--orange-soft); border-color:#fed7aa; }
.stat--alerte{ background:#fef2f2; border-color:#fecaca; }
.stat__valeur{ display:block; font-size:26px; font-weight:800; line-height:1.2; }
.stat__nom{ display:block; color:var(--muted); font-size:13px; margin-top:2px; }
.stat__detail{ display:block; color:var(--muted); font-size:12px; margin-top:5px; }

/* onglets */
.onglets{ display:flex; gap:6px; flex-wrap:wrap; border-bottom:1px solid var(--line); margin-bottom:20px; }
.onglet{
  background:none; border:0; border-bottom:2px solid transparent;
  padding:11px 15px; cursor:pointer; color:var(--muted);
  font-weight:600; font-size:15px;
}
.onglet:hover{ color:var(--ink); }
.onglet.is-actif{ color:var(--orange-dark); border-bottom-color:var(--orange); }
.onglet__pastille{
  display:inline-block; min-width:19px; padding:0 5px; margin-left:5px;
  background:#dc2626; color:#fff; border-radius:999px;
  font-size:11px; font-weight:700; text-align:center;
}

.admin__barre{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.filtres-rapides{ display:flex; gap:7px; flex-wrap:wrap; }
.filtres-rapides .chip{ cursor:pointer; }
.filtres-rapides .chip.is-actif{
  background:var(--orange); color:#fff; border-color:var(--orange);
}
.search--compacte{ max-width:400px; margin:0; }

/* tableaux */
.tableau-cadre{
  border:1px solid var(--line); border-radius:14px; overflow-x:auto; background:#fff;
}
.tableau{ width:100%; border-collapse:collapse; font-size:14px; }
.tableau th{
  text-align:left; padding:12px 14px; background:#f8fafc;
  color:var(--muted); font-size:12px; font-weight:700;
  text-transform:uppercase; letter-spacing:.04em; white-space:nowrap;
}
.tableau td{ padding:12px 14px; border-top:1px solid var(--line); vertical-align:middle; }
.tableau td small{ display:block; color:var(--muted); font-size:12px; }
.tableau .num{ text-align:right; white-space:nowrap; }
.tableau .centre{ text-align:center; white-space:nowrap; }
.tableau .fort{ font-weight:700; color:var(--orange-dark); }
.tableau tr:hover td{ background:#fcfcfd; }
.tableau a{ color:var(--orange-dark); }
.tableau .est-annulee td{ opacity:.5; }
.tableau .est-suspendu td{ background:#fef2f2; }
.tableau .est-sensible td{ background:#fffbeb; }
.tableau__legende{ padding:12px 14px; color:var(--muted); font-size:12px; border-top:1px solid var(--line); }

.pastille{ font-size:15px; letter-spacing:2px; }
.pastille--ok{ color:#16a34a; }
.pastille--non{ color:#cbd5e1; }

/* signalements */
.signalement{
  background:#fff; border:1px solid var(--line); border-left:3px solid var(--orange);
  border-radius:12px; padding:16px 18px; margin-bottom:12px;
}
.signalement--clos,
.signalement--rejete{ border-left-color:var(--line); opacity:.65; }
.signalement__tete{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:7px; }
.signalement__date{ color:var(--muted); font-size:13px; margin-left:auto; }
.signalement__qui{ font-size:14px; }
.signalement__qui a{ color:var(--orange-dark); font-weight:600; }
.signalement__details{
  margin-top:9px; padding:9px 12px; background:#f8fafc;
  border-radius:10px; font-size:14px; font-style:italic;
}
.signalement__note{ margin-top:8px; font-size:13px; color:var(--muted); }
.signalement__actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:13px; align-items:center; }

/* fenêtre modale */
.modale{ position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; padding:24px; }
.modale[hidden]{ display:none; }
.modale__fond{ position:absolute; inset:0; background:rgba(15,18,22,.55); }
.modale__boite{
  position:relative; background:#fff; border-radius:16px;
  width:100%; max-width:660px; max-height:86vh;
  display:flex; flex-direction:column; box-shadow:0 24px 60px rgba(0,0,0,.28);
}
.modale__boite--etroite{ max-width:480px; }
.modale__tete{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 22px; border-bottom:1px solid var(--line);
}
.modale__titre{ font-size:17px; font-weight:800; }
.modale__fermer{
  background:none; border:0; font-size:26px; line-height:1;
  cursor:pointer; color:var(--muted); padding:0 4px;
}
.modale__corps{ padding:20px 22px; overflow-y:auto; flex:1 1 auto; }
.modale__pied{
  padding:14px 22px; border-top:1px solid var(--line);
  display:flex; gap:10px; justify-content:flex-end; align-items:center; flex-wrap:wrap;
}
.modale__pied .bloc__hint{ margin:0; margin-right:auto; }

@media (max-width:640px){
  .admin__titre{ font-size:21px; }
  .stat__valeur{ font-size:21px; }
  .visio__cadre{ height:64vh; }
}


/* =======================================================
   ============  NOTATION ET AVIS
   ======================================================= */

/* ---------- étoiles en lecture ---------- */
.etoiles{ display:inline-flex; gap:1px; line-height:1; vertical-align:middle; }
.etoile{ color:#d8dde3; font-size:16px; }
.etoile.est-pleine{ color:#f5a524; }
.etoile.est-demi{
  background:linear-gradient(90deg,#f5a524 50%,#d8dde3 50%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.etoiles--sm .etoile{ font-size:13px; }
.etoiles--xs .etoile{ font-size:11px; }

.note-resume{ display:inline-flex; align-items:center; gap:6px; font-size:14px; }
.note-resume strong{ font-weight:700; }
.note-resume__nb{ color:var(--muted); font-size:13px; }
.note-vide{ color:var(--muted); font-size:13px; font-style:italic; }

.profil__note,
.detail__note{ margin-top:6px; display:block; }

/* ---------- résumé des notes ---------- */
.avis-resume{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding:16px 18px; margin-bottom:18px;
  background:var(--orange-soft); border:1px solid #fed7aa; border-radius:14px;
}
.avis-resume > strong{ font-size:26px; font-weight:800; line-height:1; }
.avis-resume > span{ color:var(--muted); font-size:14px; }
.avis-resume__detail{
  list-style:none; margin:0; padding:0; margin-left:auto;
  display:flex; gap:18px; flex-wrap:wrap;
}
.avis-resume__detail li{ display:flex; flex-direction:column; font-size:13px; }
.avis-resume__detail span{ color:var(--muted); }
.avis-resume__detail strong{ font-size:15px; }

/* ---------- un avis ---------- */
.avis{ padding:16px 0; border-top:1px solid var(--line); }
.avis:first-child{ border-top:0; padding-top:0; }
.avis__tete{ display:flex; align-items:center; gap:11px; }
.avis__avatar{ flex:0 0 auto; width:38px; height:38px; font-size:14px; }
.avis__ident{ flex:1 1 auto; min-width:0; }
.avis__auteur{ font-weight:700; color:var(--orange-dark); display:block; }
.avis__meta{ color:var(--muted); font-size:13px; }
.avis__note{ display:flex; align-items:center; gap:6px; flex:0 0 auto; }
.avis__texte{ margin-top:10px; line-height:1.55; }
.avis__detail{
  list-style:none; margin:11px 0 0; padding:0;
  display:flex; gap:16px; flex-wrap:wrap;
}
.avis__detail li{ display:flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); }
.avis__conseils{
  margin-top:12px; padding:12px 14px;
  background:#f0f9ff; border:1px solid #bae6fd; border-radius:11px;
}
.avis__conseils strong{ display:block; font-size:13px; color:#075985; margin-bottom:5px; }
.avis__conseils p{ font-size:14px; line-height:1.5; }
.avis__conseils small{ display:block; margin-top:7px; color:var(--muted); font-size:12px; }
.avis__signal{
  margin-top:10px; font-size:13px; color:#991b1b;
  background:#fef2f2; border-radius:9px; padding:8px 11px;
}

/* ---------- le formulaire de notation ---------- */
.notation{
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:22px 24px; margin:14px 0;
}
.notation__titre{ font-size:18px; font-weight:800; margin-bottom:7px; }
.notation__sous{ color:var(--muted); font-size:14px; margin-bottom:20px; }
.notation__criteres{ display:grid; gap:18px; margin-bottom:20px; }

.critere__tete{ display:flex; align-items:baseline; gap:10px; margin-bottom:5px; }
.critere__nom{ font-weight:700; }
.critere__valeur{ color:var(--orange-dark); font-size:13px; font-weight:600; }
.critere__etoiles{ display:flex; gap:3px; }
.critere__aide{ color:var(--muted); font-size:13px; margin-top:5px; }

.etoile-btn{
  background:none; border:0; cursor:pointer; padding:2px 3px;
  font-size:29px; line-height:1; color:#d8dde3;
  transition:transform .1s, color .12s;
}
.etoile-btn:hover{ transform:scale(1.12); }
.etoile-btn.est-pleine,
.etoile-btn.est-survol{ color:#f5a524; }
.etoile-btn:focus-visible{ outline:3px solid var(--ink); outline-offset:2px; border-radius:5px; }

.notation__recommande{ margin:4px 0 18px; }
.notation__actions{
  display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;
  margin-top:18px; padding-top:16px; border-top:1px solid var(--line);
}
.notation__place{ margin-bottom:14px; }

.notation--merci{ text-align:center; padding:34px 24px; }
.notation__coche{
  display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; margin-bottom:14px;
  background:#ecfdf5; color:#059669; border-radius:50%; font-size:26px; font-weight:700;
}

/* ---------- fin de cours (page visio) ---------- */
.fin-cours{ max-width:640px; margin:44px auto; padding:30px 28px; }
.fin-cours__titre{ font-size:23px; font-weight:800; margin-bottom:7px; text-align:center; }
.fin-cours__sous{ color:var(--muted); text-align:center; margin-bottom:22px; }

/* ---------- demandes en attente ---------- */
.demandes{
  background:var(--orange-soft); border:1px solid #fed7aa;
  border-radius:14px; padding:18px 20px; margin-bottom:20px;
}
.demandes__titre{ font-size:16px; font-weight:800; margin-bottom:5px; }
.demandes__aide{ color:var(--muted); font-size:13px; margin-bottom:14px; }
.demandes .cours-ligne{ border-top-color:#fed7aa; }
.demandes .cours-ligne:first-of-type{ border-top:0; }

.cours-ligne--demande .cours-ligne__delai{ font-size:13px; color:#9a3412; margin-top:6px; }
.cours-ligne--passe{ opacity:.9; }
.cours-ligne__repute{ font-size:13px; color:var(--muted); margin-top:6px; display:flex; gap:6px; align-items:center; flex-wrap:wrap; }

/* créneau demandé mais pas encore confirmé */
.creneau--attente{
  background:#fff7ed; color:#9a3412; border-color:#fed7aa; cursor:not-allowed;
}

/* notes dans les cartes du catalogue */
.cours-carte__pseudo + .note-resume{ margin-top:3px; }

/* colonne de texte dans les tableaux du panel */
.tableau .cellule-texte{ max-width:320px; }
.tableau .cellule-texte small{ color:#991b1b; }

@media (max-width:640px){
  .notation{ padding:18px 16px; }
  .etoile-btn{ font-size:25px; }
  .avis-resume__detail{ margin-left:0; width:100%; }
}


/* =======================================================
   ============  CORRECTIONS MOBILE
   ======================================================= */

/* Une grille ou une boîte flexible refuse par défaut de devenir
   plus étroite que son contenu (« min-width:auto »). Un seul mot
   trop long, et toute la page déborde vers la droite, c'est ce
   qui coupait la fiche d'un cours sur téléphone.
   « min-width:0 » lève ce blocage : le contenu se replie au lieu
   de pousser la page. */
.detail,
.detail > *,
.detail__entete,
.detail__ident,
.detail__tarif,
.bloc__corps,
.messagerie,
.fil,
.fil__corps,
.cours-ligne,
.cours-ligne__corps,
.avis,
.avis__ident,
.notation,
.visio__tete,
.visio__ident{ min-width:0; }

/* Les mots très longs (adresse, pseudo à rallonge) se coupent
   plutôt que de pousser la page. */
.detail__titre,
.detail__nom,
.cours-ligne__titre,
.avis__texte,
.bulle,
.convo__extrait{ overflow-wrap:anywhere; }

/* L'agenda d'une semaine ne tient pas sur un écran de téléphone.
   Plutôt que de le comprimer jusqu'à l'illisible, on le fait
   défiler horizontalement, c'est ce qu'on attend d'un agenda. */
@media (max-width:640px){
  .agenda{
    display:flex; gap:8px; overflow-x:auto;
    padding-bottom:8px; scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }
  .agenda__jour{
    flex:0 0 108px; scroll-snap-align:start;
  }
  .detail__entete{ padding:18px; }
  .detail__titre{ font-size:1.28rem; }
}

/* Les tableaux du panel défilent au lieu de casser la page. */
.tableau-cadre{ max-width:100%; }

/* Les deux boutons « ← Semaine / Semaine → » et la date entre eux
   ne tiennent pas côte à côte sur un petit téléphone : on les
   laisse passer à la ligne. */
@media (max-width:640px){
  .agenda__nav{ flex-wrap:wrap; gap:8px; }
  .agenda__periode{ order:-1; width:100%; text-align:center; }
  .agenda__nav .btn{ flex:1 1 auto; min-width:0; }
}

/* Les champs de formulaire ne poussent jamais la page : sur les
   plus petits écrans, un champ garde sa largeur minimale par
   défaut (souvent ~150px) et déborde des marges. */
input, select, textarea{ max-width:100%; min-width:0; }
.field, .field__duo, .form{ min-width:0; }

@media (max-width:360px){
  .page{ padding-left:16px; padding-right:16px; }
  .field__duo{ grid-template-columns:1fr; }
}

/* Sur un très petit écran (iPhone SE et compagnie), un libellé
   long doit se couper plutôt que d'élargir la page. */
label, .field__hint, .field__erreur, .bloc__hint{ overflow-wrap:anywhere; min-width:0; }
.pwd{ min-width:0; }


/* =======================================================
   ============  PAGES PUBLIQUES, ACCESSIBILITÉ,
   ============  PIED DE PAGE
   ======================================================= */

/* ---------- Lien d'évitement ----------
   Invisible à la souris, il apparaît dès qu'on navigue au
   clavier : la première tabulation permet de sauter le menu
   au lieu de le retraverser sur chaque page. */
.lien-evitement{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--ink); color:#fff; padding:12px 18px;
  border-radius:0 0 10px 0; font-weight:600;
}
.lien-evitement:focus{ left:0; }

/* Toute cible tactile fait au moins 44 px : en dessous, on
   rate le bouton un doigt sur trois. */
@media (pointer:coarse){
  .btn, .chip, .onglet, .creneau, .etoile-btn,
  .modale__fermer, .lien-bouton, .iconbtn{ min-height:44px; }
  .creneau{ display:flex; align-items:center; justify-content:center; }
  .nav__link, .espaces__lien{ min-height:44px; display:inline-flex; align-items:center; }
}

/* ---------- Accueil ---------- */
.accueil-hero{ padding:56px 0 40px; text-align:center; max-width:760px; margin:0 auto; }
.accueil-hero__titre{
  font-size:clamp(1.9rem, 5.2vw, 3rem); font-weight:800;
  letter-spacing:-.03em; line-height:1.12;
}
.accueil-hero__sous{
  margin-top:18px; font-size:clamp(1rem, 2.2vw, 1.16rem);
  color:var(--muted); line-height:1.6;
}
.accueil-hero__actions{
  margin-top:28px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap;
}
.accueil-hero__preuve{ margin-top:18px; color:var(--muted); font-size:.9rem; }
.btn--lg{ padding:13px 26px; font-size:1.02rem; }
.chips--centre{ justify-content:center; margin-top:26px; }
.accueil-hero--instrument{ text-align:left; margin:0; max-width:860px; }
.accueil-hero--instrument .accueil-hero__actions{ justify-content:flex-start; }

.section__titre{
  font-size:clamp(1.3rem, 3vw, 1.7rem); font-weight:800;
  letter-spacing:-.02em; margin-bottom:8px;
}
.section__sous{ color:var(--muted); margin-bottom:20px; }
.texte-large{ font-size:1.02rem; line-height:1.65; max-width:70ch; color:var(--ink); }

/* ---------- Étapes ---------- */
.etapes{ padding:44px 0; }
.etapes__liste{
  list-style:none; margin:22px 0 0; padding:0;
  display:grid; gap:20px; grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  counter-reset:etape;
}
.etape{
  background:#fff; border:1px solid var(--line); border-radius:16px; padding:24px;
}
.etape__num{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%;
  background:var(--orange); color:#fff; font-weight:800; margin-bottom:12px;
}
.etape__titre{ font-size:1.06rem; font-weight:700; margin-bottom:7px; }
.etape p{ color:var(--muted); line-height:1.6; }

/* ---------- Atouts ---------- */
.atouts{ padding:44px 0; }
.atouts__grille{
  display:grid; gap:20px; margin-top:22px;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}
.atout{
  padding:22px 24px; background:#fcfcfd;
  border:1px solid var(--line); border-radius:16px;
}
.atout__titre{ font-size:1.04rem; font-weight:700; margin-bottom:8px; }
.atout p{ color:var(--muted); line-height:1.62; }

/* ---------- Appel aux professeurs ---------- */
.appel-prof{
  margin:44px 0; padding:36px 32px;
  background:var(--orange-soft); border:1px solid #fed7aa; border-radius:18px;
}
.appel-prof__texte{ max-width:66ch; }
.appel-prof p{ color:var(--muted); line-height:1.62; margin:10px 0 20px; }

/* ---------- Recherche de membres ---------- */
.accueil-recherche{ padding:44px 0; }

/* ---------- Questions fréquentes ---------- */
.faq{ padding:44px 0 60px; max-width:800px; }
.faq__item{
  border-bottom:1px solid var(--line); padding:4px 0;
}
.faq__item summary{
  cursor:pointer; padding:15px 0; font-weight:600; list-style:none;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.faq__item summary::-webkit-details-marker{ display:none; }
.faq__item summary::after{
  content:"+"; font-size:1.3rem; color:var(--orange-dark);
  flex:0 0 auto; transition:transform .18s;
}
.faq__item[open] summary::after{ transform:rotate(45deg); }
.faq__item summary:hover{ color:var(--orange-dark); }
.faq__item p{ padding:0 0 16px; color:var(--muted); line-height:1.65; max-width:70ch; }

/* ---------- Fil d'Ariane ---------- */
.fil-ariane{
  padding:20px 0 0; font-size:.86rem; color:var(--muted);
  display:flex; gap:7px; flex-wrap:wrap; align-items:center;
}
.fil-ariane a{ color:var(--orange-dark); }
.fil-ariane a:hover{ text-decoration:underline; }

.bloc-instrument{ padding:36px 0; border-top:1px solid var(--line); }
.cours-grille{
  display:grid; gap:16px; margin-top:8px;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
}

/* ---------- Textes légaux ---------- */
.texte-legal{ max-width:78ch; padding:32px 0 72px; }
.texte-legal h1{ font-size:clamp(1.6rem,4vw,2.1rem); font-weight:800; letter-spacing:-.02em; }
.texte-legal h2{
  font-size:1.16rem; font-weight:700; margin:34px 0 12px;
  padding-top:20px; border-top:1px solid var(--line);
}
.texte-legal p{ line-height:1.68; margin-bottom:13px; }
.texte-legal__maj{ color:var(--muted); font-size:.88rem; margin-bottom:24px; }
.texte-legal__note{ color:var(--muted); font-size:.88rem; font-style:italic; }
.texte-legal .note{ margin:20px 0; }
.liste-nette{ margin:0 0 16px; padding-left:22px; line-height:1.68; }
.liste-nette li{ margin-bottom:8px; }
.tableau--legal{ margin:16px 0 20px; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.tableau--legal td{ vertical-align:top; }
.lien-brut{ color:var(--orange-dark); }
.texte-legal code{
  background:#f1f5f9; padding:2px 6px; border-radius:5px; font-size:.9em;
}

/* ---------- Pied de page ---------- */
.footer__cols{
  display:grid; gap:28px; padding:40px 0 28px;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
}
.footer__col{ display:flex; flex-direction:column; gap:9px; align-items:flex-start; }
.footer__marque{ font-weight:800; font-size:1.1rem; }
.footer__baseline{ color:var(--muted); font-size:.88rem; line-height:1.55; }
.footer__titre{
  font-weight:700; font-size:.8rem; text-transform:uppercase;
  letter-spacing:.05em; color:var(--muted);
}
.footer__col a{ color:var(--ink); font-size:.9rem; }
.footer__col a:hover{ color:var(--orange-dark); text-decoration:underline; }
.footer__bas{
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
  padding:18px 0 28px; border-top:1px solid var(--line);
  color:var(--muted); font-size:.84rem;
}
.footer__cookies{ color:#047857; font-weight:600; }

@media (max-width:640px){
  .accueil-hero{ padding:36px 0 28px; }
  .appel-prof{ padding:26px 20px; }
  .texte-legal h2{ font-size:1.06rem; }
}

/* Un bouton dont le libellé est long ne doit pas élargir la page :
   il passe à la ligne. */
.btn{ max-width:100%; }
@media (max-width:640px){
  .btn--lg{ white-space:normal; text-align:center; line-height:1.35; }
  .accueil-hero__actions .btn{ width:100%; }
}

/* Les tableaux des pages légales ont quatre colonnes : ils ne
   tiennent pas sur un téléphone. On les fait défiler
   horizontalement plutôt que de les écraser. */
@media (max-width:820px){
  .tableau--legal{
    display:block; overflow-x:auto; white-space:nowrap;
    -webkit-overflow-scrolling:touch;
  }
  .tableau--legal td, .tableau--legal th{ white-space:normal; min-width:130px; }
}


/* =======================================================
   ============  AIDE GUIDÉE
   ======================================================= */

.iconbtn--aide{
  background:none; border:0; cursor:pointer; color:inherit;
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px; border-radius:10px;
}
.iconbtn--aide:hover{ background:rgba(255,255,255,.18); }

.aide__intro{ color:var(--muted); font-size:.92rem; margin-bottom:18px; }

.aide__etape{
  background:var(--orange-soft); border:1px solid #fed7aa;
  border-radius:14px; padding:20px 22px; min-height:180px;
}
.aide__num{
  display:inline-block; font-size:.76rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.06em;
  color:var(--orange-dark); margin-bottom:9px;
}
.aide__titre{ font-size:1.08rem; font-weight:800; margin-bottom:9px; }
.aide__texte{ line-height:1.65; }

.aide__points{
  display:flex; gap:7px; justify-content:center; margin-top:18px;
}
.aide__point{
  width:9px; height:9px; padding:0; border:0; border-radius:50%;
  background:#d8dde3; cursor:pointer; transition:background .15s, transform .15s;
}
.aide__point:hover{ background:#b9c1cb; }
.aide__point.est-actif{ background:var(--orange); transform:scale(1.3); }

.aide__jamais{
  display:flex; align-items:center; gap:7px; margin-right:auto;
  color:var(--muted); font-size:.82rem; cursor:pointer;
}
.aide__jamais input{ width:15px; height:15px; }

/* L'élément dont parle l'étape en cours.
   Il n'a plus besoin d'être remonté par-dessus quoi que ce soit :
   c'est le halo qui s'ouvre autour de lui. Voir plus bas. */
.est-designe{
  position:relative;
  border-radius:12px;
}


/* =======================================================
   « VOTRE COURS COMMENCE »
   Le bandeau discret, puis la grande fenêtre.
   Voir js/rappel-visio.js pour le déroulé minute par minute.
   ======================================================= */

/* ---------- le bandeau, dix minutes avant ---------- */
.rappel-bandeau{
  position:fixed; left:50%; bottom:20px; z-index:60;
  display:flex; align-items:center; gap:13px;
  max-width:min(620px, calc(100vw - 24px));
  padding:12px 14px 12px 18px;
  border-radius:999px;
  background:#111826; color:#fff;
  box-shadow:0 18px 45px rgba(8,12,20,.34);
  font-size:.92rem;
  transform:translate(-50%, 130%);
  opacity:0;
  transition:transform .42s cubic-bezier(.16,1,.3,1), opacity .3s;
}
.rappel-bandeau.is-visible{ transform:translate(-50%, 0); opacity:1; }

.rappel-bandeau__point{
  flex:0 0 auto; width:9px; height:9px; border-radius:50%;
  background:#4ade80; box-shadow:0 0 0 0 rgba(74,222,128,.6);
  animation:pulse-vert 2.4s infinite;
}
@keyframes pulse-vert{
  70%{  box-shadow:0 0 0 11px rgba(74,222,128,0); }
  100%{ box-shadow:0 0 0 0  rgba(74,222,128,0); }
}

.rappel-bandeau__texte{ flex:1 1 auto; min-width:0; line-height:1.35; }
.rappel-bandeau__texte strong{ color:#fdba74; }
.rappel-bandeau__minuteur{ display:block; color:#98a2b3; font-size:.82rem; }

.rappel-bandeau__fermer{
  flex:0 0 auto;
  width:30px; height:30px; border:0; border-radius:50%;
  background:transparent; color:#98a2b3; font-size:1.3rem; line-height:1; cursor:pointer;
  transition:background .15s, color .15s;
}
.rappel-bandeau__fermer:hover{ background:rgba(255,255,255,.12); color:#fff; }

@media (max-width:640px){
  .rappel-bandeau{
    left:12px; right:12px; bottom:12px; max-width:none;
    border-radius:16px; flex-wrap:wrap;
    transform:translate(0, 130%);
  }
  .rappel-bandeau.is-visible{ transform:translate(0, 0); }
  .rappel-bandeau__texte{ flex:1 1 100%; order:1; }
  .rappel-bandeau__point{ order:0; }
  .rappel-bandeau__fermer{ order:0; margin-left:auto; }
  .rappel-bandeau .btn{ order:2; flex:1 1 100%; }
}

/* ---------- la grande fenêtre, une minute avant ---------- */
.rappel{
  position:fixed; inset:0; z-index:200;
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  opacity:0; pointer-events:none;
  transition:opacity .26s ease;
}
.rappel.is-visible{ opacity:1; pointer-events:auto; }

.rappel__fond{
  position:absolute; inset:0;
  background:rgba(10,14,22,.74);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}

.rappel__boite{
  position:relative;
  width:100%; max-width:460px;
  padding:34px 30px 28px;
  border-radius:24px;
  background:linear-gradient(170deg, #1b2331 0%, #121824 100%);
  color:#fff; text-align:center;
  box-shadow:0 30px 80px rgba(5,8,14,.6), inset 0 1px 0 rgba(255,255,255,.08);
  overflow:hidden;
  transform:scale(.9) translateY(14px);
  transition:transform .42s cubic-bezier(.2,1.25,.4,1);
}
.rappel.is-visible .rappel__boite{ transform:scale(1) translateY(0); }

/* la lueur orange qui respire derrière le titre */
.rappel__halo{
  position:absolute; top:-120px; left:50%; transform:translateX(-50%);
  width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle, rgba(249,115,22,.42) 0%, rgba(249,115,22,0) 68%);
  pointer-events:none;
  animation:halo 3.6s ease-in-out infinite;
}
@keyframes halo{
  0%,100%{ opacity:.75; transform:translateX(-50%) scale(1); }
  50%    { opacity:1;   transform:translateX(-50%) scale(1.13); }
}

.rappel__sur-titre{
  position:relative;
  font-size:.76rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase;
  color:#fdba74;
}
.rappel__titre{
  position:relative;
  margin-top:6px;
  font-size:clamp(1.65rem, 6vw, 2.1rem); font-weight:800; letter-spacing:-.02em;
}

.rappel__avec{
  position:relative;
  margin-top:18px;
  display:flex; align-items:center; justify-content:center; gap:12px;
  text-align:left;
}
.rappel__avatar{
  width:46px; height:46px; font-size:1rem;
  box-shadow:0 0 0 2px rgba(255,255,255,.16);
}
.rappel__avec small{ display:block; color:#98a2b3; font-size:.78rem; }
.rappel__avec strong{ font-size:1.02rem; }

.rappel__minuteur{
  position:relative;
  margin:22px auto 0; padding:14px 10px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.rappel__chiffres{
  display:block;
  font-size:2.5rem; font-weight:800; letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
}
.rappel__legende{ display:block; margin-top:2px; color:#98a2b3; font-size:.85rem; }

.rappel__minuteur--maintenant{
  background:rgba(249,115,22,.14);
  box-shadow:inset 0 0 0 1px rgba(249,115,22,.4);
  animation:battement 1.6s ease-in-out infinite;
}
.rappel__minuteur--maintenant .rappel__chiffres{ color:#fdba74; font-size:1.9rem; }
@keyframes battement{
  50%{ box-shadow:inset 0 0 0 1px rgba(249,115,22,.85), 0 0 22px rgba(249,115,22,.28); }
}

.rappel__actions{
  position:relative;
  margin-top:22px; display:grid; gap:9px;
}
.btn--xl{ height:56px; font-size:1.05rem; font-weight:700; }

.rappel__rejoindre{
  box-shadow:0 10px 26px rgba(249,115,22,.42);
  transition:transform .18s cubic-bezier(.2,1.2,.4,1), box-shadow .18s, background .15s;
}
.rappel__rejoindre:hover{
  transform:translateY(-2px) scale(1.015);
  box-shadow:0 16px 34px rgba(249,115,22,.55);
}
.rappel__actions .btn--ghost{ color:#98a2b3; }
.rappel__actions .btn--ghost:hover{ background:rgba(255,255,255,.1); color:#fff; }

.rappel__lien{
  position:relative;
  margin-top:16px; padding-top:14px;
  border-top:1px solid rgba(255,255,255,.1);
  color:#7d8794; font-size:.78rem; line-height:1.5; word-break:break-all;
}
.rappel__lien a{ color:#fdba74; text-decoration:underline; }

.rappel__note{ position:relative; margin-top:10px; color:#7d8794; font-size:.8rem; }

.rappel :where(a,button):focus-visible{ outline:3px solid #fdba74; outline-offset:3px; }

@media (max-width:400px){
  .rappel__boite{ padding:28px 20px 22px; }
  .rappel__chiffres{ font-size:2.1rem; }
}


/* =======================================================
   PAIEMENT
   ======================================================= */

/* l'encart « il reste à valider votre carte » */
.a-payer{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  margin-bottom:18px; padding:16px 18px;
  border:1.5px solid #fed7aa; border-radius:14px;
  background:var(--orange-soft);
}
.a-payer__texte{ flex:1 1 260px; min-width:0; font-size:.92rem; line-height:1.5; }
.a-payer__texte strong{ display:block; color:var(--orange-dark); }
.a-payer__minuteur{
  display:block; margin-top:5px;
  font-size:.85rem; font-weight:600; color:var(--orange-dark);
  font-variant-numeric:tabular-nums;
}
.a-payer__erreur{ flex:1 1 100%; margin:0; color:#b42318; font-size:.86rem; }
.a-payer--expire{ border-color:var(--line); background:#f7f8f9; opacity:.7; }
.a-payer--expire .a-payer__texte strong{ color:var(--muted); }

/* le bouton qui respire doucement pour attirer l'oeil */
.btn--pulse{ animation:respire-btn 2.6s ease-in-out infinite; }
@keyframes respire-btn{
  0%,100%{ box-shadow:0 0 0 0 rgba(249,115,22,.5); }
  55%    { box-shadow:0 0 0 12px rgba(249,115,22,0); }
}

/* l'état du compte du prof */
.paiement-etat{
  padding:14px 16px; border-radius:12px;
  font-size:.93rem; line-height:1.55;
}
.paiement-etat--ok{
  background:#effaf3; color:#0b6b3a;
  box-shadow:inset 0 0 0 1.5px #bbf0d0;
}
.paiement-etat--attente{
  background:var(--orange-soft); color:var(--orange-dark);
  box-shadow:inset 0 0 0 1.5px #fed7aa;
}
#zonePaiements .btn{ margin-top:14px; }

/* le message au retour de la page de paiement */
.retour-paiement{
  margin-bottom:16px; padding:14px 16px;
  border-radius:12px; font-size:.93rem; line-height:1.55;
  animation:arrivee .45s cubic-bezier(.16,1,.3,1);
}
.retour-paiement--ok{
  background:#effaf3; color:#0b6b3a; box-shadow:inset 0 0 0 1.5px #bbf0d0;
}
.retour-paiement--attention{
  background:var(--orange-soft); color:var(--orange-dark); box-shadow:inset 0 0 0 1.5px #fed7aa;
}
@keyframes arrivee{
  from{ opacity:0; transform:translateY(-8px); }
  to  { opacity:1; transform:translateY(0); }
}


/* =======================================================
   LES PETITS DÉTAILS QUI FONT « FINI »

   Rien de lourd ici : pas de bibliothèque, pas d'images,
   pas une seule requête réseau en plus. Uniquement du CSS,
   donc calculé par la carte graphique et invisible dans le
   temps de chargement.

   Tout ce bloc s'éteint automatiquement pour les personnes
   qui ont demandé « moins d'animations » dans les réglages
   de leur système : c'est la règle tout en bas.
   ======================================================= */

/* ---------- les boutons ---------- */
.btn{
  position:relative; overflow:hidden;
  transition:background .18s, transform .12s cubic-bezier(.2,1.2,.4,1),
             box-shadow .18s, color .15s;
}
.btn--primary:hover{ transform:translateY(-1px); box-shadow:0 6px 16px rgba(249,115,22,.3); }
.btn--primary:active{ transform:translateY(0); box-shadow:0 2px 6px rgba(249,115,22,.3); }
.btn--outline:hover{ transform:translateY(-1px); }
.btn--onorange:hover{ transform:translateY(-1px); box-shadow:0 6px 16px rgba(0,0,0,.14); }

/* un bouton désactivé ne bouge pas et le dit clairement */
.btn:disabled, .btn[disabled]{
  opacity:.55; cursor:not-allowed; transform:none !important; box-shadow:none !important;
}

/* le rond qui part du doigt quand on appuie, comme sur téléphone */
.btn::after{
  content:''; position:absolute; left:50%; top:50%;
  width:10px; height:10px; margin:-5px 0 0 -5px;
  border-radius:50%; background:currentColor; opacity:0;
  transform:scale(1); pointer-events:none;
}
.btn:active::after{ animation:onde .5s ease-out; }
@keyframes onde{
  0%  { opacity:.28; transform:scale(1); }
  100%{ opacity:0;   transform:scale(18); }
}

/* ---------- les cartes de cours ---------- */
.cours-carte{
  transition:transform .22s cubic-bezier(.2,1,.3,1), box-shadow .22s, border-color .22s;
}
.cours-carte:hover{
  transform:translateY(-3px);
  border-color:#fed7aa;
  box-shadow:0 14px 32px rgba(16,24,40,.1);
}
.cours-carte:hover .cours-carte__titre{ color:var(--orange-dark); }
.cours-carte__titre{ transition:color .18s; }

/* la carte entière suit le lien qu'elle contient */
.cours-carte:focus-within{
  border-color:var(--orange);
  box-shadow:0 0 0 4px rgba(249,115,22,.16);
}

/* ---------- les créneaux de l'agenda ---------- */
.creneau{ transition:border-color .15s, background .15s, color .15s, transform .12s; }
.creneau:hover{ transform:translateY(-1px); }
.creneau.is-choisi{
  transform:none;
  box-shadow:0 4px 12px rgba(249,115,22,.35);
  animation:choisi .3s cubic-bezier(.2,1.3,.4,1);
}
@keyframes choisi{
  0%  { transform:scale(.94); }
  60% { transform:scale(1.05); }
  100%{ transform:scale(1); }
}

/* ---------- les lignes de « Mes cours » ---------- */
.cours-ligne{
  border-radius:12px;
  padding-left:12px; padding-right:12px;
  margin-left:-12px; margin-right:-12px;
  transition:background .18s;
}
.cours-ligne:hover{ background:#fafbfc; }
.demandes .cours-ligne:hover{ background:#fffaf5; }

/* ---------- les cartes en général ---------- */
.card{ transition:box-shadow .25s; }

/* ---------- les liens de texte ---------- */
.lien-souligne, .bloc__hint a, .rappel__lien a{
  background-image:linear-gradient(currentColor, currentColor);
  background-size:0% 1.5px; background-position:0 100%; background-repeat:no-repeat;
  transition:background-size .25s;
}
.lien-souligne:hover, .bloc__hint a:hover{ background-size:100% 1.5px; }

/* ---------- l'attente : un bouton qui charge ---------- */
.est-en-cours{ position:relative; color:transparent !important; pointer-events:none; }
.est-en-cours::before{
  content:''; position:absolute; left:50%; top:50%;
  width:18px; height:18px; margin:-9px 0 0 -9px;
  border:2.5px solid rgba(255,255,255,.35);
  border-top-color:#fff; border-radius:50%;
  animation:tourne .7s linear infinite;
}
.btn--outline.est-en-cours::before, .btn--ghost.est-en-cours::before{
  border-color:rgba(31,35,40,.25); border-top-color:var(--ink);
}
@keyframes tourne{ to{ transform:rotate(360deg); } }

/* ---------- le squelette pendant le chargement ---------- */
.squelette{
  border-radius:10px;
  background:linear-gradient(90deg, #eef0f2 25%, #f7f8f9 37%, #eef0f2 63%);
  background-size:400% 100%;
  animation:balayage 1.3s ease-in-out infinite;
  color:transparent !important;
}
@keyframes balayage{ from{ background-position:100% 50%; } to{ background-position:0 50%; } }

/* ---------- l'apparition au défilement ----------
   Les éléments marqués data-apparait montent doucement quand
   ils entrent dans l'écran. S'ils ne sont jamais observés
   (JavaScript coupé), ils restent simplement visibles :
   c'est la classe qui les cache, jamais le CSS seul. */
.est-a-decouvrir{ opacity:0; transform:translateY(18px); }
.est-decouvert{
  opacity:1; transform:translateY(0);
  transition:opacity .55s ease, transform .55s cubic-bezier(.16,1,.3,1);
}

/* ---------- la banderole se pose quand on descend ---------- */
.topbar{ transition:box-shadow .25s, background .25s; }
.topbar.est-posee{ box-shadow:0 6px 20px rgba(16,24,40,.16); }

/* =======================================================
   MOINS D'ANIMATIONS

   Certaines personnes ont mal au coeur devant les
   mouvements à l'écran, et le disent dans les réglages de
   leur téléphone ou de leur ordinateur. Le navigateur nous
   le transmet, et on obéit : tout devient immobile, sans
   rien perdre du site.
   ======================================================= */
/* « :root:not([data-animations="toutes"]) » : si la personne a choisi
   « Animations : activées » en bas de page, on ne coupe rien. */
@media (prefers-reduced-motion:reduce){
  :root:not([data-animations="toutes"]) body > main,
  :root:not([data-animations="toutes"]) body > .footer{ transform:none !important; }
  :root:not([data-animations="toutes"]) *,
  :root:not([data-animations="toutes"]) *::before,
  :root:not([data-animations="toutes"]) *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
  :root:not([data-animations="toutes"]) .est-a-decouvrir{ opacity:1; transform:none; }
  :root:not([data-animations="toutes"]) .rappel__boite{ transform:none; }
  :root:not([data-animations="toutes"]) .rappel-bandeau{ transform:translate(-50%,0); }
}


/* =======================================================
   LES GLISSEMENTS D'UNE ÉTAPE À L'AUTRE

   Inscription, création d'un cours, fenêtre d'aide : partout
   où l'on avance pas à pas, l'écran suivant entre par le
   côté d'où l'on vient. L'oeil suit le mouvement au lieu de
   redécouvrir un bloc apparu de nulle part.

   Le sens compte : on avance, ça vient de la droite ; on
   revient en arrière, ça vient de la gauche. C'est le même
   geste que tourner une page.
   ======================================================= */
.glisse--avant  { animation:glisse-avant   .34s cubic-bezier(.16,1,.3,1) both; }
.glisse--arriere{ animation:glisse-arriere .34s cubic-bezier(.16,1,.3,1) both; }

@keyframes glisse-avant{
  from{ opacity:0; transform:translateX(26px); }
  to  { opacity:1; transform:translateX(0); }
}
@keyframes glisse-arriere{
  from{ opacity:0; transform:translateX(-26px); }
  to  { opacity:1; transform:translateX(0); }
}

/* Plus de hauteur imposée : la bulle s'adapte à la place
   disponible autour de l'élément qu'elle désigne. */

/* Le point de l'étape courante grossit au lieu de changer
   de couleur d'un coup. */
.aide__point{ transition:transform .22s cubic-bezier(.2,1.3,.4,1), background .22s, width .22s; }
.aide__point.est-actif{ transform:scale(1.15); }


/* =======================================================
   L'ARRIVÉE DES LISTES

   Le catalogue, les résultats de recherche, les messages :
   les éléments se posent l'un après l'autre, avec quelques
   centièmes d'écart. Ça se remarque à peine et pourtant ça
   change tout : la page a l'air de se construire plutôt que
   d'apparaître d'un bloc.

   Le décalage s'arrête à douze éléments : au-delà, l'attente
   deviendrait perceptible et agaçante.
   ======================================================= */
.cascade > *{ animation:pose .42s cubic-bezier(.16,1,.3,1) both; }
@keyframes pose{
  from{ opacity:0; transform:translateY(12px); }
  to  { opacity:1; transform:translateY(0); }
}
.cascade > *:nth-child(1) { animation-delay:.02s; }
.cascade > *:nth-child(2) { animation-delay:.05s; }
.cascade > *:nth-child(3) { animation-delay:.08s; }
.cascade > *:nth-child(4) { animation-delay:.11s; }
.cascade > *:nth-child(5) { animation-delay:.14s; }
.cascade > *:nth-child(6) { animation-delay:.17s; }
.cascade > *:nth-child(7) { animation-delay:.20s; }
.cascade > *:nth-child(8) { animation-delay:.23s; }
.cascade > *:nth-child(9) { animation-delay:.26s; }
.cascade > *:nth-child(10){ animation-delay:.29s; }
.cascade > *:nth-child(11){ animation-delay:.32s; }
.cascade > *:nth-child(n+12){ animation-delay:.34s; }


/* =======================================================
   LE PASSAGE D'UNE PAGE À L'AUTRE

   La page sortante glisse d'un cheveu et s'efface, la
   suivante entre en montant. Deux dixièmes de seconde de
   chaque côté : assez pour lier les deux écrans, trop peu
   pour qu'on ait le temps de s'impatienter.

   Voir animerChangementDePage() dans js/anim.js.
   ======================================================= */
/* =======================================================
   LE PASSAGE D'UNE PAGE À L'AUTRE

   ---------------------------------------------------
   DEUX ERREURS À NE PAS REFAIRE, ET ELLES SONT SUBTILES

   ERREUR 1 : cacher la page en attendant le JavaScript.
   J'avais posé « opacity:0 » sur body, retiré par un script
   une fois tout chargé. Résultat : un écran blanc pendant
   tout le chargement, puis la page qui apparaît d'un coup.
   Exactement l'inverse de ce qu'on cherchait.

   La règle : le contenu est visible dès la première image
   affichée par le navigateur. L'animation d'entrée est une
   ANIMATION CSS, qui démarre toute seule et ne dépend
   d'aucun script. Si le JavaScript ne se charge jamais, la
   page s'affiche quand même, en bougeant pareil.

   ERREUR 2 : poser un « transform » sur body.
   Dès qu'un élément est transformé, il devient le repère de
   ses descendants en position fixed, qui se mettent alors à
   défiler avec la page. La grande fenêtre du cours, le
   bandeau de rappel et l'aide guidée partaient n'importe où.

   La règle : le mouvement est porté par main et le pied de
   page, jamais par body.
   ======================================================= */

/* L'entrée. Animation CSS pure : elle commence à la première
   image, sans attendre quoi que ce soit. */
body > main{
  animation:page-entre .52s cubic-bezier(.16,1,.3,1) both;
}
body > .footer{
  animation:page-entre .52s cubic-bezier(.16,1,.3,1) .06s both;
}

/* Pas d'image d'arrivée écrite : la page finit sur son propre style,
   sans transformation ni flou qui resteraient posés sur main. */
@keyframes page-entre{
  from{ opacity:0; transform:translateY(24px) scale(.99); filter:blur(5px); }
}

/* La sortie, elle, a besoin du JavaScript : il faut savoir
   qu'on a cliqué sur un lien. Elle part dans l'autre sens,
   pour que le mouvement paraisse continu d'une page à
   l'autre. */
body.est-sortante > main,
body.est-sortante > .footer{
  animation:none;
  opacity:0;
  transform:translateY(-12px);
  transition:opacity .19s ease-in, transform .21s ease-in;
}
body.est-sortante{ pointer-events:none; }

/* Le fond de la page est peint tout de suite, avant même le
   contenu : sans ça, le navigateur montre son blanc à lui
   entre deux pages, et ça saute à l'oeil. */
html{ background:#fff; }

/* Le décor de l'accueil déborde volontairement sur les côtés
   du texte : c'est ce qui lui donne de l'ampleur. Sans cette
   ligne, ce débordement ferait apparaître une barre de
   défilement horizontale, ce qui est le défaut le plus
   agaçant qu'un site puisse avoir sur téléphone.

   « clip » et non « hidden » : hidden transformerait la page
   en zone défilante et casserait la banderole collante en
   haut. clip se contente de couper, sans rien changer
   d'autre. */
body{ overflow-x:clip; }


/* =======================================================
   LA VRAIE TRANSITION, QUAND LE NAVIGATEUR SAIT LA FAIRE

   Chrome et Edge récents savent enchaîner deux pages sans
   aucune coupure : ils gardent l'image de l'ancienne à
   l'écran pendant que la nouvelle se prépare, puis fondent
   de l'une à l'autre. C'est la seule façon de supprimer
   complètement le clignotement blanc.

   Ça ne fonctionne que sur un vrai site en ligne, pas en
   ouvrant le fichier depuis le bureau : c'est une règle de
   sécurité des navigateurs, pas un réglage.

   Les navigateurs qui ne connaissent pas ces lignes les
   ignorent, et gardent l'animation d'au-dessus.
   ======================================================= */
@view-transition{ navigation:auto; }

/* L'ancienne page recule et se brouille ; la nouvelle monte du bas,
   légèrement agrandie puis posée, et devient nette. */
::view-transition-old(root){
  animation:.26s cubic-bezier(.4,0,1,1) both vt-sortie;
}
::view-transition-new(root){
  animation:.58s cubic-bezier(.16,1,.3,1) .04s both vt-entree;
}
@keyframes vt-sortie{
  to{ opacity:0; transform:translateY(-18px) scale(.985); filter:blur(6px); }
}
@keyframes vt-entree{
  from{ opacity:0; transform:translateY(34px) scale(.985); filter:blur(8px); }
}
/* Moins d'animations demandées : on change de page sans mouvement. */
@media (prefers-reduced-motion:reduce){
  :root:not([data-animations="toutes"])::view-transition-group(*),
  :root:not([data-animations="toutes"])::view-transition-old(*),
  :root:not([data-animations="toutes"])::view-transition-new(*){ animation:none !important; }
}
:root[data-animations="reduites"]::view-transition-group(*),
:root[data-animations="reduites"]::view-transition-old(*),
:root[data-animations="reduites"]::view-transition-new(*){ animation:none !important; }

/* La banderole ne bouge pas d'une page à l'autre : elle est
   le point fixe qui rend le mouvement lisible. */
.topbar{ view-transition-name:banderole; }

/* Quand le navigateur fait la transition lui-même, c'est elle qui
   anime l'arrivée : l'entrée de main (plus haut) se jouerait en
   double. */
:root:active-view-transition body > main,
:root:active-view-transition body > .footer{ animation:none; }


/* =======================================================
   LES FENÊTRES QUI S'OUVRENT
   ======================================================= */
.modale__fond{ animation:fondu .22s ease both; }
.modale__boite{ animation:surgir .32s cubic-bezier(.2,1.2,.4,1) both; }

@keyframes fondu{ from{ opacity:0; } to{ opacity:1; } }
@keyframes surgir{
  from{ opacity:0; transform:scale(.95) translateY(12px); }
  to  { opacity:1; transform:scale(1) translateY(0); }
}


/* =======================================================
   LES CHAMPS DE FORMULAIRE
   ======================================================= */
.field input, .field textarea, .field select{
  transition:border-color .18s, box-shadow .18s, background .18s;
}

/* Les cases à cocher et les pastilles de choix se gonflent
   d'un rien quand on les prend : le clic est confirmé
   avant même que le contenu ne change. */
.choice{ transition:border-color .18s, background .18s, transform .12s cubic-bezier(.2,1.3,.4,1); }
.choice:hover{ transform:translateY(-1px); }
.choice:active{ transform:translateY(0) scale(.985); }
.choice.is-checked{ animation:coche .28s cubic-bezier(.2,1.4,.4,1); }
@keyframes coche{
  0%  { transform:scale(1); }
  45% { transform:scale(1.035); }
  100%{ transform:scale(1); }
}

.chip{ transition:border-color .18s, color .18s, background .18s, transform .12s; }
.chip:hover{ transform:translateY(-1px); }
.chip:active{ transform:translateY(0); }

/* La jauge de complétion du profil se remplit en glissant. */
.completion__fill{ transition:width .55s cubic-bezier(.16,1,.3,1); }
.progress__seg{ transition:background .3s, opacity .3s; }


/* =======================================================
   L'AVATAR ET LES PHOTOS
   ======================================================= */
.avatar{ transition:transform .22s cubic-bezier(.2,1.2,.4,1), box-shadow .22s; }
a:hover > .avatar, .cours-carte:hover .avatar{ transform:scale(1.06); }

.photo__drop{ transition:border-color .18s, background .18s, color .18s, transform .12s; }
.photo__drop.is-over{ transform:scale(1.015); }


/* =======================================================
   LES ÉTOILES DE NOTATION
   Elles se remplissent au survol, avant même le clic.
   ======================================================= */
.etoile{ transition:transform .14s cubic-bezier(.2,1.4,.4,1), color .14s; }
.etoile:hover{ transform:scale(1.22); }
.etoile:active{ transform:scale(1.05); }


/* =======================================================
   LES MESSAGES QUI ARRIVENT
   ======================================================= */
.bulle{ animation:bulle-arrive .3s cubic-bezier(.16,1,.3,1) both; }
@keyframes bulle-arrive{
  from{ opacity:0; transform:translateY(8px) scale(.98); }
  to  { opacity:1; transform:translateY(0) scale(1); }
}
.convo{ transition:background .18s, border-color .18s, transform .12s; }
.convo:hover{ transform:translateX(2px); }


/* =======================================================
   LE PIED ET LA NAVIGATION
   ======================================================= */
/* Au survol, un trait se dessine sous le lien, depuis le milieu.
   Le même pour tous les liens, Musinnov+ compris (son ancien point
   clignotant, qui prenait la place du trait, a été retiré). */
.nav__link{ position:relative; }
.nav__link::after{
  content:''; position:absolute; left:14px; right:14px; bottom:4px;
  height:2px; border-radius:2px; background:currentColor;
  transform:scaleX(0); transform-origin:center;
  transition:transform .24s cubic-bezier(.16,1,.3,1);
}
.nav__link:hover::after{ transform:scaleX(1); }
.nav__link.is-active::after{ transform:scaleX(0); }

/* =======================================================
   LES BADGES QUI CHANGENT D'ÉTAT
   ======================================================= */
.badge{ transition:background .2s, color .2s; }
.badge--attente{ animation:respire-badge 3s ease-in-out infinite; }
@keyframes respire-badge{ 50%{ opacity:.62; } }





/* =======================================================
   LES QUESTIONS FRÉQUENTES QUI SE DÉPLIENT

   La réponse pousse le reste de la page vers le bas au
   lieu de le faire sauter. Voir animerFaq() dans
   js/anim.js pour la mécanique.
   ======================================================= */
/* La réponse se déplie en glissant (js/anim.js, animerFaq). */
.faq__reponse{ overflow:hidden; }
.faq__item summary::after{
  transition:transform .46s cubic-bezier(.2,1.25,.4,1), color .2s;
}
.faq__item[open] summary::after{ transform:rotate(135deg); }
.faq__item.est-en-fermeture summary::after{ transform:rotate(0deg); }
.faq__item summary{ transition:color .18s; }
.faq__item{ transition:border-color .2s; }
.faq__item[open]{ border-bottom-color:#fed7aa; }

/* La question elle-même glisse d'un cheveu vers la droite au
   survol : de quoi montrer qu'elle se clique, sans bouger la
   mise en page. */
.faq__item summary span, .faq__item summary{ will-change:auto; }
.faq__item summary:hover{ color:var(--orange-dark); }


/* =======================================================
   LE BOUTON QUI APPELLE L'ATTENTION

   Une lueur orange qui va et vient, très lentement. Assez
   pour attirer l'oeil depuis le coin de l'écran, assez
   lent pour ne pas devenir insupportable au bout de dix
   minutes : c'est toute la différence entre un rappel et
   un clignotant.
   ======================================================= */
.btn--clignote{
  animation:clignote 2.2s ease-in-out infinite;
}
@keyframes clignote{
  0%, 100%{ box-shadow:0 0 0 0 rgba(249,115,22,.55); filter:brightness(1); }
  50%     { box-shadow:0 0 18px 4px rgba(249,115,22,.45); filter:brightness(1.12); }
}

/* Le bandeau se remplit de gauche à droite en arrivant : une
   barre de lumière qui balaie une fois, puis s'arrête. */
.rappel-bandeau::before{
  content:''; position:absolute; inset:0; border-radius:inherit;
  background:linear-gradient(100deg, transparent 20%,
             rgba(249,115,22,.22) 45%, transparent 70%);
  opacity:0; pointer-events:none;
}
.rappel-bandeau.is-visible::before{ animation:balaye-une-fois 1.1s .35s ease-out 1; }
@keyframes balaye-une-fois{
  0%  { opacity:0; transform:translateX(-60%); }
  35% { opacity:1; }
  100%{ opacity:0; transform:translateX(60%); }
}
.rappel-bandeau{ position:fixed; overflow:hidden; }

/* Le texte du bandeau arrive juste après lui, pas en même
   temps : l'oeil voit d'abord la forme, puis lit. */
.rappel-bandeau.is-visible .rappel-bandeau__texte{
  animation:pose .4s .22s cubic-bezier(.16,1,.3,1) both;
}

/* Le bouton fait les deux à la fois : il se pose comme le
   texte, puis se met à luire. Les deux animations ne se
   marchent pas dessus, l'une bouge la position et l'autre
   la lumière. */
.rappel-bandeau.is-visible .btn{
  animation:pose .4s .22s cubic-bezier(.16,1,.3,1) both,
            clignote 2.2s .75s ease-in-out infinite;
}


/* =======================================================
   TESTER SON SON
   Voir js/test-audio.js
   ======================================================= */
.audio__intro{
  margin:0 0 4px; color:var(--muted); font-size:.94rem; line-height:1.6;
}
.audio__etape{
  padding:20px 0; border-top:1px solid var(--line);
}
.audio__etape:first-of-type{ border-top:0; padding-top:14px; }

.audio__titre{
  display:flex; align-items:center; gap:10px;
  font-size:1rem; font-weight:800; margin-bottom:5px;
}
.audio__num{
  flex:0 0 auto;
  width:24px; height:24px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--orange); color:#fff; font-size:.82rem; font-weight:800;
}
.audio__texte{ margin:0 0 12px; color:var(--muted); font-size:.9rem; line-height:1.55; }
.audio__retour{
  margin:10px 0 0; font-size:.86rem; line-height:1.55; color:var(--muted);
  animation:arrivee .35s cubic-bezier(.16,1,.3,1);
}
.audio__vie-privee{
  margin:18px 0 0; padding:12px 14px;
  border-radius:10px; background:#f7f8f9;
  color:var(--muted); font-size:.82rem; line-height:1.55;
}
.audio__lecteur{ width:100%; margin-top:14px; }

/* le bouton pendant qu'il travaille (test du son, métronome).
   Limité aux boutons : sans « .btn », cette règle repeignait tout
   élément « actif » du site (le lien du fil, les outils de
   publication, les suggestions) en orange foncé. */
.btn.est-actif{
  background:var(--orange-dark) !important; color:#fff !important;
  box-shadow:inset 0 0 0 1.5px var(--orange-dark) !important;
}

/* ---------- la barre de niveau ---------- */
.niveau{ margin-top:14px; }
.niveau__barres{
  display:flex; align-items:flex-end; gap:3px;
  height:56px; padding:9px 11px;
  border-radius:12px; background:#111826;
}
.niveau__barre{
  flex:1 1 0; min-width:0;
  height:22%; border-radius:2px;
  background:#2b3444;
  transition:height .07s linear, background .09s linear;
}
.niveau__barre.est-allumee{ height:100%; background:#4ade80; }
.niveau__barre.est-forte  { background:#f97316; }

/* les trois dernières barres sont rouges quand elles s'allument :
   à ce niveau-là, le son sature */
.niveau__barre:nth-last-child(-n+2).est-allumee{ background:#ef4444; }

.niveau__verdict{
  margin:9px 0 0; font-size:.88rem; font-weight:600; color:var(--muted);
  min-height:1.5em;
  transition:color .25s;
}
.niveau__verdict--bon   { color:#0b6b3a; }
.niveau__verdict--faible{ color:var(--orange-dark); }
.niveau__verdict--fort  { color:#b42318; }

@media (max-width:480px){
  .niveau__barres{ height:48px; gap:2px; }
}

.attente__conseil{
  margin:14px auto 4px; max-width:44ch;
  color:var(--muted); font-size:.9rem; line-height:1.6;
}

/* Le message d'erreur d'un paiement, dans le tableau d'administration */
.est-erreur{
  display:block; margin-top:3px;
  color:#991b1b; font-size:.74rem; line-height:1.4;
}


/* =======================================================
   L'AIDE GUIDÉE

   Le principe : au lieu de poser un voile uniforme sur toute
   la page et d'espérer qu'on devine où regarder, on découpe
   un trou de lumière autour de l'élément dont on parle.

   Le truc tient en une ligne : une ombre projetée vers
   l'extérieur, tellement large qu'elle recouvre tout l'écran.
   Le rectangle lui-même reste transparent, donc l'élément
   apparaît en pleine lumière au milieu du noir. C'est la
   même idée que le spot d'un projecteur de théâtre.

   La bulle de texte se pose ensuite du côté où l'élément
   n'est pas, avec une flèche qui fait le lien. Elle ne peut
   donc plus recouvrir ce qu'elle est censée montrer, ce qui
   était le défaut de la version précédente.
   ======================================================= */

.aide{
  position:fixed; inset:0; z-index:150;
  opacity:0; pointer-events:none;
  transition:opacity .26s ease;
}
.aide.is-visible{ opacity:1; pointer-events:auto; }
.aide[hidden]{ display:none !important; }

/* ---------- le trou de lumière ---------- */
.aide__halo{
  position:fixed;
  border-radius:14px;
  pointer-events:auto;
  /* Tant qu'on n'a pas découpé, l'ombre couvre tout : c'est le
     voile classique, utilisé pour les étapes sans élément. */
  box-shadow:0 0 0 9999px rgba(12,16,24,.62);
  top:50%; left:50%; width:0; height:0;
  transition:top .42s cubic-bezier(.4,0,.2,1),
             left .42s cubic-bezier(.4,0,.2,1),
             width .42s cubic-bezier(.4,0,.2,1),
             height .42s cubic-bezier(.4,0,.2,1),
             box-shadow .3s ease;
}
.aide__halo.is-decoupe{
  box-shadow:0 0 0 9999px rgba(12,16,24,.62),
             0 0 0 3px var(--orange),
             0 0 26px 4px rgba(249,115,22,.5);
  animation:halo-respire 2.2s ease-in-out infinite;
}
@keyframes halo-respire{
  50%{ box-shadow:0 0 0 9999px rgba(12,16,24,.62),
                  0 0 0 3px #fdba74,
                  0 0 34px 7px rgba(249,115,22,.34); }
}

/* ---------- la flèche ---------- */
.aide__fleche{
  position:fixed;
  width:0; height:0; margin-left:-11px;
  border-left:11px solid transparent;
  border-right:11px solid transparent;
  opacity:0;
  transition:opacity .2s ease .12s, top .3s ease, left .3s ease;
  pointer-events:none;
}
.aide__fleche.is-visible{ opacity:1; }

/* pointe vers le haut : la bulle est en dessous de l'élément */
.aide__fleche--haut{
  border-bottom:12px solid #fff;
  margin-top:12px;
}
/* pointe vers le bas : la bulle est au-dessus */
.aide__fleche:not(.aide__fleche--haut){
  border-top:12px solid #fff;
  margin-top:-24px;
}

/* ---------- la bulle ---------- */
.aide__bulle{
  position:fixed;
  width:min(420px, calc(100vw - 28px));
  background:#fff; border-radius:16px;
  box-shadow:0 22px 60px rgba(8,12,20,.42);
  display:flex; flex-direction:column;
  max-height:min(74vh, 560px);
  transition:top .34s cubic-bezier(.16,1,.3,1),
             left .34s cubic-bezier(.16,1,.3,1),
             opacity .22s ease, transform .3s cubic-bezier(.2,1.2,.4,1);
}

/* Pendant que la page défile, la bulle s'efface : la voir
   glisser en même temps que le contenu donnerait le tournis. */
.aide__bulle.est-en-voyage{
  opacity:0; transform:scale(.97);
  pointer-events:none;
}

/* Étape sans élément à montrer : la bulle se met au milieu. */
.aide__bulle--centre{
  top:50%; left:50%;
  transform:translate(-50%, -50%);
}
.aide__bulle--centre.est-en-voyage{ transform:translate(-50%,-50%) scale(.97); }

.aide__tete{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:16px 20px 12px;
}
.aide__nom{ font-size:1.02rem; font-weight:800; }
.aide__fermer{
  flex:0 0 auto; width:32px; height:32px;
  border:0; border-radius:50%; background:transparent;
  color:var(--muted); font-size:1.35rem; line-height:1; cursor:pointer;
  transition:background .15s, color .15s, transform .15s;
}
.aide__fermer:hover{ background:#f2f4f6; color:var(--ink); transform:rotate(90deg); }

.aide__corps{ padding:0 20px 4px; overflow:auto; }
.aide__pied{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  padding:14px 20px 16px; border-top:1px solid var(--line);
}
.aide__pied .btn--primary{ margin-left:auto; }

/* Sur téléphone, la bulle se colle en bas : l'élément désigné
   reste visible au-dessus, dans son trou de lumière. */
@media (max-width:640px){
  .aide__bulle{
    left:10px !important; right:10px;
    width:auto; max-height:66vh;
  }
  .aide__bulle--centre{ top:auto !important; bottom:10px; transform:none; }
  .aide__bulle--centre.est-en-voyage{ transform:scale(.97); }
  .aide__pied{ flex-wrap:wrap; }
  .aide__jamais{ width:100%; order:3; margin-bottom:0; }
  .aide__pied .btn{ flex:1 1 auto; }
  .aide__pied .btn--primary{ margin-left:0; }
}

@media (prefers-reduced-motion:reduce){
  .aide__halo{ animation:none; }
}

/* Quand le texte de l'aide est plus long que la place, un
   dégradé en bas dit « ça continue » : sans lui, la phrase a
   l'air de s'arrêter au milieu. */
.aide__corps{ position:relative; }
.aide__corps.a-du-rab{
  -webkit-mask-image:linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
          mask-image:linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
}
.aide__intro{ margin-bottom:14px; }
.aide__intro[hidden]{ display:none !important; }

/* Le pied tient sur une ligne : chaque pixel gagné est un pixel
   de texte lisible en plus. */
.aide__pied{ padding:12px 20px 14px; }
.aide__jamais{
  display:flex; align-items:center; gap:7px;
  font-size:.78rem; color:var(--muted); cursor:pointer;
  margin-right:auto;
}

/* Un bouton qui a l'air d'un lien : utile au milieu d'une phrase,
   là où un vrai bouton casserait la lecture. */
.lien-bouton{
  border:0; background:none; padding:0;
  color:var(--orange-dark); font-weight:600; cursor:pointer;
  text-decoration:underline; text-underline-offset:2px;
  transition:color .15s;
}
.lien-bouton:hover{ color:#9a3412; }

.reserve__son{
  margin:14px 0 0; color:var(--muted);
  font-size:.86rem; line-height:1.55;
}

/* Les deux boutons discrets sous « Rejoindre le cours » */
.rappel__secondaire{
  display:flex; gap:8px; justify-content:center; flex-wrap:wrap;
}
.rappel__secondaire .btn{ color:#98a2b3; }
.rappel__secondaire .btn:hover{ background:rgba(255,255,255,.1); color:#fff; }


/* =======================================================
   LES PROMOTIONS
   ======================================================= */

/* Le prix barré, quand une remise s'applique */
.prix-barre{
  color:var(--muted); font-weight:500; text-decoration-thickness:1.5px;
  margin-right:5px;
}

.etiquette-promo{
  display:inline-block; margin-top:4px; padding:2px 9px;
  border-radius:999px; background:var(--orange); color:#fff;
  font-size:.74rem; font-weight:800; letter-spacing:.01em;
}

/* Le champ de code, replié par défaut */
.promo{ margin-top:16px; }
.promo__ouvrir{ font-size:.88rem; }
.promo__champ{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.promo__champ input{
  flex:1 1 160px; min-width:0;
  padding:10px 13px; border:1.5px solid var(--line); border-radius:10px;
  font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  transition:border-color .18s, box-shadow .18s, background .18s;
}
.promo__champ input:focus{
  outline:none; border-color:var(--orange); box-shadow:0 0 0 4px rgba(249,115,22,.15);
}
.promo__champ input:disabled{ background:#effaf3; border-color:#bbf0d0; color:#0b6b3a; }
.promo__retour{ margin:8px 0 0; font-size:.87rem; line-height:1.5; color:var(--muted); }
.promo__retour--ok{
  color:#0b6b3a;
  animation:coche .38s cubic-bezier(.2,1.4,.4,1);
}
.promo__retour--ko{ color:#b42318; }

/* La remise de lancement du professeur */
.promo-prof{ margin-top:20px; padding-top:18px; border-top:1px solid var(--line); }
.promo-prof__reglages{
  margin-top:14px; display:flex; gap:18px; flex-wrap:wrap; align-items:flex-start;
  animation:pose .34s cubic-bezier(.16,1,.3,1) both;
}
.promo-prof__reglages .note{ flex:1 1 100%; margin:0; }

/* Le formulaire de création, côté administration */
.promo-creer{
  display:grid; gap:14px; margin-bottom:22px; padding:18px 20px;
  grid-template-columns:repeat(auto-fit, minmax(170px, 1fr));
  align-items:end;
  background:#fff; border:1px solid var(--line); border-radius:14px;
}
.promo-creer .field__erreur{ grid-column:1 / -1; margin:0; }
.promo-creer select{
  padding:10px 12px; border:1.5px solid var(--line); border-radius:10px; background:#fff;
}

/* La fenêtre « vérifier son son » peut être ouverte DEPUIS la
   grande fenêtre du cours. Elle doit donc passer au-dessus
   d'elle, sinon elle s'ouvre derrière et devient inutilisable :
   on voit un écran qui s'assombrit et plus rien ne répond.

   L'ordre d'empilement du site, du fond vers la surface :
      20  la banderole
      60  le bandeau « votre cours commence bientôt »
     100  les fenêtres ordinaires
     150  l'aide guidée
     200  la grande fenêtre du cours
     260  le test du son                                    */
#testAudio{ z-index:260; }


/* =======================================================
   LES OUTILS DU COURS
   Métronome et accompagnement. Voir js/outils-visio.js
   ======================================================= */
.outil{ padding:20px 0; border-top:1px solid var(--line); }
.outil:first-of-type{ border-top:0; padding-top:8px; }
.outil__titre{ font-size:1.05rem; font-weight:800; margin-bottom:10px; }
.outil__texte{ margin:0 0 14px; color:var(--muted); font-size:.9rem; line-height:1.55; }
.outil__note{
  margin:12px 0 0; color:var(--muted); font-size:.8rem; line-height:1.55;
}

/* ---------- les témoins de pulsation ---------- */
.metro__temoins{
  display:flex; gap:9px; justify-content:center; align-items:center;
  padding:16px 12px; margin-bottom:16px;
  border-radius:14px; background:#111826;
  min-height:62px;
}
.metro__temoin{
  width:17px; height:17px; border-radius:50%;
  background:#2b3444;
  transition:background .07s linear, transform .07s linear, box-shadow .07s linear;
}
.metro__temoin[hidden]{ display:none !important; }
.metro__temoin.est-allume{
  background:#4ade80; transform:scale(1.35);
  box-shadow:0 0 14px rgba(74,222,128,.55);
}
.metro__temoin.est-accent{
  background:var(--orange); transform:scale(1.6);
  box-shadow:0 0 20px rgba(249,115,22,.7);
}

/* ---------- le tempo ---------- */
.metro__tempo{
  display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap;
}
.metro__pas{
  width:44px; height:38px; border:1.5px solid var(--line); border-radius:10px;
  background:#fff; font-weight:800; font-size:.9rem; cursor:pointer;
  transition:border-color .15s, background .15s, transform .1s;
}
.metro__pas:hover{ border-color:var(--orange); color:var(--orange-dark); transform:translateY(-1px); }
.metro__pas:active{ transform:translateY(0) scale(.96); }

.metro__valeur{
  display:flex; align-items:baseline; gap:6px;
  padding:4px 12px;
}
.metro__valeur input{
  width:88px; border:0; background:none; padding:0;
  font-size:2.1rem; font-weight:800; text-align:center;
  font-variant-numeric:tabular-nums; color:var(--ink);
}
.metro__valeur input::-webkit-outer-spin-button,
.metro__valeur input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.metro__valeur input[type=number]{ -moz-appearance:textfield; appearance:textfield; }
.metro__valeur input:focus{ outline:none; color:var(--orange-dark); }
.metro__valeur span{ color:var(--muted); font-size:.82rem; font-weight:700; }

.metro__glissiere{ width:100%; margin-top:12px; accent-color:var(--orange); }

.metro__nuance{
  margin:8px 0 0; text-align:center;
  color:var(--muted); font-size:.86rem; font-style:italic;
  min-height:1.4em;
}

.metro__reglages{
  display:flex; gap:18px; flex-wrap:wrap; margin-top:16px;
}
.metro__champ{
  flex:1 1 150px; min-width:0;
  display:flex; flex-direction:column; gap:5px;
  font-size:.84rem; font-weight:600; color:var(--muted);
}
.metro__champ select{
  padding:9px 11px; border:1.5px solid var(--line); border-radius:10px;
  background:#fff; color:var(--ink); font-weight:500;
}
.metro__champ input[type="range"]{ accent-color:var(--orange); }

.metro__actions{
  display:flex; gap:9px; margin-top:18px; flex-wrap:wrap;
}
.metro__actions .btn{ flex:1 1 auto; }

/* ---------- l'accompagnement ---------- */
.acc__nom{
  margin:14px 0 8px; font-weight:700; font-size:.92rem;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.acc__lecteur{ width:100%; }

@media (max-width:480px){
  .metro__valeur input{ font-size:1.8rem; width:74px; }
  .metro__pas{ width:40px; }
}

/* Une ligne du panel qui demande une décision */
.ligne-alerte{ background:#fef2f2; }
.ligne-alerte td{ border-top-color:#fecaca; }
.ligne-alerte:hover{ background:#fee7e7; }

/* Présent ou absent, en un coup d'oeil */
.pastille-presence{
  display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; margin-right:4px;
  border-radius:50%; font-size:.7rem; font-weight:800;
}
.pastille-presence.est-la     { background:#dcfce7; color:#166534; }
.pastille-presence.est-absent { background:#fee2e2; color:#991b1b; }


/* =======================================================
   LE DÉCOR ANIMÉ DE L'ACCUEIL
   Voir js/decor.js pour le dessin lui-même.
   ======================================================= */
.accueil-hero{ position:relative; }

/* La toile est POSÉE DERRIÈRE le texte, et elle ne reçoit
   aucun clic : on doit pouvoir sélectionner le titre et
   cliquer sur les boutons comme s'il n'y avait rien. */
.decor__toile{
  position:absolute;
  top:-30px; left:50%; transform:translateX(-50%);
  /* Jamais plus large que l'écran, barre de défilement
     comprise : c'est ce qui garantit qu'aucune page n'aura de
     défilement horizontal, sur aucun format. */
  width:min(1180px, calc(100vw - 34px));
  /* Une hauteur fixe et non « toute la section » : le titre, les
     boutons et les pastilles font une section très haute, et une
     onde étirée sur 1100 pixels n'a plus l'air d'une onde. */
  height:min(420px, calc(100% + 60px));
  pointer-events:none;
  z-index:0;
  animation:decor-arrive 1.4s ease .25s both;

  /* Le bord de la toile est un rectangle net, et ça se voit dès
     qu'on y peint un dégradé. Ce masque le fait disparaître en
     douceur sur les quatre côtés : on ne devine plus où la zone
     dessinée commence et où elle s'arrête. */
  -webkit-mask-image:
    radial-gradient(ellipse 46% 52% at 50% 46%, #000 0%, #000 25%, transparent 100%);
          mask-image:
    radial-gradient(ellipse 46% 52% at 50% 46%, #000 0%, #000 25%, transparent 100%);
}
@keyframes decor-arrive{ from{ opacity:0; } to{ opacity:1; } }

/* Le texte repasse devant. La toile est exclue, sinon elle
   remonterait au même plan que le texte et le recouvrirait. */
.accueil-hero > *:not(.decor__toile){ position:relative; z-index:1; }

/* La zone du décor accepte le survol pour que l'onde suive
   la souris, sans jamais gêner un clic. */
#decor{ touch-action:manipulation; }

@media (prefers-reduced-motion:reduce){
  :root:not([data-animations="toutes"]) .decor__toile{ display:none; }
}


/* =======================================================
   ============  MUSINNOV+ : L'ABONNEMENT
   ======================================================= */

/* ---------- Le bandeau d'information ---------- */
/* Le pendant vert de .barre-probleme : même place, même
   forme, message opposé. */
.barre-info{
  position:sticky; top:0; z-index:60;
  background:#f0fdf4; color:#14532d;
  border-bottom:1px solid #bbf7d0;
  padding:11px 24px; font-size:14px; font-weight:600; text-align:center;
  opacity:0; transform:translateY(-8px);
  transition:opacity .32s ease, transform .32s cubic-bezier(.16,1,.3,1);
}
.barre-info.est-visible{ opacity:1; transform:translateY(0); }


/* ---------- Le badge membre, partout sur le site ---------- */
.badge-plus{
  display:inline-flex; align-items:center; gap:3px;
  padding:1px 7px; border-radius:999px;
  background:linear-gradient(135deg,#f97316,#fb923c);
  color:#fff; font-size:11px; font-weight:800; letter-spacing:.3px;
  vertical-align:middle;
}

/* =======================================================
   LA PAGE DE VENTE
   ======================================================= */
.page--plus{ max-width:1000px; }

.plus-hero{ text-align:center; padding:22px 0 6px; }
.plus-hero__pastille{
  display:inline-block; padding:5px 14px; border-radius:999px;
  background:var(--orange-soft); color:var(--orange-dark);
  font-size:13px; font-weight:800; letter-spacing:.4px;
  margin-bottom:16px;
}
.plus-hero__titre{
  font-size:clamp(26px,4.4vw,40px); font-weight:900; line-height:1.18;
  letter-spacing:-.5px;
}
.plus-hero__sous{
  max-width:62ch; margin:16px auto 0; color:var(--muted);
  font-size:17px; line-height:1.62;
}
.plus-hero__membres{
  margin-top:14px; font-size:14px; font-weight:700; color:var(--orange-dark);
}

/* ---------- Les deux cartes de tarif ---------- */
.plus-tarifs{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(272px,1fr));
  gap:18px; margin:34px 0 8px;
}
.plus-carte{
  position:relative; background:#fff;
  border:1px solid var(--line); border-radius:18px;
  padding:26px 24px 24px;
  display:flex; flex-direction:column; gap:14px;
  transition:transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.plus-carte:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 40px rgba(15,18,22,.09);
  border-color:#d6d9dd;
}
.plus-carte--phare{
  border:2px solid var(--orange);
  box-shadow:0 10px 30px rgba(249,115,22,.13);
}
.plus-carte--phare:hover{ box-shadow:0 20px 46px rgba(249,115,22,.19); }

.plus-carte__ruban{
  position:absolute; top:-13px; left:50%; transform:translateX(-50%);
  background:var(--orange); color:#fff;
  padding:4px 14px; border-radius:999px;
  font-size:12px; font-weight:800; white-space:nowrap;
}
.plus-carte__tete{ display:flex; flex-direction:column; gap:2px; }
.plus-carte__nom{ font-size:14px; font-weight:700; color:var(--muted); }
.plus-carte__prix{
  font-size:38px; font-weight:900; letter-spacing:-1px; line-height:1.1;
}
.plus-carte__unite{ font-size:14px; color:var(--muted); }
.plus-carte__equiv{
  font-size:14px; font-weight:700; color:var(--orange-dark);
  background:var(--orange-soft); padding:6px 11px; border-radius:9px;
  align-self:flex-start;
}
.plus-carte__note{ font-size:14px; color:var(--muted); line-height:1.55; flex:1 1 auto; }
.plus-carte__btn{ width:100%; justify-content:center; }

.plus-deja{
  text-align:center; margin:18px 0 0; padding:14px 18px;
  background:var(--orange-soft); border-radius:12px;
  font-size:15px; font-weight:600;
}
.plus-deja a{ color:var(--orange-dark); text-decoration:underline; }

/* ---------- Les avantages ---------- */
.plus-titre{
  font-size:clamp(21px,3vw,27px); font-weight:900;
  text-align:center; margin:52px 0 4px; letter-spacing:-.3px;
}
.plus-grille{
  list-style:none; padding:0; margin:26px 0 0;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(258px,1fr)); gap:16px;
}
.plus-item{
  background:#fff; border:1px solid var(--line); border-radius:15px;
  padding:22px 20px;
  transition:transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.plus-item:hover{ transform:translateY(-3px); box-shadow:0 12px 30px rgba(15,18,22,.07); }
.plus-item__emoji{ font-size:26px; display:block; margin-bottom:10px; }
.plus-item h3{ font-size:16px; font-weight:800; margin-bottom:7px; }
.plus-item p{ font-size:14.5px; color:var(--muted); line-height:1.62; }

/* ---------- Le bloc honnête ---------- */
.plus-honnete{ margin-top:48px; padding:26px 26px 24px; }
.plus-honnete__titre{ font-size:18px; font-weight:800; margin-bottom:12px; }
.plus-honnete p{ color:var(--muted); line-height:1.65; max-width:72ch; }
.plus-honnete p + p{ margin-top:12px; }

.plus-faq{ margin-top:20px; }
.plus-faq .faq{ max-width:760px; margin:22px auto 0; }

/* ---------- Le dernier appel ---------- */
.plus-fin{
  margin:54px 0 10px; text-align:center;
  background:linear-gradient(150deg,var(--orange-soft),#fff);
  border:1px solid #fcd9bd; border-radius:20px; padding:38px 26px;
}
.plus-fin h2{ font-size:clamp(20px,3vw,26px); font-weight:900; }
.plus-fin p{ color:var(--muted); margin:12px 0 20px; }
.plus-fin__note{ font-size:13px; margin:16px 0 0 !important; }
.btn--lg{ padding:13px 30px; font-size:16px; }

/* ---------- La fenêtre des deux cases ---------- */
.modale__recap{
  padding:20px 24px 4px; font-size:15px; line-height:1.6; color:var(--muted);
}
.modale__recap strong{ color:var(--ink); }
.case{
  display:flex; gap:11px; align-items:flex-start;
  padding:14px 24px; font-size:14px; line-height:1.55; color:var(--muted);
  cursor:pointer;
}
.case input{ margin-top:3px; width:17px; height:17px; flex:0 0 auto; accent-color:var(--orange); }
.case strong{ color:var(--ink); }
.case a{ color:var(--orange-dark); text-decoration:underline; }
.modale__erreur{
  padding:0 24px; color:#b91c1c; font-size:14px; font-weight:600; min-height:20px;
}
.modale__actions{
  padding:14px 24px 22px; display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;
}
/* Les fenêtres apparaissent grâce à l'animation « surgir » (plus
   haut). Elles ne doivent jamais DÉPENDRE d'une animation pour être
   visibles : avec « moins d'animations » demandé par l'appareil,
   l'animation est coupée, et une fenêtre posée à opacity:0 restait
   invisible. C'était le cas du test du son, du métronome, des
   signalements… sur tout le site. */
.modale__boite{
  transition:opacity .26s ease, transform .26s cubic-bezier(.16,1,.3,1);
}
.modale.est-ouverte .modale__boite{ opacity:1; transform:translateY(0) scale(1); }
body.modale-ouverte{ overflow:hidden; }

/* =======================================================
   LE SALON
   ======================================================= */
.page--salon{ max-width:1180px; }

.salon{
  display:grid; grid-template-columns:290px 1fr; gap:18px;
  align-items:start;
}

/* ---------- La colonne des pièces ---------- */
.salon__cote{
  background:#fff; border:1px solid var(--line); border-radius:16px;
  padding:18px 16px; position:sticky; top:88px;
}
.salon__titre{ font-size:19px; font-weight:900; margin-bottom:14px; padding:0 4px; }
.salon__pieces{ display:flex; flex-direction:column; gap:4px; }

.piece{
  display:flex; align-items:flex-start; gap:11px; width:100%;
  padding:11px 12px; border:0; border-radius:11px;
  background:transparent; text-align:left; cursor:pointer;
  transition:background .18s ease, transform .18s ease;
}
.piece:hover:not(:disabled){ background:#f6f7f8; transform:translateX(2px); }
.piece.est-active{ background:var(--orange-soft); }
.piece.est-active .piece__nom{ color:var(--orange-dark); }
.piece:disabled{ opacity:.42; cursor:not-allowed; }
.piece__emoji{ font-size:19px; line-height:1.3; flex:0 0 auto; }
.piece__texte{ flex:1 1 auto; min-width:0; }
.piece__nom{ display:block; font-size:14.5px; font-weight:800; }
.piece__desc{
  display:block; font-size:12.5px; color:var(--muted); line-height:1.45;
  margin-top:2px;
}
.piece__pastille{
  flex:0 0 auto; background:var(--orange); color:#fff;
  min-width:20px; height:20px; border-radius:999px;
  display:grid; place-items:center; padding:0 6px;
  font-size:11px; font-weight:800;
  animation:arrivePastille .34s cubic-bezier(.16,1,.3,1) both;
}
@keyframes arrivePastille{ from{ transform:scale(.4); opacity:0; } to{ transform:scale(1); opacity:1; } }

.salon__regles{
  margin-top:18px; padding:12px 13px; border-radius:11px;
  background:#f8f9fa; font-size:12.5px; color:var(--muted); line-height:1.55;
}

/* ---------- Le fil ---------- */
.salon__fil{
  background:#fff; border:1px solid var(--line); border-radius:16px;
  display:flex; flex-direction:column;
  height:calc(100vh - 150px); min-height:460px;
  overflow:hidden;
}
.salon__entete{
  display:flex; align-items:center; gap:11px;
  padding:15px 20px; border-bottom:1px solid var(--line); flex:0 0 auto;
}
.salon__retour{
  display:none; background:none; border:0; cursor:pointer;
  color:var(--muted); padding:5px; border-radius:8px;
}
.salon__retour:hover{ background:#f2f3f5; }
.salon__nom{ font-size:16.5px; font-weight:800; }
.salon__desc{ font-size:13px; color:var(--muted); margin-top:1px; }

.salon__messages{
  flex:1 1 auto; overflow-y:auto; padding:18px 20px;
  display:flex; flex-direction:column; gap:14px;
  scroll-behavior:smooth;
}
.salon__attente,.salon__vide{
  margin:auto; text-align:center; color:var(--muted);
  font-size:14.5px; max-width:44ch; line-height:1.6;
}
.salon__plus{ padding:0 20px 10px; text-align:center; flex:0 0 auto; }

/* ---------- Un message ---------- */
.msg{
  display:flex; gap:11px; align-items:flex-start;
  animation:msgArrive .34s cubic-bezier(.16,1,.3,1) both;
}
@keyframes msgArrive{
  from{ opacity:0; transform:translateY(9px); }
  to{ opacity:1; transform:translateY(0); }
}
.msg__corps{
  flex:1 1 auto; min-width:0;
  background:#f7f8f9; border-radius:4px 13px 13px 13px;
  padding:10px 13px 8px;
  transition:background .2s ease;
}
.msg--moi .msg__corps{ background:var(--orange-soft); }
.msg:hover .msg__corps{ background:#f1f3f5; }
.msg--moi:hover .msg__corps{ background:#ffeadb; }

.msg__tete{ display:flex; align-items:baseline; gap:7px; flex-wrap:wrap; margin-bottom:4px; }
.msg__qui{ font-size:13.5px; font-weight:800; }
.msg__qui:hover{ color:var(--orange-dark); }
.msg__quand{ font-size:11.5px; color:var(--muted); }
.msg__signale{ font-size:11.5px; color:#b91c1c; font-weight:700; }

.salon__tag{
  font-size:10.5px; font-weight:800; padding:1px 6px; border-radius:999px;
  letter-spacing:.2px;
}
.salon__tag--admin{ background:#1f2328; color:#fff; }
.salon__tag--prof{ background:#e0f2fe; color:#075985; }
.salon__tag--plus{ background:linear-gradient(135deg,#f97316,#fb923c); color:#fff; }

.msg__cite{
  border-left:3px solid #d8dce0; padding:3px 0 3px 9px; margin-bottom:6px;
  font-size:12.5px; color:var(--muted); line-height:1.45;
}
.msg__cite__qui{ font-weight:800; display:block; }
.msg__cite__quoi{ display:block; opacity:.85; }

.msg__texte{ font-size:14.5px; line-height:1.58; overflow-wrap:anywhere; }
.msg__texte a{ color:var(--orange-dark); text-decoration:underline; }

.msg__pied{
  display:flex; align-items:center; justify-content:space-between;
  gap:8px; margin-top:5px; min-height:22px;
}
.msg__reacs{ display:flex; gap:5px; flex-wrap:wrap; }
.reac{
  border:1px solid var(--line); background:#fff; border-radius:999px;
  padding:1px 8px; font-size:12.5px; cursor:pointer; line-height:1.6;
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
}
.reac:hover{ transform:scale(1.08); border-color:#c9ced3; }
.reac.est-mienne{ background:var(--orange-soft); border-color:var(--orange); font-weight:700; }

.msg__outils{
  display:flex; gap:2px; opacity:0;
  transition:opacity .2s ease;
}
.msg:hover .msg__outils,
.msg:focus-within .msg__outils{ opacity:1; }
.msg__outil{
  background:none; border:0; cursor:pointer; color:var(--muted);
  font-size:14px; padding:2px 6px; border-radius:7px; line-height:1.4;
  transition:background .16s ease, color .16s ease;
}
.msg__outil:hover{ background:#e9ebee; color:var(--ink); }
.msg__outil--signal:hover{ background:#fef2f2; color:#b91c1c; }

.msg--masque .msg__masque{
  font-size:13px; color:var(--muted); font-style:italic;
  background:#f7f8f9; border:1px dashed var(--line);
  border-radius:11px; padding:10px 14px;
}

/* Le choix des réactions */
.reac-choix{
  position:absolute; z-index:30; margin-top:4px;
  display:flex; gap:2px; padding:5px 6px;
  background:#fff; border:1px solid var(--line); border-radius:999px;
  box-shadow:0 10px 26px rgba(15,18,22,.15);
  opacity:0; transform:translateY(6px) scale(.95);
  transition:opacity .18s ease, transform .18s cubic-bezier(.16,1,.3,1);
}
.reac-choix.est-ouverte{ opacity:1; transform:translateY(0) scale(1); }
.reac-choix button{
  background:none; border:0; cursor:pointer; font-size:17px;
  padding:2px 4px; border-radius:7px;
  transition:transform .16s ease, background .16s ease;
}
.reac-choix button:hover{ transform:scale(1.28); background:#f4f5f6; }
.msg__outils{ position:relative; }

/* ---------- Écrire ---------- */
.salon__reponse{
  display:flex; align-items:center; gap:10px;
  padding:9px 20px; background:var(--orange-soft);
  border-top:1px solid #fcd9bd; flex:0 0 auto;
  animation:msgArrive .26s ease both;
}
.salon__reponse__texte{ flex:1 1 auto; font-size:13px; color:var(--orange-dark); }
.salon__reponse__annuler{
  background:none; border:0; cursor:pointer; font-size:20px;
  color:var(--orange-dark); line-height:1; padding:0 4px;
}

.salon__ecrire{
  flex:0 0 auto; padding:12px 20px 14px;
  border-top:1px solid var(--line); background:#fff;
}
.salon__ecrire textarea{
  width:100%; border:1px solid var(--line); border-radius:12px;
  padding:11px 13px; font-size:14.5px; line-height:1.5;
  resize:none; max-height:150px; overflow-y:auto;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.salon__ecrire textarea:focus{
  outline:none; border-color:var(--orange);
  box-shadow:0 0 0 3px rgba(249,115,22,.13);
}
.salon__ecrire__bas{
  display:flex; align-items:center; justify-content:flex-end;
  gap:12px; margin-top:9px;
}
.salon__compteur{ font-size:12px; color:var(--muted); margin-right:auto; }
.salon__compteur.est-proche{ color:#b45309; font-weight:700; }
.salon__erreur{
  padding:0 20px 12px; color:#b91c1c; font-size:13.5px; font-weight:600;
}
.salon__erreur:empty{ padding:0; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width:900px){
  .salon{ grid-template-columns:1fr; }
  .salon__cote{
    position:static;
    display:none;
  }
  body.salon-liste-ouverte .salon__cote{ display:block; }
  body.salon-liste-ouverte .salon__fil{ display:none; }
  .salon__retour{ display:block; }
  .salon__fil{ height:calc(100vh - 132px); }
}

@media (max-width:620px){
  .salon__messages{ padding:14px 13px; gap:12px; }
  .salon__ecrire{ padding:10px 13px 12px; }
  .salon__entete{ padding:12px 14px; }
  .msg__outils{ opacity:1; }   /* pas de survol sur un écran tactile */
  .plus-hero__titre{ letter-spacing:-.2px; }
  .plus-carte{ padding:22px 19px 20px; }
  .modale__recap,.case,.modale__erreur,.modale__actions{ padding-left:18px; padding-right:18px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion:reduce){
  .msg,.piece__pastille,.salon__reponse,.barre-info,
  .reac-choix,.modale__boite{ animation:none !important; transition:none !important; }
  .salon__messages{ scroll-behavior:auto; }
}


/* ---------- Mon abonnement, dans la page compte ---------- */
.abo{ display:flex; flex-direction:column; gap:16px; }

.abo__etat{
  display:inline-flex; align-items:center; gap:8px; align-self:flex-start;
  padding:6px 13px; border-radius:999px; font-size:13.5px;
}
.abo__pastille{ width:8px; height:8px; border-radius:50%; flex:0 0 auto; }
.abo__etat--ok{ background:#f0fdf4; color:#14532d; }
.abo__etat--ok .abo__pastille{ background:#16a34a; animation:battement 2.4s ease-in-out infinite; }
.abo__etat--attente{ background:#fffbeb; color:#78350f; }
.abo__etat--attente .abo__pastille{ background:#d97706; }
.abo__etat--souci{ background:#fef2f2; color:#991b1b; }
.abo__etat--souci .abo__pastille{ background:#dc2626; }
.abo__etat--neutre{ background:#f4f5f6; color:var(--muted); }
.abo__etat--neutre .abo__pastille{ background:#9aa3ac; }
@keyframes battement{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }

.abo__lignes{ display:flex; flex-direction:column; gap:1px; }
.abo__ligne{
  display:flex; justify-content:space-between; gap:16px; align-items:baseline;
  padding:9px 0; border-bottom:1px solid var(--line); font-size:14.5px;
}
.abo__ligne:last-child{ border-bottom:0; }
.abo__ligne span{ color:var(--muted); }

.abo__actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

/* Le bouton de résiliation. Discret mais lisible : le cacher
   serait illégal, le mettre en rouge vif serait malhonnête
   dans l'autre sens. */
.abo__resilier{ color:var(--muted); margin-left:auto; }
.abo__resilier:hover{ color:#b91c1c; }
.abo__resilier.est-confirme{
  background:#fef2f2; color:#b91c1c; border:1px solid #fecaca;
  animation:secousse .34s ease;
}
@keyframes secousse{
  0%,100%{ transform:translateX(0); }
  25%{ transform:translateX(-3px); }
  75%{ transform:translateX(3px); }
}
.abo__annuler{ font-size:13.5px; }

.abo__retract{
  font-size:13.5px; color:var(--muted); line-height:1.6;
  background:#f8f9fa; border-radius:11px; padding:12px 14px;
}
.abo__message{ font-size:14px; font-weight:600; color:#14532d; min-height:20px; }
.abo__message.est-souci{ color:#b91c1c; }

@media (max-width:620px){
  .abo__resilier{ margin-left:0; }
  .abo__actions{ flex-direction:column; align-items:stretch; }
  .abo__actions .btn{ width:100%; justify-content:center; }
}

/* ---------- Le prix membre, sur la page d'un cours ---------- */
.prix-membre{
  display:flex; align-items:baseline; gap:9px; flex-wrap:wrap;
  margin-top:2px;
}
.prix-membre__barre{ text-decoration:line-through; color:var(--muted); font-size:15px; }
.prix-membre__final{ font-weight:900; color:var(--orange-dark); }
.prix-membre__note{
  font-size:12px; background:var(--orange-soft); color:var(--orange-dark);
  padding:2px 8px; border-radius:999px; font-weight:700;
}
.prix-membre__appel{
  display:block; font-size:12.5px; color:var(--muted); margin-top:5px;
}
.prix-membre__appel a{ color:var(--orange-dark); text-decoration:underline; }


/* ---------- Petites pièces réutilisées dans les tableaux ---------- */
/* Une pastille d'état, lisible d'un coup d'oeil dans une
   colonne : la couleur dit l'essentiel, le mot le confirme. */
.puce{
  display:inline-block; padding:2px 9px; border-radius:999px;
  font-size:12px; font-weight:700; white-space:nowrap;
}
.puce--ok{      background:#f0fdf4; color:#14532d; }
.puce--attente{ background:#fffbeb; color:#78350f; }
.puce--souci{   background:#fef2f2; color:#991b1b; }
.puce--neutre{  background:#f4f5f6; color:var(--muted); }

/* Une ligne dont l'affaire est réglée : encore lisible, mais
   elle ne réclame plus l'attention. */
.ligne--eteinte{ opacity:.52; }
.ligne--eteinte td{ text-decoration:none; }

/* Un texte long dans un tableau. Sans largeur maximale, une
   colonne de messages pousse toutes les autres hors de l'écran. */
.cellule-longue{
  max-width:340px; overflow-wrap:anywhere; white-space:normal;
  font-size:13.5px; line-height:1.5;
}
@media (max-width:900px){ .cellule-longue{ max-width:200px; } }


/* ---------- Sous-titres dans les pages légales ---------- */
/* L'article des CGU sur l'abonnement est long et découpé :
   sans niveau intermédiaire, on ne retrouve pas la clause
   qu'on cherche, et c'est précisément celle-là qu'on
   cherche (résiliation, rétractation). */
.texte-legal h3{
  font-size:1rem; font-weight:800; margin:22px 0 8px;
  color:var(--ink);
}
.texte-legal h3 + p{ margin-top:0; }
.texte-legal a{ color:var(--orange-dark); text-decoration:underline; }


/* =======================================================
   ============  LA PAGE « MES COURS »
   Une carte par cours, et un gros bouton « Rejoindre »
   qui reste visible même quand on ne peut pas encore
   cliquer dessus.
   ======================================================= */
.page--mes-cours{ max-width:860px; }

.mes-cours__tete{ padding:30px 0 6px; }
.mes-cours__titre{ font-size:clamp(26px,4vw,34px); font-weight:900; letter-spacing:-.5px; }
.mes-cours__sous{ color:var(--muted); margin-top:8px; line-height:1.6; max-width:62ch; }
.mes-cours__sous strong{ color:var(--orange-dark); }

.mes-cours__bloc{ margin-top:30px; }
.mes-cours__h2{
  display:flex; align-items:center; gap:10px;
  font-size:19px; font-weight:800; margin-bottom:6px;
}
.mes-cours__compte{
  display:inline-grid; place-items:center;
  min-width:26px; height:26px; padding:0 8px; border-radius:999px;
  background:var(--orange); color:#fff; font-size:13px; font-weight:800;
}
.mes-cours__compte:empty{ display:none; }
.mes-cours__aide{ color:var(--muted); font-size:14.5px; line-height:1.6; margin-bottom:14px; max-width:68ch; }
.mes-cours__attente{ color:var(--muted); padding:20px 0; }
.mes-cours__vide{
  text-align:center; padding:34px 20px; border:1.5px dashed var(--line);
  border-radius:18px; color:var(--muted);
}
.mes-cours__vide .vide__actions{ justify-content:center; margin-top:16px; }
.mes-cours__pied{
  margin:36px 0 10px; font-size:14px; color:var(--muted); text-align:center; line-height:1.6;
}
.mes-cours__pied a{ color:var(--orange-dark); text-decoration:underline; }

.page--mes-cours .retour-paiement{ margin-top:18px; }

.cartes-cours{ display:flex; flex-direction:column; gap:18px; }

/* ---------- La carte ---------- */
.carte-cours{
  background:#fff; border:1px solid var(--line); border-radius:20px;
  padding:22px 22px 18px;
  box-shadow:0 2px 10px rgba(15,18,22,.04);
  display:flex; flex-direction:column; gap:16px;
  transition:box-shadow .3s ease, transform .3s cubic-bezier(.16,1,.3,1);
}
.carte-cours:hover{ box-shadow:0 12px 32px rgba(15,18,22,.08); }
.carte-cours--demande{
  border:2px solid var(--orange);
  box-shadow:0 10px 30px rgba(249,115,22,.12);
}
.carte-cours--eteinte{ background:#fafbfb; }
.carte-cours--eteinte .carte-cours__personne,
.carte-cours--eteinte .carte-cours__quand,
.carte-cours--eteinte .carte-cours__infos{ opacity:.6; }

.carte-cours__statut{
  display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.carte-cours__role{ font-size:13px; color:var(--muted); font-weight:600; }
.carte-cours__delai{ font-size:13.5px; color:var(--muted); font-weight:600; }
.carte-cours__delai.est-urgent{ color:#b45309; }

/* Les pastilles d'état : un mot, une couleur, rien d'autre. */
.statut{
  display:inline-flex; align-items:center; gap:7px;
  padding:6px 13px; border-radius:999px;
  font-size:13.5px; font-weight:800; letter-spacing:.1px;
}
.statut::before{
  content:""; width:8px; height:8px; border-radius:50%; background:currentColor; flex:0 0 auto;
}
.statut--ok{      background:#f0fdf4; color:#15803d; }
.statut--attente{ background:#fffbeb; color:#b45309; }
.statut--attente::before{ animation:battement 2s ease-in-out infinite; }
.statut--nouveau{ background:var(--orange); color:#fff; }
.statut--nouveau::before{ background:#fff; animation:battement 1.6s ease-in-out infinite; }
.statut--eteint{  background:#f2f3f5; color:var(--muted); }

/* ---------- La personne en face ---------- */
.carte-cours__personne{
  display:flex; align-items:center; gap:14px;
  margin:-6px -10px; padding:8px 10px; border-radius:14px;
  transition:background .18s ease;
}
.carte-cours__personne:hover{ background:#f7f8f9; }
.carte-cours__avatar{ width:58px; height:58px; font-size:1.1rem; flex:0 0 auto; }
.carte-cours__qui{ display:flex; flex-direction:column; min-width:0; flex:1 1 auto; }
.carte-cours__qui small{ font-size:12px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.5px; }
.carte-cours__qui strong{ font-size:18px; font-weight:800; line-height:1.3; }
.carte-cours__pseudo{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  font-size:13.5px; color:var(--muted);
}
.carte-cours__fleche{ font-size:26px; color:#c3c8ce; line-height:1; transition:transform .2s ease, color .2s ease; }
.carte-cours__personne:hover .carte-cours__fleche{ transform:translateX(3px); color:var(--orange); }

/* ---------- Quoi et quand ---------- */
.carte-cours__quand{
  display:flex; flex-direction:column; gap:6px;
  padding:14px 16px; border-radius:14px; background:#f8f9fa;
}
.carte-cours__instrument{ font-size:20px; font-weight:900; letter-spacing:-.2px; }
.carte-cours__date{ display:flex; flex-wrap:wrap; gap:4px 0; font-size:15.5px; font-weight:600; }
.carte-cours__date span + span::before{ content:"·"; margin:0 9px; color:#b0b7bf; }

.carte-cours__infos{ display:flex; flex-wrap:wrap; gap:6px 0; font-size:14.5px; color:var(--muted); }
.carte-cours__infos .info + .info::before{ content:"·"; margin:0 9px; color:#b0b7bf; }
.carte-cours__infos strong{ color:var(--ink); font-size:16px; }

.carte-cours__mot{
  margin:0; padding:12px 14px; border-left:3px solid var(--orange);
  background:var(--orange-soft); border-radius:0 12px 12px 0;
  font-size:14.5px; line-height:1.6; font-style:italic;
}
.carte-cours__mot span{ display:block; font-style:normal; font-weight:700; font-size:12.5px; color:var(--orange-dark); margin-bottom:2px; }

.carte-cours__repute{ font-size:13.5px; color:var(--muted); display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.carte-cours__repute:empty{ display:none; }

.carte-cours__explication{
  font-size:14.5px; line-height:1.6; color:var(--muted);
  padding:12px 14px; border-radius:12px; background:#f8f9fa;
}

/* ---------- Les deux gros boutons du professeur ---------- */
.carte-cours__decision{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.btn--accepter{
  background:#15803d; color:#fff; border-radius:14px;
  box-shadow:0 6px 18px rgba(22,163,74,.25);
}
.btn--accepter:hover{ background:#166534; }
.btn--refuser{
  background:#fff; color:#b91c1c; border:2px solid #fecaca; border-radius:14px;
}
.btn--refuser:hover{ background:#fef2f2; border-color:#fca5a5; }
.carte-cours__decision .btn{ width:100%; }

.carte-cours__refus{
  display:flex; flex-direction:column; gap:8px;
  padding:14px; border:1px solid #fecaca; border-radius:14px; background:#fffafa;
  animation:apparaitDoux .3s cubic-bezier(.16,1,.3,1) both;
}
.carte-cours__refus label{ font-size:14px; font-weight:700; }
.carte-cours__refus textarea{
  border:1.5px solid var(--line); border-radius:10px; padding:10px 12px;
  resize:vertical; min-height:64px; line-height:1.5;
}
.carte-cours__refus textarea:focus{ outline:none; border-color:#f87171; box-shadow:0 0 0 3px rgba(248,113,113,.15); }
.carte-cours__refus-actions{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
@keyframes apparaitDoux{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }

/* ---------- Le gros bouton « Rejoindre » ---------- */
.rejoindre{ display:flex; flex-direction:column; align-items:stretch; gap:8px; }
.rejoindre__bouton{
  display:flex; align-items:center; justify-content:center; gap:12px;
  height:62px; border-radius:16px;
  font-size:18px; font-weight:900; letter-spacing:.2px;
  /* éteint : visible, lisible, mais clairement pas encore actif */
  background:#eef0f2; color:#9aa3ac; border:2px dashed #d5d9de;
  cursor:not-allowed;
  transition:background .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease, transform .2s ease;
}
.rejoindre__legende{ text-align:center; font-size:13.5px; color:var(--muted); line-height:1.5; min-height:20px; }
.rejoindre__legende .lien-bouton{ font-size:13.5px; }

.rejoindre.est-ouvert .rejoindre__bouton{
  background:linear-gradient(135deg, #f97316, #ea580c);
  color:#fff; border:2px solid transparent; cursor:pointer;
  box-shadow:0 10px 28px rgba(249,115,22,.35);
  animation:respire 2.4s ease-in-out infinite;
}
.rejoindre.est-ouvert .rejoindre__bouton:hover{ transform:translateY(-2px); box-shadow:0 14px 34px rgba(249,115,22,.45); }
.rejoindre.est-ouvert .rejoindre__legende{ color:#15803d; font-weight:600; }
.rejoindre.vient-de-s-ouvrir .rejoindre__bouton{ animation:s-allume .9s cubic-bezier(.16,1,.3,1) both, respire 2.4s ease-in-out .9s infinite; }
.rejoindre.secoue .rejoindre__bouton{ animation:secousse .34s ease; }

@keyframes respire{
  0%,100%{ box-shadow:0 10px 28px rgba(249,115,22,.30); }
  50%    { box-shadow:0 10px 38px rgba(249,115,22,.55); }
}
@keyframes s-allume{
  0%  { transform:scale(.96); filter:brightness(1.4); }
  60% { transform:scale(1.03); }
  100%{ transform:scale(1); filter:none; }
}

.carte-cours__liens{
  display:flex; align-items:center; gap:6px 18px; flex-wrap:wrap;
  padding-top:12px; border-top:1px solid var(--line);
  font-size:14px;
}
.carte-cours__liens a{ color:var(--orange-dark); font-weight:600; }
.carte-cours__liens a:hover{ text-decoration:underline; }
.lien-bouton--discret{ color:var(--muted) !important; font-weight:500 !important; margin-left:auto; }
.lien-bouton--discret:hover{ color:#b91c1c !important; }

/* ---------- Les cours passés ---------- */
.cartes-cours--passes{ gap:10px; }
.carte-passe{
  display:flex; align-items:center; gap:14px;
  padding:12px 16px; border:1px solid var(--line); border-radius:14px; background:#fff;
}
.carte-passe__avatar{ width:42px; height:42px; font-size:.9rem; }
.carte-passe__corps{ flex:1 1 auto; min-width:0; font-size:14.5px; line-height:1.5; }
.carte-passe__corps a{ font-weight:700; }
.carte-passe__corps a:hover{ color:var(--orange-dark); }
.carte-passe__date{ display:block; font-size:13px; color:var(--muted); }

/* ---------- Téléphone ---------- */
@media (max-width:620px){
  .carte-cours{ padding:18px 16px 14px; border-radius:18px; }
  .carte-cours__decision{ grid-template-columns:1fr; }
  .carte-cours__avatar{ width:50px; height:50px; }
  .carte-cours__qui strong{ font-size:17px; }
  .rejoindre__bouton{ height:58px; font-size:17px; }
  .lien-bouton--discret{ margin-left:0; }
  .carte-passe{ flex-wrap:wrap; }
  .carte-passe__action{ width:100%; }
  .carte-passe__action .btn{ width:100%; }
}

@media (prefers-reduced-motion:reduce){
  .rejoindre.est-ouvert .rejoindre__bouton,
  .rejoindre.vient-de-s-ouvrir .rejoindre__bouton,
  .statut--attente::before, .statut--nouveau::before{ animation:none; }
}

/* ---------- Le nombre de demandes dans la banderole ---------- */
.nav__pastille{
  display:inline-grid; place-items:center;
  min-width:19px; height:19px; padding:0 5px; margin-left:5px; border-radius:999px;
  background:#fff; color:var(--orange-dark); font-size:11.5px; font-weight:900;
  vertical-align:1px;
}


/* ---------- Le raccourci vers « Mes cours », sur le profil ---------- */
.raccourci-cours{
  display:flex; align-items:center; gap:16px;
  padding:18px 22px; margin-top:18px;
  border:1.5px solid #fcd9bd; background:linear-gradient(135deg,#fff,var(--orange-soft));
  transition:transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease;
}
.raccourci-cours:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(249,115,22,.14); }
.raccourci-cours__icone{
  display:grid; place-items:center; flex:0 0 auto;
  width:46px; height:46px; border-radius:14px; background:var(--orange); color:#fff;
}
.raccourci-cours__texte{ flex:1 1 auto; display:flex; flex-direction:column; gap:2px; }
.raccourci-cours__texte strong{ font-size:17px; font-weight:800; }
.raccourci-cours__texte span{ font-size:14px; color:var(--muted); line-height:1.5; }
.raccourci-cours__fleche{ font-size:28px; color:var(--orange); transition:transform .2s ease; }
.raccourci-cours:hover .raccourci-cours__fleche{ transform:translateX(4px); }

/* Le téléchargement des données : présent, mais en petit. */
.zone-danger__donnees{
  flex:1 1 100% !important; display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin-top:4px; padding-top:12px; border-top:1px solid var(--line);
}
.zone-danger__donnees .lien-bouton{ font-size:.85rem; color:var(--muted); }
.zone-danger__donnees .lien-bouton:hover{ color:var(--ink); }

/* Le bouton du bandeau de rappel, tant que la salle n'est pas
   ouverte : visible, mais clairement pas encore cliquable. */
.rappel-bandeau [data-rappel-tot]:disabled{
  background:#eef0f2; color:#8a939c; cursor:not-allowed; box-shadow:none;
}


/* =======================================================
   ============  CRÉATION DE COURS : AUTRE, COORDONNÉES, RIB
   ======================================================= */

/* Deux champs côte à côte, l'un sous l'autre sur téléphone. */
.form--deux{ margin-top:0; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:620px){ .form--deux{ grid-template-columns:1fr; } }

.field select{
  height:44px; padding:0 12px;
  border:1.5px solid var(--line); border-radius:10px; background:#fff; outline:none;
}
.field select:focus{ border-color:var(--orange); box-shadow:0 0 0 4px rgba(249,115,22,.15); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"]{ border-color:#d92d20; }

/* « Autre » : le nom de l'instrument et sa famille */
.instrument-autre{
  display:grid; grid-template-columns:1.3fr 1fr; gap:14px;
  margin-top:16px; padding:16px; border-radius:14px;
  background:var(--orange-soft); border:1px solid #fcd9bd;
  animation:apparaitDoux .3s cubic-bezier(.16,1,.3,1) both;
}
@media (max-width:620px){ .instrument-autre{ grid-template-columns:1fr; } }
.instrument-famille{ margin-top:10px; font-size:14px; color:var(--muted); min-height:20px; }

/* L'état du RIB dans le formulaire */
.rib-etat{
  font-size:14.5px; line-height:1.6; padding:12px 14px; border-radius:12px;
}
.rib-etat--ok{      background:#f0fdf4; color:#14532d; }
.rib-etat--attente{ background:#fffbeb; color:#78350f; }
.rib-etat--neutre{  background:#f6f7f8; color:var(--muted); }

/* ---------- L'écran « votre cours est en ligne » ---------- */
.publie{
  max-width:640px; margin:40px auto 30px; text-align:center;
  animation:apparaitDoux .45s cubic-bezier(.16,1,.3,1) both;
}
.publie__coche{
  width:74px; height:74px; margin:0 auto 18px; border-radius:50%;
  display:grid; place-items:center; color:#fff;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  box-shadow:0 12px 30px rgba(22,163,74,.3);
  animation:s-allume .7s cubic-bezier(.16,1,.3,1) both;
}
.publie__titre{ font-size:clamp(24px,4vw,32px); font-weight:900; letter-spacing:-.4px; }
.publie__sous{ color:var(--muted); line-height:1.65; margin:10px auto 0; max-width:52ch; }

.publie__etape{
  margin-top:28px; padding:26px 24px; border-radius:20px; text-align:left;
  border:2px solid var(--orange); background:#fff;
  box-shadow:0 12px 32px rgba(249,115,22,.12);
  display:flex; flex-direction:column; gap:12px;
}
.publie__etape--faite{ border-color:#bbf7d0; box-shadow:none; background:#f0fdf4; }
.publie__numero{
  align-self:flex-start; padding:4px 12px; border-radius:999px;
  background:var(--orange); color:#fff; font-size:12.5px; font-weight:800;
}
.publie__etape--faite .publie__numero{ background:#16a34a; }
.publie__h2{ font-size:20px; font-weight:900; }
.publie__etape p{ line-height:1.65; color:var(--muted); }
.publie__etape p strong{ color:var(--ink); }
.publie__etape .btn--xl{ width:100%; border-radius:14px; }
.publie__note{ font-size:13.5px; }
.publie__erreur{ color:#b91c1c; font-weight:600; font-size:14px; min-height:0; }
.publie__erreur:empty{ display:none; }
.publie__actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:24px; }

/* La famille de l'instrument, sous son nom, dans le catalogue */
.cours-carte__famille{
  display:inline-block; align-self:flex-start; margin:-2px 0 2px;
  padding:2px 10px; border-radius:999px;
  background:var(--orange-soft); color:var(--orange-dark);
  font-size:12px; font-weight:700;
}


/* ---------- La recherche dans la messagerie ---------- */
.convos-colonne{ display:flex; flex-direction:column; gap:10px; min-width:0; }
.convos__recherche{ position:relative; }
.convos__loupe{ position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--muted); display:flex; }
.convos__recherche input{
  width:100%; height:42px; padding:0 12px 0 36px;
  border:1.5px solid var(--line); border-radius:12px; background:#fff; outline:none;
  font-size:.92rem;
  transition:border-color .18s, box-shadow .18s;
}
.convos__recherche input:focus{ border-color:var(--orange); box-shadow:0 0 0 4px rgba(249,115,22,.15); }
.convos__trouves{
  display:grid; gap:4px; padding:8px; border-radius:14px;
  background:#fff; border:1px solid var(--line); box-shadow:0 10px 26px rgba(15,18,22,.08);
  animation:apparaitDoux .22s cubic-bezier(.16,1,.3,1) both;
}
.convos__trouves-titre{ font-size:.75rem; font-weight:800; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); padding:2px 6px; }
.convos__trouves-vide{ font-size:.86rem; color:var(--muted); padding:6px; }
.convo--trouve:hover{ background:var(--orange-soft); }
@media (max-width:860px){
  .convos-colonne .convos{ max-height:230px; overflow-y:auto; }
}


/* ---------- La recherche de membres, en haut de l'accueil ---------- */
.search--hero{
  max-width:600px; margin:26px auto 0;
  box-shadow:0 10px 30px rgba(15,18,22,.08);
}
.accueil-hero .search__note{ margin-top:10px; min-height:0; }
.accueil-hero .search__note:empty{ display:none; }
.resultats--hero{
  max-width:600px; margin:12px auto 0; gap:8px;
}
.resultats--hero:empty{ display:none; }
.resultats--hero .resultat{
  background:#fff; border-radius:14px; box-shadow:0 6px 20px rgba(15,18,22,.06);
  animation:apparaitDoux .25s cubic-bezier(.16,1,.3,1) both;
}
.resultats--hero .recherche-vide{
  background:#fff; border-radius:14px; padding:14px 16px; border:1px solid var(--line);
}
@media (max-width:620px){
  .search--hero{ border-radius:16px; }
  .search--hero .btn{ width:100%; }
}


/* =======================================================
   Musiciens près de chez toi (musiciens.html)
   ======================================================= */
.musiciens{ padding:56px 0 88px; }
.musiciens .onglets{ margin-top:26px; }
.musiciens__porte{ max-width:560px; margin:28px 0 0; padding:26px; display:grid; gap:14px; }
.musiciens__porte .vide__actions{ justify-content:flex-start; margin-top:4px; }
.musiciens__porte .field input{ max-width:240px; }
.musiciens__porte .btn{ justify-self:start; }

.musiciens__question{ padding:20px; margin-top:18px; display:grid; gap:18px; }
.musiciens__ligne{ display:grid; grid-template-columns:1fr 150px; gap:14px; align-items:end; }
.musiciens__rayon select, .musiciens__form select{
  height:44px; padding:0 12px; border:1.5px solid var(--line); border-radius:10px;
  background:#fff; font:inherit; color:var(--ink); outline:none;
}
.musiciens__rayon select:focus, .musiciens__form select:focus{ border-color:var(--orange); box-shadow:0 0 0 4px rgba(249,115,22,.15); }

/* Les trois grosses cases : on comprend sans lire. */
.musiciens__quoi{ border:0; padding:0; margin:0; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.musiciens__quoi legend{ font-size:.88rem; font-weight:600; margin-bottom:8px; }
.quoi{
  position:relative; display:grid; gap:2px; padding:14px 16px; cursor:pointer;
  border:1.5px solid var(--line); border-radius:14px; background:#fff;
  transition:border-color .15s, background .15s;
}
.quoi input{ position:absolute; opacity:0; pointer-events:none; }
.quoi:hover{ border-color:#cfd4da; }
.quoi:has(input:checked){ border-color:var(--orange); background:var(--orange-soft); }
.quoi:has(input:focus-visible){ outline:3px solid var(--ink); outline-offset:2px; }
.quoi__titre{ font-weight:700; }
.quoi__desc{ font-size:.84rem; color:var(--muted); }

.musiciens__filtres summary{
  cursor:pointer; font-weight:600; color:var(--orange-dark); font-size:.92rem;
  display:inline-flex; align-items:center; padding:4px 0;
}
.musiciens__filtres .filtres{ margin:12px 0 0; }
.filtres__champ--case{ display:flex; align-items:center; gap:8px; align-self:end; padding-bottom:10px; }
.filtres__champ--case span{ font-weight:600; font-size:.88rem; }

/* La carte. Fond OpenStreetMap un peu adouci, pour qu'il se marie
   avec l'orange au lieu de crier par-dessus. */
.musiciens__carte{
  height:340px; margin-top:18px; border-radius:16px; overflow:hidden;
  border:1px solid var(--line); background:#f3f4f6; z-index:0;
}
.musiciens__carte .leaflet-tile-pane{ filter:saturate(.55) contrast(1.04) brightness(1.03); }
.musiciens__carte .leaflet-tooltip{ font:600 .85rem/1.3 inherit; border-radius:8px; }

.musiciens__resume{ margin:18px 0 12px; font-weight:600; }
.musiciens__resultats{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; }
.musiciens__conseil{ margin-top:22px; }

.carte-musicien{ padding:18px; display:flex; flex-direction:column; gap:8px; min-width:0; }
.carte-musicien__tete{ display:flex; align-items:center; gap:12px; }
.carte-musicien__tete .avatar{ width:52px; height:52px; font-size:1.05rem; }
.carte-musicien__ident{ display:grid; min-width:0; flex:1 1 auto; }
.carte-musicien__nom{ font-weight:700; font-size:1.05rem; overflow-wrap:anywhere; }
a.carte-musicien__nom:hover{ color:var(--orange-dark); }
.carte-musicien__meta{ font-size:.86rem; color:var(--muted); }
.carte-musicien__cherche{ align-self:flex-start; white-space:normal; text-align:right; max-width:130px; }
.carte-musicien__ligne{ font-size:.9rem; color:var(--muted); overflow-wrap:anywhere; }
.carte-musicien__texte{ font-size:.93rem; overflow-wrap:anywhere; }
.carte-musicien__cherche-groupe{ font-weight:700; color:var(--orange-dark); }
.carte-musicien__commun{ font-size:.84rem; color:#065f46; background:#ecfdf5; border-radius:8px; padding:6px 10px; }
.carte-musicien__actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:auto; padding-top:6px; }
.tag--fort{ background:var(--orange-soft); color:var(--orange-dark); border-color:#f7c9a6; }
.lien-externe{ color:var(--orange-dark); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.avatar--groupe{ background:var(--orange); color:#fff; border-color:var(--orange); font-size:1.1rem; }

/* Le champ ville et sa liste de communes */
.ville{ position:relative; }
.ville input{ width:100%; }
.ville__liste{
  position:absolute; left:0; right:0; top:100%; z-index:30; margin-top:4px;
  display:grid; gap:2px; padding:6px; border-radius:12px;
  background:#fff; border:1px solid var(--line); box-shadow:0 12px 28px rgba(15,18,22,.12);
}
.ville__choix{
  display:flex; justify-content:space-between; gap:10px; padding:9px 10px; border:0; border-radius:8px;
  background:transparent; font:inherit; text-align:left; cursor:pointer;
}
.ville__choix:hover, .ville__choix:focus-visible{ background:var(--orange-soft); }
.ville__choix span{ color:var(--muted); font-size:.85rem; }
.ville__vide{ padding:8px 10px; color:var(--muted); font-size:.88rem; }

/* Les formulaires « Mon annonce » et « Mon groupe » */
.musiciens__form{ margin-top:18px; padding:24px; display:grid; gap:18px; max-width:760px; }
.musiciens__form fieldset{ border:0; padding:0; margin:0; }
.musiciens__form legend{ font-size:.88rem; font-weight:600; margin-bottom:8px; }
.musiciens__form .field input + input{ margin-top:6px; }
.musiciens__form > .btn{ justify-self:start; }
.field--case{ display:flex; align-items:center; gap:10px; font-weight:600; font-size:.92rem; }
.grid-choices--serre{ grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
.musiciens__boutons{ display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }
#vueGroupes{ display:grid; gap:14px; margin-top:18px; }
#listeGroupes{ display:grid; gap:14px; }
#listeGroupes > .btn{ justify-self:start; }

@media (max-width:640px){
  .musiciens{ padding:36px 0 64px; }
  .musiciens__ligne{ grid-template-columns:1fr; }
  .musiciens__quoi{ grid-template-columns:1fr; }
  .musiciens__carte{ height:260px; }
  .musiciens__resultats{ grid-template-columns:1fr; }
  .musiciens__form, .musiciens__porte{ padding:18px; }
  .carte-musicien__cherche{ max-width:110px; font-size:.75rem; }
}


/* =======================================================
   Discussions à plusieurs (messages.html, onglet Groupes)
   ======================================================= */
.convos__nouveau{ width:100%; }
.bulle__auteur{ display:block; font-size:.78rem; font-weight:700; color:var(--orange-dark); margin-bottom:2px; }
.bulle-systeme{
  align-self:center; max-width:90%; margin:4px 0; padding:4px 12px; border-radius:999px;
  background:#f2f4f6; color:var(--muted); font-size:.8rem; text-align:center;
}
.membres-groupe{ list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.membres-groupe__ligne{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:6px 10px; border-radius:10px; background:#f7f8f9; font-size:.92rem;
}
.membres-groupe__ligne a{ font-weight:600; }
.membres-groupe__ligne--nouveau{ background:var(--orange-soft); }
.membres-groupe__ligne em{ color:var(--muted); font-style:normal; font-size:.82rem; }
.modale__pied .btn--danger{ margin-right:auto; }


/* Les flèches de l'aide, de part et d'autre des points : on
   comprend sans lire qu'on peut avancer et reculer. */
.aide__nav{ display:flex; align-items:center; justify-content:center; gap:12px; margin-top:16px; }
.aide__nav .aide__points{ margin-top:0; }
.aide__flechenav{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; padding:0; border-radius:50%;
  border:1.5px solid var(--line); background:#fff; color:var(--ink); cursor:pointer;
  transition:border-color .15s, background .15s, color .15s;
}
.aide__flechenav:hover:not(:disabled){ border-color:var(--orange); color:var(--orange-dark); background:var(--orange-soft); }
.aide__flechenav:disabled{ opacity:.35; cursor:default; }


/* =======================================================
   DEUX ESPACES : Cours et Communauté
   La barre change de couleur selon l'espace : orange pour
   les cours, encre pour la communauté.
   ======================================================= */
.espaces{
  display:inline-flex; gap:0; padding:0; border-radius:999px;
  background:rgba(255,255,255,.18); flex:0 0 auto;
}
/* Même hauteur que les liens du menu (« Accueil », « Cours ») : la
   pastille sombre de l'espace et la pastille claire de la page
   s'alignent au pixel. */
.espaces__lien{
  display:inline-flex; align-items:center;
  padding:9px 14px; border-radius:999px; font-weight:700; font-size:.88rem;
  color:#fff; opacity:.85; white-space:nowrap; transition:background .15s, color .15s, opacity .15s;
}
.espaces__lien:hover{ opacity:1; }
.espaces__lien.is-actif{ background:#fff; color:var(--orange-dark); opacity:1; }

body[data-espace="communaute"] .topbar{ background:#1c1917; }
body[data-espace="communaute"] .espaces{ background:rgba(255,255,255,.1); }
body[data-espace="communaute"] .espaces__lien.is-actif{ background:var(--orange); color:#fff; }
body[data-espace="communaute"] .nav__link.is-active{ background:var(--orange); }
body[data-espace="communaute"] .nav__link:hover{ background:rgba(255,255,255,.12); }

@media (max-width:1000px){
  .espaces{ order:2; }
}
@media (max-width:640px){
  .espaces{ order:3; flex-basis:100%; justify-content:center; background:transparent; }
  body[data-espace="communaute"] .espaces{ background:transparent; }
  .espaces__lien{ flex:1 1 0; justify-content:center; text-align:center; background:rgba(255,255,255,.14); }
  .nav{ order:4; }
}


/* =======================================================
   LE FIL (communaute.html)
   ======================================================= */
.communaute{
  display:grid; grid-template-columns:240px minmax(0, 1fr) 300px; gap:22px;
  align-items:start; padding:28px 0 72px;
}
.communaute__gauche, .communaute__droite{ position:sticky; top:96px; display:grid; gap:14px; }
.communaute__moi{ display:flex; align-items:center; gap:12px; padding:14px; }
.communaute__moi:hover{ border-color:#f7c9a6; }
.communaute__moi-avatar{ width:46px; height:46px; font-size:1rem; }
.communaute__moi strong, .communaute__moi small{ display:block; }
.communaute__moi small{ color:var(--muted); font-size:.82rem; }
.communaute__raccourcis{ padding:8px; display:grid; gap:2px; }
.communaute__raccourcis a{
  display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px;
  font-weight:600; font-size:.93rem;
}
.communaute__raccourcis a:hover{ background:#f6f7f9; }
.communaute__raccourcis a.est-actif{ background:var(--orange-soft); color:var(--orange-dark); }
.communaute__encart{ padding:16px; display:grid; gap:10px; }
.communaute__tout{ font-size:.88rem; font-weight:600; color:var(--orange-dark); }
.communaute__centre .onglets{ margin-top:14px; }

/* Publier */
.publier{ padding:14px 16px; display:grid; gap:10px; }
.publier__ligne{ display:flex; gap:12px; align-items:flex-start; }
.publier__avatar{ width:42px; height:42px; font-size:.95rem; }
.publier textarea{
  flex:1 1 auto; min-height:46px; padding:11px 14px; resize:none;
  border:1.5px solid var(--line); border-radius:14px; background:#f7f8f9;
  font:inherit; outline:none; transition:border-color .15s, background .15s;
}
.publier textarea:focus{ border-color:var(--orange); background:#fff; }
.publier__apercu{ position:relative; }
.publier__apercu img{ display:block; max-width:100%; max-height:320px; border-radius:12px; }
.publier__retirer{
  position:absolute; top:8px; left:8px; width:30px; height:30px; border:0; border-radius:50%;
  background:rgba(0,0,0,.6); color:#fff; font-size:1.1rem; cursor:pointer;
}
.publier__lien input{
  width:100%; height:42px; padding:0 12px; border:1.5px solid var(--line); border-radius:10px; outline:none;
}
.publier__lien input:focus{ border-color:var(--orange); }
.publier__pied{ display:flex; align-items:center; gap:4px; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:10px; }
.publier__outil{
  display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border:0; border-radius:10px;
  background:transparent; color:var(--muted); font:inherit; font-weight:600; font-size:.88rem; cursor:pointer;
}
.publier__outil:hover{ background:#f6f7f9; color:var(--ink); }
.publier__envoyer{ margin-left:auto; }
.publier .form__note{ text-align:left; }

/* Les publications */
.fil-pub{ display:grid; gap:14px; margin-top:14px; }
.fil-pub__vide{ padding:22px; color:var(--muted); display:grid; gap:6px; }
.fil-pub__plus{ display:block; margin:18px auto 0; }
.pub{ padding:16px 18px 6px; display:flex; flex-direction:column; gap:12px; min-width:0; }
.pub--masquee{ opacity:.75; }
.pub__tete{ display:flex; align-items:center; gap:11px; }
.pub__avatar{ width:42px; height:42px; font-size:.95rem; }
.pub__ident{ display:grid; flex:1 1 auto; min-width:0; }
.pub__auteur{ font-weight:700; }
.pub__auteur:hover{ color:var(--orange-dark); }
.pub__meta{ font-size:.82rem; color:var(--muted); }
.pub__menu{
  width:34px; height:34px; border:0; border-radius:50%; background:transparent;
  color:var(--muted); cursor:pointer; font-size:1rem;
}
.pub__menu:hover{ background:#f2f4f6; color:var(--ink); }
.pub__texte{ font-size:.97rem; line-height:1.55; overflow-wrap:anywhere; }
.pub__photo{ width:calc(100% + 36px); margin:0 -18px; max-height:560px; object-fit:cover; background:#f3f4f6; }
.pub__lien{
  display:flex; align-items:stretch; border:1px solid var(--line); border-radius:14px; overflow:hidden;
  transition:border-color .15s;
}
.pub__lien:hover{ border-color:#f7c9a6; }
.pub__lien--video{ flex-direction:column; }
.pub__vignette{ position:relative; display:block; aspect-ratio:16 / 9; background:#111; }
.pub__vignette img{ width:100%; height:100%; object-fit:cover; display:block; }
.pub__lecture{
  position:absolute; inset:0; margin:auto; width:64px; height:64px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(234,88,12,.92); color:#fff; font-size:1.5rem; padding-left:4px;
}
.pub__lien-texte{ display:grid; gap:2px; padding:10px 14px; background:#fafafa; min-width:0; }
.pub__lien-texte span{ font-size:.82rem; color:var(--muted); overflow-wrap:anywhere; }
.pub__actions{ display:flex; gap:2px; border-top:1px solid var(--line); padding-top:4px; flex-wrap:wrap; }
.pub__bouton{
  flex:1 1 auto; display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:9px 10px; border:0; border-radius:10px; background:transparent;
  color:var(--muted); font:inherit; font-weight:600; font-size:.88rem; cursor:pointer;
}
.pub__bouton:hover{ background:#f6f7f9; color:var(--ink); }
.pub__bouton.est-aime{ color:#e11d48; }
.pub__bouton.est-aime span, .pub__bouton.est-aime .icone{ animation:coeur .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes coeur{ 0%{ transform:scale(.6); } 100%{ transform:scale(1); } }

/* Les commentaires */
.pub__commentaires{ display:grid; gap:10px; padding:4px 0 12px; }
.com{ display:flex; gap:9px; align-items:flex-start; }
.com__avatar{ width:32px; height:32px; font-size:.75rem; }
.com__bulle{ background:#f2f4f6; border-radius:14px; padding:8px 12px; font-size:.92rem; min-width:0; overflow-wrap:anywhere; }
.com--masque .com__bulle{ opacity:.6; }
.com__auteur{ display:block; font-weight:700; font-size:.85rem; }
.com__pied{ display:block; margin-top:3px; font-size:.76rem; color:var(--muted); }
.com__pied .lien-bouton{ font-size:.76rem; }
.commenter{ display:flex; gap:8px; }
.commenter input{
  flex:1 1 auto; min-width:0; height:38px; padding:0 14px; border:1.5px solid var(--line);
  border-radius:999px; background:#f7f8f9; outline:none;
}
.commenter input:focus{ border-color:var(--orange); background:#fff; }

/* Un événement, dans le fil ou dans la liste */
.evt{
  display:flex; gap:14px; align-items:center; padding:14px; border-radius:14px;
  background:linear-gradient(135deg, var(--orange-soft), #fff); border:1px solid #f7c9a6;
}
.evt__date{
  flex:0 0 auto; width:58px; border-radius:12px; overflow:hidden; text-align:center;
  background:#fff; box-shadow:0 2px 8px rgba(234,88,12,.15);
}
.evt__mois{ display:block; padding:3px 0; background:var(--orange); color:#fff; font-size:.72rem; font-weight:800; text-transform:uppercase; }
.evt__jour{ display:block; padding:4px 0 6px; font-size:1.5rem; font-weight:800; }
.evt__corps{ flex:1 1 auto; min-width:0; display:grid; gap:2px; }
.evt__genre{ font-size:.75rem; font-weight:800; text-transform:uppercase; letter-spacing:.5px; color:var(--orange-dark); }
.evt__titre{ font-size:1.08rem; font-weight:800; overflow-wrap:anywhere; }
.evt__quand{ font-size:.88rem; font-weight:600; }
.evt__quand::first-letter{ text-transform:uppercase; }
.evt__ou, .evt__monde{ font-size:.85rem; color:var(--muted); overflow-wrap:anywhere; }
.evt__bouton{ flex:0 0 auto; }

/* À droite */
.mini-evt{ display:flex; gap:10px; align-items:center; padding:6px; border-radius:10px; }
.mini-evt:hover{ background:#f6f7f9; }
.mini-evt__date{
  flex:0 0 auto; width:42px; padding:4px 0; border-radius:9px; text-align:center;
  background:var(--orange-soft); color:var(--orange-dark); font-size:.7rem; font-weight:700; text-transform:uppercase;
}
.mini-evt__date b{ display:block; font-size:1.1rem; color:var(--ink); }
.mini-evt strong, .mini-evt small{ display:block; }
.mini-evt small{ color:var(--muted); font-size:.8rem; }
.suggestion{ display:flex; align-items:center; gap:10px; }
.suggestion__avatar{ width:38px; height:38px; font-size:.85rem; }
.suggestion__nom{ flex:1 1 auto; min-width:0; }
.suggestion__nom strong, .suggestion__nom small{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.suggestion__nom small{ color:var(--muted); font-size:.8rem; }

/* La page des événements */
.evenements{ padding:56px 0 88px; max-width:820px; }
.evenements__barre{ display:flex; justify-content:flex-end; }
.evenements__liste{ display:grid; gap:14px; }
.evenements__jour{ margin:18px 0 0; font-size:1rem; font-weight:800; color:var(--muted); }
.evenements__jour::first-letter{ text-transform:uppercase; }
.evenements__heures{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.evenements__heures > div{ display:grid; gap:6px; }
.musiciens__form input[type="date"], .musiciens__form input[type="time"],
.musiciens__form input[type="number"], .musiciens__form input[type="file"]{
  height:44px; padding:0 12px; border:1.5px solid var(--line); border-radius:10px; background:#fff; font:inherit;
}
.musiciens__form input[type="file"]{ padding:9px 12px; }

/* Le profil : ses publications */
.profil__publications{ margin-top:22px; }
.profil__publications .fil-pub{ max-width:680px; }

/* Le panel : une photo signalée */
.signalement__photo{ max-width:220px; max-height:160px; border-radius:10px; margin-top:6px; }

@media (max-width:1100px){
  .communaute{ grid-template-columns:minmax(0, 1fr) 280px; }
  .communaute__gauche{ display:none; }
}
@media (max-width:820px){
  .communaute{ grid-template-columns:minmax(0, 1fr); padding-top:18px; }
  .communaute__droite{ position:static; order:2; }
}
@media (max-width:640px){
  .pub{ padding:14px 14px 4px; }
  .pub__photo{ width:calc(100% + 28px); margin:0 -14px; }
  .evt{ flex-wrap:wrap; }
  .evt__bouton{ width:100%; }
  .evenements{ padding:36px 0 64px; }
  .evenements__heures{ grid-template-columns:1fr 1fr; }
  .publier__outil{ padding:8px; }
}


/* =======================================================
   LA SCÈNE 3D DE L'ACCUEIL (js/scene3d.js)
   Toute la largeur de l'écran, comme sur la page Cours (--plein et
   --gauche posés par js/scene3d.js) ; elle se fond seulement en haut
   et en bas, et arrive en fondu une fois prête.
   ======================================================= */
.scene3d{
  position:absolute; top:-70px; left:var(--gauche, 0); width:var(--plein, 100%);
  height:calc(100% + 110px);
  pointer-events:none; z-index:0; opacity:0; transition:opacity 1.2s ease;
  -webkit-mask-image:linear-gradient(to bottom, transparent 0%, #000 12%, #000 72%, transparent 100%);
          mask-image:linear-gradient(to bottom, transparent 0%, #000 12%, #000 72%, transparent 100%);
}
.scene3d.est-visible{ opacity:1; }
.accueil-hero > .scene3d{ position:absolute; z-index:0; }
@media (prefers-reduced-motion:reduce){ :root:not([data-animations="toutes"]) .scene3d{ display:none; } }


/* Téléphone : une barre compacte. Le menu tient sur une ligne
   qu'on fait glisser du doigt, et la barre défile avec la page
   au lieu de rester collée : sur un petit écran, chaque
   centimètre compte. */
@media (max-width:640px){
  .topbar{ position:relative; }
  .topbar__inner{ row-gap:8px; padding:10px 12px; }
  .espaces{ padding:0; gap:6px; }
  .espaces__lien{ padding:7px 10px; font-size:.86rem; }
  .nav{
    flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch; scrollbar-width:none;
  }
  .nav::-webkit-scrollbar{ display:none; }
  .nav__link{ flex:0 0 auto; }
}


/* =======================================================
   LE RÉGLAGE « ANIMATIONS » (bas de page, js/anim.js)
   « réduites » coupe tout, comme si l'appareil l'avait demandé.
   ======================================================= */
:root[data-animations="reduites"] *, :root[data-animations="reduites"] *::before, :root[data-animations="reduites"] *::after{
  animation-duration:.01ms !important; animation-iteration-count:1 !important;
  transition-duration:.01ms !important; scroll-behavior:auto !important;
}
:root[data-animations="reduites"] .est-a-decouvrir{ opacity:1; transform:none; }
.footer__reglage{
  padding:0; border:0; background:none; font:inherit; color:inherit; text-align:left; cursor:pointer;
}
.footer__reglage:hover{ color:var(--orange-dark); text-decoration:underline; }

/* =======================================================
   LA 3D QUI SERT (js/trois.js et ses scènes)
   ======================================================= */
.niveau__3d{
  height:170px; margin:4px 0 12px; border-radius:14px; overflow:hidden;
  background:radial-gradient(ellipse at 50% 70%, #fff7ed 0%, #fff 70%);
}
.metro__3d{
  height:190px; margin:6px 0 10px; border-radius:14px; overflow:hidden;
  background:radial-gradient(ellipse at 50% 80%, #fff7ed 0%, #fff 72%);
}
.niveau__3d canvas, .metro__3d canvas, .plus-carte3d canvas{ display:block; width:100%; height:100%; }
.plus-carte3d{
  height:240px; max-width:520px; margin:0 auto 6px; opacity:0; transition:opacity .9s ease;
}
.plus-carte3d.est-visible{ opacity:1; }


/* =======================================================
   LA CLOCHE (js/header.js)
   ======================================================= */
.cloche{ position:relative; }
.cloche__panneau{
  position:absolute; right:-60px; top:calc(100% + 10px); z-index:40;
  width:min(360px, calc(100vw - 24px)); max-height:min(480px, 70vh); overflow-y:auto;
  padding:8px; border-radius:16px; background:#fff; color:var(--ink);
  border:1px solid var(--line); box-shadow:0 18px 40px rgba(15,18,22,.18);
}
.cloche__titre{ padding:8px 10px 6px; font-weight:800; }
.cloche__ligne{ display:flex; gap:10px; align-items:flex-start; padding:9px 10px; border-radius:12px; font-size:.9rem; }
.cloche__ligne:hover{ background:#f6f7f9; }
.cloche__ligne.est-neuve{ background:var(--orange-soft); }
.cloche__avatar{ width:38px; height:38px; font-size:.82rem; }
.cloche__texte{ min-width:0; overflow-wrap:anywhere; }
.cloche__texte small{ display:block; color:var(--muted); font-size:.78rem; margin-top:2px; }
.cloche__vide{ padding:14px 10px; color:var(--muted); font-size:.9rem; }
.cloche__pied{ display:block; padding:10px; text-align:center; font-weight:700; color:var(--orange-dark); border-top:1px solid var(--line); margin-top:4px; }


/* =======================================================
   LA BARRE DU BAS ET SON MENU (téléphone)
   ======================================================= */
.barre-bas{ display:none; }
@media (max-width:640px){
  .barre-bas{
    position:fixed; left:0; right:0; bottom:0; z-index:30;
    display:grid; grid-template-columns:repeat(5, 1fr);
    padding:6px 4px calc(6px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.97); border-top:1px solid var(--line);
    box-shadow:0 -6px 20px rgba(15,18,22,.06);
    -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  }
  body.a-barre-bas{ padding-bottom:calc(66px + env(safe-area-inset-bottom)); }
  /* La barre du bas prend le relais du menu du haut. */
  body.a-barre-bas .topbar .nav{ display:none; }
  /* L'aide est dans « Menu » (Comment ça marche ?) : le bouton « ? »
     quitte la barre du haut, qui garde ainsi la même hauteur sur
     toutes les pages. */
  body.a-barre-bas .topbar .iconbtn--aide{ display:none; }
  body.a-barre-bas .rappel-bandeau{ bottom:calc(76px + env(safe-area-inset-bottom)) !important; }
}
.barre-bas__lien{
  position:relative; display:flex; flex-direction:column; align-items:center; gap:2px;
  padding:5px 2px; border:0; border-radius:12px; background:none;
  color:var(--muted); font:inherit; font-size:.7rem; font-weight:700; cursor:pointer;
}
.barre-bas__lien.is-active{ color:var(--orange-dark); }
.barre-bas__lien.is-active svg{ stroke-width:2.4; }
.barre-bas__pastille{
  position:absolute; top:0; left:calc(50% + 6px); min-width:17px; height:17px; padding:0 4px;
  border-radius:999px; background:var(--orange); color:#fff; font-size:.66rem; line-height:17px; text-align:center;
}
body[data-espace="communaute"] .barre-bas__lien.is-active{ color:var(--orange-dark); }

.feuille{ position:fixed; inset:0; z-index:60; }
.feuille__fond{ position:absolute; inset:0; background:rgba(15,18,22,.42); }
.feuille__boite{
  position:absolute; left:0; right:0; bottom:0; max-height:85vh; overflow-y:auto;
  display:grid; gap:2px; padding:10px 12px calc(14px + env(safe-area-inset-bottom));
  background:#fff; border-radius:20px 20px 0 0; box-shadow:0 -12px 40px rgba(15,18,22,.2);
  animation:feuille-monte .25s cubic-bezier(.16,1,.3,1);
}
@keyframes feuille-monte{ from{ transform:translateY(100%); } to{ transform:none; } }
.feuille__poignee{ justify-self:center; width:42px; height:5px; border-radius:999px; background:#d8dde3; margin:2px 0 8px; }
.feuille__lien{
  display:block; width:100%; padding:14px 12px; border:0; border-radius:12px; background:none;
  font:inherit; font-weight:600; text-align:left; color:var(--ink); cursor:pointer;
}
.feuille__lien:hover{ background:#f6f7f9; }
.feuille__fermer{ margin-top:6px; }


/* =======================================================
   LE FIL : FINITIONS
   ======================================================= */
.pub--squelette{ pointer-events:none; }
.pub--squelette .avatar{ background:#eef0f3; border-color:#eef0f3; }
.squelette__lignes{ display:grid; gap:8px; flex:1 1 auto; }
.squelette__lignes span{
  display:block; height:11px; border-radius:6px;
  background:linear-gradient(90deg, #eef0f3 25%, #f6f7f9 50%, #eef0f3 75%); background-size:200% 100%;
  animation:squelette 1.2s ease-in-out infinite;
}
.squelette__lignes span:nth-child(2){ width:70%; }
.squelette__lignes span:nth-child(3){ width:45%; }
@keyframes squelette{ from{ background-position:200% 0; } to{ background-position:-200% 0; } }
.fil-pub--une{ margin:14px 0 4px; }
.fil-pub__titre{ font-size:.82rem; font-weight:800; text-transform:uppercase; letter-spacing:.5px; color:var(--orange-dark); }
.fil-pub--une .pub{ border-color:#f7c9a6; box-shadow:0 0 0 3px var(--orange-soft); }
.pub__photo{ cursor:zoom-in; }

.photo-grande{
  position:fixed; inset:0; z-index:70; display:flex; align-items:center; justify-content:center;
  padding:24px; background:rgba(10,10,12,.88); cursor:zoom-out;
}
.photo-grande[hidden]{ display:none; }
.photo-grande img{ max-width:100%; max-height:100%; border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,.4); }
.photo-grande__fermer{
  position:absolute; top:16px; right:16px; width:44px; height:44px; border:0; border-radius:50%;
  background:rgba(255,255,255,.15); color:#fff; font-size:1.6rem; cursor:pointer;
}

.bouton-haut{
  position:fixed; right:18px; bottom:22px; z-index:25; width:46px; height:46px;
  display:flex; align-items:center; justify-content:center; border:0; border-radius:50%;
  background:var(--ink); color:#fff; box-shadow:0 8px 24px rgba(15,18,22,.25); cursor:pointer;
}
.bouton-haut[hidden]{ display:none; }
.bouton-haut:hover{ background:var(--orange-dark); }
@media (max-width:640px){
  body.a-barre-bas .bouton-haut{ bottom:calc(80px + env(safe-area-inset-bottom)); right:12px; }
  .cloche__panneau{ position:fixed; left:12px; right:12px; top:64px; width:auto; }
}


/* =======================================================
   LE MOUVEMENT : tout le site, fluide

   Une seule courbe pour presque tout (--ease-sortie) : un
   départ vif et une arrivée douce, ce qui donne l'impression
   que les choses se posent au lieu de s'arrêter net. Et tout
   ce bloc respecte « moins d'animations » (tout en bas).
   ======================================================= */
:root{
  --ease-sortie: cubic-bezier(.16, 1, .3, 1);
  --ease-ressort: cubic-bezier(.34, 1.56, .64, 1);
  --duree: .22s;
}

/* 1. Tout ce qu'on touche réagit en douceur.
   :where() donne une priorité nulle : une règle existante plus
   précise, qui choisit sa propre durée, garde toujours la main. */
:where(a, button, input, select, textarea, summary, label,
       .card, .tag, .chip, .badge, .onglet, .convo, .choice, .puce-jour, .quoi,
       .avatar, .pub__bouton, .feuille__lien, .cloche__ligne, .barre-bas__lien,
       .espaces__lien, .nav__link, .mini-evt, .suggestion){
  transition-property: color, background-color, border-color, box-shadow, transform, opacity, filter, background-size;
  transition-duration: var(--duree);
  transition-timing-function: var(--ease-sortie);
}

/* 2. Les liens de texte se soulignent en glissant. */
.lien{ color:var(--orange-dark); font-weight:600; }
.lien, .footer__inner a, .feuille__lien{
  background-image:linear-gradient(currentColor, currentColor);
  background-size:0% 1.5px; background-repeat:no-repeat; background-position:0 100%;
  text-decoration:none;
}
.lien:hover, .footer__inner a:hover{ background-size:100% 1.5px; }
.feuille__lien{ background-image:none; }

/* 3. Les boutons.
   Primaire : un reflet traverse le bouton au survol.
   Contour : il se remplit d'orange pâle de gauche à droite. */
.btn--primary::before, .btn--onorange::before{
  content:''; position:absolute; top:0; left:-70%; width:45%; height:100%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform:skewX(-20deg); pointer-events:none;
  transition:left .75s var(--ease-sortie);
}
.btn--primary:hover::before, .btn--onorange:hover::before{ left:135%; }
.btn--outline{
  transition:background .18s, transform .12s cubic-bezier(.2,1.2,.4,1), box-shadow .45s var(--ease-sortie), color .2s;
}
.btn--outline:hover{
  background:#fff; color:var(--orange-dark);
  box-shadow:inset 0 0 0 1.5px var(--orange), inset 18em 0 0 0 var(--orange-soft);
}
.btn--ghost:hover{ transform:translateY(-1px); }

/* Le bouton en relief : une pile d'ombres pleines, il monte au
   survol et s'enfonce au clic, comme une touche. */
.btn--relief{
  --pile:#9a3412;
  transform:translate(-2px, -2px);
  box-shadow:1px 1px 0 var(--pile), 2px 2px 0 var(--pile), 3px 3px 0 var(--pile), 4px 4px 0 var(--pile);
  transition:transform .2s cubic-bezier(.3, .7, .4, 1), box-shadow .2s cubic-bezier(.3, .7, .4, 1), background .18s;
}
.btn--relief:hover{
  transform:translate(-4px, -4px);
  box-shadow:1px 1px 0 var(--pile), 2px 2px 0 var(--pile), 3px 3px 0 var(--pile), 4px 4px 0 var(--pile),
             5px 5px 0 var(--pile), 6px 6px 0 var(--pile);
}
.btn--relief:active{ transform:translate(1px, 1px); box-shadow:0 0 0 var(--pile); }

/* Le bouton qui s'illumine : au survol, un halo orange l'entoure et
   il monte d'un cran. (Il remplace le bouton « tranché », dont le
   trait au milieu donnait l'impression d'un texte barré.) */
.btn--lueur{ transition:background .18s, color .2s, box-shadow .35s var(--ease-sortie), transform .25s var(--ease-ressort); }
.btn--lueur:hover{
  transform:translateY(-2px);
  box-shadow:inset 0 0 0 1.5px var(--orange), inset 18em 0 0 0 var(--orange-soft),
             0 10px 26px rgba(249,115,22,.28), 0 0 0 5px rgba(249,115,22,.12);
}
.btn--lueur:active{ transform:translateY(0); }

/* 4. Les cartes « premium » : au survol, elles montent d'un cran, une
   lumière douce suit la souris et le bord s'allume tout près d'elle.
   La position de la souris (--mx, --my) vient de js/anim.js. */
.carte-premium{ position:relative; isolation:isolate; overflow:hidden;
  transition:box-shadow .35s var(--ease-sortie), transform .4s var(--ease-sortie), border-color .3s; }
.carte-premium:hover{ transform:translateY(-4px); box-shadow:0 22px 48px rgba(234,88,12,.14); }
.cp{ position:absolute; inset:0; z-index:-1; pointer-events:none; border-radius:inherit; }
.cp__lueur{
  position:absolute; inset:0; opacity:0; transition:opacity .4s;
  background:radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(249,115,22,.12), transparent 62%);
}
/* le bord lumineux : un dégradé qui ne se voit que dans l'épaisseur du bord */
.cp::before{
  content:''; position:absolute; inset:0; border-radius:inherit; padding:1.5px; opacity:0;
  background:radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(249,115,22,.95), rgba(251,146,60,.3) 45%, transparent 72%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  transition:opacity .4s;
}
.carte-premium:hover .cp__lueur, .carte-premium:hover .cp::before{ opacity:1; }

/* Les cartes du fil et des résultats montent un peu au survol. */
.pub, .carte-musicien{ transition:transform .3s var(--ease-sortie), box-shadow .3s, border-color .3s; }
@media (hover:hover){
  .pub:hover, .carte-musicien:hover{ transform:translateY(-2px); box-shadow:0 14px 34px rgba(16,24,40,.09); }
}

/* 5. Les listes arrivent en cascade, élément par élément. */
@keyframes arrive-cascade{
  from{ opacity:0; transform:translateY(16px) scale(.985); }
  to{ opacity:1; transform:none; }
}
.fil-pub > .pub, .musiciens__resultats > *, .evenements__liste > *, .cloche__ligne,
.feuille__boite > .feuille__lien, .membres-groupe__ligne, .convos > .convo, .suggestion, .mini-evt{
  animation:arrive-cascade .5s var(--ease-sortie) backwards;   /* backwards : le survol garde la main après l'entrée */
}
:is(.fil-pub, .musiciens__resultats, .evenements__liste, .cloche__panneau, .feuille__boite, .convos, #suggestions, #prochains) > :nth-child(2){ animation-delay:.04s; }
:is(.fil-pub, .musiciens__resultats, .evenements__liste, .cloche__panneau, .feuille__boite, .convos, #suggestions, #prochains) > :nth-child(3){ animation-delay:.08s; }
:is(.fil-pub, .musiciens__resultats, .evenements__liste, .cloche__panneau, .feuille__boite, .convos, #suggestions, #prochains) > :nth-child(4){ animation-delay:.12s; }
:is(.fil-pub, .musiciens__resultats, .evenements__liste, .cloche__panneau, .feuille__boite, .convos, #suggestions, #prochains) > :nth-child(5){ animation-delay:.16s; }
:is(.fil-pub, .musiciens__resultats, .evenements__liste, .cloche__panneau, .feuille__boite, .convos, #suggestions, #prochains) > :nth-child(6){ animation-delay:.2s; }
:is(.fil-pub, .musiciens__resultats, .evenements__liste, .cloche__panneau, .feuille__boite, .convos, #suggestions, #prochains) > :nth-child(7){ animation-delay:.24s; }
:is(.fil-pub, .musiciens__resultats, .evenements__liste, .cloche__panneau, .feuille__boite, .convos, #suggestions, #prochains) > :nth-child(n+8){ animation-delay:.28s; }
/* Une carte redessinée (un j'aime, un « j'y vais ») ne rejoue pas son entrée. */
.sans-entree{ animation:none !important; }

/* 6. Fenêtres et panneaux : ils entrent ET sortent en glissant.
   « allow-discrete » laisse le temps à la sortie de se jouer avant
   que l'élément disparaisse. Un navigateur ancien les ferme d'un
   coup, comme avant : rien ne casse. */
.modale, .feuille, .photo-grande{
  transition:opacity .28s var(--ease-sortie), display .28s allow-discrete, overlay .28s allow-discrete;
}
.feuille{ display:block; }
.modale[hidden], .feuille[hidden], .photo-grande[hidden]{ display:none; opacity:0; }
.modale[hidden] .modale__boite{ transform:translateY(26px) scale(.97); opacity:0; }
.feuille__boite{ transition:transform .32s var(--ease-sortie); }
.feuille[hidden] .feuille__boite{ transform:translateY(100%); }
.photo-grande img{ transition:transform .32s var(--ease-sortie); }
.photo-grande[hidden] img{ transform:scale(.94); }
@starting-style{ .photo-grande:not([hidden]){ opacity:0; } .photo-grande:not([hidden]) img{ transform:scale(.94); } }

.cloche__panneau, .ville__liste{
  transform-origin:top right;
  transition:opacity .2s var(--ease-sortie), transform .22s var(--ease-sortie), display .22s allow-discrete;
}
.ville__liste{ transform-origin:top left; }
.cloche__panneau[hidden], .ville__liste[hidden]{ display:none; opacity:0; transform:translateY(-8px) scale(.97); }
@starting-style{
  .cloche__panneau:not([hidden]), .ville__liste:not([hidden]){ opacity:0; transform:translateY(-8px) scale(.97); }
}
.publier__apercu, .publier__lien, .pub__commentaires, #formCreation, #formGroupe{ animation:arrive-cascade .35s var(--ease-sortie) both; }

/* 7. Les pastilles de notification battent comme un coeur, avec
   un anneau qui s'élargit autour : on ne peut pas les rater. */
.iconbtn__badge, .barre-bas__pastille, .nav__pastille{ animation:pastille-pouls 3s ease-in-out infinite; }
.nav__pastille{ position:relative; }
.iconbtn__badge::after, .barre-bas__pastille::after, .nav__pastille::after{
  content:''; position:absolute; inset:-2px; border-radius:999px; pointer-events:none;
  border:2px solid rgba(255,255,255,.75); animation:sonar 3s ease-in-out infinite;
}
.barre-bas__pastille::after{ border-color:rgba(249,115,22,.55); }
@keyframes pastille-pouls{
  0%{ transform:scale(1); } 10%{ transform:scale(1.32); } 25%{ transform:scale(.92); }
  40%{ transform:scale(1.14); } 50%, 100%{ transform:scale(1); }
}
@keyframes sonar{
  0%{ transform:scale(.9); opacity:1; } 50%{ transform:scale(2.1); opacity:0; }
  50.01%, 100%{ transform:scale(.9); opacity:0; }
}

/* 8. « … est en train d'écrire » : la bulle gonfle doucement et
   ses trois points clignotent l'un après l'autre. */
.ecrit{ display:flex; align-items:center; gap:10px; padding:2px 16px 8px; color:var(--muted); font-size:.82rem; }
.ecrit[hidden]{ display:none; }
.ecrit__bulle{
  position:relative; display:inline-flex; gap:4px; padding:10px 13px; margin-left:6px;
  background:#e6e7ed; border-radius:50px; animation:bulle-gonfle 2s ease-out infinite;
}
.ecrit__bulle::before, .ecrit__bulle::after{ content:''; position:absolute; border-radius:50%; background:#e6e7ed; }
.ecrit__bulle::before{ width:12px; height:12px; left:-2px; bottom:-2px; }
.ecrit__bulle::after{ width:6px; height:6px; left:-8px; bottom:-8px; }
.ecrit__bulle span{ width:7px; height:7px; border-radius:50%; background:#9e9ea1; opacity:.4; animation:point-clignote 1s infinite; }
.ecrit__bulle span:nth-child(2){ animation-delay:.333s; }
.ecrit__bulle span:nth-child(3){ animation-delay:.666s; }
@keyframes point-clignote{ 50%{ opacity:1; } }
@keyframes bulle-gonfle{ 50%{ transform:scale(1.05); } }

/* 9. Le squelette : une carte grise avec un reflet qui passe,
   le temps que les vraies arrivent. Avatar, deux lignes de titre,
   deux lignes de texte, dessinés en dégradés. */
.squelette-carte{
  --h:200px;
  height:var(--h); border-radius:16px; border:1px solid var(--line); overflow:hidden;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 100%),
    radial-gradient(circle 22px at 40px 42px, #e5e7eb 99%, transparent 0),
    linear-gradient(#e5e7eb 14px, transparent 0),
    linear-gradient(#eef0f3 12px, transparent 0),
    linear-gradient(#eef0f3 12px, transparent 0),
    linear-gradient(#eef0f3 12px, transparent 0),
    linear-gradient(#fff, #fff);
  background-size:220px 100%, 100% 100%, 40% 14px, 25% 12px, 85% 12px, 62% 12px, 100% 100%;
  background-position:-220px 0, 0 0, 78px 30px, 78px 54px, 20px 104px, 20px 128px, 0 0;
  background-repeat:no-repeat;
  animation:squelette-reflet 1.5s infinite;
}
@keyframes squelette-reflet{
  to{ background-position:calc(100% + 220px) 0, 0 0, 78px 30px, 78px 54px, 20px 104px, 20px 128px, 0 0; }
}

/* 10. Les tuiles isométriques des instruments, sur l'accueil :
   au survol, cinq calques se décalent en escalier. */
.iso{ display:none; justify-content:center; gap:46px; margin:40px 0 8px; padding:0; list-style:none; }
@media (min-width:641px){
  .iso{ display:flex; flex-wrap:wrap; row-gap:40px; }
  .accueil-hero .chips--centre{ display:none; }
}
.iso li{ display:flex; flex-direction:column; align-items:center; gap:24px; }
.iso__tuile{ position:relative; display:block; width:58px; height:58px; transform:rotate(-30deg) skew(25deg); }
.iso__tuile span{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:var(--orange); color:#fff; font-size:28px; border-radius:6px;
  transition:transform .5s var(--ease-sortie), opacity .5s;
}
.iso__tuile span:nth-child(1){ background:#fed7aa; }
.iso__tuile span:nth-child(2){ background:#fdba74; }
.iso__tuile span:nth-child(3){ background:#fb923c; }
.iso__tuile span:nth-child(4){ background:#f97316; }
/* La tuile du dessus : un reflet en haut à gauche, comme une touche
   vernie, et le symbole posé dessus avec sa petite ombre. */
.iso__tuile span:nth-child(5){
  background:linear-gradient(135deg, #fb923c 0%, #ea580c 55%, #c2410c 100%);
  box-shadow:0 0 0 1px rgba(255,255,255,.28) inset, 0 1px 0 rgba(255,255,255,.35) inset;
  overflow:hidden;
}
.iso__tuile span:nth-child(5)::after{
  content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(135deg, rgba(255,255,255,.38), rgba(255,255,255,0) 46%);
}
.iso__tuile span:nth-child(5) b{ transform:skew(-25deg) rotate(30deg); font-weight:400;
  filter:drop-shadow(0 3px 3px rgba(124,45,18,.45)); transition:transform .5s var(--ease-ressort); }
.iso li:hover .iso__tuile span:nth-child(5) b, .iso__tuile:focus-visible span:nth-child(5) b{
  transform:skew(-25deg) rotate(30deg) scale(1.14);
}
/* une lueur orange sous la pile soulevée */
.iso__tuile span:nth-child(1){ transition:transform .5s var(--ease-sortie), opacity .5s, box-shadow .5s; }
.iso li:hover .iso__tuile span:nth-child(1), .iso__tuile:focus-visible span:nth-child(1){ box-shadow:0 0 26px 6px rgba(249,115,22,.45); }
.iso li:hover .iso__tuile span:nth-child(5), .iso__tuile:focus-visible span:nth-child(5){ transform:translate(40px, -40px); }
.iso li:hover .iso__tuile span:nth-child(4), .iso__tuile:focus-visible span:nth-child(4){ transform:translate(30px, -30px); opacity:.8; }
.iso li:hover .iso__tuile span:nth-child(3), .iso__tuile:focus-visible span:nth-child(3){ transform:translate(20px, -20px); opacity:.6; }
.iso li:hover .iso__tuile span:nth-child(2), .iso__tuile:focus-visible span:nth-child(2){ transform:translate(10px, -10px); opacity:.4; }
.iso li:hover .iso__tuile span:nth-child(1), .iso__tuile:focus-visible span:nth-child(1){ opacity:.35; }
.iso__nom{ font-weight:700; font-size:.92rem; color:var(--muted); transition:color .2s; }
.iso li:hover .iso__nom{ color:var(--orange-dark); }

/* 11. La scène cinématique de l'accueil (js/cinema3d.js).
   Sans 3D, c'est une section ordinaire. Avec, elle devient très
   haute, la scène reste collée à l'écran et le défilement fait
   avancer la caméra et apparaître les textes un à un. */
.cinema{ position:relative; margin:30px 0; }
.cinema__scene{ display:grid; gap:18px; }
.cinema__toile{ display:none; }
.cinema__titre{ font-size:clamp(1.6rem, 4vw, 2.4rem); font-weight:800; letter-spacing:-.02em; }
.cinema__etape{ max-width:46ch; color:var(--muted); font-size:1.02rem; line-height:1.6; }
.cinema__etape b{ display:block; color:var(--ink); font-size:1.25rem; margin-bottom:4px; }
.cinema.est-cinema{ height:340vh; }
/* Pas de cadre : la scène occupe toute la largeur de l'écran (--plein,
   posé par js/cinema3d.js sans la barre de défilement) et se fond dans
   la page, avec seulement un halo orange très doux au centre. */
.cinema.est-cinema .cinema__scene{
  position:sticky; top:0; height:100vh; overflow:hidden; display:block;
  width:var(--plein, 100%); margin-left:calc(50% - var(--plein, 100%) / 2);
  background:radial-gradient(ellipse 46% 40% at 50% 56%, rgba(249,115,22,.07), transparent 72%);
}
.cinema.est-cinema .cinema__toile{ display:block; position:absolute; inset:0; width:100%; height:100%; }
.cinema.est-cinema .cinema__textes{ position:absolute; inset:0; pointer-events:none; }
.cinema.est-cinema .cinema__titre{
  position:absolute; left:50%; top:16%; width:min(900px, 90vw); text-align:center;
  transform:translate(-50%, calc(var(--t0, 0) * -40px)); opacity:calc(1 - var(--t0, 0));
}
.cinema.est-cinema .cinema__etape{
  position:absolute; left:max(6vw, calc(50% - 560px)); top:50%;
  padding:22px 26px; border-radius:20px; background:rgba(255,255,255,.72); z-index:1;
  border:1px solid rgba(249,115,22,.18);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  box-shadow:0 18px 50px rgba(16,24,40,.08);
  opacity:var(--o, 0); transform:translate(calc((1 - var(--o, 0)) * -60px), -50%);
}
.cinema.est-cinema .cinema__etape b{ color:var(--orange-dark); }
.cinema.est-cinema .cinema__etape:nth-of-type(odd){ left:auto; right:max(6vw, calc(50% - 560px)); transform:translate(calc((1 - var(--o, 0)) * 60px), -50%); }
.cinema__avance{ display:none; }
.cinema.est-cinema .cinema__avance{
  display:block; position:absolute; left:50%; bottom:6vh; width:180px; height:3px; transform:translateX(-50%);
  border-radius:3px; background:#fde2cc; overflow:hidden;
}
.cinema.est-cinema .cinema__avance::after{
  content:''; position:absolute; inset:0; background:var(--orange); transform-origin:left; transform:scaleX(var(--p, 0));
}

/* 12. Moins d'animations : on garde les effets visibles, sans
   rien qui bouge en boucle. Le choix « Animations : activées »
   (bas de page) passe outre. */
@media (prefers-reduced-motion:reduce){
  :root:not([data-animations="toutes"]) :is(.iconbtn__badge, .barre-bas__pastille, .nav__pastille,
    .iconbtn__badge::after, .barre-bas__pastille::after, .nav__pastille::after,
    .ecrit__bulle, .ecrit__bulle span, .squelette-carte){ animation:none !important; }
}
:root[data-animations="reduites"] :is(.iconbtn__badge, .barre-bas__pastille, .nav__pastille,
  .ecrit__bulle, .ecrit__bulle span, .squelette-carte){ animation:none !important; }
:root[data-animations="reduites"] .iconbtn__badge::after,
:root[data-animations="reduites"] .barre-bas__pastille::after,
:root[data-animations="reduites"] .nav__pastille::after{ animation:none !important; opacity:0; }


/* La version sans 3D de la scène cinématique : trois cartes claires. */
.cinema:not(.est-cinema) .cinema__textes{ display:grid; gap:14px; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); }
.cinema:not(.est-cinema) .cinema__titre{ grid-column:1 / -1; }
.cinema:not(.est-cinema) .cinema__etape{
  max-width:none; padding:20px 22px; border-radius:16px;
  background:linear-gradient(135deg, var(--orange-soft), #fff); border:1px solid #fde2cc;
}


/* La visio sur téléphone : les réglages (mode musique, métronome,
   son, quitter) passent à la ligne au lieu de déborder de l'écran. */
@media (max-width:640px){
  .visio__reglages{ flex-wrap:wrap; gap:10px; width:100%; }
  .visio__reglages .btn{ white-space:normal; height:auto; min-height:40px; padding-top:8px; padding-bottom:8px; }
}


/* =======================================================
   LA COMMUNAUTÉ, SUITE : mentions, mots-clés, corrections,
   événements annulés, recherche dans le fil, carte des jams
   ======================================================= */
.mention, .mot-cle{ color:var(--orange-dark); font-weight:700; }
.mention:hover, .mot-cle:hover{ text-decoration:underline; text-underline-offset:2px; }

/* Corriger son texte sur place */
.correction{ display:grid; gap:8px; }
.correction textarea{
  width:100%; min-height:96px; padding:10px 12px; border:1.5px solid var(--orange);
  border-radius:12px; font:inherit; line-height:1.5; resize:vertical; background:#fff;
}
.correction__boutons{ display:flex; gap:8px; justify-content:flex-end; }

/* L'événement : outils sous les infos, et l'état « annulé » */
.evt__outils{ margin-top:6px; font-size:.85rem; color:var(--muted); display:flex; flex-wrap:wrap; gap:4px 6px; align-items:center; }
.evt__outils .lien-bouton{ font-size:.85rem; }
.evt--annule{ background:#f8f8f9; border-color:var(--line); }
.evt--annule .evt__titre{ text-decoration:line-through; text-decoration-thickness:2px; color:var(--muted); }
.evt--annule .evt__date{ filter:grayscale(1); opacity:.7; }
.badge--annule{ background:#fef2f2; color:#991b1b; }

/* La recherche au-dessus du fil */
.fil-recherche{ position:relative; display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.fil-recherche input{
  flex:1 1 auto; min-width:0; height:42px; padding:0 40px 0 40px; border:1.5px solid var(--line);
  border-radius:999px; background:#fff; font:inherit; outline:none;
}
.fil-recherche input:focus{ border-color:var(--orange); }
.fil-recherche__loupe{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; display:flex; }
.fil-recherche__effacer{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  width:32px; height:32px; border:0; border-radius:50%; background:transparent; color:var(--muted); cursor:pointer; font-size:1.1rem;
}
.fil-recherche__effacer:hover{ background:#f2f4f6; color:var(--ink); }
.fil-recherche__resume{ margin:-4px 0 12px; font-size:.9rem; color:var(--muted); }
.fil-recherche__resume strong{ color:var(--ink); }
.mots-tendance{ display:flex; flex-wrap:wrap; gap:6px; }
.mots-tendance a{
  padding:4px 10px; border-radius:999px; background:var(--orange-soft); color:var(--orange-dark);
  font-size:.84rem; font-weight:700;
}
.mots-tendance a:hover{ background:#ffe7d4; }

/* Liste ou carte, sur la page des événements */
.vue-choix{ display:inline-flex; padding:3px; border-radius:999px; background:#f2f4f6; gap:2px; }
.vue-choix button{
  border:0; background:transparent; padding:7px 16px; border-radius:999px; font:inherit; font-weight:700;
  font-size:.88rem; color:var(--muted); cursor:pointer;
}
.vue-choix button.is-actif{ background:#fff; color:var(--ink); box-shadow:0 1px 4px rgba(0,0,0,.08); }
.evenements__entete{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:6px 0 10px; }
.evenements__entete .musiciens__resume{ margin:0; }
.carte-evenements{ height:440px; border-radius:16px; overflow:hidden; border:1px solid var(--line); margin-bottom:16px; }
.carte-evenements .leaflet-popup-content{ margin:10px 12px; font:inherit; }
.bulle-evt{ display:grid; gap:2px; min-width:180px; }
.bulle-evt strong{ font-size:.95rem; }
.bulle-evt small{ color:var(--muted); }
.bulle-evt a{ color:var(--orange-dark); font-weight:700; }
@media (max-width:640px){ .carte-evenements{ height:340px; } }
/* La fiche qu'on vient de montrer depuis la carte */
.pub.est-montree{ box-shadow:0 0 0 3px var(--orange), 0 10px 30px rgba(234,88,12,.18); transition:box-shadow .3s; }
.bulle-evt + hr, .leaflet-popup-content hr{ border:0; border-top:1px solid var(--line); margin:8px 0; }
/* La page introuvable (404) : trois notes, dont une fausse qui tombe */
.introuvable{ display:grid; justify-items:center; gap:12px; text-align:center; max-width:560px; margin:40px auto; padding:0 16px; }
.introuvable__portee{
  position:relative; width:220px; height:90px;
  background:repeating-linear-gradient(to bottom, transparent 0 16px, #fde2cc 16px 18px);
}
.introuvable__note{ position:absolute; top:18px; font-size:44px; color:var(--orange-dark); line-height:1; }
.introuvable__note:nth-child(1){ left:22px; }
.introuvable__note:nth-child(2){ left:96px; top:4px; }
.introuvable__note--fausse{ left:168px; color:var(--ink); animation:fausse-note 2.8s cubic-bezier(.5,0,.75,0) infinite; }
@keyframes fausse-note{
  0%, 30%{ transform:translateY(0) rotate(0); opacity:1; }
  60%{ transform:translateY(60px) rotate(40deg); opacity:.15; }
  61%{ transform:translateY(-30px); opacity:0; }
  100%{ transform:translateY(0); opacity:1; }
}
.introuvable__code{ font-size:.9rem; font-weight:800; letter-spacing:.2em; color:var(--muted); }
.introuvable__titre{ font-size:clamp(2rem, 6vw, 2.8rem); font-weight:900; }
.introuvable__texte{ color:var(--muted); line-height:1.6; }
.introuvable .vide__actions{ justify-content:center; flex-wrap:wrap; }
@media (prefers-reduced-motion:reduce){ :root:not([data-animations="toutes"]) .introuvable__note--fausse{ animation:none; transform:rotate(25deg); } }
:root[data-animations="reduites"] .introuvable__note--fausse{ animation:none; transform:rotate(25deg); }
/* Bloquer un membre */
.profil__bloque{ flex-basis:100%; margin:0 0 4px; padding:10px 14px; border-radius:12px; background:#f6f7f9; color:var(--muted); font-size:.92rem; line-height:1.5; }
.profil__bloquer{ align-self:center; font-size:.88rem; }
.fil__bloque{ margin:10px 16px; }
/* Une liste de personnes (qui y va, abonnés) */
.liste-personnes{ display:grid; gap:4px; max-height:60vh; overflow:auto; }
.liste-personnes__ligne{ display:flex; align-items:center; gap:12px; padding:8px 10px; border-radius:12px; }
.liste-personnes__ligne:hover{ background:#f6f7f9; }
.liste-personnes__ligne strong{ display:block; }
.liste-personnes__ligne small{ color:var(--muted); }
.liste-personnes__avatar{ width:40px; height:40px; font-size:.9rem; flex:0 0 auto; }
.evt__qui{ border:0; background:none; padding:0; font:inherit; color:inherit; cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.evt__qui:hover{ color:var(--orange-dark); }
.profil__chiffre{ border:0; background:none; padding:0; font:inherit; color:inherit; cursor:pointer; }
.profil__chiffre:hover strong, .profil__chiffre:hover{ color:var(--orange-dark); }.detail__partager{ font-size:.86rem; margin-top:4px; }
/* Le panel : la vie de la communauté */
.admin__communaute{ display:grid; grid-template-columns:2fr 1fr; gap:16px; margin-top:16px; }
@media (max-width:820px){ .admin__communaute{ grid-template-columns:1fr; } }
.courbe-jours{ display:grid; grid-template-columns:repeat(14, minmax(0, 1fr)); gap:6px; align-items:end; height:180px; }
.courbe-jours__barre{ display:grid; grid-template-rows:1fr auto; height:100%; text-align:center; }
.courbe-jours__barre span{
  align-self:end; height:var(--h); min-height:4px; border-radius:6px 6px 2px 2px;
  background:linear-gradient(180deg, var(--orange), var(--orange-dark));
  color:#fff; font-size:.72rem; font-weight:800; display:flex; align-items:flex-start; justify-content:center; padding-top:3px;
  transition:height .5s var(--ease-sortie, ease);
}
.courbe-jours__barre small{ margin-top:6px; font-size:.7rem; color:var(--muted); line-height:1.2; }
.mots-tendance a small{ opacity:.7; font-weight:600; }
/* La page des cours : le texte à gauche, les instruments en
   particules de lumière à droite (js/cours3d.js). La colonne de
   droite n'existe que si la scène peut s'afficher (classe
   « avec-scene », posée par le script) : sinon, rien ne manque. */
.cours-hero{ position:relative; padding:26px 0 30px; }
.cours-hero__sur{
  margin:0 0 4px; font-size:.8rem; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--orange-dark);
}
.cours-hero .section__title{ font-size:clamp(2.2rem, 5vw, 3.2rem); letter-spacing:-.02em; }
.cours-hero .search{ box-shadow:0 14px 40px rgba(16,24,40,.1); }
.cours-hero__instruments{ justify-content:flex-start; margin-top:16px; }
.cours-hero__instruments .chip{ display:inline-flex; align-items:center; gap:6px; }
.cours-hero__instruments .chip.is-actif{
  border-color:var(--orange); color:var(--orange-dark); background:var(--orange-soft); font-weight:600;
}
.cours-hero__scene{ display:none; }

/* La page des cours tient dans une colonne de 720 px, à gauche :
   le haut de page s'élargit à toute la page pour loger la scène dans
   la place libre à droite. « 100vw - 17px » : la largeur sans la
   barre de défilement, comme pour la scène de l'accueil. */
/* De 700 à 1 100 px : la scène se place sous les pastilles. */
.cours-hero.avec-scene .cours-hero__scene{
  display:block; position:relative; height:320px; margin-top:6px; cursor:pointer;
}
@media (min-width:1100px){
  .cours-hero.avec-scene{
    display:grid; grid-template-columns:minmax(0, 620px) minmax(0, 1fr);
    align-items:center; gap:24px; min-height:440px;
    width:calc(min(1120px, 100vw - 17px) - 48px);
  }
  .cours-hero.avec-scene .cours-hero__scene{ height:440px; margin-top:0; }
}
/* La toile couvre toute la largeur de la fenêtre, derrière le texte,
   comme sur l'accueil ; elle se fond en haut et en bas dans la page.
   --plein et --gauche sont posés par js/cours3d.js. */
.cours-hero{ isolation:isolate; }
.cours-hero__toile{
  position:absolute; z-index:-1; top:-40px; height:calc(100% + 110px);
  left:var(--gauche, 0); width:var(--plein, 100%);
  pointer-events:none; opacity:0; transition:opacity 1.2s ease;
  -webkit-mask-image:linear-gradient(to bottom, transparent 0%, #000 9%, #000 70%, transparent 100%);
          mask-image:linear-gradient(to bottom, transparent 0%, #000 9%, #000 70%, transparent 100%);
}
.cours-hero.a-une-scene .cours-hero__toile{ opacity:1; }
.cours-hero__legende{
  position:absolute; left:0; right:0; bottom:4px; margin:0; text-align:center;
  font-weight:700; font-size:.95rem; letter-spacing:.06em; color:var(--orange-dark);
  opacity:0; transform:translateY(6px); transition:opacity .35s ease, transform .35s ease;
  pointer-events:none;
}
.cours-hero__legende.est-visible{ opacity:1; transform:none; }

/* L'arrivée du haut de page, comme sur l'accueil : chaque ligne
   monte à son tour. */
.cours-hero__texte > *{ animation:page-entre .7s var(--ease-sortie) backwards; }
.cours-hero__texte > :nth-child(2){ animation-delay:.06s; }
.cours-hero__texte > :nth-child(3){ animation-delay:.12s; }
.cours-hero__texte > :nth-child(4){ animation-delay:.18s; }
.cours-hero__texte > :nth-child(5){ animation-delay:.24s; }
.cours-hero__instruments li{ animation:page-entre .6s var(--ease-sortie) backwards; }
.cours-hero__instruments li:nth-child(2){ animation-delay:.3s; }
.cours-hero__instruments li:nth-child(3){ animation-delay:.34s; }
.cours-hero__instruments li:nth-child(4){ animation-delay:.38s; }
.cours-hero__instruments li:nth-child(5){ animation-delay:.42s; }
.cours-hero__instruments li:nth-child(6){ animation-delay:.46s; }
.cours-hero__instruments li:nth-child(7){ animation-delay:.5s; }
.cours-hero__instruments li:first-child{ animation-delay:.26s; }

/* Les cartes du catalogue arrivent en cascade. */
/* « backwards » et non « both » : une fois arrivée, la carte rend la
   main au survol (sinon l'animation figerait sa position). */
#catalogueListe > .cours-carte{ animation:arrive-cascade .55s var(--ease-sortie) backwards; }
#catalogueListe > .cours-carte:nth-child(2){ animation-delay:.05s; }
#catalogueListe > .cours-carte:nth-child(3){ animation-delay:.1s; }
#catalogueListe > .cours-carte:nth-child(4){ animation-delay:.15s; }
#catalogueListe > .cours-carte:nth-child(5){ animation-delay:.2s; }
#catalogueListe > .cours-carte:nth-child(n+6){ animation-delay:.25s; }
/* Mes absences (Mes cours, côté professeur) */
.absences__form{ display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; margin-top:12px; }
.absences__form .field{ margin:0; min-width:150px; }
.absences__liste{ list-style:none; margin:12px 0 0; padding:0; display:grid; gap:6px; }
.absences__ligne{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 14px; border-radius:12px; background:var(--orange-soft); border:1px solid #fde2cc;
}
.absences__ligne span::first-letter{ text-transform:uppercase; }
.absences__vide{ color:var(--muted); font-size:.92rem; }
.agenda__absence{
  margin:0 0 10px; padding:10px 14px; border-radius:12px;
  background:var(--orange-soft); color:var(--orange-dark); font-weight:600; font-size:.92rem;
}


/* =======================================================
   LA COMMUNAUTÉ EN MUSIQUE : LES SONS, LES SONDAGES, LE DÉFI
   (js/sons.js, js/publications.js, js/communaute.js)
   ======================================================= */

/* ---------- Le lecteur d'un son ----------
   Les deux couleurs de la forme d'onde sont lues par js/sons.js dans
   ces variables : le thème sombre les redéfinit (css/sombre.css). */
.son{
  --son-joue:#f97316; --son-reste:#d6dae0;
  display:flex; align-items:center; gap:12px; margin:12px 0 4px;
  padding:10px 14px 10px 10px; border-radius:16px;
  background:linear-gradient(135deg, var(--orange-soft), #fff 70%);
  border:1px solid rgba(249,115,22,.2);
}
.son__lecture{
  flex:0 0 auto; width:44px; height:44px; border-radius:50%; border:0; cursor:pointer;
  display:grid; place-items:center; color:#fff; background:var(--orange);
  box-shadow:0 6px 16px rgba(249,115,22,.35);
  transition:transform .18s var(--ease-ressort), box-shadow .2s ease;
}
.son__lecture:hover{ transform:scale(1.07); box-shadow:0 8px 20px rgba(249,115,22,.45); }
.son__lecture:active{ transform:scale(.95); }
/* Lecture : un triangle ; pause : deux barres. Dessinés en CSS. */
.son__icone{
  width:0; height:0; margin-left:4px;
  border-left:13px solid currentColor; border-top:8px solid transparent; border-bottom:8px solid transparent;
}
.son.est-en-lecture .son__icone{
  width:12px; height:15px; margin:0; border:0;
  background:linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%);
}
.son.est-en-lecture .son__lecture{ animation:son-pouls 1.6s ease-in-out infinite; }
.son.est-en-chargement .son__lecture{ opacity:.7; }
.son.est-en-erreur .son__lecture{ background:#9aa3ac; box-shadow:none; cursor:default; }
@keyframes son-pouls{
  0%, 100%{ box-shadow:0 0 0 0 rgba(249,115,22,.45); }
  50%     { box-shadow:0 0 0 9px rgba(249,115,22,0); }
}
.son__onde{ flex:1 1 auto; min-width:0; width:100%; height:44px; cursor:pointer; display:block; }
.son__temps{
  flex:0 0 auto; min-width:4.6em; text-align:right;
  font-size:.82rem; font-weight:700; font-variant-numeric:tabular-nums; color:var(--muted);
}

/* ---------- L'enregistreur, dans « Publier » ---------- */
.publier__son, .publier__sondage{
  margin:10px 0 0; padding:14px; border-radius:16px;
  background:#fafafb; border:1px solid var(--line);
}
.enreg{ display:flex; align-items:center; gap:14px; }
.enreg__rond{
  flex:0 0 auto; width:56px; height:56px; border-radius:50%; cursor:pointer;
  display:grid; place-items:center; background:#fff; border:3px solid #dc2626;
  transition:transform .15s var(--ease-ressort);
}
.enreg__rond:hover{ transform:scale(1.05); }
.enreg__rond span{
  width:22px; height:22px; border-radius:50%; background:#dc2626;
  transition:border-radius .25s ease, transform .25s ease;
}
.enreg[data-etat="enregistre"] .enreg__rond{ animation:enreg-pouls 1.2s ease-out infinite; }
.enreg[data-etat="enregistre"] .enreg__rond span{ border-radius:5px; transform:scale(.82); }
@keyframes enreg-pouls{
  from{ box-shadow:0 0 0 0 rgba(220,38,38,.5); }
  to  { box-shadow:0 0 0 14px rgba(220,38,38,0); }
}
.enreg__milieu{ flex:1 1 auto; min-width:0; }
.enreg__niveau{ display:none; width:100%; height:44px; }
.enreg[data-etat="enregistre"] .enreg__niveau{ display:block; }
.enreg[data-etat="enregistre"] .enreg__aide{ display:none; }
.enreg__aide{ margin:0; font-size:.86rem; color:var(--muted); line-height:1.45; }
.enreg__temps{
  flex:0 0 auto; min-width:5.6em; text-align:right;
  font-weight:800; font-variant-numeric:tabular-nums; color:var(--ink);
}
.enreg__ecoute .son{ margin:0; }
.enreg__pied{ display:flex; flex-wrap:wrap; gap:16px; margin-top:10px; font-size:.86rem; }
.enreg__fichier{ cursor:pointer; }
.publier__son .form__note:empty{ display:none; }

/* ---------- Le sondage, dans « Publier » ---------- */
.publier__aide{ margin:0 0 8px; font-size:.86rem; color:var(--muted); }
.publier__choix{ display:grid; gap:8px; margin-bottom:8px; }
.publier__choix-ligne{ display:flex; align-items:center; gap:8px; }
.publier__choix-ligne input{
  flex:1 1 auto; min-width:0; padding:10px 12px; font:inherit;
  border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink);
}
.publier__choix-ligne input:focus{ outline:none; border-color:var(--orange); box-shadow:0 0 0 3px rgba(249,115,22,.15); }
.publier__retirer-choix{
  flex:0 0 auto; width:34px; height:34px; border-radius:50%; border:0; cursor:pointer;
  background:transparent; color:var(--muted); font-size:1.2rem; line-height:1;
}
.publier__retirer-choix:hover{ background:#f2f4f6; color:var(--ink); }
.publier__outil.est-actif{ background:var(--orange-soft); color:var(--orange-dark); }

/* ---------- Le sondage, dans le fil ----------
   La barre grandit depuis zéro quand la carte apparaît (et quand on
   vient de voter) : on voit les résultats arriver. */
.sondage{ display:grid; gap:8px; margin:12px 0 4px; }
.sondage__choix{
  position:relative; isolation:isolate; overflow:hidden;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  width:100%; padding:11px 14px; border:1.5px solid var(--line); border-radius:12px;
  background:#fff; color:var(--ink); font:inherit; font-weight:600; text-align:left; cursor:pointer;
  transition:border-color .15s ease, transform .12s ease;
}
.sondage__choix:hover{ border-color:var(--orange); }
.sondage__choix:active{ transform:scale(.99); }
.sondage__barre{
  position:absolute; z-index:-1; top:0; bottom:0; left:0; width:var(--part, 0%);
  background:var(--orange-soft); transition:width .8s var(--ease-sortie);
}
@starting-style{ .sondage__barre{ width:0; } }
.sondage__choix.est-mien{ border-color:var(--orange); }
.sondage__choix.est-mien .sondage__barre{ background:rgba(249,115,22,.22); }
.sondage__coche{ color:var(--orange-dark); }
.sondage__part{ flex:0 0 auto; font-variant-numeric:tabular-nums; color:var(--orange-dark); }
.sondage__pied{ margin:2px 0 0; font-size:.82rem; color:var(--muted); }

/* ---------- Le défi de la semaine ---------- */
.defi{
  position:relative; isolation:isolate; overflow:hidden;
  display:flex; align-items:flex-start; gap:16px; margin:0 0 16px; padding:20px 22px;
  border-radius:20px; color:#fff;
  background:linear-gradient(135deg, #1c1917 0%, #3b1306 60%, #7c2d12 100%);
  box-shadow:0 18px 40px rgba(124,45,18,.28);
}
.defi::before{
  content:''; position:absolute; z-index:-1; top:-90px; right:-60px; width:280px; height:280px; border-radius:50%;
  background:radial-gradient(circle, rgba(249,115,22,.55), transparent 65%);
  animation:defi-lueur 7s ease-in-out infinite alternate;
}
@keyframes defi-lueur{ to{ transform:translate(-50px, 40px) scale(1.15); } }
.defi__trophee{
  flex:0 0 auto; font-size:2.4rem; line-height:1;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.35));
  animation:defi-trophee 3.2s ease-in-out infinite;
}
@keyframes defi-trophee{
  0%, 100%{ transform:translateY(0) rotate(-5deg); }
  50%     { transform:translateY(-5px) rotate(5deg); }
}
.defi__corps{ min-width:0; }
.defi__sur{ margin:0; font-size:.76rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#fdba74; }
.defi__titre{ margin:4px 0 6px; font-size:1.3rem; line-height:1.25; color:#fff; }
.defi__consigne{ margin:0 0 14px; font-size:.92rem; line-height:1.5; color:#f5f0eb; }
.defi__consigne a{ color:#fdba74; }
.defi__actions{ display:flex; flex-wrap:wrap; gap:8px; }
.defi .btn--outline{ color:#fff; background:transparent; border-color:rgba(255,255,255,.45); }
.defi .btn--outline:hover{ background:rgba(255,255,255,.12); }
.onglet--defi{ color:var(--orange-dark); }
/* L'onde 3D du défi (js/communaute.js, ondeDefi) : une bande sous les
   boutons, qui se fond vers le haut dans le bandeau. */
.defi.a-une-onde{ padding-bottom:92px; }
.defi__toile{
  position:absolute; z-index:-1; left:0; bottom:0; width:100%; height:120px;
  pointer-events:none; opacity:0; transition:opacity 1.2s ease;
  -webkit-mask-image:linear-gradient(to bottom, transparent 10%, #000 50%);
          mask-image:linear-gradient(to bottom, transparent 10%, #000 50%);
}
.defi__toile.est-visible{ opacity:1; }

/* ---------- Le mini-lecteur (js/sons.js) ----------
   Le son en cours, quand on a fait défiler la page loin de lui. */
.mini-son{
  position:fixed; z-index:28; left:50%; bottom:20px; translate:-50% 0;
  width:min(440px, calc(100% - 32px));
  display:flex; align-items:center; gap:10px; padding:7px;
  border-radius:999px; color:#fff; background:rgba(28,25,23,.94);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 14px 34px rgba(15,18,22,.3);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  transition:opacity .25s ease, transform .35s var(--ease-ressort), display .35s allow-discrete;
}
.mini-son[hidden]{ display:none; opacity:0; transform:translateY(18px); }
@starting-style{ .mini-son:not([hidden]){ opacity:0; transform:translateY(18px); } }
.mini-son__lecture{
  flex:0 0 auto; width:38px; height:38px; border-radius:50%; border:0; cursor:pointer;
  display:grid; place-items:center; color:#fff; background:var(--orange);
}
.mini-son.est-en-lecture .son__icone{
  width:12px; height:15px; margin:0; border:0;
  background:linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%);
}
.mini-son__infos{
  flex:1 1 auto; min-width:0; display:grid; gap:6px; padding:0; border:0;
  background:none; color:inherit; font:inherit; text-align:left; cursor:pointer;
}
.mini-son__titre{ font-size:.88rem; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mini-son__barre{ display:block; height:4px; border-radius:2px; background:rgba(255,255,255,.2); overflow:hidden; }
.mini-son__barre span{ display:block; width:0; height:100%; border-radius:inherit; background:#fb923c; }
.mini-son__temps{ flex:0 0 auto; font-size:.8rem; font-variant-numeric:tabular-nums; color:#e7e5e4; }
.mini-son__fermer{
  flex:0 0 auto; width:34px; height:34px; border:0; border-radius:50%; cursor:pointer;
  background:transparent; color:#e7e5e4; font-size:1.35rem; line-height:1;
}
.mini-son__fermer:hover{ background:rgba(255,255,255,.12); color:#fff; }
@media (max-width:640px){
  /* Au-dessus de la barre du bas, à gauche du bouton « haut de page ». */
  body.a-barre-bas .mini-son{ left:12px; right:68px; width:auto; translate:none; bottom:calc(78px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce){
  :root:not([data-animations="toutes"]) .mini-son{ transition:none; }
}

/* La place dans le classement du défi. */
.pub__rang{
  flex:0 0 auto; display:inline-flex; align-items:center; gap:3px; padding:4px 10px; border-radius:999px;
  font-weight:800; font-size:.85rem; background:var(--orange-soft); color:var(--orange-dark);
}
.pub__rang--podium{
  background:linear-gradient(135deg, #fde68a, #f59e0b); color:#451a03;
  box-shadow:0 4px 12px rgba(245,158,11,.35);
}

/* ---------- Les suggestions en tapant (@ et #) ---------- */
.suggestions-saisie{
  position:absolute; z-index:120; margin:0; padding:6px; list-style:none; max-width:300px;
  background:#fff; border:1px solid var(--line); border-radius:14px;
  box-shadow:0 18px 40px rgba(16,24,40,.16);
}
.suggestions-saisie__choix{
  display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:10px;
  font-size:.92rem; color:var(--ink); cursor:pointer;
}
.suggestions-saisie__choix.est-actif, .suggestions-saisie__choix:hover{ background:var(--orange-soft); }
.suggestions-saisie__choix small{ color:var(--muted); font-weight:500; }
.suggestions-saisie__avatar{ width:28px; height:28px; flex:0 0 auto; font-size:.7rem; }
.suggestions-saisie__diese{
  flex:0 0 auto; width:28px; height:28px; border-radius:50%; display:grid; place-items:center;
  background:var(--orange-soft); color:var(--orange-dark); font-weight:800;
}

/* ---------- Le compte de démonstration ---------- */
.auth__demo{
  margin-top:18px; padding:16px; border-radius:16px;
  background:var(--orange-soft); border:1px dashed rgba(249,115,22,.45);
}
.auth__demo-texte{ margin:0 0 12px; font-size:.9rem; line-height:1.5; color:var(--ink); }
.vide__demo{ margin-top:14px; }

/* ---------- Le cœur qui éclate ---------- */
.pub__bouton.vient-d-aimer{ position:relative; }
.pub__bouton.vient-d-aimer > span[aria-hidden]{ display:inline-block; animation:coeur-eclat .5s var(--ease-ressort); }
.pub__bouton.vient-d-aimer::after{
  content:''; position:absolute; left:18px; top:50%; width:6px; height:6px; margin:-3px; border-radius:50%;
  pointer-events:none;
  box-shadow:0 -15px 0 #f97316, 13px -8px 0 #fb923c, 13px 8px 0 #f97316,
             0 15px 0 #fb923c, -13px 8px 0 #f97316, -13px -8px 0 #fb923c;
  animation:coeur-gerbe .6s ease-out forwards;
}
@keyframes coeur-eclat{ 0%{ transform:scale(.6); } 45%{ transform:scale(1.45); } 100%{ transform:scale(1); } }
@keyframes coeur-gerbe{ from{ opacity:1; transform:scale(.3); } to{ opacity:0; transform:scale(1.5); } }

@media (max-width:520px){
  .son{ gap:10px; padding:8px 10px 8px 8px; }
  .son__temps{ min-width:3.4em; font-size:.76rem; }
  .enreg{ gap:10px; }
  .enreg__temps{ min-width:4.6em; font-size:.9rem; }
  .defi{ flex-direction:column; gap:10px; padding:18px; }
}

/* Le défi de la semaine, dans le panel (onglet Communauté) */
.admin__defi{ margin-top:16px; }
.admin__defi-form{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:4px 16px; align-items:end; margin-top:12px; }
.admin__defi-consigne{ grid-column:1 / -1; }
.admin__defi-form .form__note, .admin__defi-form .btn{ grid-column:1 / -1; justify-self:start; }
.admin__defi-actuel{ display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; }
.admin__sous-titre{ margin:18px 0 6px; font-size:.95rem; }
.admin__defis-liste{ margin:0; padding-left:18px; color:var(--muted); font-size:.9rem; display:grid; gap:4px; }

/* =======================================================
   LA MESSAGERIE EN 3D (js/messages3d.js)
   Le cadre « aucune conversation ouverte » accueille des bulles
   qui montent sur les côtés ; un voile doux garde le texte du
   centre lisible.
   ======================================================= */
.fil--vide{ position:relative; overflow:hidden; isolation:isolate; --voile:rgba(255,255,255,.92); }
.fil--vide p{ max-width:34ch; }
.fil--vide > :not(.messages3d){ position:relative; z-index:1; }
.messages3d{
  position:absolute; inset:0; z-index:0; width:100%; height:100%;
  pointer-events:none; opacity:0; transition:opacity 1s ease;
}
.messages3d.est-visible{ opacity:1; }
.fil--vide:has(.messages3d)::after{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(ellipse 34% 26% at 50% 50%, var(--voile) 35%, transparent 100%);
}

/* Le lien vers les échanges de cours, au bout des onglets. */
.onglets__ailleurs{
  margin-left:auto; align-self:center; padding:6px 4px;
  font-size:.86rem; font-weight:600; color:var(--orange-dark); text-decoration:none;
}
.onglets__ailleurs:hover{ text-decoration:underline; }
@media (max-width:520px){ .onglets__ailleurs{ margin-left:0; width:100%; padding:0 0 8px; } }

/* =======================================================
   PARLER À SON PROF, DANS L'ESPACE COURS (js/echange-cours.js)
   Un panneau qui glisse depuis la droite, à l'orange des cours.
   ======================================================= */
.modale--tiroir{ justify-content:flex-end; align-items:stretch; padding:0; }
.modale--tiroir .modale__boite{
  max-width:440px; height:100%; max-height:none; border-radius:22px 0 0 22px; overflow:hidden;
  animation:tiroir-entre .42s cubic-bezier(.16,1,.3,1) both;
}
.modale--tiroir[hidden] .modale__boite{ transform:translateX(100%); opacity:1; }
@keyframes tiroir-entre{ from{ transform:translateX(100%); } to{ transform:none; } }

.echange__tete{
  display:flex; align-items:center; gap:12px; padding:18px 18px 16px;
  color:#fff; background:linear-gradient(120deg, #9a3412 0%, #c2410c 45%, #ea580c 100%);
}
.echange__avatar{ flex:0 0 auto; width:46px; height:46px; box-shadow:0 0 0 3px rgba(255,255,255,.35); }
.echange__ident{ flex:1 1 auto; min-width:0; }
.echange__role{ margin:0; font-size:.78rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#fff7ed; }
.echange__nom{ margin:2px 0 0; font-size:1.15rem; font-weight:800; color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.echange__fermer{ color:#fff; opacity:.9; }
.echange__fermer:hover{ opacity:1; }
.echange__contexte{
  margin:0; padding:10px 18px; font-size:.88rem; color:var(--ink);
  background:var(--orange-soft); border-bottom:1px solid var(--line);
}
.echange__corps{
  flex:1 1 auto; min-height:0; overflow-y:auto; padding:16px 16px 8px;
  display:flex; flex-direction:column; gap:8px;
}
.echange__premier{ margin:auto; max-width:30ch; text-align:center; color:var(--muted); }
.echange__premier-icone{ display:block; font-size:2rem; margin-bottom:8px; animation:bulle-gonfle 2.4s ease-in-out infinite; }
.echange__premier p{ margin:0; line-height:1.5; }
.echange .ecrit{ padding:0 16px 8px; }
.echange__bloque{ margin:0 16px 10px; }
.echange__rapides{ display:flex; gap:6px; overflow-x:auto; padding:2px 16px 10px; scrollbar-width:none; }
.echange__rapides::-webkit-scrollbar{ display:none; }
.echange__rapide{ flex:0 0 auto; white-space:nowrap; cursor:pointer; font:inherit; font-size:.82rem; }
.echange__saisie{ border-top:1px solid var(--line); }
.echange__pied{ padding:6px 16px 12px; text-align:center; }
.echange__pied .lien-bouton{ font-size:.8rem; }
.echange__signal{ display:grid; gap:8px; padding:0 16px 16px; }
.echange__signal .bloc__hint{ margin:0; }
.echange__signal-actions{ display:flex; gap:8px; justify-content:flex-end; }
@media (max-width:520px){
  .modale--tiroir .modale__boite{ max-width:none; border-radius:0; }
}

/* « Vos échanges », dans Mes cours */
.echanges__liste{ display:grid; gap:8px; }
.echange-ligne{
  display:flex; align-items:center; gap:12px; width:100%; padding:12px 14px; text-align:left;
  font:inherit; color:inherit; cursor:pointer;
  background:#fff; border:1px solid var(--line); border-radius:14px;
  transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.echange-ligne:hover{ border-color:rgba(249,115,22,.45); transform:translateY(-1px); box-shadow:0 8px 20px rgba(15,18,22,.07); }
.echange-ligne.a-du-nouveau{ border-color:rgba(249,115,22,.55); background:linear-gradient(90deg, var(--orange-soft), #fff 60%); }
.echange-ligne__avatar{ flex:0 0 auto; width:42px; height:42px; }
.echange-ligne__corps{ flex:1 1 auto; min-width:0; display:grid; gap:2px; }
.echange-ligne__nom{ font-weight:700; }
.echange-ligne__nom small{ margin-left:6px; font-weight:500; font-size:.8rem; color:var(--muted); }
.echange-ligne__extrait{ font-size:.88rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.echange-ligne__fin{ flex:0 0 auto; display:grid; justify-items:end; gap:4px; }
.echange-ligne__date{ font-size:.76rem; color:var(--muted); }
.echange-ligne__pastille{
  min-width:20px; padding:1px 6px; border-radius:999px; text-align:center;
  font-size:.74rem; font-weight:800; color:#fff; background:var(--orange-dark);
}
@media (max-width:420px){ .echange-ligne__nom small{ display:block; margin-left:0; } }

/* Le point du sélecteur d'espace : des messages non lus attendent
   de l'autre côté (js/header.js, pointAilleurs). */
.espaces__point{
  display:inline-block; width:8px; height:8px; margin-left:6px; border-radius:50%;
  background:#dc2626; box-shadow:0 0 0 2px rgba(255,255,255,.75);
  animation:point-espace 2.4s ease-in-out infinite;
}
@keyframes point-espace{ 0%, 100%{ transform:scale(1); } 50%{ transform:scale(1.3); } }

/* =======================================================
   LE HAUT DE MES COURS (js/mes-cours3d.js)
   ======================================================= */
.mes-cours__tete{ position:relative; }
.prochain{
  display:flex; align-items:center; gap:18px; margin-top:18px; padding:18px 20px;
  border-radius:20px; color:#fff;
  background:linear-gradient(120deg, #1c1917 0%, #431407 55%, #9a3412 100%);
  box-shadow:0 18px 40px rgba(124,45,18,.25);
  position:relative; overflow:hidden; isolation:isolate;
}
.prochain::before{
  content:''; position:absolute; z-index:-1; right:-70px; top:-90px; width:260px; height:260px; border-radius:50%;
  background:radial-gradient(circle, rgba(249,115,22,.5), transparent 66%);
  animation:defi-lueur 8s ease-in-out infinite alternate;
}
.prochain__corps{ flex:1 1 auto; min-width:0; }
.prochain__sur{ margin:0; font-size:.74rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#fdba74; }
.prochain__titre{ margin:4px 0 2px; font-size:1.3rem; font-weight:800; color:#fff; }
.prochain__titre span{ font-weight:600; color:#fed7aa; }
.prochain__quand{ margin:0; color:#f5f0eb; }
.prochain__resume{ margin:8px 0 0; font-size:.86rem; color:#e7e5e4; }
.prochain__resume strong{ color:#fff; }
.prochain__resume a{ color:#fdba74; font-weight:700; }
.prochain__compte{ flex:0 0 auto; display:grid; justify-items:end; gap:10px; text-align:right; }
.prochain__chiffre{ font-size:1.6rem; font-weight:900; letter-spacing:-.02em; color:#fff; font-variant-numeric:tabular-nums; }
.prochain__chiffre.est-imminent{ color:#fdba74; animation:bulle-gonfle 1.4s ease-in-out infinite; }
@media (max-width:560px){
  .prochain{ flex-direction:column; align-items:flex-start; }
  .prochain__compte{ justify-items:start; text-align:left; grid-auto-flow:column; align-items:center; }
}

/* La partition de la semaine : une bande sur toute la largeur. */
.partition{
  position:relative; height:200px; margin-top:6px; overflow:hidden;
  opacity:0; transition:opacity 1.2s ease;
  -webkit-mask-image:linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
          mask-image:linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.partition.est-visible{ opacity:1; }
.partition__toile{ position:absolute; inset:0; width:100%; height:100%; display:block; }
.partition__etiquettes{ position:absolute; inset:0; pointer-events:none; }
.partition__etiquette, .partition__jour{ position:absolute; left:0; top:0; white-space:nowrap; will-change:transform; }
.partition__etiquette{
  padding:3px 9px; border-radius:999px; font-size:.76rem; font-weight:700;
  color:var(--ink); background:rgba(255,255,255,.92); border:1px solid rgba(249,115,22,.35);
  box-shadow:0 4px 12px rgba(15,18,22,.08);
}
.partition__etiquette.est-prochain{ color:#fff; background:var(--orange-dark); border-color:transparent; }
.partition__etiquette.est-en-attente{ border-style:dashed; color:var(--muted); }
.partition__jour{ font-size:.72rem; font-weight:700; color:var(--muted); text-transform:capitalize; }
.partition__jour--maintenant{ color:var(--orange-dark); text-transform:none; }

/* La carte qu'on vient de rejoindre depuis « Voir le cours ». */
.carte-cours.est-signalee{ animation:carte-signalee 1.6s ease; }
@keyframes carte-signalee{
  0%, 100%{ box-shadow:0 0 0 0 rgba(249,115,22,0); }
  25%{ box-shadow:0 0 0 6px rgba(249,115,22,.45); }
}
@media (prefers-reduced-motion:reduce){
  :root:not([data-animations="toutes"]) .espaces__point,
  :root:not([data-animations="toutes"]) .prochain::before,
  :root:not([data-animations="toutes"]) .prochain__chiffre.est-imminent{ animation:none; }
}

/* =======================================================
   LA COUVERTURE DU PROFIL (profil.html, js/profil.js)
   Une bande orange où des ondes défilent lentement, l'instrument
   principal du membre, et l'avatar posé à cheval dessus.
   ======================================================= */
.profil__entete{ position:relative; overflow:hidden; isolation:isolate; padding-top:116px; --anneau:#fff; }
.profil__couverture{
  position:absolute; z-index:-1; left:0; right:0; top:0; height:92px; overflow:hidden;
  background:linear-gradient(120deg, #9a3412 0%, #ea580c 55%, #fb923c 100%);
}
.profil__couverture::before, .profil__couverture::after{
  content:''; position:absolute; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20 Q15 4 30 20 T60 20 T90 20 T120 20' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat:repeat-x; background-position:0 50%;
}
.profil__couverture::before{ opacity:.35; background-size:240px 70px; animation:onde-defile 9s linear infinite; }
.profil__couverture::after{ opacity:.2; background-size:160px 46px; background-position:0 70%; animation:onde-defile 6s linear infinite reverse; }
@keyframes onde-defile{ to{ background-position-x:240px; } }
.profil__symbole{
  position:absolute; right:26px; top:12px; font-size:58px; line-height:1;
  filter:drop-shadow(0 8px 14px rgba(0,0,0,.25));
  animation:symbole-flotte 4.5s ease-in-out infinite;
}
@keyframes symbole-flotte{ 0%, 100%{ transform:translateY(0) rotate(-6deg); } 50%{ transform:translateY(-6px) rotate(6deg); } }
.profil__entete > .avatar--xl{ align-self:flex-start; margin-top:-62px; box-shadow:0 0 0 5px var(--anneau); }
@media (max-width:520px){
  .profil__symbole{ font-size:44px; right:16px; }
}
@media (prefers-reduced-motion:reduce){
  :root:not([data-animations="toutes"]) .profil__couverture::before,
  :root:not([data-animations="toutes"]) .profil__couverture::after,
  :root:not([data-animations="toutes"]) .profil__symbole{ animation:none; }
}


/* =======================================================
   LES ICÔNES (js/ui.js, ICONES)
   Des dessins au trait à la place des émojis. Ils prennent la
   couleur du texte autour d'eux et sa taille.
   ======================================================= */
svg.icone{ width:1.15em; height:1.15em; flex:0 0 auto; vertical-align:-.22em; }
.icone-case{ display:inline-flex; align-items:center; justify-content:center; }
.icone--pleine{ fill:currentColor; }

.plus-item__emoji{ color:var(--orange); }
.plus-item__emoji svg.icone{ width:30px; height:30px; }
.piece__emoji{ color:var(--orange); display:inline-flex; }
.defi__trophee{ color:#fbbf24; display:inline-flex; }
.echange__premier-icone{ color:var(--orange); }
.profil__symbole{ color:#fff; }
.profil__symbole svg.icone{ width:58px; height:58px; }
@media (max-width:640px){ .profil__symbole svg.icone{ width:44px; height:44px; } }
.iso__tuile span:nth-child(5) b{ display:inline-flex; }
.iso__tuile b svg.icone{ width:30px; height:30px; }
.msg__outil svg.icone, .pub__menu svg.icone{ width:1.05em; height:1.05em; }

/* Les médailles du défi prennent la couleur de la pastille dorée
   du podium (.pub__rang--podium). */
