/* ============================================================
   ÉCOLE ANIMA SANA — Feuille de style principale
   Réplique PHP du thème d'origine (twentytwenty-child « Principal »)
   Couleurs relevées sur le site d'origine :
   bleu nuit #262264 · or #be8d2b · panneau sombre #20272d
   ============================================================ */

:root {
  --nuit: #262264;
  --nuit-clair: #b2c2fb;
  --nuit-profond: #020e3b;
  --gold: #be8d2b;
  --accent: #f3ecdd;
  --accent-fore: #7a5b17;
  --fond: #ffffff;
  --texte: #1c2333;
  --texte-discret: #5b6478;
  --bord: #e4e6ee;
  --bord-carte: #dcdcdc;
  --entree: #d9dce8;
  --danger: #b3383c;
  --succes: #2e7d5b;
  --panneau: #20272d;
  --barre-2: #22282e;
  --rouge: rgb(240, 50, 50);
  --bordeaux: #8b0000;
  --rayon: 0.75rem;
  --ombre-carte: 0 15px 15px rgba(0, 0, 0, 0.1);
  --police-texte: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --police-titres: "Lora", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--bord); margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: var(--police-titres); line-height: 1.3; color: var(--texte); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

.zone-contenu { flex: 1; }

/* ---------- Accessibilité ---------- */
.sr-seul { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.icone { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
.icone-3-5 { width: 0.875rem; height: 0.875rem; }
.icone-4 { width: 1rem; height: 1rem; }
.icone-5 { width: 1.25rem; height: 1.25rem; }
.icone-6 { width: 1.5rem; height: 1.5rem; }
.icone-8 { width: 2rem; height: 2rem; }
.icone-grosse { width: 2.5rem; height: 2.5rem; }

/* ---------- Conteneurs ---------- */
.conteneur { max-width: 1180px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.grille { display: grid; gap: 1.25rem; }
.grille-2 { display: grid; gap: 1.25rem; grid-template-columns: repeat(1, 1fr); }
.grille-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(1, 1fr); }
.grille-4 { display: grid; gap: 1.25rem; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) {
  .grille-2 { grid-template-columns: repeat(2, 1fr); }
  .grille-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grille-3 { grid-template-columns: repeat(3, 1fr); }
  .grille-4 { grid-template-columns: repeat(4, 1fr); }
}

.centre-texte { text-align: center; }
@media (min-width: 768px) {
  .centre-texte-bureau { text-align: center; }
}

/* ============================================================
   BOUTONS
   ============================================================ */
.bouton, .bouton-pilule {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; font-weight: 600; text-align: center;
  padding: 0.625rem 1.5rem; border: 1px solid transparent;
  transition: all 0.3s ease; cursor: pointer;
}
.bouton-petit, .petit { font-size: 0.75rem; padding: 0.375rem 1rem; }
.bouton-gros { font-size: 1rem; padding: 0.875rem 2rem; }
.bouton-nuit { background: var(--nuit); color: #fff; }
.bouton-nuit:hover { background: var(--gold); color: #fff; }
.bouton-or { background: var(--gold); color: #fff; }
.bouton-or:hover { background: #a97c22; }
.bouton-contour-nuit { border-color: var(--nuit); color: var(--nuit); background: transparent; }
.bouton-contour-nuit:hover { background: var(--nuit); color: #fff; }
.bouton-contour-clair { border-color: rgba(255,255,255,0.5); color: #fff; background: transparent; }
.bouton-contour-clair:hover { background: rgba(255,255,255,0.12); }
.bouton-bordeaux { background: var(--bordeaux); color: #fff; }
.bouton-bordeaux:hover { opacity: 0.9; }
.bouton-rouge { background: var(--rouge); color: #fff; }
.bouton-rouge:hover { background: #d63a3a; }
.bouton-danger { background: var(--danger); color: #fff; }
.bouton-danger:hover { background: #96302f; }
.bouton-discret { background: var(--accent); color: var(--accent-fore); }
.bouton-discret:hover { background: #eaddc4; }
.bouton-icone {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid #d5d5d5; padding: 0.375rem;
  color: var(--texte-discret); transition: all 0.3s ease;
}
.bouton-icone:hover { border-color: var(--gold); color: var(--gold); }
.bouton:disabled, .bouton-pilule:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   EN-TÊTE
   ============================================================ */
#site-header { background: #fff; }

.barre-haute { display: none; border-bottom: 1px solid var(--bord); }
@media (min-width: 768px) { .barre-haute { display: block; } }
.barre-haute-interieure { display: flex; align-items: flex-start; justify-content: space-between; padding-top: 0.625rem; padding-bottom: 0.625rem; font-size: 0.875rem; }
.barre-haute-tels { display: flex; align-items: center; gap: 0.25rem; padding-top: 0.25rem; }
.barre-haute-tels .icone { color: var(--nuit); }
.lien-tel { padding-left: 0.5rem; padding-right: 0.5rem; transition: color 0.3s; }
.lien-tel:hover { color: var(--gold); }
.separateur-point { color: var(--texte-discret); padding: 0 0.25rem; }
.barre-haute-actions { display: flex; align-items: center; gap: 1.25rem; }
.menu-inline { display: flex; align-items: center; gap: 1.25rem; }
.menu-inline a:hover { color: var(--gold); }
.mini-recherche { display: flex; align-items: center; border: 1px solid #b4b4b4; border-radius: 9999px; background: #f8f8f8; overflow: hidden; }
.mini-recherche input { width: 150px; background: transparent; padding: 0.375rem 1rem; font-family: var(--police-titres); font-size: 0.875rem; border: 0; outline: none; }
.mini-recherche button { padding: 0.375rem 0.75rem; opacity: 0.8; transition: opacity 0.3s; }
.mini-recherche button:hover { opacity: 1; }

.barre-logo { border-bottom: 1px solid #ececec; }
.barre-logo-interieure { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.logo-long { height: 44px; width: auto; }
@media (min-width: 768px) { .logo-long { height: 48px; } }

.menu-principal { display: none; }
@media (min-width: 768px) { .menu-principal { display: block; } }
.menu-principal ul { display: flex; align-items: center; gap: 1.75rem; }
.menu-principal a {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  transition: color 0.5s;
}
.menu-principal a:hover, .menu-principal a.actif { color: var(--gold); }

.zone-compte { display: none; align-items: center; gap: 0.5rem; }
@media (min-width: 768px) { .zone-compte { display: flex; } }

.bouton-burger { padding: 0.5rem; color: var(--texte); }
@media (min-width: 768px) { .bouton-burger { display: none; } }
.trois-points { width: 26px; height: 7px; }

.barre-secondaire { display: none; background: var(--barre-2); }
@media (min-width: 768px) { .barre-secondaire { display: block; } }
.barre-secondaire ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 2rem; row-gap: 0.25rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.barre-secondaire a { font-size: 13px; color: rgba(255,255,255,0.9); transition: color 0.5s; }
.barre-secondaire a:hover { color: var(--gold); }

/* ---------- Tiroir mobile ---------- */
.menu-mobile-voile {
  display: none; position: fixed; inset: 0; z-index: 40;
  background: rgba(0,0,0,0.45);
}
.menu-mobile {
  display: none; position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: 320px; max-width: 88vw; overflow-y: auto;
  background: var(--panneau); color: #fff; padding: 1.25rem 1.5rem 2rem;
}
body.menu-ouvert .menu-mobile-voile { display: block; }
body.menu-ouvert .menu-mobile { display: block; }
body.menu-ouvert { overflow: hidden; }
.menu-mobile-titre { font-family: var(--police-titres); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.menu-mobile-lien-principal {
  display: block; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0.75rem 0;
  font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  transition: color 0.3s;
}
.menu-mobile-lien-principal:hover, .menu-mobile-lien-principal.actif { color: var(--gold); }
.menu-mobile-soustitre { margin-top: 1.25rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.5); }
.menu-mobile-lien { display: block; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0.625rem 0; font-size: 0.875rem; color: rgba(255,255,255,0.85); transition: color 0.3s; }
.menu-mobile-lien:hover { color: var(--gold); }
.menu-mobile-compte { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.menu-mobile-compte .bouton-pilule { width: 100%; }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.pied { margin-top: auto; background: #fff; }
.pied-contact {
  display: grid; gap: 1.5rem; border-bottom: 1px solid var(--bord-carte);
  padding-top: 2rem; padding-bottom: 2rem; font-size: 0.875rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .pied-contact { grid-template-columns: repeat(3, 1fr); } }
.pied-nom { font-weight: 700; margin-bottom: 0.5rem; }
.pied-tels { display: flex; align-items: center; color: rgba(28,35,51,0.8); flex-wrap: wrap; }
.pied-adresse { margin-top: 0.25rem; color: rgba(28,35,51,0.8); }
.pied-vide { display: none; }
@media (min-width: 768px) { .pied-vide { display: block; } }
.pied-boutons { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
@media (min-width: 768px) { .pied-boutons { align-items: flex-end; } }

.pied-colonnes { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pied-colonnes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pied-colonnes { grid-template-columns: repeat(4, 1fr); } }
.pied-titre-colonne { font-family: var(--police-texte); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.pied-colonnes ul { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.375rem; }
.pied-colonnes li a { font-size: 13px; color: rgba(28,35,51,0.75); transition: color 0.3s; }
.pied-colonnes li a:hover { color: var(--gold); }
.pied-colonnes .chevron { margin-right: 0.375rem; color: var(--gold); }

.pied-bas { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--bord-carte); padding-top: 1.25rem; padding-bottom: 1.25rem; }
@media (min-width: 640px) { .pied-bas { flex-direction: row; align-items: center; } }
.pied-copyright { font-size: 0.75rem; font-weight: 300; color: var(--texte-discret); }
.pied-copyright a { font-size: 80%; transition: color 0.3s; }
.pied-copyright a:hover { color: var(--gold); }
.logo-pied { height: 50px; width: auto; }

#retour-haut {
  position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 50;
  width: 50px; height: 50px; border-radius: 9999px;
  background: rgba(38,34,100,0.6);
  display: none; align-items: center; justify-content: center;
  transition: background 0.3s;
}
#retour-haut:hover { background: rgba(38,34,100,0.85); }
#retour-haut img { width: 16px; height: auto; }
#retour-haut.visible { display: flex; }

/* ============================================================
   CARTES
   ============================================================ */
.carte {
  background: #fff; border: 1px solid var(--bord-carte); border-radius: 5px;
  box-shadow: var(--ombre-carte); overflow: hidden;
}
.carte-corps { padding: 1rem; }
.carte-image { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.carte-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.titre-carte { font-size: 17px; font-weight: 700; line-height: 1.35; }
.texte-discret { color: var(--texte-discret); }

.couverture {
  position: relative; display: block; overflow: hidden; border-radius: 7px; width: 100%;
}
.couverture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.couverture .couverture-etiquette {
  position: absolute; left: 0; right: 0; top: 0; padding: 1rem;
  font-family: var(--police-titres); font-size: 1.25rem; font-weight: 600; color: #fff;
  line-height: 1.35; text-shadow: 0 1px 5px rgb(100,100,100);
}

/* ============================================================
   BANNIÈRE D'ACCUEIL
   ============================================================ */
.banniere {
  position: relative; width: 100%; height: 400px;
  background-size: cover; background-position: center;
}
@media (min-width: 768px) { .banniere { height: 600px; } }
.banniere-interieure { height: 100%; }
.banniere-boutons {
  height: 100%; display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.625rem; padding-top: 1.25rem; padding-bottom: 1.25rem; padding-left: 0.5rem;
}
@media (min-width: 640px) { .banniere-boutons { padding-left: 1.5rem; } }
.bouton-banniere {
  display: flex; width: 220px; align-items: center; gap: 0.5rem;
  border-radius: 9999px; background: var(--nuit); color: #fff;
  padding: 0.625rem 1.25rem; font-size: 0.875rem;
  box-shadow: 0 15px 30px rgb(250,250,250);
  transition: box-shadow 0.5s ease;
  opacity: 0; animation: apparait-bouton 500ms ease forwards;
}
@media (min-width: 640px) { .bouton-banniere { width: 250px; } }
.bouton-banniere:hover { box-shadow: 0 0 50px rgb(250,250,250); }
@keyframes apparait-bouton {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bandeau-alerte {
  width: 100%; background: var(--rouge); color: #fff;
  padding: 1.25rem 1.25rem; text-align: center; font-weight: 700;
}
.bandeau-alerte .bouton-bandeau {
  margin-left: 0; margin-top: 0.75rem; display: inline-block;
  border: 1px solid #fff; border-radius: 9999px; padding: 0.375rem 1.25rem;
  font-size: 0.875rem; color: #fff; transition: all 0.3s;
}
@media (min-width: 640px) { .bandeau-alerte .bouton-bandeau { margin-left: 1rem; margin-top: 0; } }
.bandeau-alerte .bouton-bandeau:hover { background: #fff; color: var(--rouge); }

/* Apparition douce des vignettes */
.transitable { opacity: 0; animation: apparait-haut 1.5s ease forwards; }
@keyframes apparait-haut {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PANNEAU LATÉRAL (accueil)
   ============================================================ */
.page-accueil-grille { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .page-accueil-grille { grid-template-columns: 2fr 1fr; } }
.panneau-lateral { background: var(--panneau); color: #fff; padding: 1.5rem; font-size: 80%; height: 100%; }
@media (min-width: 768px) { .panneau-lateral { padding: 2rem 2.5rem; } }
.aside-titre {
  display: flex; align-items: center; gap: 12px;
  text-transform: uppercase; font-weight: 700; font-size: 130%;
  font-family: var(--police-titres);
}
.aside-titre::after { content: ""; flex: 1; border-top: 1px solid rgba(255,255,255,0.45); }
.apercu { margin-bottom: 1rem; }
.apercu-lien { display: block; }
.apercu-vignette {
  display: block; position: relative; width: 150px; height: 150px;
  overflow: hidden; border-radius: 5px; background: rgba(255,255,255,0.1);
}
.apercu-vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.apercu-lien:hover .apercu-vignette img { transform: scale(1.05); }
.apercu-titre { display: block; margin-top: 0.5rem; font-family: var(--police-titres); font-size: 14px; line-height: 1.35; color: #fff; transition: color 0.3s; }
.apercu-lien:hover .apercu-titre { color: var(--gold); }
.apercu-date { display: inline-block; margin-top: 0.5rem; border-radius: 3px; background: #fff; padding: 0.125rem 0.4375rem; font-size: 12px; font-weight: 600; color: var(--nuit); }
.aside-lien-plus { display: inline-block; text-decoration: underline; text-underline-offset: 2px; transition: color 0.3s; }
.aside-lien-plus:hover { color: var(--gold); }
.aside-reseaux { display: flex; align-items: center; gap: 1.25rem; margin-top: 1rem; }
.aside-reseaux a { color: #fff; transition: color 0.3s; }
.aside-reseaux a:hover { color: var(--gold); }
.aside-reseaux .icone { width: 28px; height: 28px; }

/* ============================================================
   CITATION
   ============================================================ */
.section-citation {
  width: 100%; background-size: cover; background-position: center;
  padding: 60px 1.25rem; text-align: center;
}
.section-citation blockquote { max-width: 42rem; margin: 0 auto; }
.section-citation .citation-texte {
  font-family: var(--police-titres); font-size: 1.125rem; font-style: italic;
  line-height: 1.625; color: #fff;
}
@media (min-width: 768px) { .section-citation .citation-texte { font-size: 1.5rem; } }
.section-citation .citation-sous-texte { margin-top: 1rem; font-size: 0.875rem; line-height: 1.625; color: rgba(255,255,255,0.9); }
@media (min-width: 768px) { .section-citation .citation-sous-texte { font-size: 1rem; } }
.section-citation .citation-signature {
  margin-top: 1.25rem; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold);
}

/* ============================================================
   FONDS DÉCORATIFS
   ============================================================ */
.fond-or { background: linear-gradient(135deg, #faf7f0 0%, #f5f0e3 100%); }
.fond-nuit { background: linear-gradient(150deg, var(--nuit-profond) 0%, var(--nuit) 100%); }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.champ { margin-bottom: 1rem; }
.champ label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.375rem; }
.obligatoire { color: var(--danger); }
.entree, .select, .zone-texte {
  width: 100%; border: 1px solid var(--entree); border-radius: var(--rayon);
  background: #fff; padding: 0.625rem 0.875rem; font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.entree:focus, .select:focus, .zone-texte:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(190,141,43,0.15);
}
.zone-texte { min-height: 120px; resize: vertical; }
.select { appearance: auto; }
.aide { font-size: 0.78rem; color: var(--texte-discret); margin-top: 0.3rem; }
.erreur-champ { font-size: 0.8rem; color: var(--danger); margin-top: 0.3rem; }
.champ-erreur .entree, .champ-erreur .select, .champ-erreur .zone-texte { border-color: var(--danger); }
.cases { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; }
.cases input[type="checkbox"] { width: 1.05rem; height: 1.05rem; margin-top: 0.2rem; accent-color: var(--nuit); }
.grille-formulaire { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grille-formulaire-2 { grid-template-columns: repeat(2, 1fr); } }
.champ-mdp { position: relative; }
.champ-mdp .entree { padding-right: 2.75rem; }
.champ-mdp .bascule-mdp {
  position: absolute; right: 0.625rem; top: 50%; transform: translateY(-50%);
  padding: 0.3rem; color: var(--texte-discret); background: none; border: 0;
}
.champ-mdp .bascule-mdp:hover { color: var(--nuit); }
.ensemble { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.25rem; margin-bottom: 1.25rem; background: #fff; }
.ensemble > legend { font-family: var(--police-titres); font-weight: 700; font-size: 1.05rem; padding: 0 0.5rem; color: var(--nuit); }

/* ============================================================
   ALERTES / BADGES / ENCADRÉS
   ============================================================ */
.alerte { border-radius: var(--rayon); padding: 0.875rem 1.125rem; font-size: 0.9rem; margin-bottom: 1rem; border: 1px solid transparent; }
.alerte-succes { background: #e8f5ee; border-color: #bfe3d0; color: #1e5c40; }
.alerte-info { background: #eef1fb; border-color: #ccd3f0; color: #262264; }
.alerte-avert { background: #fdf3e3; border-color: #f2dcb0; color: #7a5b17; }
.alerte-danger { background: #fbeaea; border-color: #efc4c5; color: #8c2b2e; }

.badge { display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 9999px; padding: 0.125rem 0.625rem; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.badge-ambre    { background: #fef3c7; color: #92400e; }
.badge-ciel     { background: #e0f2fe; color: #075985; }
.badge-violet   { background: #f3e8ff; color: #6b21a8; }
.badge-sarcelle { background: #ccfbf1; color: #115e59; }
.badge-emeraude { background: #d1fae5; color: #065f46; }
.badge-rouge    { background: #fee2e2; color: #991b1b; }
.badge-gris     { background: #f3f4f6; color: #4b5563; }
.badge-nuit     { background: #e0e2f8; color: #262264; }
.badge-or       { background: #f5ead0; color: #7a5b17; }

.encadre-note { border-left: 4px solid var(--gold); background: var(--accent); color: var(--accent-fore); border-radius: 0 var(--rayon) var(--rayon) 0; padding: 1rem 1.25rem; font-size: 0.9rem; }
.encadre-info { border-left: 4px solid var(--nuit); background: #eef1fb; color: #262264; border-radius: 0 var(--rayon) var(--rayon) 0; padding: 1rem 1.25rem; font-size: 0.9rem; }
.encadre-demo {
  border: 2px dashed var(--gold); background: #fdf8ee; color: #7a5b17;
  border-radius: var(--rayon); padding: 0.75rem 1rem; font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; text-align: center;
}

/* ============================================================
   TABLEAUX
   ============================================================ */
.tableau-defilant { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tableau { width: 100%; border-collapse: collapse; font-size: 0.875rem; background: #fff; }
.tableau th {
  background: #f1f2f9; color: var(--nuit); text-align: left; font-weight: 700;
  padding: 0.625rem 0.875rem; border-bottom: 2px solid var(--bord); white-space: nowrap;
}
.tableau td { padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--bord); vertical-align: middle; }
.tableau tbody tr:hover { background: #f8f9fd; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.375rem; margin-top: 1.5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem;
  border-radius: 9999px; font-size: 0.875rem; font-weight: 600;
}
.pagination a { border: 1px solid var(--bord); background: #fff; transition: all 0.2s; }
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .page-courante { background: var(--nuit); color: #fff; }
.pagination .page-point { border: 0; color: var(--texte-discret); }

/* ============================================================
   GALERIE (médiathèque) — colonnes façon masonry
   ============================================================ */
.galerie-colonnes { column-count: 1; column-gap: 15px; }
@media (min-width: 768px) { .galerie-colonnes { column-count: 2; } }
@media (min-width: 992px) { .galerie-colonnes { column-count: 4; } }
.galerie-colonnes > a { break-inside: avoid; display: block; margin-bottom: 15px; }
.galerie-colonnes img { width: 100%; border-radius: 5px; transition: transform 0.3s, box-shadow 0.3s; }
.galerie-colonnes > a:hover img { transform: scale(1.015); box-shadow: 0 8px 22px rgba(0,0,0,0.18); }

/* Visionneuse */
.visionneuse {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(2,14,59,0.92);
  align-items: center; justify-content: center; padding: 2rem;
}
.visionneuse.ouverte { display: flex; }
.visionneuse img { max-width: 92vw; max-height: 85vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.visionneuse .visionneuse-fermer {
  position: absolute; top: 1rem; right: 1.25rem; color: #fff; font-size: 2rem;
  line-height: 1; padding: 0.5rem;
}
.visionneuse .visionneuse-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 2.5rem; padding: 1rem; user-select: none;
}
.visionneuse .visionneuse-prec { left: 0.5rem; }
.visionneuse .visionneuse-suiv { right: 0.5rem; }

/* ============================================================
   FAQ (accordéons)
   ============================================================ */
.faq-item { border: 1px solid var(--bord); border-radius: var(--rayon); background: #fff; margin-bottom: 0.75rem; overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--gold); font-weight: 700; transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-contenu { padding: 0 1.25rem 1.125rem; color: var(--texte-discret); font-size: 0.925rem; }

/* ============================================================
   ESPACE MEMBRE
   ============================================================ */
.espace-grille { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .espace-grille { grid-template-columns: 240px 1fr; align-items: start; } }
.espace-menu { background: var(--panneau); color: #fff; border-radius: var(--rayon); padding: 1rem; }
.espace-menu-titre { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); padding: 0.5rem 0.75rem 0.25rem; }
.espace-menu a {
  display: flex; align-items: center; gap: 0.625rem; padding: 0.6rem 0.75rem;
  border-radius: var(--rayon); font-size: 0.9rem; color: rgba(255,255,255,0.88); transition: all 0.2s;
}
.espace-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.espace-menu a.actif { background: var(--gold); color: #fff; font-weight: 600; }
.espace-menu .icone { width: 1.05rem; height: 1.05rem; }

.carte-stat { background: #fff; border: 1px solid var(--bord-carte); border-radius: var(--rayon); padding: 1.25rem; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.carte-stat .stat-valeur { font-family: var(--police-titres); font-size: 1.9rem; font-weight: 700; color: var(--nuit); line-height: 1.1; }
.carte-stat .stat-libelle { font-size: 0.8rem; color: var(--texte-discret); margin-top: 0.35rem; }
.carte-stat .stat-icone { width: 2.25rem; height: 2.25rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: #eef1fb; color: var(--nuit); margin-bottom: 0.65rem; }

.puce-identite { display: flex; align-items: center; gap: 0.75rem; }
.puce-avatar {
  width: 40px; height: 40px; border-radius: 9999px; background: var(--nuit);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
.puce-nom { font-weight: 600; font-size: 0.9rem; line-height: 1.2; }
.puce-role { font-size: 0.75rem; color: var(--texte-discret); }

/* ============================================================
   QUIZZ
   ============================================================ */
.quizz-option {
  display: block; width: 100%; text-align: left; border: 2px solid var(--bord);
  border-radius: var(--rayon); background: #fff; padding: 0.9rem 1.1rem;
  transition: all 0.2s; margin-bottom: 0.65rem; font-size: 0.95rem;
}
.quizz-option:hover:not(:disabled) { border-color: var(--nuit); background: #f6f7fd; }
.quizz-option.bonne { border-color: var(--succes); background: #e8f5ee; }
.quizz-option.mauvaise { border-color: var(--danger); background: #fbeaea; }
.quizz-option:disabled { cursor: default; opacity: 0.92; }
@keyframes rebond { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-12px); } 60% { transform: translateY(-4px); } }
.animate-rebond { animation: rebond 0.6s ease; }

/* ============================================================
   DIVERS
   ============================================================ */
.texte-ombre-couverture { text-shadow: 0 1px 5px rgb(100,100,100); }
.texte-ombre-banniere { text-shadow: 1px 3px 5px rgb(50,50,50); }
.scroll-fin { scrollbar-width: thin; scrollbar-color: #c9cde0 transparent; }
.scroll-fin::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-fin::-webkit-scrollbar-thumb { background: #c9cde0; border-radius: 8px; }
.scroll-fin::-webkit-scrollbar-thumb:hover { background: #a9aec7; }
.scroll-fin::-webkit-scrollbar-track { background: transparent; }

.filet-or { border-top: 3px solid var(--gold); width: 64px; margin: 0.75rem auto 1.25rem; }
.sur-titre { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; color: var(--gold); }
.sous-titre-section { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--gold); }

.titre-page { font-size: 1.75rem; font-weight: 700; }
@media (min-width: 768px) { .titre-page { font-size: 2.1rem; } }
.sous-titre-page { color: var(--texte-discret); margin-top: 0.5rem; }

.sr-titre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fil-ariane { font-size: 0.8rem; color: var(--texte-discret); margin-bottom: 1rem; }
.fil-ariane a:hover { color: var(--gold); }

.liste-liens-fleche li { margin-bottom: 0.5rem; }
.liste-liens-fleche a { color: var(--nuit); font-weight: 500; }
.liste-liens-fleche a:hover { color: var(--gold); }
.liste-liens-fleche .chevron { color: var(--gold); margin-right: 0.4rem; }

/* Réduit la motion si demandé par le système */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .bouton-banniere, .transitable { opacity: 1; transform: none; }
}
