/* ==========================================================================
   FLEXARION — « Encre et braise »
   Direction artistique : dark fantasy japonaise dans l'espace.
   Encre noire, cendre, or ancien, vermillon, et un violet de vide spatial.
   ========================================================================== */
:root {
  --encre: #08070b;
  --encre-2: #0e0d13;
  --charbon: #15131c;
  --vide: #1a1530;
  --sang: #5a0f14;
  --vermillon: #b8322a;
  --vermillon-vif: #d9473b;
  --or: #c9a45c;
  --or-clair: #ecd9a4;
  --cendre: #e8e1d3;
  --cendre-sourde: #a49d90;
  --ligne: rgba(201, 164, 92, .22);
  --ligne-forte: rgba(201, 164, 92, .55);

  --police-titre: "Cinzel", "Trajan Pro", Georgia, serif;
  --police-texte: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --police-kanji: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --largeur: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--encre);
  color: var(--cendre);
  font-family: var(--police-texte);
  font-size: 1.22rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Grain de pellicule sur tout le site */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--or-clair); text-decoration-color: rgba(236, 217, 164, .4); text-underline-offset: 4px; transition: color .3s; }
a:hover { color: #fff; text-decoration-color: var(--vermillon); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 4px; }
::selection { background: var(--vermillon); color: #fff; }

h1, h2, h3, h4 { font-family: var(--police-titre); font-weight: 600; line-height: 1.15; letter-spacing: .04em; margin: 0 0 .6em; color: #f4eee2; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: .06em; }
p { margin: 0 0 1.1em; }
strong { color: #fff; font-weight: 600; }
.kanji { font-family: var(--police-kanji); font-weight: 800; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 200; background: var(--or); color: var(--encre); padding: 10px 18px; font-family: var(--police-titre); }
.skip-link:focus { left: 10px; }

.container { width: min(100% - 32px, var(--largeur)); margin-inline: auto; }
.container--etroit { width: min(100% - 32px, 820px); margin-inline: auto; }

/* ---------- En-tête ---------- */
.entete { position: fixed; inset: 0 0 auto; z-index: 80; transition: background .5s, border-color .5s, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.entete.est-solide { background: rgba(8, 7, 11, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--ligne); }
.entete.est-cache { transform: translateY(-100%); }
.entete__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.marque { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.marque img { width: 40px; height: 40px; transition: transform .8s var(--ease); }
.marque:hover img { transform: rotate(-20deg); }
.marque span { font-family: var(--police-titre); font-weight: 700; letter-spacing: .32em; font-size: 1.05rem; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; display: block; padding: 10px 14px; font-family: var(--police-titre); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cendre-sourde); text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: linear-gradient(90deg, transparent, var(--or), transparent); transform: scaleX(0); transition: transform .5s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--or-clair); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.burger { display: none; width: 48px; height: 48px; border: 1px solid var(--ligne-forte); background: none; color: var(--or-clair); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 1.5px; background: currentColor; margin: auto; position: relative; transition: .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.menu-ouvert .burger span { background: transparent; }
.menu-ouvert .burger span::before { top: 0; transform: rotate(45deg); }
.menu-ouvert .burger span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .burger { display: grid; place-items: center; }
  .nav { position: fixed; inset: 76px 0 0; background: rgba(8, 7, 11, .98); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .menu-ouvert .nav { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: center; gap: 10px; }
  .nav a { font-size: 1.1rem; padding: 14px; }
}

/* ---------- Boutons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px; font-family: var(--police-titre); font-size: .82rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--or-clair); border: 1px solid var(--ligne-forte); background: rgba(8, 7, 11, .35); overflow: hidden; isolation: isolate; transition: color .4s, border-color .4s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--sang), var(--vermillon)); transform: translateX(-101%); transition: transform .55s var(--ease); }
.btn:hover { color: #fff; border-color: var(--vermillon); }
.btn:hover::before { transform: none; }
.btn--plein { background: linear-gradient(180deg, #d8b36a, var(--or)); color: var(--encre); border-color: var(--or); }
.btn--plein:hover { color: #fff; }
.btn .fleche { transition: transform .4s var(--ease); }
.btn:hover .fleche { transform: translateX(5px); }
/* coins ornementaux */
.btn::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(236, 217, 164, .18); pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Titres de section ---------- */
.etiquette { display: inline-flex; align-items: center; gap: 14px; font-family: var(--police-titre); font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--or); margin-bottom: 18px; }
.etiquette .kanji { font-size: 1.4rem; color: var(--vermillon-vif); letter-spacing: 0; }
.ornement { display: flex; align-items: center; gap: 12px; color: var(--or); margin: 14px 0 26px; max-width: 360px; }
.ornement::before, .ornement::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--or)); }
.ornement::after { transform: scaleX(-1); }
.ornement i { width: 8px; height: 8px; border: 1px solid var(--or); transform: rotate(45deg); }
.centre { text-align: center; }
.centre .ornement { margin-inline: auto; }
.tete-section { max-width: 760px; margin-bottom: 52px; }
.tete-section.centre { margin-inline: auto; }
.tete-section p { color: var(--cendre-sourde); font-size: 1.28rem; }

.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section--serre { padding: clamp(56px, 7vw, 90px) 0; }
.section--panneau { background: radial-gradient(1100px 500px at 50% 0%, rgba(90, 15, 20, .28), transparent 70%), var(--encre-2); border-block: 1px solid var(--ligne); }

/* ---------- Héros ---------- */
.heros { position: relative; min-height: min(100svh, 1000px); display: grid; align-items: end; overflow: hidden; isolation: isolate; padding: 140px 0 90px; }
.heros__fond { position: absolute; inset: -6% -4%; z-index: -3; will-change: transform; }
.heros__fond img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; animation: zoom-lent 22s var(--ease) both; }
.heros::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(8, 7, 11, .55) 0%, transparent 30%, rgba(8, 7, 11, .2) 55%, var(--encre) 100%), linear-gradient(90deg, rgba(8, 7, 11, .75), transparent 60%); }
.braises { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.heros__kanji { position: absolute; right: clamp(16px, 4vw, 60px); top: 130px; writing-mode: vertical-rl; font-family: var(--police-kanji); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.8rem); letter-spacing: .3em; color: rgba(236, 217, 164, .75); text-shadow: 0 0 30px rgba(184, 50, 42, .6); }
.heros__kanji::after { content: ""; display: block; width: 1px; height: 120px; margin: 24px auto 0; background: linear-gradient(var(--or), transparent); }
.heros__contenu { max-width: 980px; }
.heros .chapeau, .heros h1 .sous-titre { max-width: 680px; }
.heros__sur { font-family: var(--police-titre); font-size: .8rem; letter-spacing: .38em; text-transform: uppercase; color: var(--or); margin-bottom: 20px; }
.heros h1 { margin-bottom: 26px; }
.heros h1 .titre-jeu { --grad: linear-gradient(180deg, #fff8e6 10%, var(--or-clair) 45%, var(--or) 80%); display: block; white-space: nowrap; font-size: clamp(3rem, 11vw, 8.6rem); font-weight: 700; letter-spacing: .14em; line-height: .92; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(184, 50, 42, .45)); }
.heros h1 .titre-jeu > .titre-lettres { display: block; }
.heros h1 .titre-jeu__suite { font-size: .34em; letter-spacing: .44em; margin-top: .35em; }
.js .titre-jeu__suite .l { animation-delay: calc(var(--i) * .035s + .65s); }
.heros h1 .sous-titre { display: block; margin-top: 18px; font-size: clamp(1.05rem, 2vw, 1.45rem); letter-spacing: .12em; color: var(--cendre); font-weight: 500; }
.heros .chapeau { font-size: clamp(1.2rem, 1.8vw, 1.42rem); color: #d9d2c3; max-width: 620px; }
.defiler { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--police-titre); font-size: .68rem; letter-spacing: .3em; color: var(--cendre-sourde); text-decoration: none; }
.defiler::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--or), transparent); animation: goutte 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes goutte { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes zoom-lent { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Héros des pages intérieures */
.heros-page { position: relative; padding: 170px 0 70px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--ligne); }
.heros-page::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 420px at 80% 20%, rgba(184, 50, 42, .28), transparent 70%), radial-gradient(700px 400px at 10% 90%, rgba(26, 21, 48, .9), transparent 70%); }
.heros-page__kanji { position: absolute; right: 2%; top: 50%; transform: translateY(-50%); z-index: -1; font-family: var(--police-kanji); font-weight: 800; font-size: clamp(8rem, 22vw, 19rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201, 164, 92, .16); user-select: none; }
.heros-page .chapeau { font-size: 1.35rem; color: #d9d2c3; max-width: 680px; }
.heros-page--image { min-height: min(84svh, 860px); display: grid; align-items: end; }
.heros-page--image .heros__fond img { opacity: .75; }

/* ---------- Bandeau défilant ---------- */
.bandeau { overflow: hidden; border-block: 1px solid var(--ligne); background: var(--encre-2); padding: 18px 0; }
.bandeau__piste { display: flex; width: max-content; animation: defile 38s linear infinite; }
.bandeau span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--police-titre); font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: .3em; text-transform: uppercase; color: var(--cendre-sourde); white-space: nowrap; }
.bandeau .kanji { color: var(--vermillon-vif); letter-spacing: 0; }
.bandeau b { color: var(--or-clair); font-weight: 600; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Grilles, cartes ---------- */
.grille { display: grid; gap: 26px; }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
.grille > * { min-width: 0; }
@media (max-width: 1000px) { .grille--4 { grid-template-columns: repeat(2, 1fr); } .grille--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .grille--2, .grille--3, .grille--4 { grid-template-columns: 1fr; } }

.carte { position: relative; padding: 34px 30px; background: linear-gradient(180deg, rgba(21, 19, 28, .9), rgba(14, 13, 19, .9)); border: 1px solid var(--ligne); transition: transform .5s var(--ease), border-color .5s, box-shadow .5s; }
.carte::before, .carte::after { content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid var(--or); transition: width .5s var(--ease), height .5s var(--ease); }
.carte::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.carte::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.carte:hover { transform: translateY(-6px); border-color: rgba(201, 164, 92, .45); box-shadow: 0 30px 60px -30px rgba(184, 50, 42, .55); }
.carte:hover::before, .carte:hover::after { width: 46px; height: 46px; }
.carte p { color: #cfc8ba; }
.carte p:last-child { margin-bottom: 0; }
.carte__kanji { display: block; font-family: var(--police-kanji); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--vermillon-vif); margin-bottom: 18px; text-shadow: 0 0 24px rgba(184, 50, 42, .45); }
.carte__num { position: absolute; top: 18px; right: 22px; font-family: var(--police-titre); font-size: .75rem; letter-spacing: .2em; color: var(--or); opacity: .7; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.duo--inverse > :first-child { order: 2; }
.duo > * { min-width: 0; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } .duo--inverse > :first-child { order: 0; } }

/* Cadre d'illustration doré */
.cadre { position: relative; margin: 0; padding: 10px; border: 1px solid var(--ligne); background: var(--encre-2); }
.cadre::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(201, 164, 92, .12); pointer-events: none; z-index: 1; }
.cadre img { width: 100%; transition: transform 1.2s var(--ease), filter 1.2s; }
.cadre .cadre__img { overflow: hidden; }
.cadre:hover img { transform: scale(1.04); filter: saturate(1.15); }
figcaption { margin-top: 12px; font-family: var(--police-titre); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cendre-sourde); }

/* Citation */
.citation { position: relative; margin: 0 auto; max-width: 920px; text-align: center; }
.citation p { font-family: var(--police-texte); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.35; color: #f4eee2; }
.citation p::before, .citation p::after { color: var(--vermillon-vif); }
.citation p::before { content: "« "; } .citation p::after { content: " »"; }
.citation cite { font-family: var(--police-titre); font-style: normal; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--or); }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; border-block: 1px solid var(--ligne); }
.chiffres > div { padding: 40px 12px; border-left: 1px solid var(--ligne); }
.chiffres > div:first-child { border-left: 0; }
.chiffres dd { margin: 0; font-family: var(--police-titre); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; color: var(--or-clair); line-height: 1; }
.chiffres dt { order: 2; margin-top: 10px; color: var(--cendre-sourde); font-size: 1.05rem; }
.chiffres > div { display: flex; flex-direction: column-reverse; }
@media (max-width: 760px) { .chiffres { grid-template-columns: 1fr 1fr; } .chiffres > div:nth-child(3) { border-left: 0; } .chiffres > div:nth-child(-n+2) { border-bottom: 1px solid var(--ligne); } }

/* ---------- Daimyō (liste interactive) ---------- */
.daimyos { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.daimyos > * { min-width: 0; }
@media (max-width: 900px) { .daimyos { grid-template-columns: 1fr; } }
.daimyos ol { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.daimyos li { counter-increment: d; border-bottom: 1px solid var(--ligne); }
.daimyos button { width: 100%; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 18px 6px; background: none; border: 0; color: var(--cendre-sourde); text-align: left; cursor: pointer; font: inherit; transition: color .3s, padding .4s var(--ease); }
.daimyos button::before { content: counter(d, upper-roman); font-family: var(--police-titre); color: var(--or); font-size: .9rem; letter-spacing: .1em; }
.daimyos button .nom { font-family: var(--police-titre); font-size: clamp(1rem, 1.7vw, 1.25rem); letter-spacing: .08em; }
.daimyos button .kanji { font-size: 1.4rem; color: var(--sang); transition: color .3s; }
.daimyos button:hover, .daimyos button[aria-pressed="true"] { color: #fff; padding-left: 16px; }
.daimyos button[aria-pressed="true"] .kanji { color: var(--vermillon-vif); }
.daimyos__desc { min-height: 5.5em; margin-top: 26px; color: #cfc8ba; font-size: 1.25rem; transition: opacity .4s; }

/* ---------- Articles / devlog ---------- */
.billet { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.billet:hover { color: inherit; }
.billet__img { overflow: hidden; border-bottom: 1px solid var(--ligne); margin: -34px -30px 24px; }
.billet__img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 1.2s var(--ease); }
.billet:hover .billet__img img { transform: scale(1.06); }
.billet h3, .billet h2 { font-size: 1.2rem; line-height: 1.35; color: #f4eee2; }
.meta { font-family: var(--police-titre); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lire { margin-top: auto; padding-top: 14px; font-family: var(--police-titre); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--vermillon-vif); }

.ariane ol { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--police-titre); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cendre-sourde); }
.ariane li + li::before { content: "◆"; margin-right: 8px; color: var(--vermillon); font-size: .6rem; vertical-align: middle; }
.ariane a { color: var(--cendre-sourde); text-decoration: none; }
.ariane a:hover { color: var(--or-clair); }

.prose { font-size: 1.28rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2em; }
.prose h2::before { content: "◆ "; color: var(--vermillon); font-size: .6em; vertical-align: middle; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--vermillon-vif); }
.prose blockquote { margin: 2em 0; padding: 10px 0 10px 28px; border-left: 2px solid var(--vermillon); font-style: italic; font-size: 1.45rem; color: #f4eee2; }
.prose figure { margin: 2.2em 0; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .78em; background: var(--charbon); padding: 2px 7px; border: 1px solid var(--ligne); }
.prose pre { background: #0b0a10; border: 1px solid var(--ligne); padding: 22px 24px; overflow-x: auto; font-size: 1rem; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; font-size: .8em; color: var(--cendre); }
.prose pre .c { color: #7d776c; font-style: italic; } .prose pre .k { color: var(--vermillon-vif); } .prose pre .f { color: var(--or-clair); } .prose pre .n { color: #a99cf0; }
.tableau { overflow-x: auto; margin: 1.8em 0; }
table { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
thead th { font-family: var(--police-titre); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or); }
tbody th { color: var(--cendre-sourde); font-weight: 500; }
caption { caption-side: bottom; padding-top: 10px; font-size: .95rem; color: var(--cendre-sourde); text-align: left; }
.auteur { display: flex; gap: 20px; align-items: center; margin-top: 50px; padding: 26px; border: 1px solid var(--ligne); background: var(--encre-2); }
.auteur p { margin: 0; color: #cfc8ba; font-size: 1.1rem; }
.nav-billets { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.nav-billets a { padding: 20px 22px; border: 1px solid var(--ligne); text-decoration: none; color: var(--cendre); transition: border-color .3s; }
.nav-billets a:hover { border-color: var(--or); }
.nav-billets small { display: block; font-family: var(--police-titre); font-size: .68rem; letter-spacing: .22em; color: var(--or); text-transform: uppercase; margin-bottom: 6px; }
.nav-billets .suivant { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .nav-billets { grid-template-columns: 1fr; } .nav-billets .suivant { grid-column: 1; } }

/* Sceau (hanko) des membres de l'équipe */
.sceau { flex: none; width: 68px; height: 68px; display: grid; place-items: center; background: var(--vermillon); color: var(--cendre); font-family: var(--police-kanji); font-weight: 800; font-size: 1.5rem; border-radius: 6px; box-shadow: inset 0 0 0 3px var(--vermillon), inset 0 0 0 5px rgba(232, 225, 211, .7); transform: rotate(-4deg); margin-bottom: 18px; }
.membre .role { display: block; font-family: var(--police-titre); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or); margin: -6px 0 12px; }

/* Frise */
.frise { list-style: none; margin: 0; padding: 0; position: relative; }
.frise::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--or), var(--vermillon), transparent); }
.frise li { position: relative; padding: 0 0 32px 44px; }
.frise li::before { content: ""; position: absolute; left: 0; top: 8px; width: 15px; height: 15px; transform: rotate(45deg); background: var(--encre); border: 1px solid var(--or); }
.frise li.avenir::before { border-color: var(--vermillon); background: var(--sang); }
.frise .annee { display: block; font-family: var(--police-titre); font-size: 1.05rem; letter-spacing: .18em; color: var(--or-clair); }
.frise h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.frise p { color: #cfc8ba; margin: 0; }

/* Fiche technique */
.fiche { width: 100%; }
.fiche th { width: 40%; font-family: var(--police-titre); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--or); font-weight: 600; }
.fiche td { overflow-wrap: anywhere; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--ligne); }
.faq details:first-child { border-top: 1px solid var(--ligne); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: clamp(1.02rem, 1.6vw, 1.2rem); transition: color .3s; }
.faq summary:hover h3 { color: var(--or-clair); }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1px solid var(--or); border-bottom: 1px solid var(--or); transform: rotate(45deg); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 4px 24px; color: #cfc8ba; }
.faq details > div p:last-child { margin: 0; }

/* Galerie + visionneuse */
.galerie { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.galerie > * { min-width: 0; }
.galerie figure:nth-child(1) { grid-column: span 4; } .galerie figure:nth-child(2) { grid-column: span 2; }
.galerie figure:nth-child(n+3) { grid-column: span 2; }
.galerie a { display: block; cursor: zoom-in; }
.galerie img { aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 800px) { .galerie { grid-template-columns: 1fr; } .galerie figure:nth-child(n) { grid-column: auto; } }
.visionneuse { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 30px; background: rgba(5, 4, 7, .94); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.visionneuse.ouverte { opacity: 1; visibility: visible; }
.visionneuse img { max-height: 82vh; width: auto; border: 1px solid var(--ligne); }
.visionneuse p { text-align: center; color: var(--cendre-sourde); margin-top: 14px; font-family: var(--police-titre); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.visionneuse button { position: absolute; top: 18px; right: 18px; width: 52px; height: 52px; background: none; border: 1px solid var(--ligne-forte); color: var(--or-clair); font-size: 1.6rem; cursor: pointer; }

/* Appel final */
.appel { position: relative; text-align: center; padding: clamp(50px, 8vw, 100px) clamp(20px, 6vw, 80px); border: 1px solid var(--ligne); overflow: hidden; isolation: isolate; background: radial-gradient(700px 300px at 50% 120%, rgba(184, 50, 42, .45), transparent 70%), var(--encre-2); }
.appel::before { content: "浪人"; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); z-index: -1; font-family: var(--police-kanji); font-weight: 800; font-size: clamp(9rem, 24vw, 20rem); color: transparent; -webkit-text-stroke: 1px rgba(201, 164, 92, .12); white-space: nowrap; }
.appel p { color: var(--cendre-sourde); max-width: 620px; margin-inline: auto; }
.appel .actions { justify-content: center; margin-top: 10px; }

/* Coup de katana (séparateur animé) */
.entaille { position: relative; height: 90px; overflow: hidden; pointer-events: none; }
.entaille svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.entaille path { stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 1.1s cubic-bezier(.8, 0, .2, 1); }
.entaille.est-vu path { stroke-dashoffset: 0; }

/* Ensō dessiné */
.enso path { stroke-dasharray: 340; stroke-dashoffset: 340; transition: stroke-dashoffset 2.2s var(--ease); }
.est-vu .enso path, .enso.est-vu path { stroke-dashoffset: 0; }

/* Contact */
.courriel { font-family: var(--police-titre); font-size: clamp(1rem, 2.4vw, 1.5rem); letter-spacing: .06em; overflow-wrap: anywhere; }
.telechargements { list-style: none; margin: 0; padding: 0; }
.telechargements li { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
.telechargements a { font-family: var(--police-titre); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Pied de page ---------- */
.pied { position: relative; padding: 90px 0 36px; border-top: 1px solid var(--ligne); background: linear-gradient(180deg, var(--encre), #050407); font-size: 1.08rem; }
.pied__grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.pied__grille > * { min-width: 0; }
.pied h2 { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--or); margin-bottom: 18px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 10px; }
.pied a { color: var(--cendre-sourde); text-decoration: none; }
.pied a:hover { color: var(--or-clair); }
.pied p, .pied address { color: var(--cendre-sourde); font-style: normal; }
.pied__bas { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--ligne); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .95rem; color: #6f6a61; }
@media (max-width: 900px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied__grille { grid-template-columns: 1fr; } }

/* ---------- Animations d'apparition ---------- */
.js .revele { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--delai, 0s); }
.js .revele.est-vu { opacity: 1; transform: none; }
/* Le masque est posé sur le contenu, pas sur l'élément observé : un élément
   entièrement masqué est considéré comme invisible par le navigateur. */
.js .revele-encre > *:first-child { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s cubic-bezier(.77, 0, .18, 1); transition-delay: var(--delai, 0s); }
.js .revele-encre.est-vu > *:first-child { clip-path: inset(0 0 0 0); }
.titre-lettres .l { background: var(--grad, inherit); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .titre-lettres .l { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(8px); animation: lettre 1.2s var(--ease) forwards; animation-delay: calc(var(--i) * .07s + .25s); }
/* Entrée du héros au chargement (sans attendre le défilement) */
.js .entree { opacity: 0; animation: entree 1.2s var(--ease) forwards; animation-delay: var(--delai, 0s); }
@keyframes entree { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes lettre { to { opacity: 1; transform: none; filter: none; } }

/* Lueur qui suit la souris dans le héros */
.lueur { position: absolute; z-index: -1; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 164, 92, .16), transparent 65%); pointer-events: none; opacity: 0; transition: opacity .6s; }
.heros:hover .lueur { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .revele, .js .revele-encre > *:first-child, .js .titre-lettres .l, .js .entree { opacity: 1; transform: none; clip-path: none; filter: none; }
  .bandeau__piste { animation: none; }
}

/* Bande-annonce verticale */
.video-verticale { display: block; width: min(100%, 360px); height: auto; aspect-ratio: 9 / 16; background: #000; border: 1px solid var(--ligne-forte); box-shadow: 0 40px 80px -30px rgba(184, 50, 42, .6); }
