/* Accueil — styles propres à la page (menu, boutons, cartes de jeux, pied de page : /assets/eckes.css) */
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ---------- 1. HÉROS → COLLAGE ---------- */
.collage { height: 280vh; }
.collage .sticky { background: var(--paper); }
.collage-grid { position: absolute; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(1320px, calc(100% - 2 * var(--gutter))); display: grid; grid-template-columns: 1fr 2.1fr 1fr; gap: clamp(10px, 1.6vw, 22px); height: min(74vh, 720px); }
.center-slot { align-self: start; height: 80%; }   /* photo centrale moins haute que les colonnes, alignée en haut */
.col { display: grid; grid-template-rows: minmax(0,1fr) minmax(0,1fr); min-height: 0; gap: clamp(10px, 1.6vw, 22px); }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; will-change: transform, opacity; }
.tile img { position: absolute; inset: 0; }
.tile img, .main-photo img { width: 100%; height: 100%; object-fit: cover; }
.main-photo img { animation: photo-arrive 1.2s cubic-bezier(.2,.75,.2,1) both; }
@keyframes photo-arrive { from { opacity: 0; transform: scale(1.04); } }
.main-photo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; will-change: left, top, width, height; z-index: 2; }
.main-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 28%, transparent 55%, rgba(0,0,0,.3) 100%); opacity: var(--shade, 1); }
.hero-word { position: absolute; z-index: 3; left: 0; right: 0; bottom: -0.11em; text-align: center; font-weight: 500; font-size: 30.5vw; line-height: .8; letter-spacing: -.055em; white-space: nowrap; color: #fff; user-select: none; pointer-events: none; will-change: opacity; }
.collage-caption { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(28px, 7vh, 72px); text-align: center; color: var(--ink-soft); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.5; opacity: 0; }

/* ---------- 2. TITRE QUI GLISSE ---------- */
.slide { height: 220vh; }
.slide .sticky { display: flex; align-items: center; }
.slide-title { position: relative; z-index: 2; width: 100%; text-align: center; font-size: clamp(3rem, 8vw, 8rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.slide-title span { display: inline-block; will-change: transform; }
.slide-card { position: absolute; top: 50%; width: clamp(140px, 19vw, 280px); aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; z-index: 1; will-change: transform; }
.slide-card img { width: 100%; height: 100%; object-fit: cover; }
.slide-card.left { left: 0; }
.slide-card.right { right: 0; }
.slide-card.crest { background: var(--paper-2); display: grid; place-items: center; }
.slide-card.crest img { width: 70%; height: auto; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(18,24,43,.18)); }

.intro { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 12vw, 140px); text-align: center; }
.intro .lead { max-width: 640px; margin: 14px auto 0; color: var(--ink-soft); line-height: 1.65; font-size: clamp(1rem, 1.3vw, 1.1rem); }

/* ---------- 3. TROIS CARTES ---------- */
.explore-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.explore-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.3; isolation: isolate; }
.card .visual { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .visual { transform: scale(1.05); }
.card .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; justify-content: space-between; align-items: end; z-index: 2; }
.card .label strong { font-weight: 500; font-size: 1.05rem; display: block; }
.card .label span { font-size: .85rem; opacity: .75; }
.card .arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); flex: none; font-style: normal; transition: transform .3s; }
.card .arrow.dark { background: var(--ink); color: #fff; }
.card:hover .arrow { transform: rotate(-45deg); }
.card.dark .label { color: #fff; }
.v-games { background: #11161f; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; }
.v-games .snake { position: absolute; top: 30%; left: 22%; display: flex; gap: 4px; }
.v-games .snake i { width: 24px; height: 24px; border-radius: 6px; background: #7fa2f0; }
.v-games .snake i:last-child { background: #c3d3fa; }
.v-games .apple { position: absolute; top: 30%; right: 22%; width: 24px; height: 24px; border-radius: 50%; background: #e8b26a; }
.v-games .tetro { position: absolute; bottom: 34%; right: 30%; display: grid; grid-template-columns: repeat(3, 24px); gap: 4px; }
.v-games .tetro i { height: 24px; border-radius: 6px; background: #e8b26a; }
.v-games .tetro i:nth-child(n+4):not(:nth-child(5)) { visibility: hidden; }
.v-projects { background: var(--paper-2); }
.v-projects .doc { position: absolute; width: 40%; aspect-ratio: 3/4; left: 50%; top: 40%; background: #fff; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.08); padding: 14px; transform: translate(-50%, -50%) rotate(-4deg); }
.v-projects .doc + .doc { transform: translate(-30%, -46%) rotate(5deg); }
.v-projects .doc i { display: block; height: 7px; border-radius: 4px; background: #e8e5dc; margin-bottom: 8px; }
.v-projects .doc i:first-child { width: 60%; background: var(--blue); opacity: .7; }
.v-projects .doc i:nth-child(3) { width: 80%; }
.v-contact { background: var(--blue); }
.v-contact .bubble { position: absolute; left: 14%; top: 22%; background: #fff; color: var(--ink); border-radius: 18px 18px 18px 4px; padding: 14px 18px; font-size: .9rem; box-shadow: 0 16px 30px rgba(0,0,0,.15); }
.v-contact .bubble.me { left: auto; right: 12%; top: 44%; background: var(--navy); color: #fff; border-radius: 18px 18px 4px 18px; }

/* ---------- 4. PHOTO QUI S'AGRANDIT ---------- */
.expand { height: 220vh; margin-top: clamp(80px, 12vw, 140px); }
.expand .sticky { display: grid; place-items: center; }
.expand-photo { position: relative; width: 100%; height: 100%; overflow: hidden; will-change: clip-path; clip-path: inset(20% 22% round 24px); }
.expand-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); will-change: transform; }
.expand-photo::after { content: ''; position: absolute; inset: 0; background: rgba(10,20,40,.25); }
.expand-title { position: absolute; z-index: 2; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: #fff; font-size: clamp(2.4rem, 6.5vw, 6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; opacity: 0; text-shadow: 0 2px 30px rgba(0,0,0,.25); }

/* ---------- 5. TEXTE RÉVÉLÉ ---------- */
.reveal { padding-block: clamp(100px, 14vw, 180px); }
.reveal p { max-width: 980px; margin: 0 auto; font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.22; letter-spacing: -.02em; font-weight: 500; }
.reveal .w { color: #d3d1c9; transition: color .25s; }
.reveal .w.on { color: var(--ink); }

/* ---------- 6. GALERIE HORIZONTALE ---------- */
.hgallery { height: 260vh; }
.hgallery .sticky { display: flex; flex-direction: column; justify-content: center; padding-top: 60px; }
.games-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; width: 100%; }
.games-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 500; letter-spacing: -.025em; }
.rail { display: flex; gap: 20px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.rail-progress { margin-top: 32px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-progress i { display: block; height: 100%; width: 0; background: var(--ink); }

.rail .game { width: clamp(240px, 24vw, 330px); flex: none; }

/* ---------- 6 bis. PARTIE RAPIDE (styles communs dans eckes.css) ---------- */
.quick { padding-block: clamp(60px, 9vw, 120px) 0; }

/* ---------- 7. CHIFFRES ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.stat { padding: 28px 0; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.stat b { display: block; margin-top: 6px; font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; }

/* ---------- 8. FIN ---------- */
.closing { padding-top: clamp(100px, 14vw, 170px); }
.closing-text { text-align: center; }
.closing-text h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.closing-text p { color: var(--ink-soft); line-height: 1.6; margin: 18px auto 28px; max-width: 460px; }
.closing-text .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.closing-photo { position: relative; margin-top: clamp(60px, 9vw, 110px); height: clamp(320px, 55vw, 640px); background: url('/documents/images/phare.webp') center 40% / cover; will-change: background-position; }
@media (orientation: landscape) { .closing-photo { height: clamp(200px, 26vw, 370px); margin-top: clamp(40px, 6vw, 80px); } }   /* écran à l'horizontale : photo moins haute, comme sur les autres pages */
.closing-photo::before, .closing-photo::after { content: ''; position: absolute; left: 0; right: 0; height: 45%; pointer-events: none; }
.closing-photo::before { top: 0; background: linear-gradient(var(--paper), rgba(251,250,246,0)); }
.closing-photo::after { bottom: 0; background: linear-gradient(rgba(251,250,246,0), var(--paper)); }

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .card { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .collage-grid { grid-template-columns: .7fr 2.4fr .7fr; height: 64vh; top: calc(80px + env(safe-area-inset-top)); }
  .slide-card { width: 34vw; }
  .slide-card.left { top: 24%; }
  .slide-card.right { top: 76%; }
  .slide-title { white-space: normal; font-size: 14vw; padding-inline: var(--gutter); }
}
