/* Vitrine O'Droukt — « Codex vivant » : scènes plein écran, texte court posé sur l'image. Feuille unique, sans dépendance externe. */
@font-face { font-family: 'Cinzel'; src: url('fonts/cinzel-latin-wght-normal.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/nunito-latin-wght-normal.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }

:root {
  --night: #0a0d16;
  --panel: #11151f;
  --ink: #f4f1ea;
  --dim: #b9c3d6;
  --faint: #8d99b0;
  --teal: #4fe3f2;
  --gold: #f2b84b;
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --warka: url('img/warkatree-2400.webp');
  /* Illustrations des scènes (peintes par IA, 16:9). Tant qu'un fichier manque, le fond de repli (WarkaTree) s'affiche. */
  --sc-monde: url('img/scene-monde-1920.webp');
  --sc-eau: url('img/scene-eau-1920.webp');
  --sc-yakous: url('img/scene-yakous-1920.webp');
  --sc-creatures: url('img/scene-creatures-1920.webp');
  --sc-epave: url('img/scene-epave-1920.webp');
  color-scheme: dark;
}
@media (max-width: 1400px) {
  :root {
    --warka: url('img/warkatree-1200.webp');
    --sc-monde: url('img/scene-monde-1280.webp');
    --sc-eau: url('img/scene-eau-1280.webp');
    --sc-yakous: url('img/scene-yakous-1280.webp');
    --sc-creatures: url('img/scene-creatures-1280.webp');
    --sc-epave: url('img/scene-epave-1280.webp');
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 1.15rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--gold); }
a:hover { color: #fff; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--panel); padding: 8px 12px; }

/* En-tête fixe */
.top { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 24px clamp(20px, 5vw, 64px); }
.top__brand { font: 700 1rem var(--font-display); letter-spacing: .32em; text-transform: uppercase; color: #fff; text-decoration: none; text-shadow: 0 1px 12px rgb(0 0 0 / .7); }
.lang { display: flex; gap: 4px; }
.lang a { color: #fff; text-decoration: none; font: 800 .8rem var(--font-body); letter-spacing: .1em; padding: 4px 10px; opacity: .7; text-shadow: 0 1px 8px rgb(0 0 0 / .7); }
.lang a[aria-current='true'] { opacity: 1; border-bottom: 2px solid var(--gold); }

/* Scènes : un écran chacune */
.scene { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; scroll-snap-align: start; overflow: hidden;
  background-color: var(--night); background-repeat: no-repeat; }
.scene::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(8 10 18 / .82) 0%, rgb(8 10 18 / .45) 38%, rgb(8 10 18 / 0) 70%), linear-gradient(0deg, rgb(8 10 18 / .55), rgb(8 10 18 / 0) 40%); }
.scene > * { position: relative; z-index: 1; }
.scene__n { position: absolute; right: clamp(20px, 5vw, 64px); bottom: 28px; margin: 0; font: 700 .75rem var(--font-body); letter-spacing: .3em; color: rgb(255 255 255 / .6); }
.scene__text { width: 100%; max-width: 760px; padding: 110px clamp(24px, 6vw, 90px); }
.scene__text--center { margin-inline: auto; text-align: center; max-width: 1200px; }
.scene h2 { margin: 0 0 .45em; font: 800 clamp(2.2rem, 6.5vw, 5rem)/1.05 var(--font-display); text-shadow: 0 4px 40px rgb(0 0 0 / .6); }
.scene p { text-shadow: 0 2px 18px rgb(0 0 0 / .85); }
.scene p:not(.eyebrow):not(.scene__n) { max-width: 46ch; }
.eyebrow { margin: 0 0 16px; font: 800 .8rem var(--font-body); letter-spacing: .4em; text-transform: uppercase; color: var(--teal); }

/* 1 · Titre : le WarkaTree peint par l'artiste */
.scene--titre { align-items: end; background-image: var(--warka); background-size: cover; background-position: center 40%; }
.scene--titre::before { background: linear-gradient(180deg, rgb(8 10 18 / .4), rgb(8 10 18 / 0) 35%, rgb(8 10 18 / .85)); }
.scene--titre .scene__text { padding-bottom: 12vh; }
.scene--titre h1 { margin: .1em 0; font: 900 clamp(2.8rem, 12vw, 10rem)/.95 var(--font-display); letter-spacing: .03em; text-shadow: 0 6px 60px rgb(0 0 0 / .6); }
.hero__sub { margin: 0; font: 800 clamp(.8rem, 2vw, 1rem) var(--font-body); letter-spacing: .4em; text-transform: uppercase; color: #ffe2a3; }
.scene--titre .hero__lead { margin: 0 auto; font: 600 clamp(1.2rem, 3vw, 1.8rem)/1.3 var(--font-display); max-width: 24ch; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.actions--left { justify-content: flex-start; }
.btn { padding: 15px 34px; background: var(--gold); color: #2b1a05; font: 800 .9rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-radius: 2px; border: 0; }
.btn:hover { background: #fff; color: #2b1a05; }
.btn--ghost { background: rgb(0 0 0 / .25); color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .8); }
.btn--ghost:hover { background: rgb(255 255 255 / .2); color: #fff; }

/* 2 à 6 · Illustrations peintes (16:9, zone calme à gauche pour le texte) */
.scene--monde { background-image: var(--sc-monde); }
.scene--eau { background-image: var(--sc-eau); }
.scene--yakous { background-image: var(--sc-yakous); }
.scene--creatures { background-image: var(--sc-creatures); }
.scene--epave { background-image: var(--sc-epave); }
.scene--monde, .scene--eau, .scene--yakous, .scene--creatures, .scene--epave { background-size: cover; background-position: 70% 50%; }
.scene--epave::before { background: linear-gradient(90deg, rgb(8 10 18 / .85) 0%, rgb(8 10 18 / .55) 45%, rgb(8 10 18 / .15) 80%); }

/* texte puis animations dans la colonne calme de gauche : l'illustration reste libre */
.scene__split { display: grid; align-content: center; gap: 0; width: 100%; max-width: 760px; }
.scene__split .scene__text { padding-block: 100px 28px; }
.duo { display: grid; grid-template-columns: repeat(2, 190px); gap: 16px; padding: 0 clamp(24px, 6vw, 90px) 90px; }
.duo figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 0 60px rgb(79 227 242 / .3); }
.duo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 3px 12px; border-radius: 99px; background: rgb(8 10 18 / .8); color: var(--teal); font: 800 .72rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; }

/* Carnet de concepts : œuvres d'artistes */
.galerie { background: var(--panel); padding: clamp(80px, 10vw, 140px) 0; scroll-snap-align: start; }
.big { margin: 0 0 .3em; font: 900 clamp(2.4rem, 7vw, 5rem)/1.05 var(--font-display); }
.lead { margin: 0 0 36px; color: var(--dim); }
.concepts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.concepts figure { margin: 0; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: #e9e3d8; }
.concepts figure.grey { background: #818181; } .concepts figure.white { background: #fff; }
.concepts img { width: 100%; height: 100%; object-fit: contain; }
.concepts figure.photo img { object-fit: cover; }
.concepts .c-wide { grid-column: 1 / -1; aspect-ratio: 21 / 8; }

/* Lettre d'information */
.scene--epave .scene__text { padding-block: 120px; }
.letter__slot { max-width: 500px; padding: 20px 28px; border-radius: 99px; border: 1px dashed rgb(79 227 242 / .6); color: #c9d4e6; background: rgb(8 10 18 / .5); text-shadow: none; }

.made { padding: 90px 0 0; }
.made p:not(.eyebrow) { color: var(--faint); font-size: .92rem; max-width: 80ch; margin: 0; }
footer { padding: 50px 0 56px; color: var(--faint); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--dim); }

/* Pages de texte (crédits et mentions légales) */
.page { padding-block: 130px 70px; }
.page h1 { font: 800 clamp(2rem, 6vw, 3.6rem)/1.1 var(--font-display); margin: 0 0 32px; }
.page h2 { font: 700 1.35rem var(--font-display); margin: 40px 0 10px; color: var(--teal); }
.page p, .page li { color: var(--dim); max-width: 75ch; font-size: 1.05rem; }

@media (max-width: 800px) {
  html { scroll-snap-type: none; }
  /* mobile : le texte se pose sur le ciel (en haut), l'illustration reste visible en bas */
  .scene::before { background: linear-gradient(180deg, rgb(8 10 18 / .88) 0%, rgb(8 10 18 / .6) 45%, rgb(8 10 18 / 0) 80%); }
  .scene { align-items: start; }
  .scene--titre { align-items: end; }
  .scene--titre::before { background: linear-gradient(180deg, rgb(8 10 18 / .4), rgb(8 10 18 / 0) 35%, rgb(8 10 18 / .85)); }
  .scene__text { padding-block: 90px 70px; }
  .scene--titre { background-position: 30% 40%; }
  .scene--monde, .scene--eau, .scene--yakous, .scene--creatures, .scene--epave { background-position: 28% 50%; }
  .scene__split .scene__text { padding-bottom: 20px; }
  .duo { grid-template-columns: repeat(2, minmax(0, 150px)); padding-bottom: 70px; }
    .concepts { grid-template-columns: 1fr; }
  .concepts .c-wide { aspect-ratio: 16 / 9; }
  .page { padding-top: 100px; }
}
