:root {
  --fond: #f4f7fb;
  --carte: #ffffff;
  --texte: #14202b;
  --texte-2: #5b6b7b;
  --bord: #dde4ec;
  --primaire: #0b5fa5;
  --primaire-fonce: #084a80;
  --primaire-clair: #e3eefb;
  --ok: #1f8a4c;
  --ok-clair: #e2f5ea;
  --attente: #b26a00;
  --attente-clair: #fff3dc;
  --alerte: #b3261e;
  --alerte-clair: #fde7e5;
  --neutre-clair: #eef1f5;
  --rayon: 12px;
  --ombre: 0 1px 2px rgba(20, 32, 43, .06), 0 4px 14px rgba(20, 32, 43, .05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0e1621; --carte: #16212e; --texte: #e8eef5; --texte-2: #9fb0c2; --bord: #263445;
    --primaire: #5aa9f0; --primaire-fonce: #7dbbf4; --primaire-clair: #16304a;
    --ok: #4cc27f; --ok-clair: #14352a; --attente: #f0b35a; --attente-clair: #3a2c14;
    --alerte: #f08a83; --alerte-clair: #3d1d1b; --neutre-clair: #1e2a38;
    --ombre: 0 1px 2px rgba(0,0,0,.3);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--primaire); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
.discret { color: var(--texte-2); font-size: .9rem; }
.petit { font-size: .85rem; }

/* Structure */
.entete {
  background: var(--carte); border-bottom: 1px solid var(--bord); position: sticky; top: 0; z-index: 10;
}
.entete-inner {
  max-width: 1080px; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: 1rem;
}
.marque { font-weight: 700; color: var(--texte); display: flex; align-items: center; gap: .5rem; }
.marque svg { width: 26px; height: 26px; }
.nav { display: flex; gap: .25rem; margin-left: auto; flex-wrap: wrap; }
.nav a { padding: .4rem .7rem; border-radius: 8px; color: var(--texte-2); font-weight: 500; font-size: .95rem; }
.nav a.actif, .nav a:hover { background: var(--primaire-clair); color: var(--primaire); text-decoration: none; }
.compte-utilisateur { margin-left: .5rem; font-size: .9rem; color: var(--texte-2); }
main { max-width: 1080px; margin: 0 auto; padding: 1rem; padding-bottom: 5rem; }
.titre-page { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.grille { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .grille-2 { grid-template-columns: 1fr 1fr; }
  .grille-3 { grid-template-columns: repeat(3, 1fr); }
  .grille-principale { grid-template-columns: 2fr 1fr; }
}

/* Barre de navigation mobile en bas */
.nav-bas { display: none; }
.masquer-mobile { }
@media (max-width: 700px) {
  .nav { display: none; }
  .compte-utilisateur { display: none; }
  .masquer-mobile { display: none !important; }
  main { padding-bottom: 6rem; }
  .nav-bas {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--carte);
    border-top: 1px solid var(--bord); padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom));
    z-index: 10;
  }
  .nav-bas a { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; font-size: .68rem; color: var(--texte-2); min-height: 48px; padding: .25rem 0; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
  .nav-bas a.actif { color: var(--primaire); font-weight: 600; }
  .nav-bas svg { width: 24px; height: 24px; }
  .nav-bas .nav-plus span { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--primaire); color: #fff; margin-top: -18px; box-shadow: 0 4px 12px rgba(11,95,165,.35); }
  .nav-bas .nav-plus svg { width: 24px; height: 24px; }
  .nav-bas .nav-plus.actif span { background: var(--primaire-fonce); }
  .nav-bas.nav-bas-cursus { grid-template-columns: repeat(3, 1fr); }
}

/* Cartes */
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem; box-shadow: var(--ombre); }
.carte + .carte { margin-top: 1rem; }
.carte-titre { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.carte-titre h2 { margin: 0; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: .6rem 0; border-top: 1px solid var(--bord); }
.liste li:first-child { border-top: 0; padding-top: 0; }
.ligne { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.vide { color: var(--texte-2); font-style: italic; padding: .5rem 0; }

/* Indicateurs */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; }
.chiffre { background: var(--neutre-clair); border-radius: 10px; padding: .75rem .9rem; }
.chiffre b { display: block; font-size: 1.6rem; line-height: 1.1; }
.chiffre span { color: var(--texte-2); font-size: .85rem; }
.chiffre.ok { background: var(--ok-clair); }
.chiffre.attente { background: var(--attente-clair); }
.chiffre.alerte { background: var(--alerte-clair); }
.jauge { height: 8px; background: var(--neutre-clair); border-radius: 999px; overflow: hidden; }
.jauge > i { display: block; height: 100%; background: var(--primaire); border-radius: 999px; transition: width .4s; }
.jauge.ok > i { background: var(--ok); }
.jauge.temps > i { background: var(--attente); }
.progression { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--bord); }
.progression:first-of-type { border-top: 0; }
.progression .jauge { grid-column: 1 / -1; }
.progression .lib { font-weight: 500; }
.progression .compte { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--texte-2); }
.progression .compte b { color: var(--texte); }
.famille { margin-top: 1rem; }
.famille h3 { color: var(--texte-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; }

/* Tags */
.tag { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: var(--neutre-clair); color: var(--texte-2); }
.tag-ok { background: var(--ok-clair); color: var(--ok); }
.tag-attente { background: var(--attente-clair); color: var(--attente); }
.tag-alerte { background: var(--alerte-clair); color: var(--alerte); }
.tag-neutre { background: var(--neutre-clair); color: var(--texte-2); }
.tag-primaire { background: var(--primaire-clair); color: var(--primaire); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .95rem; border-radius: 9px; border: 1px solid var(--bord);
  background: var(--carte); color: var(--texte); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; border-color: var(--primaire); }
.btn-primaire { background: var(--primaire); border-color: var(--primaire); color: #fff; }
.btn-primaire:hover { background: var(--primaire-fonce); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-danger { color: var(--alerte); border-color: var(--alerte-clair); background: var(--alerte-clair); }
.btn-petit { padding: .3rem .65rem; font-size: .85rem; }
.btn-lien { border: 0; background: none; color: var(--primaire); padding: 0; font-weight: 500; }
.actions-form { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
.btn-flottant {
  position: fixed; right: 1rem; bottom: calc(4.2rem + env(safe-area-inset-bottom)); width: 54px; height: 54px; border-radius: 50%;
  background: var(--primaire); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(11,95,165,.35); z-index: 9;
}
.btn-flottant svg { width: 26px; height: 26px; }
@media (min-width: 701px) { .btn-flottant { bottom: 1.5rem; } }

/* Formulaires */
form .champ { margin-bottom: .9rem; }
form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
form .etiquette { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
form .grille label { font-weight: 400; margin-bottom: 0; }
form .aide { color: var(--texte-2); font-size: .8rem; margin-top: .2rem; }
form .erreur, .errorlist { color: var(--alerte); font-size: .85rem; margin: .2rem 0 0; padding: 0; list-style: none; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=tel],
select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--bord); border-radius: 9px; background: var(--carte); color: var(--texte); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primaire); outline-offset: 1px; border-color: var(--primaire); }
input[type=file] { font: inherit; }
textarea { resize: vertical; min-height: 4.5rem; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.champs-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 480px) { .champs-3 { grid-template-columns: 1fr 1fr; } }
.cases label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; margin: .2rem 1rem .2rem 0; }
.cases ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.cases input { width: 1.1rem; height: 1.1rem; }
.radios ul { list-style: none; padding: 0; margin: 0; }
.radios label { display: flex; gap: .5rem; align-items: center; font-weight: 500; padding: .35rem 0; }
.radios input { width: 1.1rem; height: 1.1rem; }

/* Messages */
.messages { max-width: 1080px; margin: .75rem auto 0; padding: 0 1rem; }
.message { padding: .65rem .9rem; border-radius: 9px; margin-bottom: .5rem; background: var(--primaire-clair); color: var(--primaire); font-weight: 500; }
.message.success { background: var(--ok-clair); color: var(--ok); }
.message.error { background: var(--alerte-clair); color: var(--alerte); }
.message.warning { background: var(--attente-clair); color: var(--attente); }

/* Filtres */
.filtres { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filtres a { padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--bord); font-size: .85rem; color: var(--texte-2); background: var(--carte); }
.filtres a.actif { background: var(--primaire); border-color: var(--primaire); color: #fff; }
.filtres a:hover { text-decoration: none; border-color: var(--primaire); }

/* Seances */
.seance { display: block; color: inherit; padding: .75rem 0; border-top: 1px solid var(--bord); }
.seance:first-child { border-top: 0; }
.seance:hover { text-decoration: none; background: var(--neutre-clair); margin: 0 -1rem; padding: .75rem 1rem; border-radius: 8px; }
.seance .haut { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.seance .theme { font-weight: 600; }
.seance .meta { color: var(--texte-2); font-size: .85rem; }
.bloc-texte { white-space: pre-wrap; }
dl.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
dl.fiche dt { color: var(--texte-2); font-size: .9rem; }
dl.fiche dd { margin: 0; }
.encart { border-left: 4px solid var(--primaire); background: var(--primaire-clair); padding: .75rem 1rem; border-radius: 0 9px 9px 0; margin: .75rem 0; }
.encart.ok { border-color: var(--ok); background: var(--ok-clair); }
.encart.alerte { border-color: var(--alerte); background: var(--alerte-clair); }
.encart.attente { border-color: var(--attente); background: var(--attente-clair); }

/* Tableaux */
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { color: var(--texte-2); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.journal-ligne { display: grid; grid-template-columns: 8.5rem 1fr; gap: .25rem .75rem; padding: .45rem 0; border-top: 1px solid var(--bord); font-size: .9rem; }
.journal-ligne:first-child { border-top: 0; }
.journal-ligne time { color: var(--texte-2); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .journal-ligne { grid-template-columns: 1fr; } }

/* Connexion */
.entree { max-width: 440px; margin: 2.5rem auto; }
.entree .carte { padding: 1.5rem; }
.entree h1 { margin-bottom: 1rem; }
.entree .marque { justify-content: center; margin-bottom: 1.5rem; font-size: 1.2rem; }
.entree .btn { width: 100%; justify-content: center; }
.entree form button[type=submit] { width: 100%; }
.entree hr { border: 0; border-top: 1px solid var(--bord); margin: 1.25rem 0; }
.entree ul { padding-left: 1.2rem; }
.allauth-menu { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.htmx-request .btn { opacity: .6; pointer-events: none; }


/* Accueil livret */
.livret-entete { display: flex; flex-direction: column; gap: .75rem; margin-bottom: .5rem; }
.livret-entete h1 { margin-bottom: .1rem; }
.chiffres-compact { grid-template-columns: 1fr 1fr; }
.chiffre { text-decoration: none; color: inherit; }
.chiffre b { font-size: 1.35rem; }
.titre-section { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-2); margin: 1.25rem 0 .5rem; font-weight: 700; }
.titre-section:first-of-type { margin-top: .75rem; }
.carte-titre h3 { margin: 0; font-size: 1rem; }
.compteur-section { font-variant-numeric: tabular-nums; color: var(--texte-2); white-space: nowrap; }
.compteur-section b { color: var(--texte); font-size: 1.05rem; }
.carte-alerte { border-color: var(--attente); }
a.progression { color: inherit; text-decoration: none; border-radius: 8px; }
@media (hover: hover) { a.progression:hover { background: var(--neutre-clair); margin: 0 -.5rem; padding-left: .5rem; padding-right: .5rem; } }
.progression .lib { font-weight: 500; font-size: .95rem; }
.ligne-livret { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: inherit; text-decoration: none; padding: .85rem 1rem; }
.ligne-livret:hover { text-decoration: none; border-color: var(--primaire); }
.ligne-livret-texte { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ligne-livret-etat { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.ligne-livret i, .menu-liste i { font-style: normal; color: var(--texte-2); font-size: 1.3rem; line-height: 1; }
.liste-acquis li { padding: .15rem 0; }
.liste-acquis .ligne { padding: .55rem 0; min-height: 44px; color: inherit; text-decoration: none; }
.liste-acquis a.ligne:hover { text-decoration: none; }
.liste-acquis .ligne > span:first-child { flex: 1; min-width: 0; font-size: .95rem; }

/* Menu Plus */
.menu-liste { padding: 0 1rem; }
.menu-liste a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 0; min-height: 48px; border-top: 1px solid var(--bord); color: inherit; font-weight: 500; }
.menu-liste a:first-child { border-top: 0; }
.menu-liste a:hover { text-decoration: none; color: var(--primaire); }

/* Segments (onglets) */
.segments { display: flex; background: var(--neutre-clair); border-radius: 10px; padding: 3px; margin-bottom: .75rem; }
.segments a { flex: 1; text-align: center; padding: .5rem .4rem; border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--texte-2); min-height: 40px; display: flex; align-items: center; justify-content: center; }
.segments a.actif { background: var(--carte); color: var(--texte); box-shadow: var(--ombre); }
.segments a:hover { text-decoration: none; }

/* Choix de la case du livret (formulaire seance) */
.choix-cases { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.choix-case { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .75rem; border: 1.5px solid var(--bord); border-radius: 10px; cursor: pointer; min-height: 64px; -webkit-tap-highlight-color: transparent; }
.choix-case input { position: absolute; opacity: 0; width: 0; height: 0; }
.choix-case.actif { border-color: var(--primaire); background: var(--primaire-clair); }
.choix-case-titre { font-size: .72rem; font-weight: 700; color: var(--primaire); letter-spacing: .04em; }
.choix-case-lib { font-size: .88rem; font-weight: 500; line-height: 1.3; }
form .carte h2 { font-size: 1rem; margin-bottom: .75rem; }
details { margin-top: .5rem; }
details summary { cursor: pointer; color: var(--primaire); font-weight: 500; padding: .5rem 0; list-style: none; min-height: 44px; display: flex; align-items: center; }
details summary::before { content: "›"; display: inline-block; margin-right: .5rem; transition: transform .15s; font-size: 1.2rem; }
details[open] summary::before { transform: rotate(90deg); }
details summary::-webkit-details-marker { display: none; }
.barre-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.barre-actions .btn { flex: 1; justify-content: center; min-height: 48px; }
@media (max-width: 700px) {
  .barre-actions { flex-direction: column-reverse; }
}

/* Séances : toute la carte est cliquable */
.seance-lien { display: block; color: inherit; text-decoration: none; }
.seance-lien:hover { text-decoration: none; }
.seance { padding: .85rem 0; }
.seance:hover { margin: 0; padding: .85rem 0; background: transparent; }
.seance .theme { font-size: .95rem; }

/* Tactile : cibles et champs */
.btn { min-height: 44px; }
.btn-petit { min-height: 36px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=tel], select, textarea { font-size: 16px; min-height: 44px; }
textarea { min-height: 5rem; }
.filtres a { min-height: 34px; display: inline-flex; align-items: center; }
.cases label { min-height: 40px; }
@media (max-width: 480px) {
  h1 { font-size: 1.3rem; }
  main { padding: .75rem .75rem 6rem; }
  .carte { padding: .85rem; }
  .champs-3 { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .chiffre { padding: .6rem .7rem; }
}

@media (max-width: 700px) {
  .seance .haut { flex-wrap: wrap; gap: .25rem; }
  .seance .haut .theme { flex: 1 1 100%; }
}

/* Utilitaires : remplacent les styles en ligne retires en v3.3 pour permettre une
   Content-Security-Policy sans style-src 'unsafe-inline' (rapport RedSentinel du 19/09/2026).
   Places en fin de fichier pour l'emporter, a specificite egale, sur les regles de classe
   ci-dessus qu'ils viennent parfois ajuster (ex. actions-form, encart, carte). */
/* Echelle d'espacement : un pas de .25rem, monotone (audit du 20/09/2026, B4). */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: .5rem; }
.m-0 { margin: 0; }
.inline-block { display: inline-block; }
.justify-center { justify-content: center; }
.overflow-x-auto { overflow-x: auto; }
.carte-600 { max-width: 600px; }
.carte-640 { max-width: 640px; }
.carte-700 { max-width: 700px; }
.jauge-parcours { max-width: 420px; margin-bottom: 1rem; }
.form-suppr-document { margin-top: .35rem; }
.mention-connecte { text-align: center; margin-top: 1.5rem; }
.exigence-inactive { opacity: .45; }
.tag-grand { font-size: .9rem; }
.logo-connexion { width: 34px; height: 34px; }

/* Onglet « Ce qu'on attend de toi » (v3.4) */
.liste-objectifs li, .liste-essais li { padding: .5rem 0; border-top: 1px solid var(--bord); }
.liste-objectifs li:first-child, .liste-essais li:first-child { border-top: 0; }
.liste-objectifs li::before { content: "→ "; color: var(--primaire); font-weight: 700; }
.deroule { counter-reset: etape; }
.deroule > li { counter-increment: etape; padding: .75rem 0 .75rem 2.2rem; border-top: 1px solid var(--bord); position: relative; }
.deroule > li:first-child { border-top: 0; }
.deroule > li::before { content: counter(etape); position: absolute; left: 0; top: .75rem; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--primaire-clair); color: var(--primaire); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }

/* Grilles de saisie des tableaux du livret (v3.7) */
.grille { border: 1px solid var(--bord); border-radius: 10px; overflow: hidden; }
.grille-entete { display: none; gap: .5rem; padding: .45rem .6rem; background: var(--neutre-clair); font-size: .78rem; font-weight: 600; color: var(--texte-2); }
.grille-ligne { display: grid; gap: .5rem; padding: .55rem .6rem; border-top: 1px solid var(--bord); }
.grille-ligne:first-of-type { border-top: 0; }
.grille-case { display: block; min-width: 0; }
.grille-libelle { display: block; font-size: .72rem; color: var(--texte-2); margin-bottom: .15rem; }
.grille input[type=text] { padding: .45rem .5rem; }
.grille input::placeholder { color: var(--texte-2); opacity: .55; }
@media (min-width: 760px) {
  .grille-entete { display: grid; }
  .grille-libelle { display: none; }
  .grille-3 .grille-entete, .grille-3 .grille-ligne { grid-template-columns: 1fr 1.6fr 3fr; }
  .grille-4 .grille-entete, .grille-4 .grille-ligne { grid-template-columns: 2fr 2fr 1fr 2fr; }
  .grille-5 .grille-entete, .grille-5 .grille-ligne { grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr 1.4fr; }
}
.temoin { font-size: .78rem; margin-top: .25rem; color: var(--texte-2); }
.temoin-reduit { color: var(--attente); }
.temoin-suite { color: var(--alerte); }
.grille-ajouter { margin-top: .4rem; }
.grille-ligne[hidden], .grille-ajouter[hidden] { display: none; }

/* Espaces et « voir comme » (v4.1) */
.menu-espace { position: relative; margin: 0 0 0 .5rem; }
.menu-espace summary { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .5rem; border-radius: 8px; color: var(--texte-2); font-size: .9rem; font-weight: 500; min-height: 36px; }
.menu-espace summary::before { content: none; }
.menu-espace summary:hover { background: var(--neutre-clair); }
.menu-espace-liste { position: absolute; right: 0; top: calc(100% + .35rem); min-width: 190px; background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; box-shadow: var(--ombre); padding: .6rem; z-index: 20; display: flex; flex-direction: column; gap: .25rem; }
.menu-espace-choix { display: block; width: 100%; text-align: left; padding: .55rem .6rem; border: 0; border-radius: 8px; background: none; color: var(--texte); font: inherit; font-weight: 500; cursor: pointer; min-height: 44px; }
.menu-espace-choix:hover { background: var(--primaire-clair); color: var(--primaire); }
@media (max-width: 700px) { .menu-espace { margin-left: auto; } .menu-espace-nom { display: none; } }
.bandeau-voir-comme { background: var(--attente-clair); color: var(--attente); border-bottom: 1px solid var(--attente); display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .5rem 1rem; font-size: .9rem; }
.bandeau-voir-comme .btn { min-height: 36px; }
.ligne-utilisateur.inactif { opacity: .6; }
.ligne-utilisateur-nom { min-width: 0; flex: 1; }
.courbe { background: var(--neutre-clair); border-radius: 10px; padding: .6rem .75rem; }
.courbe-titre { font-size: .78rem; font-weight: 600; color: var(--texte-2); margin-bottom: .3rem; }
.courbe svg { display: block; width: 100%; height: 48px; }
.courbe polyline { fill: none; stroke: var(--primaire); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
code { font-size: .9em; background: var(--neutre-clair); padding: .05rem .3rem; border-radius: 4px; }
input[type=search] { width: auto; flex: 1; padding: .6rem .7rem; border: 1px solid var(--bord); border-radius: 9px; background: var(--carte); color: var(--texte); font: inherit; font-size: 16px; min-height: 44px; }
.courbe line.repere { stroke: var(--bord); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }

/* Parcours d'accueil (v4.2) */
.accueil { max-width: 720px; margin: 0 auto; }
.accueil-etapes { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; gap: .35rem; }
.accueil-etapes li { flex: 1; }
.accueil-etapes a { display: block; text-align: center; font-size: .78rem; font-weight: 600; color: var(--texte-2); padding: .4rem .2rem 0; border-top: 4px solid var(--bord); border-radius: 2px; }
.accueil-etapes .faite a { border-top-color: var(--ok); }
.accueil-etapes .courante a { border-top-color: var(--primaire); color: var(--primaire); }
.accueil-etapes a:hover { text-decoration: none; }
@media (max-width: 480px) { .accueil-etapes a { font-size: 0; height: 4px; padding: 0; } }
.accueil-carte { padding: 1.5rem; }
.accueil-carte h1 { margin-bottom: 1rem; }
.accueil-carte h2 { margin-top: 1rem; }
.accueil-carte p { line-height: 1.6; }
.liste-roles li, .liste-visite li { padding: .55rem 0; }
.accueil-pied { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.accueil-pied .actions-form { flex: 1; }
.btn-lien.petit { min-height: 44px; cursor: pointer; }

/* Site de recette (v4.2.2) */
.bandeau-recette { background: #6b2fa3; color: #fff; text-align: center; font-size: .85rem; font-weight: 600; padding: .35rem 1rem; }
