/* =====================================================================
   No More Redemption RP - charte du site (v2, 17/11/2026 ; couche v3 du 27/11/2026 en fin de fichier)
   Direction « Crépuscule sobre » : noir, cuir, crème, laiton ; le rouge
   du logo est réservé aux boutons d'action (télécharger le launcher).
   Polices : Rye (lettres de bois), Kaushan Script (pinceau), Crimson Pro.
   ===================================================================== */
:root {
  --noir: #0d0907;
  --cuir: #17100b;
  --cuir-clair: #1f160f;
  --bois: #24170f;
  --creme: #f0e3c8;
  --creme-doux: #e2d4b8;
  --texte-doux: #cdbd9e;
  --sourdine: #b3a284;
  --laiton: #e0a85a;
  --laiton-vif: #f6cf8e;
  --ligne: rgba(224, 168, 90, .25);
  --rouge: #9a1a1f;
  --rouge-bord: #c4373c;
  --encre: #22150c;
  --papier: #efe1c2;
  --vert: #8cc46f;
  --largeur: 1260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--creme);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--laiton); }
a:hover { color: var(--laiton-vif); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--laiton-vif); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.rye { font-family: 'Rye', serif; font-weight: 400; }
.pinceau { font-family: 'Kaushan Script', cursive; color: var(--laiton); }

/* ---------- Barre du haut ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(13, 9, 7, .94); border-bottom: 1px solid var(--ligne); }
.topbar-inner { max-width: var(--largeur); margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--creme); }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand span { font-family: 'Rye', serif; font-size: 17px; line-height: 1.05; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; flex: 1; justify-content: center; }
.nav-links a { font-family: 'Rye', serif; font-size: 15px; color: var(--creme); text-decoration: none; padding: 10px 0; display: inline-block; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--laiton); }

/* ---------- Boutons ---------- */
.btn { font-family: 'Rye', serif; font-size: 18px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border: 1px solid var(--laiton); color: var(--creme); background: rgba(13, 9, 7, .6); cursor: pointer; }
.btn:hover { color: var(--laiton-vif); border-color: var(--laiton-vif); }
.btn-jouer { color: #fff4e2; background: var(--rouge); border-color: var(--rouge-bord); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.btn-jouer:hover { color: #fff; background: #b02127; border-color: #de555a; }
.btn-petit { font-size: 15px; min-height: 44px; padding: 8px 18px; }
.btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Entêtes de section ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 100px 0; }
.section-head { text-align: center; margin: 0 auto 48px; max-width: 760px; }
.section-head .pinceau { margin: 0; font-size: 28px; }
.section-head h2 { margin: 4px 0 0; font-family: 'Rye', serif; font-weight: 400; font-size: clamp(32px, 4vw, 50px); line-height: 1.1; }
.section-head p.chapo { margin: 16px 0 0; font-size: 20px; color: var(--texte-doux); }

/* ---------- Ouverture (accueil) ---------- */
.hero { min-height: 860px; display: flex; align-items: center; justify-content: center; text-align: center;
  background-image: linear-gradient(180deg, rgba(13,9,7,.55) 0%, rgba(13,9,7,.35) 45%, var(--noir) 100%), url(fond/bg1.jpg);
  background-size: cover; background-position: center 60%; }
.hero-inner { padding: 60px 24px 90px; max-width: 980px; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: clamp(240px, 30vw, 380px); height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .8)); }
.hero .eyebrow { margin: 14px 0 0; font-family: 'Rye', serif; font-size: clamp(15px, 1.7vw, 19px); letter-spacing: .26em; color: var(--laiton); }
.hero h1 { margin: 18px 0 0; font-family: 'Rye', serif; font-weight: 400; font-size: clamp(40px, 6.2vw, 80px); line-height: 1.04; text-shadow: 0 6px 30px rgba(0, 0, 0, .85); }
.hero .pinceau { margin: 2px 0 0; font-size: clamp(32px, 4.2vw, 54px); text-shadow: 0 6px 24px rgba(0, 0, 0, .85); }
.hero p.chapo { margin: 22px 0 0; font-size: 22px; max-width: 640px; color: var(--creme-doux); }
.hero .btns { justify-content: center; margin-top: 34px; }
.status { margin-top: 40px; display: flex; gap: 12px 30px; flex-wrap: wrap; justify-content: center; font-size: 18px; color: var(--creme-doux); border-top: 1px solid rgba(224, 168, 90, .35); padding-top: 18px; min-height: 46px; }
.status .point { width: 10px; height: 10px; border-radius: 50%; background: #776a58; display: inline-block; margin-right: 10px; vertical-align: middle; }
.status.en-ligne .point { background: var(--vert); }
.status.maintenance .point { background: var(--laiton); }

/* ---------- Entête des pages intérieures ---------- */
.page-head { padding: 120px 0 80px; text-align: center; background-size: cover; background-position: center 55%;
  background-image: linear-gradient(180deg, rgba(13,9,7,.6) 0%, rgba(13,9,7,.55) 50%, var(--noir) 100%), url(fond/bg3.jpg); }
.page-head h1 { margin: 6px 0 0; font-family: 'Rye', serif; font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 1.05; text-shadow: 0 6px 30px rgba(0, 0, 0, .85); }
.page-head .pinceau { margin: 0; font-size: clamp(26px, 3vw, 36px); text-shadow: 0 6px 24px rgba(0, 0, 0, .85); }
.page-head p.chapo { margin: 18px auto 0; max-width: 720px; font-size: 21px; color: var(--creme-doux); }

/* ---------- Cartes photo ---------- */
.grille-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.carte-photo { background: var(--cuir); border: 1px solid rgba(224, 168, 90, .22); }
.carte-photo .photo { height: 240px; background-size: cover; background-position: center; }
.carte-photo .corps { padding: 24px 26px 28px; }
.carte-photo h3 { margin: 0 0 8px; font-family: 'Rye', serif; font-weight: 400; font-size: 23px; }
.carte-photo p { margin: 0; color: var(--texte-doux); }

/* ---------- Défilé des villes ---------- */
.villes { border-top: 1px solid rgba(224, 168, 90, .2); border-bottom: 1px solid rgba(224, 168, 90, .2); overflow: hidden; padding: 16px 0; }
.villes p { margin: 0; font-family: 'Rye', serif; font-size: 28px; color: #4a3626; white-space: nowrap; display: inline-block; animation: defile 50s linear infinite; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .villes p { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Mur de planches et enseignes ---------- */
.bois { background-color: var(--bois); background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 2px, transparent 2px 46px), linear-gradient(180deg, #2c1c12, #1d120b); }
.enseignes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.enseigne { display: block; text-decoration: none; background: var(--papier); color: var(--encre); border: 2px solid var(--encre); padding: 20px 16px; text-align: center; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); transition: transform .15s, border-color .15s; }
.enseigne:hover { transform: translateY(-3px); border-color: var(--laiton); color: var(--encre); }
.enseigne strong { display: block; font-family: 'Rye', serif; font-weight: 400; font-size: 21px; }
.enseigne span { font-size: 16px; color: #5c3f28; }
.enseigne.sombre { background: var(--cuir); color: var(--creme); border-color: var(--laiton); }
.enseigne.sombre span { color: var(--laiton); }

/* ---------- Trailer et aperçus ---------- */
.cadre { border: 1px solid var(--ligne); background: var(--cuir); padding: 10px; }
.cadre video, .cadre img { display: block; width: 100%; height: auto; background: #000; }
.legende { text-align: center; color: var(--sourdine); font-size: 17px; margin: 14px 0 0; }

/* ---------- Livre de comptes (économie) ---------- */
.registre { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.registre article { border-top: 2px solid var(--laiton); background: var(--cuir); padding: 24px; }
.registre .num { font-family: 'Rye', serif; font-size: 40px; color: var(--laiton); line-height: 1; }
.registre h3 { margin: 10px 0 8px; font-family: 'Rye', serif; font-weight: 400; font-size: 21px; }
.registre p { margin: 0; color: var(--texte-doux); }

/* ---------- Règlement ---------- */
.proclamation { max-width: 980px; margin: 0 auto; background: var(--papier); color: var(--encre); padding: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.proclamation-in { border: 3px double var(--encre); padding: 34px clamp(18px, 4vw, 44px); }
.proclamation h2 { margin: 0; text-align: center; font-family: 'Rye', serif; font-weight: 400; font-size: clamp(32px, 4vw, 46px); }
.proclamation .sous { margin: 4px 0 26px; text-align: center; font-family: 'Kaushan Script', cursive; font-size: 24px; color: #7a4a1e; }
.articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 34px; }
.articles article { display: flex; gap: 16px; align-items: flex-start; }
.articles .n { font-family: 'Rye', serif; font-size: 24px; color: #7a4a1e; min-width: 40px; }
.articles h3 { margin: 0 0 4px; font-family: 'Rye', serif; font-weight: 400; font-size: 19px; }
.articles p { margin: 0; font-size: 17px; }
.proclamation .pied { margin: 26px 0 0; text-align: center; font-style: italic; }
.proclamation a { color: #8a1a14; }

/* ---------- Page règlement complet (22/11) ---------- */
.sommaire { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 980px; margin: -34px auto 0; position: relative; z-index: 2; padding: 0 24px; }
.sommaire a { font-family: 'Rye', serif; text-decoration: none; color: var(--encre); background: var(--papier); border: 2px solid var(--encre); padding: 14px 16px; text-align: center; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); }
.sommaire a:hover { border-color: var(--laiton); color: var(--encre); }
.sommaire a.sombre { background: var(--cuir); color: var(--creme); border-color: var(--laiton); }
.sommaire strong { display: block; font-weight: 400; font-size: 19px; }
.sommaire small { display: block; font-family: 'Crimson Pro', Georgia, serif; font-size: 15px; color: #5c3f28; }
.sommaire a.sombre small { color: var(--laiton); }
.reglement { padding-top: 60px; padding-bottom: 40px; }
.reglement .proclamation { scroll-margin-top: 90px; }
.reglement .proclamation + .proclamation { margin-top: 56px; }
.loi { display: grid; gap: 22px; }
.loi article { border-top: 1px solid rgba(34, 21, 12, .25); padding-top: 18px; }
.loi article:first-child { border-top: 0; padding-top: 0; }
.loi h3 { margin: 0 0 8px; font-family: 'Rye', serif; font-weight: 400; font-size: 21px; line-height: 1.25; }
.loi h3 span { display: block; font-family: 'Kaushan Script', cursive; font-size: 18px; color: #7a4a1e; }
.loi p, .loi li { font-size: 18px; }
.loi p { margin: 0 0 8px; }
.loi ul { margin: 0 0 8px; padding-left: 22px; }
.loi li + li { margin-top: 6px; }
.loi strong { font-weight: 700; }
.intro-loi { text-align: center; font-style: italic; margin: -10px 0 26px; }
.proclamation h2 + .intro-loi { margin-top: 14px; }
.intro-loi p, .proclamation div.pied p { margin: 0 0 6px; }

/* ---------- Étapes ---------- */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.etapes li { border: 1px solid var(--ligne); background: var(--cuir); padding: 30px 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.etapes li.fort { border-color: var(--laiton); background: #1b130d; }
.etapes .n { font-family: 'Rye', serif; font-size: 46px; color: var(--laiton); line-height: 1; }
.etapes h3 { margin: 0; font-family: 'Rye', serif; font-weight: 400; font-size: 23px; }
.etapes p { margin: 0; color: var(--texte-doux); }
.etapes a { font-weight: 600; }
.launcher { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 34px; align-items: center; margin-top: 60px; }
.launcher .note { color: var(--sourdine); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { cursor: pointer; padding: 20px 4px; font-family: 'Rye', serif; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--laiton); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 4px 22px; color: var(--texte-doux); }

/* ---------- Équipe ---------- */
.equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; max-width: 980px; margin: 0 auto; }
.membre { background: var(--papier); color: var(--encre); padding: 12px; text-align: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.membre-in { border: 2px solid var(--encre); padding: 22px 16px; }
.membre .portrait { width: 96px; height: 96px; margin: 8px auto 14px; border-radius: 50%; background: var(--encre); color: var(--papier); display: flex; align-items: center; justify-content: center; font-family: 'Rye', serif; font-size: 26px; }
.membre h3 { margin: 0; font-family: 'Rye', serif; font-weight: 400; font-size: 22px; }
.membre .role { display: block; margin: 4px 0 10px; color: #7a4a1e; font-weight: 600; }
.membre p { margin: 0; font-size: 16px; }

/* ---------- Clôture ---------- */
.final { text-align: center; padding: 140px 24px; background-size: cover; background-position: center 40%;
  background-image: linear-gradient(180deg, var(--noir) 0%, rgba(13,9,7,.55) 30%, rgba(13,9,7,.75) 100%), url(fond/bg4.jpg); }
.final .pinceau { margin: 0; font-size: clamp(28px, 3.4vw, 42px); text-shadow: 0 4px 20px rgba(0, 0, 0, .8); }
.final h2 { margin: 6px 0 30px; font-family: 'Rye', serif; font-weight: 400; font-size: clamp(38px, 5.2vw, 68px); text-shadow: 0 6px 26px rgba(0, 0, 0, .85); }

/* ---------- Pied de page ---------- */
footer { border-top: 1px solid rgba(224, 168, 90, .2); }
.footer-inner { max-width: var(--largeur); margin: 0 auto; padding: 36px 24px; display: flex; gap: 20px 28px; flex-wrap: wrap; justify-content: space-between; align-items: center; color: var(--sourdine); font-size: 16px; }
.footer-liens { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.footer-liens a { padding: 6px 0; }

/* ---------- Page métier ---------- */
.fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 34px; align-items: start; }
.fiche h2 { margin: 0 0 16px; font-family: 'Rye', serif; font-weight: 400; font-size: 28px; }
.etapes-metier { list-style: none; margin: 0; padding: 0; counter-reset: e; }
.etapes-metier li { counter-increment: e; position: relative; padding: 0 0 22px 58px; }
.etapes-metier li::before { content: counter(e, decimal-leading-zero); position: absolute; left: 0; top: -2px; font-family: 'Rye', serif; font-size: 26px; color: var(--laiton); }
.etapes-metier h3 { margin: 0 0 4px; font-family: 'Rye', serif; font-weight: 400; font-size: 20px; }
.etapes-metier p { margin: 0; color: var(--texte-doux); }
.encart { background: var(--cuir); border: 1px solid var(--ligne); padding: 26px; }
.encart + .encart { margin-top: 20px; }
.encart h2 { font-size: 22px; margin-bottom: 10px; }
.encart ul { margin: 0; padding-left: 20px; color: var(--texte-doux); }
.encart li + li { margin-top: 6px; }
.encart p { margin: 0; color: var(--texte-doux); }
.autres { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Boutique ---------- */
.onglets { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: -34px auto 0; position: relative; z-index: 2; padding: 0 24px; }
.onglet { font-family: 'Rye', serif; text-decoration: none; color: var(--creme); background: var(--cuir); border: 1px solid var(--ligne); padding: 16px 26px; min-width: 260px; text-align: center; }
.onglet small { display: block; font-family: 'Crimson Pro', Georgia, serif; font-size: 16px; color: var(--sourdine); }
.onglet[aria-selected="true"] { border-color: var(--laiton); background: #1b130d; color: var(--laiton); }
.don { max-width: 760px; margin: 0 auto; text-align: center; background: var(--papier); color: var(--encre); padding: 14px; box-shadow: 0 16px 36px rgba(0, 0, 0, .5); }
.don-in { border: 3px double var(--encre); padding: 34px 26px; }
.don h2 { margin: 0; font-family: 'Rye', serif; font-weight: 400; font-size: 34px; }
.don p { margin: 14px auto 22px; max-width: 560px; }
.don small { display: block; margin-top: 16px; color: #5c3f28; }
.groupe { margin-top: 70px; }
.groupe h2 { margin: 0; text-align: center; font-family: 'Rye', serif; font-weight: 400; font-size: 36px; }
.groupe .sous { margin: 6px 0 30px; text-align: center; color: var(--texte-doux); }
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.carte-animal { background: var(--cuir); border: 1px solid rgba(224, 168, 90, .22); display: flex; flex-direction: column; }
.carte-animal img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; } /* 23/11 : height auto, sinon l'attribut height="480" etirait l'image */
.carte-animal .corps { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.carte-animal .genre { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--laiton); }
.carte-animal h3 { margin: 0; font-family: 'Rye', serif; font-weight: 400; font-size: 21px; }
.carte-animal p { margin: 0; color: var(--texte-doux); font-size: 17px; flex: 1; }
.carte-animal .btn { margin-top: 8px; }
.note-bas { text-align: center; color: var(--sourdine); font-size: 16px; padding: 50px 24px 0; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .section { padding: 70px 0; }
  .hero { min-height: 0; }
  .nav-links { justify-content: flex-start; gap: 4px 16px; order: 3; flex-basis: 100%; }
  .topbar { position: static; }
}

/* =====================================================================
   v3 (27/11/2026) : couche « Poussière & braise »
   Ajoutée APRÈS la charte v2 : mêmes classes, effets en plus.
   - grain de pellicule + vignette, barre de progression rouge
   - braises animées dans l'ouverture (site.js), parallaxe à la souris
   - cartes inclinées en 3D avec reflet, enseignes qui se balancent,
     avis de recherche tamponnés, boutons à éclat, apparitions au défilement
   - transitions entre pages (View Transitions), FAQ qui s'ouvre en douceur
   Tout se coupe avec « réduire les animations » (prefers-reduced-motion).
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .35s ease both vt-sortie; }
::view-transition-new(root) { animation: .45s ease both vt-entree; }
@keyframes vt-sortie { to { opacity: 0; filter: sepia(1) brightness(.6); } }
@keyframes vt-entree { from { opacity: 0; filter: sepia(1) brightness(1.4); } }

@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --rouge-vif: #c4262c;
  --braise: #ff7a3d;
  --doux: cubic-bezier(.2, .8, .2, 1);
  interpolate-size: allow-keywords;
}
::selection { background: var(--rouge); color: #fff4e2; }
html { scrollbar-color: var(--rouge) var(--noir); }

/* ---------- Grain de pellicule et vignette ---------- */
body::before, body::after { content: ''; position: fixed; inset: 0; pointer-events: none; }
body::before {
  z-index: 200; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(5) infinite;
}
body::after { z-index: 199; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%); }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Barre de progression (site.js) ---------- */
.nmr-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none;
  background: linear-gradient(90deg, var(--rouge) 0%, var(--rouge-vif) 60%, var(--laiton-vif) 100%);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px rgba(196, 38, 44, .7); }

/* ---------- Barre du haut : verre fumé ---------- */
.topbar { background: rgba(13, 9, 7, .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: background .3s, box-shadow .3s; }
.topbar.defile { background: rgba(13, 9, 7, .9); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
.topbar-inner { transition: padding .3s var(--doux); }
.topbar.defile .topbar-inner { padding-top: 4px; padding-bottom: 4px; }
.brand img { transition: transform .8s var(--doux), filter .3s; }
.brand:hover img { transform: rotateY(360deg) scale(1.08); filter: drop-shadow(0 0 10px rgba(196, 38, 44, .6)); }
.nav-links a { position: relative; transition: color .25s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--rouge-vif), var(--laiton), var(--rouge-vif), transparent);
  transform: scaleX(0); transition: transform .35s var(--doux); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Boutons : éclat et braise ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .25s var(--doux), box-shadow .3s, color .2s, border-color .2s, background .2s; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(246, 207, 142, .28), transparent); transition: transform .7s var(--doux); }
.btn:hover::before { transform: translateX(120%) skewX(-20deg); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-jouer { background: linear-gradient(180deg, #b2232a, var(--rouge)); animation: braise 3.2s ease-in-out infinite; }
.btn-jouer:hover { background: linear-gradient(180deg, #c92d34, #a81e24); }
@keyframes braise {
  0%, 100% { box-shadow: 0 12px 30px rgba(0, 0, 0, .5), 0 0 0 rgba(196, 38, 44, 0); }
  50% { box-shadow: 0 12px 30px rgba(0, 0, 0, .5), 0 0 28px rgba(196, 38, 44, .55); }
}
.btn svg { transition: transform .3s var(--doux); }
.btn:hover svg { transform: translateY(3px); }

/* ---------- Ouverture : braises, parallaxe, logo flottant ---------- */
.hero, .page-head { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: inherit; background-size: cover;
  transform-origin: 50% 60%; animation: kenburns 30s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.nmr-braises { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-inner, .page-head .wrap, .page-head > div { position: relative; z-index: 1; }
.hero::after, .page-head::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 120%, rgba(196, 38, 44, .28), transparent 65%); }
.hero-inner { transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0); transition: transform .4s var(--doux); }
.hero-logo { animation: flotte 7s ease-in-out infinite; transition: filter .4s; }
.hero-logo:hover { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .8)) drop-shadow(0 0 34px rgba(196, 38, 44, .55)); }
@keyframes flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero .eyebrow, .hero h1, .hero .pinceau, .hero p.chapo, .hero .btns, .hero .status,
.page-head .pinceau, .page-head h1, .page-head p.chapo { animation: monte .9s var(--doux) both; }
.hero .eyebrow { animation-delay: .15s; } .hero h1, .page-head h1 { animation-delay: .3s; }
.hero .pinceau { animation-delay: .5s; } .hero p.chapo, .page-head p.chapo { animation-delay: .65s; }
.hero .btns { animation-delay: .8s; } .hero .status { animation-delay: .95s; }
@keyframes monte { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
/* trait de pinceau rouge sous « Il se raconte » */
.hero .pinceau { position: relative; display: inline-block; padding: 0 .3em; }
.hero .pinceau::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.05em; height: .32em; z-index: -1;
  background: center / 100% 100% no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'><path d='M4 15 C 60 5, 120 19, 180 10 S 268 7, 296 13' stroke='%23c4262c' stroke-width='7' fill='none' stroke-linecap='round' opacity='.9'/></svg>");
  clip-path: inset(0 100% 0 0); animation: pinceau 1.1s 1.1s var(--doux) forwards; }
@keyframes pinceau { to { clip-path: inset(0 0 0 0); } }
.status .point { box-shadow: 0 0 0 0 rgba(140, 196, 111, .6); }
.status.en-ligne .point { animation: pouls 2s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(140, 196, 111, .6); } 70% { box-shadow: 0 0 0 10px rgba(140, 196, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(140, 196, 111, 0); } }
.nmr-defiler { position: absolute; left: 50%; bottom: 26px; z-index: 2; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(240, 227, 200, .55); border-radius: 14px; }
.nmr-defiler::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--laiton); animation: molette 1.8s infinite; }
@keyframes molette { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Titres de section : ornement laiton ---------- */
.section-head h2::after { content: ''; display: block; width: 200px; height: 16px; margin: 16px auto 0;
  background: center / contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16'><path d='M0 8H78M122 8H200' stroke='%23e0a85a' stroke-width='1.4'/><circle cx='84' cy='8' r='2.2' fill='%23e0a85a'/><circle cx='116' cy='8' r='2.2' fill='%23e0a85a'/><path d='M100 1l7 7-7 7-7-7z' fill='%239a1a1f' stroke='%23e0a85a' stroke-width='1.2'/></svg>");
  transform: scaleX(.2); opacity: 0; transition: transform 1s .2s var(--doux), opacity .6s .2s; }
.section-head.vu h2::after, .section-head:not(.nmr-reveal) h2::after { transform: scaleX(1); opacity: 1; }

/* ---------- Apparitions au défilement (site.js) ---------- */
.nmr-reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--doux), transform .8s var(--doux); transition-delay: calc(var(--i, 0) * 90ms); }
.nmr-reveal.vu { opacity: 1; transform: none; }

/* ---------- Cartes inclinables (site.js : --rx --ry --mx --my) ---------- */
.nmr-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .5s var(--doux), box-shadow .4s, border-color .3s; will-change: transform; position: relative; }
.nmr-tilt.actif { transition: transform .08s linear, box-shadow .4s, border-color .3s; }
.nmr-tilt::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; z-index: 2;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(246, 207, 142, .22), transparent 55%); }
.nmr-tilt:hover::after { opacity: 1; }
.nmr-tilt:hover { box-shadow: 0 26px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(224, 168, 90, .5); }

/* bord laiton qui tourne au survol */
.carte-photo, .carte-animal, .registre article, .etapes li, .domaine { position: relative; }
.carte-photo::before, .carte-animal::before { content: ''; position: absolute; inset: -1px; z-index: 3; pointer-events: none; padding: 1px;
  background: conic-gradient(from var(--angle), transparent 0 70%, var(--laiton-vif) 80%, var(--rouge-vif) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s; }
.carte-photo:hover::before, .carte-animal:hover::before { opacity: 1; animation: tourne 3s linear infinite; }
@keyframes tourne { to { --angle: 360deg; } }

.carte-photo { overflow: hidden; }
.carte-photo .photo { transition: transform 1.2s var(--doux), filter .6s; filter: sepia(.25) saturate(.9); }
.carte-photo:hover .photo { transform: scale(1.08); filter: sepia(0) saturate(1.1); }
.carte-photo h3 { transition: color .3s; }
.carte-photo:hover h3 { color: var(--laiton-vif); }
.carte-photo .corps { position: relative; }
.carte-photo .corps::before { content: ''; position: absolute; left: 26px; top: 0; width: 46px; height: 3px; background: var(--rouge-vif); transform: scaleX(.4); transform-origin: left; transition: transform .5s var(--doux); }
.carte-photo:hover .corps::before { transform: scaleX(1.6); }

.carte-animal { overflow: hidden; }
.carte-animal img { transition: transform 1s var(--doux); }
.carte-animal:hover img { transform: scale(1.07); }

/* ---------- Enseignes qui se balancent ---------- */
.enseignes { padding-top: 14px; }
.enseigne { position: relative; transform-origin: 50% -14px; background-image: repeating-linear-gradient(90deg, rgba(34, 21, 12, .04) 0 2px, transparent 2px 9px); }
.enseigne::before { content: ''; position: absolute; left: 22%; right: 22%; top: -14px; height: 14px;
  border-left: 2px solid #8a6a48; border-right: 2px solid #8a6a48; }
.enseigne::after { content: ''; position: absolute; inset: 6px; border: 1px dashed rgba(34, 21, 12, .25); pointer-events: none; }
.enseigne.sombre::after { border-color: rgba(224, 168, 90, .3); }
.enseigne:hover { animation: balance 1.1s var(--doux); transform: none; border-color: var(--rouge); box-shadow: 0 16px 28px rgba(0, 0, 0, .55); }
.enseigne strong { transition: color .25s; }
.enseigne:hover strong { color: var(--rouge); }
.enseigne.sombre:hover strong { color: var(--laiton-vif); }
@keyframes balance { 0% { rotate: 0deg; } 20% { rotate: 4deg; } 40% { rotate: -3deg; } 60% { rotate: 1.8deg; } 80% { rotate: -.8deg; } 100% { rotate: 0deg; } }

/* ---------- Défilé des villes ---------- */
.villes { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.villes p { color: transparent; -webkit-text-stroke: 1px rgba(224, 168, 90, .55); }
.villes:hover p { animation-play-state: paused; }

/* ---------- Livre de comptes ---------- */
.registre article { transition: transform .4s var(--doux), border-color .3s, background .3s; overflow: hidden; }
.registre article::after { content: ''; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--rouge-vif); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--doux); }
.registre article:hover::after { transform: scaleX(1); }
.registre article:hover { background: #1d140d; }
.registre .num { display: inline-block; transition: transform .5s var(--doux), text-shadow .4s; }
.registre article:hover .num { transform: scale(1.15) rotate(-4deg); text-shadow: 0 0 18px rgba(224, 168, 90, .6); }

/* ---------- Étapes ---------- */
.etapes li { transition: border-color .3s, background .3s; }
.etapes li:hover { border-color: var(--laiton); background: #1d140d; }
.etapes .n { -webkit-text-stroke: 1px var(--laiton); color: transparent; transition: color .4s; }
.etapes li:hover .n, .etapes li.fort .n { color: var(--laiton); }
.etapes a { transition: letter-spacing .3s, color .2s; }
.etapes li:hover a { letter-spacing: .02em; }

/* ---------- Cadres (trailer, aperçus) ---------- */
.cadre { transition: border-color .3s, box-shadow .4s; position: relative; }
.cadre:hover { border-color: var(--laiton); box-shadow: 0 20px 44px rgba(0, 0, 0, .6); }
a.cadre img { transition: transform .8s var(--doux), filter .5s; }
a.cadre { overflow: hidden; }
a.cadre:hover img { transform: scale(1.03); filter: brightness(1.08); }

/* ---------- Proclamation (règlement) ---------- */
.proclamation { background-image: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .35), transparent 60%), radial-gradient(ellipse at 80% 90%, rgba(122, 74, 30, .18), transparent 60%); }
.articles article { transition: transform .3s var(--doux); }
.articles article:hover { transform: translateX(6px); }
.articles article:hover .n { color: var(--rouge); }

/* ---------- FAQ qui s'ouvre en douceur ---------- */
.faq summary { transition: color .25s, padding-left .3s var(--doux); }
.faq summary:hover { color: var(--laiton-vif); padding-left: 12px; }
.faq summary::after { transition: transform .35s var(--doux); }
.faq details[open] summary::after { content: '+'; transform: rotate(135deg); color: var(--rouge-vif); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--doux), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------- Avis de recherche (équipe) ---------- */
.membre { position: relative; transition: transform .5s var(--doux), box-shadow .4s; }
.membre:nth-child(odd) { rotate: -1.6deg; } .membre:nth-child(even) { rotate: 1.4deg; }
.membre:hover { rotate: 0deg; transform: scale(1.04); box-shadow: 0 24px 46px rgba(0, 0, 0, .6); z-index: 2; }
.membre::after { content: 'RECHERCHÉ'; position: absolute; top: 34%; left: 50%; translate: -50% -50%; rotate: -14deg; scale: 1.6;
  font-family: 'Rye', serif; font-size: 26px; letter-spacing: .08em; color: rgba(158, 27, 27, .85); border: 3px double rgba(158, 27, 27, .85); padding: 2px 12px;
  opacity: 0; transition: opacity .25s, scale .35s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; mix-blend-mode: multiply; }
.membre:hover::after { opacity: 1; scale: 1; }
.membre .portrait { transition: background .3s, transform .5s var(--doux); }
.membre:hover .portrait { background: var(--rouge); transform: scale(1.06); }

/* ---------- Divers ---------- */
.onglet, .sommaire a { transition: transform .3s var(--doux), border-color .25s, box-shadow .3s; }
.onglet:hover, .sommaire a:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(0, 0, 0, .5); }
.domaine { transition: border-color .3s, background .3s; }
.domaine:hover { border-color: var(--laiton); }
.domaine .ico { display: inline-block; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.domaine:hover .ico { transform: scale(1.2) rotate(-8deg); }
footer { border-top: 0; position: relative; }
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--rouge-vif), var(--laiton), var(--rouge-vif), transparent); }
.footer-liens a { position: relative; transition: color .2s; }
.footer-liens a:hover { color: var(--laiton-vif); }

/* projecteur qui suit la souris dans les sections (site.js : --sx --sy) */
.section { position: relative; }
.section > .wrap { position: relative; z-index: 1; }
.section::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .6s;
  background: radial-gradient(600px circle at var(--sx, 50%) var(--sy, 50%), rgba(224, 168, 90, .07), transparent 60%); }
.section:hover::before { opacity: 1; }

/* curseur : anneau laiton qui suit la souris (souris uniquement) */
.nmr-curseur { position: fixed; top: 0; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid rgba(224, 168, 90, .7); border-radius: 50%;
  pointer-events: none; z-index: 250; transition: width .25s var(--doux), height .25s var(--doux), margin .25s var(--doux), background .25s, border-color .25s, opacity .3s; opacity: 0; }
.nmr-curseur.visible { opacity: 1; }
.nmr-curseur.survol { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(196, 38, 44, .12); border-color: var(--rouge-vif); }
@media (pointer: coarse) { .nmr-curseur { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .nmr-reveal { opacity: 1; transform: none; }
  .hero-inner, .nmr-tilt { transform: none !important; }
  .nmr-braises, .nmr-curseur, body::before { display: none; }
  .hero .pinceau::after { clip-path: none; }
}
@media (max-width: 760px) {
  .membre:nth-child(odd), .membre:nth-child(even) { rotate: 0deg; }
  .hero::before { animation: none; }
}
