/* Copie versionnée de la charte ATEA « Modernist v2 » — SOURCE : ~/Developer/chartes/atea/charte.css
   (dépôt dédié, décision 4.6 du 29 oct. 2026). NE PAS MODIFIER ICI : toute évolution se fait dans la
   source puis se recopie. Le CSS propre au portail vit dans portail.css. Les woff2 sont dans fonts/. */

/* ============================================================================
   Charte ATEA « Modernist v2 » — feuille unique, versionnée.
   Source de vérité du style des outils ATEA (calendrier, inscriptions,
   nouvelle identité, espace famille, compta). Remplace les copies divergentes
   qui vivaient dans le PHP de chaque projet. Référence : CHARTE.md.

   Principes : canevas gris clair, cartes blanches arrondies à ombre douce,
   barre latérale sombre, accent rouge ATEA, Archivo auto-hébergée.
   Mode sombre automatique (prefers-color-scheme) et débrayable (data-theme).

   La couleur principale est PARAMÉTRABLE : le projet surcharge --rouge après
   avoir lié cette feuille, dans une balise style en ligne qui pose
   « :root { --rouge: couleur_principale() } ». Toutes les déclinaisons en
   découlent par color-mix : ne jamais figer une déclinaison à la main.
   (Jamais de balise écrite en toutes lettres dans ce commentaire : la feuille
   est parfois inlinée par les aperçus de test, un faux fermant la casserait.)
   ========================================================================= */

/* ---- Police Archivo, auto-hébergée (une seule copie des woff2) ---- */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================================
   1. Tokens — thème clair (défaut).
   Noms canoniques : ceux d'inscriptions et de l'espace famille. La table de
   correspondance avec les noms historiques du calendrier est dans CHARTE.md.
   ========================================================================= */
:root {
  color-scheme: light;

  /* — Marque. --rouge est surchargée par le projet (couleur_principale()). — */
  --rouge: #ec3013;
  --rouge-doux:   color-mix(in srgb, var(--rouge) 7%, var(--carte));   /* fond voilé */
  --rouge-bord:   color-mix(in srgb, var(--rouge) 28%, var(--carte));  /* traits, focus */
  --rouge-sombre: color-mix(in srgb, var(--rouge) 82%, black);         /* survol, texte accentué */
  --rouge-nuit:   color-mix(in srgb, var(--rouge) 62%, black);         /* texte accentué appuyé */

  /* — Surfaces et texte — */
  --encre:   #0f172a;    /* texte courant */
  --doux:    #64748b;    /* texte secondaire (≥ 4,5:1 sur --carte) */
  --canevas: #f1f5f9;    /* fond de page */
  --carte:   #ffffff;    /* fond des cartes, tableaux, champs */
  --trait:   #e2e8f0;    /* bordures */
  --bord-champ: #cbd5e1; /* bordure des champs et boutons secondaires */
  --survol:  #f8fafc;    /* ligne de tableau survolée, fond des th */
  --lateral: #1d222b;    /* barre latérale sombre */
  --noir:    #0b0b0d;    /* la « scène » publique (fond du logo) */

  /* — Ombres — */
  --ombre: 0 1px 2px rgb(15 23 42 / .06), 0 1px 3px rgb(15 23 42 / .08);
  --ombre-forte: 0 20px 45px -12px rgb(15 23 42 / .35), 0 4px 12px rgb(15 23 42 / .12);

  /* — États (texte / fond / bord). Texte ≥ 4,5:1 sur son fond. — */
  --ok:          #065f46;  --ok-fond:      #ecfdf5;  --ok-bord:    #a7f3d0;
  --avert:       #92400e;  --avert-fond:   #fffbeb;  --avert-bord: #fde68a;
  /* Statuts de séance (appel, espace famille) */
  --present: #15803d;  --present-fond: #dcfce7;
  --retard:  #b45309;  --retard-fond:  #fef3c7;
  --absent:  #b91c1c;  --absent-fond:  #fee2e2;
  --excuse:  #6d28d9;  --excuse-fond:  #ede9fe;
  --neutre:  #475569;  --neutre-fond:  #f1f5f9;

  /* — Typographie — */
  --sans: 'Archivo', Arial, Helvetica, sans-serif;
}

/* ============================================================================
   2. Tokens — thème sombre. Deux portes : le réglage du système
   (prefers-color-scheme, sauf si la page force data-theme="light"),
   et data-theme="dark" posé par la page.
   Les noms gardent leur rôle du thème clair : en sombre, --rouge-sombre
   s'ÉCLAIRCIT (c'est « l'accent lisible sur le fond », quel que soit le fond).
   ========================================================================= */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --rouge-doux:   color-mix(in srgb, var(--rouge) 16%, var(--carte));
    --rouge-bord:   color-mix(in srgb, var(--rouge) 45%, var(--carte));
    --rouge-sombre: color-mix(in srgb, var(--rouge) 72%, white);
    --rouge-nuit:   color-mix(in srgb, var(--rouge) 55%, white);

    --encre:   #e2e8f0;
    --doux:    #94a3b8;
    --canevas: #0f172a;
    --carte:   #1e293b;
    --trait:   #334155;
    --bord-champ: #475569;
    --survol:  #263447;
    --lateral: #11151c;

    --ombre: 0 1px 2px rgb(0 0 0 / .35), 0 1px 3px rgb(0 0 0 / .3);
    --ombre-forte: 0 20px 45px -12px rgb(0 0 0 / .6), 0 4px 12px rgb(0 0 0 / .4);

    --ok:     #6ee7b7;  --ok-fond:    #0b2e24;  --ok-bord:    #115e45;
    --avert:  #fcd34d;  --avert-fond: #2e2008;  --avert-bord: #705a14;
    --present: #4ade80;  --present-fond: #14321f;
    --retard:  #fbbf24;  --retard-fond:  #332410;
    --absent:  #f87171;  --absent-fond:  #3b1414;
    --excuse:  #c4b5fd;  --excuse-fond:  #251c40;
    --neutre:  #cbd5e1;  --neutre-fond:  #27344a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --rouge-doux:   color-mix(in srgb, var(--rouge) 16%, var(--carte));
  --rouge-bord:   color-mix(in srgb, var(--rouge) 45%, var(--carte));
  --rouge-sombre: color-mix(in srgb, var(--rouge) 72%, white);
  --rouge-nuit:   color-mix(in srgb, var(--rouge) 55%, white);

  --encre:   #e2e8f0;
  --doux:    #94a3b8;
  --canevas: #0f172a;
  --carte:   #1e293b;
  --trait:   #334155;
  --bord-champ: #475569;
  --survol:  #263447;
  --lateral: #11151c;

  --ombre: 0 1px 2px rgb(0 0 0 / .35), 0 1px 3px rgb(0 0 0 / .3);
  --ombre-forte: 0 20px 45px -12px rgb(0 0 0 / .6), 0 4px 12px rgb(0 0 0 / .4);

  --ok:     #6ee7b7;  --ok-fond:    #0b2e24;  --ok-bord:    #115e45;
  --avert:  #fcd34d;  --avert-fond: #2e2008;  --avert-bord: #705a14;
  --present: #4ade80;  --present-fond: #14321f;
  --retard:  #fbbf24;  --retard-fond:  #332410;
  --absent:  #f87171;  --absent-fond:  #3b1414;
  --excuse:  #c4b5fd;  --excuse-fond:  #251c40;
  --neutre:  #cbd5e1;  --neutre-fond:  #27344a;
}

/* ============================================================================
   3. Base
   ========================================================================= */
* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* l'emporte sur les display posés plus bas */
body {
  margin: 0;
  font: 15px/1.5 var(--sans);
  background: var(--canevas);
  color: var(--encre);
}
h1 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 1rem; color: var(--encre); }
h2 { font-size: 1.1rem; font-weight: 700; margin: 1.6rem 0 .5rem; color: var(--encre); }
a { color: var(--encre); text-decoration-color: var(--rouge-bord); text-underline-offset: 2px; }
a:hover { color: var(--rouge-sombre); text-decoration-color: currentColor; }
:focus-visible { outline: 2.5px solid var(--rouge); outline-offset: 1.5px; }
.note { color: var(--doux); font-size: .86rem; }
.droite { text-align: right; }

/* ============================================================================
   4. Disposition connectée : barre latérale sombre (façon CoreUI, sans son code)
   ========================================================================= */
.disposition { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
aside.lateral { background: var(--lateral); color: #cbd5e1; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 50; }
.marque-bloc { padding: 1.1rem 1rem; border-bottom: 1px solid rgb(255 255 255 / .1); text-align: center; }
.marque-bloc a { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.02rem;
  letter-spacing: .02em; display: block; }
.marque-bloc img { max-width: 100%; max-height: 2.6rem; display: block; margin: 0 auto .5rem; }
aside.lateral nav { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .6rem .8rem; flex: 1; }
aside.lateral nav .rubrique { font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #64748b; padding: .9rem .8rem .25rem; }
aside.lateral nav a { display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  padding: .45rem .8rem; border-radius: .5rem; color: #cbd5e1; text-decoration: none; font-size: .92rem; }
aside.lateral nav a:hover { background: rgb(255 255 255 / .06); color: #fff; }
aside.lateral nav a.actif { background: var(--rouge); color: #fff; font-weight: 600; }
aside.lateral nav a .icone { flex: 0 0 auto; color: #8a94a6; }
aside.lateral nav a:hover .icone, aside.lateral nav a.actif .icone { color: #fff; }
.utilisateur { padding: .85rem 1rem; border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .85rem; color: #94a3b8; }
.utilisateur strong { color: #e2e8f0; }
.utilisateur button { background: none; border: 0; padding: 0; margin-top: .35rem; color: #94a3b8;
  font: inherit; font-weight: 400; cursor: pointer; text-decoration: underline; }
.utilisateur button:hover { background: none; color: #fff; }
.disposition > main { padding: 1.6rem 2rem 1rem; min-width: 0; max-width: 92rem; }
@media (max-width: 900px) {
  .disposition { grid-template-columns: 1fr; }
  aside.lateral { position: static; height: auto; }
  aside.lateral nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: .5rem .6rem; }
  aside.lateral nav a { white-space: nowrap; }
  aside.lateral nav .rubrique { display: none; }
  .marque-bloc { display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    padding: .7rem 1rem; text-align: left; }
  .marque-bloc img { max-height: 1.8rem; margin: 0; }
  .utilisateur { display: flex; justify-content: space-between; align-items: center; gap: .6rem;
    padding: .5rem 1rem; }
  .disposition > main { padding: 1rem; }
}

/* ============================================================================
   5. Disposition publique : la « scène » (projet nouvelle identité) —
   logo blanc et rouge sur fond noir, surtitre en capitales espacées,
   titre centré souligné de rouge, boutons en pilule.
   Le fond noir de la scène ne change PAS en mode sombre : c'est la marque.
   ========================================================================= */
header.publique { background: var(--noir); color: #fff; text-align: center; padding: 1.9rem 1rem 1.6rem; }
header.publique a { display: inline-block; text-decoration: none; color: #fff; }
header.publique img { width: min(230px, 62vw); height: auto; display: block; margin: 0 auto; }
header.publique .surtitre { margin: .7rem 0 0; color: #b8bfca; letter-spacing: .22em;
  text-transform: uppercase; font-size: .74rem; font-weight: 600; }
main.publique { max-width: 72rem; margin: 0 auto; padding: 1.8rem 1.2rem 1rem; }
main.publique > h1, .titre-scene { text-align: center; }
main.publique > h1::after, .titre-scene::after { content: ''; display: block; width: 3.2rem;
  height: 3px; background: var(--rouge); margin: .55rem auto 0; border-radius: 2px; }
main.publique button, main.publique .bouton { border-radius: 999px; padding: .55rem 1.35rem; }

/* ============================================================================
   6. Boutons.
   Secondaire RÉCONCILIÉ (décision charte, oct. 2026) : fond carte, texte encre,
   bordure — la forme du calendrier et de l'espace famille. Le gris plein
   #475569 d'inscriptions disparaît.
   ========================================================================= */
button, .bouton { background: var(--rouge); color: #fff; border: none; cursor: pointer;
  border-radius: .5rem; padding: .48rem 1.05rem; font: inherit; font-size: .92rem;
  font-weight: 600; text-decoration: none; display: inline-block; }
button:hover, .bouton:hover { background: var(--rouge-sombre); color: #fff; }
button.secondaire, .bouton.secondaire { background: var(--carte); color: var(--encre);
  border: 1px solid var(--bord-champ); }
button.secondaire:hover, .bouton.secondaire:hover { background: var(--survol); color: var(--encre); }
button.discret, .bouton.discret { background: none; color: var(--rouge-sombre); padding: .1rem .3rem;
  font-size: .85rem; font-weight: 400; text-decoration: underline; }
button.discret:hover, .bouton.discret:hover { background: none; color: var(--rouge-nuit); }
button.petit, .bouton.petit { font-size: .82rem; padding: .3rem .75rem; font-weight: 500; }
button.pilule, .bouton.pilule { border-radius: 999px; padding: .55rem 1.35rem; }
/* Secondaire des pages publiques : transparent, bordé de rouge (nouvelle identité). */
.bouton.secondaire-clair { background: transparent; color: var(--rouge-sombre);
  border: 1.5px solid var(--rouge); }
.bouton.secondaire-clair:hover { background: var(--rouge-doux); color: var(--rouge-sombre); }
button:disabled, .bouton.attente { opacity: .55; cursor: not-allowed; }
.rangee-boutons { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* ============================================================================
   7. Formulaires
   ========================================================================= */
input, select, textarea { font: inherit; font-size: .92rem; padding: .42rem .6rem;
  color: var(--encre); border: 1px solid var(--bord-champ); border-radius: .5rem;
  background: var(--carte); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rouge-bord);
  border-color: var(--rouge); }
input[type=radio], input[type=checkbox] { accent-color: var(--rouge); width: auto; }
input[type=color] { padding: 2px; height: 2.1rem; width: 3rem; }
input[type=file] { border: 1.5px dashed var(--bord-champ); background: var(--canevas);
  color: var(--doux); font-size: .86rem; cursor: pointer; }
input[type=file]:hover { border-color: var(--rouge); }
input[type=file]::file-selector-button { background: var(--lateral); color: #fff; border: 0;
  border-radius: .4rem; padding: .3rem .75rem; font: inherit; font-size: .84rem;
  font-weight: 600; cursor: pointer; margin-right: .6rem; }
label.requis::after { content: ' *'; color: var(--rouge); font-weight: 700; }

/* Tuiles : un fieldset devient une carte, sa légende en est le titre. */
fieldset { background: var(--carte); border: 1px solid var(--trait); border-radius: .75rem;
  margin: 1rem 0; padding: 1rem 1.3rem 1.1rem; box-shadow: var(--ombre); min-width: 0; }
legend { float: left; width: 100%; padding: 0; margin: 0 0 .7rem; font-weight: 700; font-size: 1.02rem; }
legend + * { clear: both; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .7rem 1rem; }
.grille-champs label { display: flex; flex-direction: column; gap: .25rem; font-size: .86rem;
  font-weight: 600; color: var(--encre); }
.choix { display: flex; flex-direction: column; gap: .45rem; margin: .2rem 0 .9rem; }
.choix label { display: flex; align-items: flex-start; gap: .55rem; font-weight: normal; margin: 0; }
.choix.choix-ligne { flex-direction: row; flex-wrap: wrap; gap: 1.4rem; }

/* ============================================================================
   8. Tableaux : cartes blanches. Coins arrondis portés par les cellules
   d'angle, et non par overflow:hidden (qui empêcherait de figer les en-têtes).
   ========================================================================= */
table.liste { border-collapse: separate; border-spacing: 0; width: 100%; margin: 1rem 0;
  background: var(--carte); border-radius: .75rem; box-shadow: var(--ombre); }
table.liste tr:first-child > :first-child { border-top-left-radius: .75rem; }
table.liste tr:first-child > :last-child { border-top-right-radius: .75rem; }
table.liste tr:last-child > :first-child { border-bottom-left-radius: .75rem; }
table.liste tr:last-child > :last-child { border-bottom-right-radius: .75rem; }
table.liste th { font-size: .74rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--doux); text-align: left; padding: .55rem .7rem;
  background: var(--survol); border-bottom: 1px solid var(--trait); }
table.liste td { padding: .5rem .7rem; border-bottom: 1px solid var(--trait);
  font-size: .9rem; vertical-align: top; }
table.liste tr:last-child td { border-bottom: 0; }
table.liste tr:hover td { background: var(--survol); }
table.liste button, table.liste .bouton { font-size: .82rem; padding: .3rem .75rem; font-weight: 500; }
/* Tableau large sur petit écran : il défile dans son cadre au lieu d'élargir la page. */
.defilement-table { overflow-x: auto; margin: 1rem 0; border-radius: .75rem; box-shadow: var(--ombre); }
.defilement-table table.liste { margin: 0; box-shadow: none; }

/* ============================================================================
   9. Cartes, tuiles de chiffres
   ========================================================================= */
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: .75rem;
  box-shadow: var(--ombre); padding: 1rem 1.1rem; }
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.1rem; margin: 1.2rem 0; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: .8rem; margin: 1rem 0; }
.chiffres div { background: var(--carte); border: 1px solid var(--trait); border-radius: .75rem;
  box-shadow: var(--ombre); padding: .8rem 1rem; }
.chiffres b { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.chiffres span { color: var(--doux); font-size: .86rem; }
.chiffres div.alerte { border-color: var(--rouge-bord); background: var(--rouge-doux); }
.chiffres div.alerte b { color: var(--rouge-sombre); }

/* ============================================================================
   10. Messages, étiquettes, badges
   ========================================================================= */
.message { background: var(--ok-fond); border: 1px solid var(--ok-bord); color: var(--ok);
  border-radius: .75rem; padding: .75rem 1rem; margin: 1rem 0; box-shadow: var(--ombre); }
.erreur { background: var(--rouge-doux); border: 1px solid var(--rouge-bord);
  color: var(--rouge-sombre); border-radius: .75rem; padding: .75rem 1rem; margin: 1rem 0;
  box-shadow: var(--ombre); }
.avertissement { background: var(--avert-fond); border: 1px solid var(--avert-bord);
  color: var(--avert); border-radius: .75rem; padding: .75rem 1rem; margin: 1rem 0;
  box-shadow: var(--ombre); }

.etiquette { display: inline-block; padding: .08rem .6rem; border-radius: 999px;
  white-space: nowrap; font-size: .78rem; font-weight: 500; background: var(--canevas);
  border: 1px solid var(--trait); color: var(--neutre); }
.etiquette.ok { background: var(--ok-fond); border-color: var(--ok-bord); color: var(--ok); }
.etiquette.manque { background: var(--avert-fond); border-color: var(--avert-bord); color: var(--avert); }
.etiquette.probleme { background: var(--rouge-doux); border-color: var(--rouge-bord);
  color: var(--rouge-sombre); }
.etiquette.archive { border-style: dashed; color: var(--doux); }
.etiquette.alerte { background: var(--rouge); border-color: var(--rouge); color: #fff; font-weight: 700; }

/* Étiquettes de statut de séance (appel, espace famille). */
.etiq { display: inline-block; font-size: .76rem; font-weight: 600; border-radius: 999px;
  padding: .08rem .6rem; vertical-align: middle; background: var(--neutre-fond);
  color: var(--neutre); white-space: nowrap; }
.etiq.present, .etiq.validee, .etiq.payee { background: var(--present-fond); color: var(--present); }
.etiq.retard, .etiq.demande, .etiq.emise { background: var(--retard-fond); color: var(--retard); }
.etiq.absent, .etiq.refusee { background: var(--absent-fond); color: var(--absent); }
.etiq.excuse { background: var(--excuse-fond); color: var(--excuse); }
.etiq.annulee { background: var(--carte); color: var(--doux); border: 1px dashed var(--bord-champ); }

.badge { font-size: .74rem; font-weight: 700; border-radius: 999px; padding: .05rem .5rem;
  background: var(--rouge); color: #fff; }
.pastille { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%;
  vertical-align: middle; }

/* ============================================================================
   11. Onglets segmentés et volets (bascules de vue)
   ========================================================================= */
.onglets { display: inline-flex; flex-wrap: wrap; background: var(--trait);
  border-radius: .6rem; padding: 3px; gap: 2px; }
.onglets a { padding: .32rem .85rem; border-radius: .5rem; text-decoration: none;
  color: var(--doux); font-size: .9rem; font-weight: 600; }
.onglets a:hover { color: var(--encre); }
.onglets a.actif { background: var(--carte); color: var(--encre); box-shadow: var(--ombre); }

.volets { display: inline-flex; border: 1px solid var(--trait); border-radius: 999px;
  background: var(--carte); padding: .2rem; }
.volets a { padding: .3rem .9rem; border-radius: 999px; color: var(--doux);
  text-decoration: none; font-weight: 600; font-size: .9rem; }
.volets a.actif { background: var(--encre); color: var(--canevas); }
.volets a:not(.actif):hover { color: var(--encre); }

/* Sous-menu d'une rubrique : onglets soulignés. */
.sous-menu { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; border-bottom: 1px solid var(--trait);
  margin: -.3rem 0 1.2rem; }
.sous-menu a { padding: .45rem 0; margin-bottom: -1px; border-bottom: 2px solid transparent;
  color: var(--doux); text-decoration: none; font-weight: 600; font-size: .92rem; }
.sous-menu a:hover { color: var(--encre); }
.sous-menu a.actif { color: var(--encre); border-bottom-color: var(--rouge); }

/* ============================================================================
   12. Panneau latéral glissant (édition d'une fiche dans une liste)
   ========================================================================= */
@keyframes glisse-depuis-la-droite {
  from { transform: translateX(calc(100% + 1.5rem)); }
  to   { transform: translateX(0); }
}
.panneau-glissant { position: fixed; top: 1rem; bottom: 1rem; right: 1rem; z-index: 80;
  width: calc(100% - 2rem); max-width: 30rem; overflow-y: auto;
  background: var(--carte); border: 1px solid var(--trait); border-radius: .75rem;
  box-shadow: var(--ombre-forte); animation: glisse-depuis-la-droite 200ms ease-out; }
.panneau-glissant[hidden] { display: none; }
.panneau-glissant .panneau-barre { position: sticky; top: 0; z-index: 2; display: flex;
  align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem 1rem;
  background: var(--carte); border-bottom: 1px solid var(--trait); }
.panneau-glissant .panneau-nom { flex: 1; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.panneau-glissant .panneau-corps { padding: 1rem 1.1rem 1.2rem; }
.panneau-glissant .panneau-pied { position: sticky; bottom: 0; display: flex; gap: .5rem;
  padding: .8rem 1.1rem; background: var(--carte); border-top: 1px solid var(--trait); }
.panneau-fermer { background: var(--carte); color: var(--encre); border: 1px solid var(--bord-champ);
  padding: .2rem .55rem; font-weight: 700; line-height: 1.2; }
.panneau-fermer:hover { background: var(--survol); color: var(--encre); }
@media (max-width: 900px) {
  .panneau-glissant { top: .5rem; bottom: .5rem; right: .5rem; width: calc(100% - 1rem); }
}

/* ============================================================================
   13. Mouvement réduit : tout mouvement est débrayé d'un bloc.
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
