/* ============================================================
   Voushna — Feuille de style principale
   Posée AU-DESSUS de Tailwind (CDN). Ici vit l'âme du site :
   textures brutes, totems, feu, fumée, transitions entre univers.

   Organisation :
   1. Variables (palette globale + variables par univers)
   2. Base & typographie
   3. Textures de fond (jungle, grain, fumée)
   4. Navigation totem
   5. Composants (boutons, cartes, lightbox, player, grimoire…)
   6. Animations (feu, braises, apparitions)
   7. Skins par univers (data-universe)
   8. Responsive / accessibilité
   ============================================================ */

/* ---------- 1. Variables ------------------------------------ */
:root {
  /* Palette globale — l'identité commune aux 4 univers */
  --noir-ecorce:   #140d0a;   /* fond presque noir, brun très foncé   */
  --noir-braise:   #1d120c;   /* fond légèrement plus chaud           */
  --bordeaux:      #5e1622;   /* bordeaux profond                     */
  --bordeaux-clair:#7c2230;
  --terracotta:    #b5532e;   /* terre cuite                          */
  --orange-feu:    #e8761e;   /* orange feu                           */
  --or-chaud:      #d8a14a;   /* or chaud                             */
  --jaune-sacre:   #f4cE5a;   /* jaune sacré (accents)                */
  --violet-mystic: #5b3b6e;   /* violet mystique                      */
  --violet-clair:  #8a5ca6;
  --fibre:         #c9b79c;   /* fibre naturelle / texte chaud doux   */
  --cendre:        #9a8c7d;   /* texte secondaire                     */

  /* Couleur d'accent ACTIVE — surchargée par chaque univers (§7) */
  --accent:        var(--orange-feu);
  --accent-2:      var(--or-chaud);
  --ambiance:      var(--bordeaux);

  /* Polices */
  --font-titre:   "Cinzel", "Trajan Pro", serif;        /* élégante, sacrée */
  --font-tribal:  "Rakkas", "Cinzel Decorative", serif; /* brute, organique */
  --font-texte:   "Cormorant Garamond", Georgia, serif; /* lecture, intime  */
  --font-ui:      "Spectral", Georgia, serif;

  --rythme: clamp(1rem, 2vw, 1.5rem);
}

/* ---------- 2. Base & typographie --------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--noir-ecorce);
  color: var(--fibre);
  font-family: var(--font-texte);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 1.2s ease;
}

h1, h2, h3 { font-family: var(--font-titre); font-weight: 600; line-height: 1.1; }
.font-tribal { font-family: var(--font-tribal); }

/* Titres à présence sacrée : lettres espacées, halo doux, filet de feu */
.titre-sacre {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6e6 0%, var(--or-chaud) 55%, var(--terracotta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 32px rgba(232,118,30,0.15);
  /* anti-débordement : le titre ne doit jamais être coupé par les bords */
  max-width: 100%;
  overflow-wrap: break-word;
}

.surtitre {
  font-family: var(--font-ui);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
  opacity: 0.85;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #1a0e08; }

/* Barre de défilement chaude */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0d0806; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--bordeaux), var(--terracotta));
  border-radius: 8px;
}

/* ---------- 3. Textures de fond ----------------------------- */
/* Voile de grain + lueur de braise au centre, fixé derrière tout */
#texture-jungle {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%,  rgba(94,22,34,0.35), transparent 60%),
    radial-gradient(80% 70% at 50% 110%, rgba(232,118,30,0.18), transparent 60%),
    var(--noir-ecorce);
  transition: background 1.2s ease;
}
/* Grain organique très subtil par-dessus */
#texture-jungle::after {
  content: ""; position: absolute; inset: 0; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Peinture de fond propre à chaque univers : une œuvre de Voushna posée
   tout au fond, assombrie/désaturée pour rester lisible. L'image vit
   dans ::before (sous les dégradés de couleur de #texture-jungle) et
   est choisie par `--fond-univers`, défini en §7 selon data-universe. */
#texture-jungle::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--fond-univers, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* assombrit + désature pour que le texte reste lisible par-dessus */
  filter: brightness(0.42) saturate(0.85) contrast(1.05);
  opacity: 0.5;
  transition: opacity 1.2s ease, background-image 0s;
  pointer-events: none;
}
/* Voile sombre du bas → garantit le contraste avec le contenu */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,13,10,0.25) 0%, rgba(20,13,10,0.55) 55%, rgba(20,13,10,0.85) 100%);
}

/* Motif tribal répété, très discret, en bordure de section */
.motif-tribal {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cpath d='M0 10 L10 0 L20 10 L30 0 L40 10' fill='none' stroke='%23d8a14a' stroke-width='1' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  height: 20px;
}

/* Bois gravé : utilisé pour les onglets totem & panneaux */
.bois {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.35), transparent 20%, transparent 80%, rgba(0,0,0,0.35)),
    repeating-linear-gradient(0deg, #3a2417, #3a2417 2px, #43291a 2px, #43291a 5px),
    #3a2417;
  box-shadow: inset 0 0 0 1px rgba(216,161,74,0.18), inset 0 2px 12px rgba(0,0,0,0.6);
}

/* Canvas des braises (particules) */
#braises { position: fixed; inset: 0; z-index: -2; pointer-events: none; }

/* Voile de fumée pour la transition entre univers */
#voile-fumee {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(232,118,30,0.20), transparent 70%),
    radial-gradient(120% 80% at 50% 60%, rgba(20,13,10,0.96), rgba(20,13,10,0.9));
  backdrop-filter: blur(6px);
}

/* ---------- 4. Navigation totem ----------------------------- */
/* Variables du bois sculpté (réutilisées desktop + mobile) */
:root {
  --bois-clair:  #5a3a22;
  --bois-moyen:  #463018;
  --bois-fonce:  #2e1d0f;
  --bois-ombre:  #1c1208;
  --grave-creux: #20140a;   /* couleur du fond d'une gravure (en creux) */

  /* Texture de bois réaliste générée en SVG (veines verticales via
     feTurbulence anisotrope, relief par feDiffuseLighting, nœuds).
     Aucun fichier externe, aucun souci de licence. */
  --bois-texture: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='600' viewBox='0 0 240 600' preserveAspectRatio='none'><defs><filter id='b' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='0.012 0.15' numOctaves='5' seed='7' result='n'/><feColorMatrix in='n' type='matrix' values='0 0 0 0 0.24 0 0 0 0 0.14 0 0 0 0 0.06 0 0 0 0.9 0.16'/></filter><filter id='r'><feTurbulence type='fractalNoise' baseFrequency='0.014 0.17' numOctaves='4' seed='7' result='n'/><feDiffuseLighting in='n' surfaceScale='1.3' diffuseConstant='1.05' lighting-color='%238a5c34' result='l'><feDistantLight azimuth='235' elevation='55'/></feDiffuseLighting></filter><linearGradient id='g' x1='0' y1='0' x2='1' y2='0'><stop offset='0' stop-color='%23000' stop-opacity='0.55'/><stop offset='0.22' stop-color='%23000' stop-opacity='0'/><stop offset='0.78' stop-color='%23000' stop-opacity='0'/><stop offset='1' stop-color='%23000' stop-opacity='0.6'/></linearGradient></defs><rect width='240' height='600' fill='%233a2614'/><rect width='240' height='600' filter='url(%23r)' opacity='0.45'/><rect width='240' height='600' filter='url(%23b)' opacity='0.9'/><g fill='none' stroke='%2320140a' opacity='0.5'><ellipse cx='72' cy='160' rx='14' ry='21' stroke-width='3'/><ellipse cx='72' cy='160' rx='7' ry='10' stroke-width='2'/><ellipse cx='168' cy='430' rx='12' ry='18' stroke-width='3'/><ellipse cx='168' cy='430' rx='6' ry='9' stroke-width='2'/></g><rect width='240' height='600' fill='url(%23g)'/></svg>");
}

/* Le totem : un tronc de bois sculpté, debout sur le côté gauche (desktop) */
#totem {
  position: fixed; top: 50%; left: 1.1rem; transform: translateY(-50%);
  z-index: 80; width: 116px;
  display: flex; flex-direction: column; align-items: stretch;
  /* corps du tronc : vraie texture de bois (veines + nœuds + relief) */
  background: var(--bois-texture) center / cover no-repeat, var(--bois-moyen);
  border-radius: 16px 16px 10px 10px;
  box-shadow:
    inset 0 0 0 2px rgba(216,161,74,0.16),
    inset 3px 0 12px rgba(0,0,0,0.45), inset -3px 0 12px rgba(0,0,0,0.45),
    9px 12px 34px rgba(0,0,0,0.6);
}

/* --- Tête du totem : vraie photo de totem sculpté (CC0, Wikimedia)
   détourée du ciel, teintée braise. Fondu vers le bois du tronc.
   Image active : totem-deco.png (Richmond Park, AndyScott, CC0).
   Alternative dispo : totem-thunderbird.png (CC BY-SA 4.0, crédit requis). --- */
.totem-tete {
  position: relative; display: block; height: 150px;
  border-radius: 16px 16px 0 0; overflow: hidden;
  background:
    linear-gradient(180deg, transparent 74%, var(--bois-fonce) 100%),
    url("/images/totem-deco.png") center top / contain no-repeat,
    var(--bois-texture) center / cover no-repeat,
    var(--bois-clair);
  box-shadow: inset 0 -10px 16px rgba(0,0,0,0.45);
}
/* Lueur de braise douce derrière la tête sculptée */
.totem-tete::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 35%, rgba(232,118,30,0.18), transparent 65%);
  mix-blend-mode: screen;
}
/* Le nom de l'artiste, gravé sous la tête sculptée.
   letter-spacing ajoute un espace APRÈS la dernière lettre → on le compense
   par une marge gauche égale pour garder le mot centré sans déborder. */
.totem-tete .totem-marque {
  position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; z-index: 2;
  font-family: var(--font-tribal); letter-spacing: 0.22em; font-size: 0.72rem;
  text-indent: 0.22em;          /* compense l'espace de fin → recentre */
  white-space: nowrap;
  color: var(--jaune-sacre);
  text-shadow: 0 0 10px rgba(232,118,30,0.5), 0 1px 1px rgba(0,0,0,0.8);
}

/* --- Tronc : la pile des sections gravées --- */
.totem-tronc { display: flex; flex-direction: column; padding: 4px 0; }

/* Chaque section : un cartouche encastré dans le bois, séparé par une rainure */
.totem-onglet {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 0.18rem; padding: 0.95rem 0.4rem; cursor: pointer; text-align: center;
  /* rainures sculptées entre les sections (haut clair, bas sombre = relief) */
  box-shadow: inset 0 1px 0 rgba(216,161,74,0.10), inset 0 -2px 4px rgba(0,0,0,0.55);
  transition: box-shadow 0.45s ease, transform 0.3s ease;
}
/* Pictogramme tribal GRAVÉ : trait couleur de creux + double relief
   (reflet clair sous le sillon, ombre sombre au-dessus) = effet incisé. */
.totem-onglet .glyphe {
  width: 26px; height: 26px; display: block;
  fill: none;
  stroke: var(--grave-creux);
  stroke-width: 2.1;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 1px 0 rgba(216,161,74,0.30))   /* bord éclairé en bas du sillon */
    drop-shadow(0 -1px 0.5px rgba(0,0,0,0.6));    /* ombre interne en haut */
  transition: stroke 0.4s, filter 0.4s, transform 0.4s;
}
.totem-onglet .glyphe path,
.totem-onglet .glyphe circle,
.totem-onglet .glyphe g { vector-effect: non-scaling-stroke; }
/* Le texte GRAVÉ dans le bois : couleur de creux + lumière qui tombe dans
   l'entaille (ombre claire en bas, ombre sombre en haut) → effet incisé. */
.totem-onglet .grave {
  font-family: var(--font-tribal); letter-spacing: 0.14em; font-size: 0.84rem;
  color: var(--grave-creux);
  text-shadow:
    0  1px 0   rgba(216,161,74,0.30),   /* reflet de bord en bas du sillon */
    0 -1px 1px rgba(0,0,0,0.65);        /* ombre interne en haut du sillon  */
  transition: color 0.45s, text-shadow 0.45s;
}

/* Survol : la braise commence à éclairer la gravure, le glyphe s'allume */
.totem-onglet:hover { box-shadow: inset 0 1px 0 rgba(216,161,74,0.16), inset 0 -2px 4px rgba(0,0,0,0.5), inset 0 0 22px rgba(232,118,30,0.12); }
.totem-onglet:hover .glyphe {
  stroke: var(--fibre); transform: scale(1.08);
  filter: drop-shadow(0 0 4px rgba(232,118,30,0.4));
}
.totem-onglet:hover .grave { color: var(--fibre); text-shadow: 0 1px 2px rgba(0,0,0,0.7); }

/* Section ACTIVE : la gravure s'embrase (or chaud) + lueur de braise au fond */
.totem-onglet[aria-current="page"] {
  box-shadow:
    inset 0 1px 0 rgba(216,161,74,0.16),
    inset 0 -2px 4px rgba(0,0,0,0.5),
    inset 0 0 30px rgba(232,118,30,0.22);
}
.totem-onglet[aria-current="page"] .grave {
  color: var(--jaune-sacre);
  text-shadow: 0 0 10px rgba(244,206,90,0.55), 0 1px 0 rgba(0,0,0,0.5);
}
.totem-onglet[aria-current="page"] .glyphe {
  stroke: var(--jaune-sacre);
  filter: drop-shadow(0 0 6px rgba(244,206,90,0.55));
}
/* Filet de feu gravé sur le bord, marque la section active */
.totem-onglet[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--accent);
}

/* --- Socle du totem --- */
.totem-socle {
  display: block; height: 18px; margin-top: 2px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, var(--bois-fonce), var(--bois-ombre));
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6), 0 4px 10px rgba(0,0,0,0.5);
  border-top: 1px solid rgba(216,161,74,0.12);
}

/* --- Barre mobile : un rang de petits totems gravés --- */
#totem-mobile {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; display: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0) 30%),
    var(--bois-texture) center / cover no-repeat,
    var(--bois-moyen);
  box-shadow: inset 0 2px 0 rgba(216,161,74,0.16), 0 -6px 20px rgba(0,0,0,0.5);
}
#totem-mobile .row { display: grid; grid-template-columns: repeat(4, 1fr); }
#totem-mobile .totem-onglet {
  flex-direction: column; gap: 0.18rem; padding: 0.6rem 0.2rem;
  box-shadow: inset 1px 0 0 rgba(0,0,0,0.4), inset -1px 0 0 rgba(216,161,74,0.08);
}
#totem-mobile .totem-onglet .grave { font-size: 0.66rem; letter-spacing: 0.08em; }
#totem-mobile .totem-onglet .glyphe { width: 22px; height: 22px; }
#totem-mobile .totem-onglet:first-child { box-shadow: inset -1px 0 0 rgba(216,161,74,0.08); }

/* ---------- 5. Composants ----------------------------------- */
.zone { min-height: 100vh; padding: 6rem clamp(1.2rem, 6vw, 6rem) 8rem; max-width: 1400px; margin: 0 auto; }
section { margin: 5rem 0; }

/* Bouton braise */
.btn-feu {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-ui); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8rem;
  padding: 0.9rem 1.8rem; border-radius: 2px; cursor: pointer;
  color: #fff3e2; border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(232,118,30,0.18), rgba(94,22,34,0.35));
  box-shadow: 0 0 0 rgba(232,118,30,0);
  transition: box-shadow 0.5s, background 0.4s, transform 0.2s;
}
.btn-feu:hover { box-shadow: 0 0 28px rgba(232,118,30,0.5); transform: translateY(-2px); }
.btn-feu:active { transform: translateY(0); }

/* Carte d'œuvre / d'univers : cadre bois + lueur au survol */
.carte {
  position: relative; border-radius: 4px; overflow: hidden;
  background: var(--noir-braise);
  box-shadow: inset 0 0 0 1px rgba(216,161,74,0.12), 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), box-shadow 0.5s;
}
.carte:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(216,161,74,0.35), 0 18px 50px rgba(0,0,0,0.6), 0 0 40px rgba(232,118,30,0.12); }
.carte img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s ease, filter 0.6s; filter: saturate(0.92) brightness(0.92); }
.carte:hover img { transform: scale(1.05); filter: saturate(1.05) brightness(1); }

/* Voile dégradé bas de carte pour faire ressortir les légendes */
.carte .voile-bas {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(20,13,10,0.92));
  transform: translateY(8px); opacity: 0; transition: opacity 0.5s, transform 0.5s;
}
.carte:hover .voile-bas { transform: translateY(0); opacity: 1; }

/* Grille de galerie type maçonnerie */
.galerie { columns: 1; column-gap: 1.2rem; }
@media (min-width: 640px)  { .galerie { columns: 2; } }
@media (min-width: 1024px) { .galerie { columns: 3; } }
.galerie .carte { break-inside: avoid; margin-bottom: 1.2rem; cursor: zoom-in; }

/* Filtres galerie */
.filtre { font-family: var(--font-ui); letter-spacing: 0.1em; font-size: 0.78rem; text-transform: uppercase;
  padding: 0.5rem 1rem; border-radius: 2px; cursor: pointer; color: var(--cendre);
  border: 1px solid rgba(216,161,74,0.2); background: transparent; transition: all 0.3s; }
.filtre:hover { color: var(--fibre); border-color: var(--accent); }
.filtre[aria-pressed="true"] { color: #1a0e08; background: var(--accent); border-color: var(--accent); }

/* Lightbox */
#lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(10,6,4,0.96); backdrop-filter: blur(8px); padding: clamp(1rem, 4vw, 3rem); }
#lightbox.ouvert { display: flex; }
#lightbox .cadre { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 1100px; width: 100%; max-height: 90vh; }
@media (min-width: 900px) { #lightbox .cadre { grid-template-columns: 1.6fr 1fr; } }
#lightbox img { width: 100%; max-height: 88vh; object-fit: contain; border: 1px solid rgba(216,161,74,0.2); }
#lightbox .infos { align-self: center; }
#lightbox .fermer { position: absolute; top: 1.2rem; right: 1.5rem; font-size: 2rem; color: var(--or-chaud); cursor: pointer; line-height: 1; }
#lightbox .nav-lb { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.4rem; color: var(--or-chaud); cursor: pointer; user-select: none; padding: 1rem; }
#lightbox .prec { left: 0.5rem; } #lightbox .suiv { right: 0.5rem; }

/* Grimoire (page écriture) : panneau parchemin sombre */
.grimoire {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(216,161,74,0.06), transparent 60%),
    var(--noir-braise);
  border: 1px solid rgba(216,161,74,0.18); border-radius: 6px;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.6);
}
.texte-lecture { font-size: 1.25rem; line-height: 2; max-width: 62ch; }
.texte-lecture p { margin: 0 0 1.4rem; }

/* Player audio minimal */
.player { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1.2rem;
  border: 1px solid rgba(216,161,74,0.2); border-radius: 40px; background: rgba(0,0,0,0.3); }
.player button { width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(var(--accent), var(--terracotta)); color: #1a0e08; font-size: 1rem; }
.player .barre { flex: 1; height: 4px; background: rgba(216,161,74,0.2); border-radius: 4px; overflow: hidden; }
.player .barre i { display: block; height: 100%; width: 0; background: var(--accent); }

/* Carte de soin (chamanisme) */
.soin { padding: 2rem; border-radius: 6px; background: var(--noir-braise);
  border: 1px solid rgba(138,92,166,0.25); transition: border-color 0.4s, transform 0.4s; }
.soin:hover { border-color: var(--violet-clair); transform: translateY(-4px); }
.soin.phare { border-color: var(--or-chaud); box-shadow: 0 0 50px rgba(216,161,74,0.12); }
.prix { font-family: var(--font-titre); font-size: 1.8rem; color: var(--jaune-sacre); }

/* Champs de formulaire */
.champ { width: 100%; padding: 0.9rem 1.1rem; margin-top: 0.4rem;
  background: rgba(0,0,0,0.35); color: var(--fibre);
  border: 1px solid rgba(216,161,74,0.2); border-radius: 3px; font-family: var(--font-ui); }
.champ:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 18px rgba(232,118,30,0.2); }
label { font-family: var(--font-ui); letter-spacing: 0.08em; font-size: 0.85rem; color: var(--cendre); }

/* Bouton son ambiant */
#son-ambiant { position: fixed; top: 1.2rem; right: 1.2rem; z-index: 85;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(216,161,74,0.3); background: rgba(20,13,10,0.7); color: var(--or-chaud);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }

/* ---------- 6. Animations ----------------------------------- */
@keyframes monte-doux { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.apparait { opacity: 0; }
.apparait.vu { animation: monte-doux 1s cubic-bezier(.2,.7,.2,1) forwards; }

@keyframes vacille { 0%,100% { opacity: 0.85; } 50% { opacity: 1; } }
.flamme-titre { animation: vacille 4s ease-in-out infinite; }

/* Lueur de feu derrière le hero */
.hero-lueur { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 80%, rgba(232,118,30,0.28), transparent 70%);
  mix-blend-mode: screen; animation: vacille 6s ease-in-out infinite; }

/* ---------- 7. Skins par univers ---------------------------- */
/* Chaque univers redéfinit l'accent & l'ambiance. Le body porte
   data-universe="dj|art|ecriture|chamanisme" (posé par le routeur). */
/* Chaque univers choisit aussi SON tableau de fond (--fond-univers) :
   - dj          → abstrait rouge-feu vertical (énergie, braise, performance)
   - art         → masques tribaux or & bordeaux (l'œuvre la plus ethnique)
   - ecriture    → figure gravée dorée sur fond velouté (encre / manuscrit)
   - chamanisme  → silhouette claire ascensionnelle (douceur, élévation, soin) */
body[data-universe="dj"] {
  --accent: var(--orange-feu); --accent-2: var(--jaune-sacre); --ambiance: var(--bordeaux);
  --fond-univers: url("/images/469049696_8692125200870140_8317869133690197407_n.jpg");
}
body[data-universe="art"] {
  --accent: var(--terracotta); --accent-2: var(--or-chaud); --ambiance: #4a2a1c;
  --fond-univers: url("/images/469118185_8692125130870147_9172576098841754370_n.jpg");
}
body[data-universe="ecriture"] {
  --accent: var(--or-chaud); --accent-2: var(--jaune-sacre); --ambiance: #3a2417;
  --fond-univers: url("/images/450074070_7709547755794561_2565801125238818252_n.jpg");
}
body[data-universe="chamanisme"] {
  --accent: var(--violet-clair); --accent-2: var(--or-chaud); --ambiance: var(--violet-mystic);
  --fond-univers: url("/images/492814373_9521689774580341_6507523481897802684_n.jpg");
}
/* Le fond global se teinte légèrement selon l'univers */
body[data-universe="chamanisme"] #texture-jungle {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(91,59,110,0.45), transparent 60%),
    radial-gradient(80% 70% at 50% 110%, rgba(216,161,74,0.12), transparent 60%),
    var(--noir-ecorce);
}
body[data-universe="art"] #texture-jungle {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(74,42,28,0.6), transparent 60%),
    radial-gradient(80% 70% at 50% 110%, rgba(181,83,46,0.18), transparent 60%),
    var(--noir-ecorce);
}

/* ---------- 8. Responsive / accessibilité ------------------- */
/* Desktop : le totem est fixé à gauche (hors flux) → on réserve sa largeur
   pour que le contenu (titres, hero…) ne passe pas dessous. */
@media (min-width: 881px) {
  #vue { padding-left: 150px; }   /* 116px de totem + ~34px de marge */
}

@media (max-width: 880px) {
  #totem { display: none; }
  #totem-mobile { display: block; }
  body { padding-bottom: 4rem; }      /* place pour la barre du bas */
  .zone { padding-top: 4.5rem; }
}

/* Sur la galerie, on atténue le fond pour ne pas concurrencer les 76 œuvres */
body[data-universe="art"] #texture-jungle::before { opacity: 0.28; }

/* Sur petit écran : fond plus discret (lisibilité + perf) et non figé */
@media (max-width: 880px) {
  #texture-jungle::before { opacity: 0.35; background-attachment: scroll; }
}

/* Focus clavier visible partout */
:focus-visible { outline: 2px solid var(--jaune-sacre); outline-offset: 3px; }

/* Respect du « moins d'animations » : on coupe le superflu */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .apparait { opacity: 1; }
}
