/* ==========================================================================
   GLOIRE MAGAZINE — Design system
   Charte : Marine #003869 · Camelle #b59555 · Sable #e2d193 · Noir · Blanc
   Typo : Beorcana Display Pro (titres) · Kanit (textes)
   ========================================================================== */

@font-face { font-family: "Beorcana"; src: url("../fonts/beorcana.woff2") format("woff2"), url("../fonts/beorcana.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("../fonts/kanit-extralight.ttf") format("truetype"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("../fonts/kanit-light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("../fonts/kanit-lightitalic.ttf") format("truetype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("../fonts/kanit-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("../fonts/kanit-medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --marine: #003869;
  --marine-deep: #00213f;
  --camel: #b59555;
  --camel-soft: #a58c5f;
  --sand: #e2d193;
  --sand-soft: #efe6c6;
  --ivory: #f7f3ec;
  --paper: #fbf9f5;
  --ink: #0f1d2e;
  --muted: #5d6673;
  --line: rgba(0, 56, 105, .14);
  --black: #0b0b0b;
  --white: #ffffff;

  --f-display: "Beorcana", "Cormorant Garamond", "Times New Roman", serif;
  --f-text: "Kanit", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4.4vw, 72px);
  --max: 1560px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t: .9s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 300 16px/1.75 var(--f-text); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--sand); color: var(--marine); }
:focus-visible { outline: 1px solid var(--camel); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--marine); color: #fff; padding: 10px 16px; transform: translateY(-200%); transition: transform .3s; }
.skip:focus { transform: none; }

/* ---------- Typographie ---------- */
.display, h1, h2, h3 { font-family: var(--f-display); font-weight: 400; color: var(--marine); line-height: 1.02; letter-spacing: .015em; margin: 0; text-transform: uppercase; }
.d-xxl { font-size: clamp(54px, 11vw, 190px); line-height: .9; }
.d-xl  { font-size: clamp(44px, 7.4vw, 120px); line-height: .94; }
.d-l   { font-size: clamp(36px, 5vw, 78px); }
.d-m   { font-size: clamp(28px, 3.2vw, 48px); }
.d-s   { font-size: clamp(22px, 2vw, 30px); }
.label {
  font: 400 11px/1.6 var(--f-text); letter-spacing: .34em; text-transform: uppercase; color: var(--marine);
}
.label--camel { color: var(--camel); }
.label--light { color: rgba(255,255,255,.86); }
.en-sub { font: italic 300 13px/1.6 var(--f-text); letter-spacing: .26em; text-transform: uppercase; color: var(--camel); }
.lead { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.6; font-weight: 200; color: var(--ink); }
.serif-lead { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 40px); line-height: 1.28; color: var(--marine); text-transform: none; letter-spacing: .005em; }
.muted { color: var(--muted); }
p { margin: 0 0 1.2em; }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.wrap--mid { max-width: 1180px; }
.section { padding: clamp(80px, 12vw, 180px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 110px) 0; }
.section--paper { background: var(--paper); }
.section--marine { background: var(--marine); color: rgba(255,255,255,.88); }
.section--marine .display, .section--marine h2, .section--marine h3 { color: #fff; }
.section--sand { background: var(--sand-soft); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s, 24px); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 72px); flex-wrap: wrap; }
.sec-head__title { display: grid; gap: 14px; }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Symbole étoile ---------- */
.star { display: inline-block; width: 1em; height: 1.4em; color: var(--camel); vertical-align: middle; }
.star svg { width: 100%; height: 100%; fill: currentColor; }
.star--line svg { fill: none; stroke: currentColor; stroke-width: 1.2; }
.star-spin { animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Boutons & liens ---------- */
.btn {
  --bg: var(--marine); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 34px; background: var(--bg); color: var(--fg);
  font: 400 11px/1 var(--f-text); letter-spacing: .3em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; transition: color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--camel); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); z-index: -1; }
.btn:hover::before { transform: scaleY(1); }
.btn--ghost { --bg: transparent; --fg: var(--marine); box-shadow: inset 0 0 0 1px var(--marine); }
.btn--ghost:hover { --fg: #fff; }
.btn--light { --bg: #fff; --fg: var(--marine); }
.btn--light:hover { --fg: #fff; }
.btn--ghost-light { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link {
  display: inline-flex; align-items: center; gap: 12px;
  font: 400 11px/1.4 var(--f-text); letter-spacing: .3em; text-transform: uppercase; color: var(--marine);
  padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link .arr { transition: transform .5s var(--ease-out); }
.link:hover .arr { transform: translateX(6px); }
.link--light { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--marine); transition: background .5s var(--ease), color .5s var(--ease), transform .6s var(--ease), height .5s var(--ease);
}
.header::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); opacity: 0; transition: opacity .5s; }
.header__in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.header__nav { display: flex; gap: clamp(18px, 2.2vw, 38px); }
.header__nav--right { justify-content: flex-end; align-items: center; }
.nav-link { position: relative; font: 400 11px/1 var(--f-text); letter-spacing: .28em; text-transform: uppercase; padding: 10px 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header__logo { display: block; width: clamp(118px, 11vw, 158px); position: relative; }
.header__logo img { width: 100%; transition: opacity .5s; }
.header__logo .logo-light { position: absolute; inset: 0; opacity: 0; }
.lang { display: inline-flex; gap: 6px; font: 400 11px/1 var(--f-text); letter-spacing: .2em; }
.lang a { opacity: .45; padding: 10px 2px; } .lang a[aria-current="true"] { opacity: 1; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .5s var(--ease-out), opacity .3s; }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Header sur hero sombre */
.has-dark-hero .header:not(.is-solid) { color: #fff; }
.has-dark-hero .header:not(.is-solid) .logo-light { opacity: 1; }
.has-dark-hero .header:not(.is-solid) .logo-dark { opacity: 0; }
.header.is-solid { background: rgba(247, 243, 236, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); height: 68px; }
.header.is-solid::after { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
body.menu-open .header { color: #fff !important; background: transparent !important; backdrop-filter: none; }
body.menu-open .header .logo-light { opacity: 1 !important; } body.menu-open .header .logo-dark { opacity: 0 !important; }
body.menu-open .header::after { opacity: 0; }

/* ---------- Menu plein écran ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--marine); color: #fff;
  display: grid; grid-template-columns: 1.2fr 1fr; visibility: hidden;
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-out), visibility 0s .9s;
}
body.menu-open .menu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .9s var(--ease-out); }
.menu__main { padding: calc(var(--header-h) + 6vh) var(--gutter) 6vh; display: flex; flex-direction: column; justify-content: center; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; }
.menu__list a { display: flex; align-items: baseline; gap: 18px; font: 400 clamp(40px, 6.4vw, 92px)/1.08 var(--f-display); text-transform: uppercase; transform: translateY(110%); transition: transform .9s var(--ease-out), color .4s; }
.menu__list a small { font: 400 11px/1 var(--f-text); letter-spacing: .3em; color: var(--sand); }
.menu__list a:hover { color: var(--sand); }
body.menu-open .menu__list a { transform: none; }
.menu__list li:nth-child(2) a { transition-delay: .05s } .menu__list li:nth-child(3) a { transition-delay: .1s }
.menu__list li:nth-child(4) a { transition-delay: .15s } .menu__list li:nth-child(5) a { transition-delay: .2s }
.menu__list li:nth-child(6) a { transition-delay: .25s } .menu__list li:nth-child(7) a { transition-delay: .3s }
.menu__aside { position: relative; overflow: hidden; }
.menu__aside img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
body.menu-open .menu__aside img { transform: scale(1); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 7vh; opacity: 0; transition: opacity .6s .4s; }
body.menu-open .menu__foot { opacity: 1; }
.menu__foot a { font: 400 11px/1 var(--f-text); letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.menu__foot a:hover { color: #fff; }

/* ---------- Intro (première visite) ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--marine); display: grid; place-items: center; pointer-events: none; }
.intro__logo { width: min(46vw, 340px); opacity: 0; transform: translateY(14px); animation: introLogo 1.4s var(--ease-out) .15s forwards; }
.intro__line { position: absolute; bottom: 14vh; left: 50%; width: 120px; height: 1px; margin-left: -60px; background: rgba(255,255,255,.25); overflow: hidden; }
.intro__line::after { content: ""; position: absolute; inset: 0; background: var(--sand); transform: translateX(-100%); animation: introLine 1.3s var(--ease) .2s forwards; }
.intro.is-done { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); }
@keyframes introLogo { to { opacity: 1; transform: none; } }
@keyframes introLine { to { transform: none; } }
html.no-intro .intro { display: none; }

/* ---------- Transitions de page ---------- */
.page-fade { position: fixed; inset: 0; z-index: 90; background: var(--ivory); pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); }
body.is-leaving .page-fade { opacity: 1; }

/* ---------- Animations au scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js .split-line { display: block; overflow: hidden; padding: .16em 0 .06em; margin-top: -.16em; }
.js .split-line > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js .is-in .split-line > span, .js .split-line.is-in > span { transform: none; }
.media { position: relative; overflow: hidden; background: var(--sand-soft); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.js .media[data-reveal] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
.js .media[data-reveal] img { transform: scale(1.18); transition: transform 2s var(--ease-out); transition-delay: var(--d, 0s); }
.js .media[data-reveal].is-in { clip-path: inset(0 0 0 0); }
.js .media[data-reveal].is-in img { transform: scale(1); }
.hover-zoom img { transition: transform 1.4s var(--ease-out) !important; }
.hover-zoom:hover img, a:hover > .hover-zoom img, a:hover .hover-zoom img { transform: scale(1.05) !important; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; color: #fff; overflow: hidden; background: var(--black); }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,20,40,.45) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.08) 60%, rgba(0,15,30,.62) 100%); }
.hero__tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--black); }
.tri { position: relative; overflow: hidden; }
.tri video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease-out); }
.js .tri { clip-path: inset(100% 0 0 0); animation: triIn 1.6s var(--ease-out) forwards; }
.tri:nth-child(2) { animation-delay: .15s !important; } .tri:nth-child(3) { animation-delay: .3s !important; }
html.js:not(.no-intro) .tri { animation-delay: 1.3s; }
html.js:not(.no-intro) .tri:nth-child(2) { animation-delay: 1.45s !important; } html.js:not(.no-intro) .tri:nth-child(3) { animation-delay: 1.6s !important; }
@keyframes triIn { to { clip-path: inset(0 0 0 0); } }
.tri:hover video { transform: scale(1); }
.tri__city { position: absolute; top: calc(var(--header-h) + 22px); left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap; }
.hero__content { position: absolute; inset: auto 0 0; padding-bottom: clamp(36px, 7vh, 80px); z-index: 2; }
@media (max-width: 820px) { .hero__tri { grid-template-columns: 1fr; } .tri:nth-child(n+2) { display: none; } .tri__city { display: none; } }
.hero__grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.hero__logo { width: min(78vw, 720px); filter: drop-shadow(0 2px 30px rgba(0,0,0,.15)); }
.hero__tag { margin-top: 26px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero__scroll { display: grid; justify-items: center; gap: 14px; font: 400 10px/1 var(--f-text); letter-spacing: .34em; text-transform: uppercase; }
.hero__scroll i { display: block; width: 1px; height: 64px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__sound { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 18px); font: 400 10px/1 var(--f-text); letter-spacing: .3em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; opacity: .85; }
.hero__sound span.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.hero__sound span.bars i { width: 1px; background: #fff; height: 30%; animation: bar 1s ease-in-out infinite alternate; }
.hero__sound.is-muted span.bars i { animation: none; height: 30%; }
.hero__sound span.bars i:nth-child(2) { animation-delay: .2s } .hero__sound span.bars i:nth-child(3) { animation-delay: .4s }
@keyframes bar { to { height: 100%; } }

/* Page hero (pages internes) */
.phero { padding: calc(var(--header-h) + clamp(60px, 10vw, 140px)) 0 clamp(40px, 6vw, 90px); }
.phero__eyebrow { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.phero__intro { margin-top: 34px; max-width: 640px; }
.phero--split .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 110px); align-items: end; }
.breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; font: 400 10px/1.6 var(--f-text); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.breadcrumb a:hover { color: var(--marine); }

/* ---------- Manifeste ---------- */
.manifesto { text-align: center; }
.manifesto__text { font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 54px); line-height: 1.22; color: var(--marine); max-width: 1180px; margin: 34px auto 0; }
.manifesto__text em { font-style: normal; color: var(--camel); }
.manifesto .js-words span { opacity: .14; transition: opacity .5s; }
.manifesto .js-words span.on { opacity: 1; }

/* ---------- Marquee villes ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; white-space: nowrap; user-select: none; }
.marquee__track { display: inline-flex; gap: 48px; align-items: center; animation: marquee 38s linear infinite; padding-right: 48px; }
.marquee__track span { font: 400 clamp(26px, 3.2vw, 46px)/1 var(--f-display); text-transform: uppercase; color: var(--marine); }
.marquee__track .star { font-size: 18px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Numéro à la une ---------- */
.issue-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 140px); align-items: center; }
.issue-feature__cover { position: relative; perspective: 1600px; }
.cover3d { position: relative; aspect-ratio: 200 / 260; max-width: 520px; margin: 0 auto; transform-style: preserve-3d; transition: transform 1.2s var(--ease-out); box-shadow: 30px 40px 70px -30px rgba(0,25,50,.45); }
.cover3d img { width: 100%; height: 100%; object-fit: cover; }
.cover3d::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.15) 40%, rgba(0,0,0,0)); z-index: 2; }
.issue-feature__cover:hover .cover3d { transform: rotateY(-9deg) rotateX(2deg); }
.issue-feature__num { position: absolute; top: -0.42em; right: -0.1em; font: 400 clamp(110px, 16vw, 260px)/1 var(--f-display); color: var(--sand); z-index: -1; }
.toc { list-style: none; padding: 0; margin: 30px 0 40px; border-top: 1px solid var(--line); }
.toc li { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.toc b { font: 400 11px/1 var(--f-text); letter-spacing: .2em; color: var(--camel); }
.toc span { font-family: var(--f-display); font-size: 19px; text-transform: uppercase; color: var(--marine); }
.toc em { font-style: normal; font-size: 13px; color: var(--muted); }
.price-tag { display: flex; gap: 30px; align-items: baseline; margin-bottom: 30px; flex-wrap: wrap; }
.price-tag strong { font: 400 44px/1 var(--f-display); color: var(--marine); }

/* ---------- Cartes / grilles ---------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 40px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { display: block; position: relative; }
.card__media { aspect-ratio: 4 / 5; }
.card__media--land { aspect-ratio: 3 / 2; }
.card__media--sq { aspect-ratio: 1; }
.card__body { padding-top: 20px; display: grid; gap: 10px; }
.card__title { font-family: var(--f-display); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.08; text-transform: uppercase; color: var(--marine); transition: color .4s; }
.card:hover .card__title { color: var(--camel); }
.card__sub { font-size: 14px; color: var(--muted); line-height: 1.6; }
.card__meta { display: flex; gap: 12px; align-items: center; }
.card__badge { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(251, 249, 245, .92); padding: 8px 12px; font: 400 9.5px/1 var(--f-text); letter-spacing: .28em; text-transform: uppercase; color: var(--marine); }

/* Mosaïque éditoriale (accueil Journal) */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.4vw, 40px); align-items: start; }
.mosaic > :nth-child(1) { grid-column: 1 / span 7; }
.mosaic > :nth-child(2) { grid-column: 9 / span 4; margin-top: 22%; }
.mosaic > :nth-child(3) { grid-column: 2 / span 4; margin-top: -8%; }
.mosaic > :nth-child(4) { grid-column: 7 / span 6; margin-top: 10%; }
.mosaic > :nth-child(1) .card__media { aspect-ratio: 5 / 6; }

/* Carrousel horizontal */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 400px); gap: clamp(18px, 2vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 20px; scrollbar-width: none; cursor: grab; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__track a { -webkit-user-drag: none; }
.rail__track img { pointer-events: none; }
.rail__nav { display: flex; gap: 10px; }
.rail__btn { width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: background .4s, color .4s, box-shadow .4s; color: var(--marine); }
.rail__btn:hover { background: var(--marine); color: #fff; box-shadow: none; }
.rail__progress { height: 1px; background: var(--line); margin: 28px var(--gutter) 0; position: relative; }
.rail__progress i { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--marine); transition: width .2s linear; }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.stat { padding: 44px 24px 0; text-align: center; border-left: 1px solid rgba(255,255,255,.18); }
.stat:first-child { border-left: 0; }
.stat__n { font: 400 clamp(52px, 6vw, 96px)/1 var(--f-display); color: #fff; }
.stat__l { margin-top: 16px; }
.section:not(.section--marine) .stats { border-color: var(--line); }
.section:not(.section--marine) .stat { border-color: var(--line); }
.section:not(.section--marine) .stat__n { color: var(--marine); }

/* ---------- Événements ---------- */
.event-row { display: grid; grid-template-columns: 90px 1.3fr 1fr auto; gap: 32px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); position: relative; }
.event-row:first-child { border-top: 1px solid var(--line); }
.event-row__n { font: 400 13px/1 var(--f-text); letter-spacing: .2em; color: var(--camel); }
.event-row__t { font: 400 clamp(26px, 3vw, 46px)/1.02 var(--f-display); text-transform: uppercase; color: var(--marine); transition: transform .6s var(--ease-out), color .4s; }
.event-row:hover .event-row__t { transform: translateX(14px); color: var(--camel); }
.event-row__peek { position: fixed; width: 300px; aspect-ratio: 4/5; pointer-events: none; z-index: 30; opacity: 0; transform: scale(.9) rotate(-2deg); transition: opacity .35s, transform .5s var(--ease-out); overflow: hidden; }
.event-row__peek.on { opacity: 1; transform: scale(1) rotate(0); }
.event-row__peek img { width: 100%; height: 100%; object-fit: cover; }

.ev-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border-radius: 40px; box-shadow: inset 0 0 0 1px var(--line); font: 400 10.5px/1 var(--f-text); letter-spacing: .24em; text-transform: uppercase; color: var(--marine); transition: background .35s, color .35s, box-shadow .35s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--marine); }
.chip.is-active { background: var(--marine); color: #fff; box-shadow: none; }
.chip sup { margin-left: 6px; font-size: 9px; opacity: .6; }

/* ---------- Galerie + lightbox ---------- */
.gallery { columns: 3 320px; column-gap: clamp(12px, 1.6vw, 24px); }
.gallery__item { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 24px); display: block; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(5, 14, 26, .97); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; color: #fff; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .5s; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); font: 400 11px/1 var(--f-text); letter-spacing: .3em; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(16px, 6vw, 110px); min-height: 0; }
.lightbox__stage img { max-height: 78vh; width: auto; max-width: 100%; object-fit: contain; transition: opacity .4s; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); display: grid; place-items: center; }
.lightbox__prev { left: var(--gutter); } .lightbox__next { right: var(--gutter); }
.lightbox__prev:hover, .lightbox__next:hover { background: #fff; color: var(--marine); }
.lightbox__close { width: 44px; height: 44px; display: grid; place-items: center; }

/* ---------- Vidéos ---------- */
.vcard { display: block; text-align: left; width: 100%; }
.vcard__media { position: relative; aspect-ratio: 9 / 16; }
.vcard__media--land { aspect-ratio: 16 / 9; }
.vcard__media video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.vcard:hover .vcard__media video.ready { opacity: 1; }
.vcard__play { position: absolute; left: 18px; bottom: 18px; z-index: 2; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; color: #fff; transition: transform .5s var(--ease-out), background .4s; }
.vcard:hover .vcard__play { transform: scale(1.1); background: var(--camel); }
.vcard__dur { position: absolute; right: 16px; bottom: 18px; z-index: 2; color: #fff; font: 400 11px/1 var(--f-text); letter-spacing: .2em; }
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); }
.vgrid--land { grid-template-columns: repeat(2, 1fr); }
.player { position: fixed; inset: 0; z-index: 120; background: rgba(5,14,26,.97); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.player.open { opacity: 1; visibility: visible; transition: opacity .5s; }
.player video { max-width: min(92vw, 1400px); max-height: 84vh; width: auto; background: #000; }
.player__close { position: absolute; top: 18px; right: var(--gutter); color: #fff; width: 48px; height: 48px; display: grid; place-items: center; }
.player__title { position: absolute; left: var(--gutter); top: 30px; color: #fff; }

/* ---------- Article ---------- */
.article-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.article-hero__media { position: relative; min-height: 60vh; }
.article-hero__media .media { position: absolute; inset: 0; }
.article-hero__text { display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 40px) var(--gutter) clamp(40px, 7vw, 100px); background: var(--paper); }
.article-hero__text .d-xl { margin: 22px 0 18px; }
.article-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-meta div { display: grid; gap: 6px; }
.article-meta dt { font: 400 10px/1 var(--f-text); letter-spacing: .3em; text-transform: uppercase; color: var(--camel); }
.article-meta dd { margin: 0; font-size: 14px; }
.prose { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.85; font-weight: 300; color: var(--ink); }
.prose p:first-of-type::first-letter { float: left; font: 400 5.4em/.82 var(--f-display); color: var(--camel); padding: .06em .12em 0 0; }
.pull { margin: clamp(60px, 9vw, 130px) 0; text-align: center; }
.pull blockquote { margin: 0 auto; max-width: 1100px; font: 400 clamp(26px, 3.4vw, 52px)/1.18 var(--f-display); text-transform: uppercase; color: var(--marine); }
.pull .star { font-size: 22px; margin-bottom: 26px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 32px); margin: clamp(50px, 7vw, 100px) 0; }
.duo .media { aspect-ratio: 4/5; }
.wide-img { margin: clamp(50px, 7vw, 100px) 0; }
.wide-img .media { aspect-ratio: 16/9; }
.article-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 30px; padding: 4px; margin-bottom: 40px; }
.article-lang button { padding: 9px 18px; border-radius: 30px; font: 400 10px/1 var(--f-text); letter-spacing: .26em; color: var(--marine); }
.article-lang button[aria-pressed="true"] { background: var(--marine); color: #fff; }
.credits { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; margin-top: 60px; }
.progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--camel); z-index: 60; width: 0; }

/* ---------- Magazine ---------- */
.issues { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px) clamp(18px, 2.4vw, 40px); }
.issue-card { display: block; }
.issue-card .cover3d { box-shadow: 16px 22px 40px -18px rgba(0,25,50,.42); transition: transform 1s var(--ease-out), box-shadow 1s var(--ease-out); }
.issue-card:hover .cover3d { transform: translateY(-10px) rotateY(-6deg); box-shadow: 26px 36px 60px -22px rgba(0,25,50,.5); }
.issue-card__body { padding-top: 26px; display: grid; gap: 8px; }
.issue-card__n { font: 400 30px/1 var(--f-display); color: var(--marine); }
.issue-hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.pages-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 14px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.pages-strip img { box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }

/* Liseuse */
.reader { position: fixed; inset: 0; z-index: 110; background: #0d1621; color: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.reader__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px var(--gutter); border-bottom: 1px solid rgba(255,255,255,.08); }
.reader__bar img { width: 104px; }
.reader__tools { display: flex; gap: 8px; align-items: center; font: 400 11px/1 var(--f-text); letter-spacing: .2em; }
.reader__tools button, .reader__tools a { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 40px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.reader__tools button:hover, .reader__tools a:hover { background: rgba(255,255,255,.1); }
.reader__stage { position: relative; display: grid; place-items: center; overflow: hidden; perspective: 2400px; touch-action: pan-y; }
.spread { display: flex; justify-content: center; align-items: center; height: calc(100% - 40px); max-width: 96vw; transition: transform .5s var(--ease-out); }
.spread img { height: 100%; width: auto; max-width: 48vw; object-fit: contain; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); background: #fff; }
.spread.single img { max-width: 92vw; }
.spread.turn-next { animation: turnNext .55s var(--ease-out); }
.spread.turn-prev { animation: turnPrev .55s var(--ease-out); }
@keyframes turnNext { from { opacity: .2; transform: translateX(6%) rotateY(-12deg); } }
@keyframes turnPrev { from { opacity: .2; transform: translateX(-6%) rotateY(12deg); } }
.reader__arrow { position: absolute; top: 0; bottom: 0; width: 18%; display: flex; align-items: center; padding: 0 2vw; opacity: .5; transition: opacity .3s; z-index: 2; }
.reader__arrow:hover { opacity: 1; }
.reader__arrow--prev { left: 0; } .reader__arrow--next { right: 0; justify-content: flex-end; }
.reader__arrow span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.reader__foot { padding: 12px var(--gutter) 16px; }
.reader__range { width: 100%; accent-color: var(--sand); }
.reader__thumbs { display: none; }
.reader__lock { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(13,22,33,.9); padding: 24px; z-index: 3; }
.reader__lock .d-m { color: #fff; margin: 18px 0 14px; }
.reader.zoomed .spread { transform: scale(1.8); cursor: zoom-out; }

/* ---------- Privilèges ---------- */
.offer { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); min-height: 460px; }
.offer:nth-child(even) .offer__media { order: 2; }
.offer__media { min-height: 360px; }
.offer__body { padding: clamp(32px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.offer__value { font: 400 clamp(34px, 4vw, 60px)/1 var(--f-display); color: var(--camel); text-transform: uppercase; }
.code { display: inline-flex; align-items: stretch; border: 1px dashed var(--camel); margin-top: 10px; align-self: flex-start; }
.code__val { padding: 16px 22px; font: 400 15px/1 var(--f-text); letter-spacing: .32em; color: var(--marine); filter: blur(6px); transition: filter .6s; user-select: none; }
.code.revealed .code__val { filter: none; user-select: all; }
.code__btn { padding: 0 20px; background: var(--marine); color: #fff; font: 400 10px/1 var(--f-text); letter-spacing: .26em; text-transform: uppercase; }
.offers { display: grid; gap: clamp(20px, 2.4vw, 36px); }

/* ---------- Boutique ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 30px); }
.plan { background: var(--paper); padding: clamp(30px, 3.4vw, 54px); display: flex; flex-direction: column; gap: 18px; position: relative; border: 1px solid transparent; transition: border-color .5s, transform .8s var(--ease-out); }
.plan:hover { border-color: var(--camel); transform: translateY(-6px); }
.plan--hl { background: var(--marine); color: rgba(255,255,255,.85); }
.plan--hl .plan__price, .plan--hl h3 { color: #fff; }
.plan__price { font: 400 clamp(54px, 5vw, 80px)/1 var(--f-display); color: var(--marine); }
.plan__price small { font: 300 14px/1 var(--f-text); letter-spacing: .05em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 12px; } .plan li::before { content: "✦"; color: var(--camel); font-size: 11px; line-height: 2.2; }
.plan .btn { margin-top: auto; }
.plan__flag { position: absolute; top: 22px; right: 22px; }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 10px; }
.field label { font: 400 10px/1 var(--f-text); letter-spacing: .3em; text-transform: uppercase; color: var(--marine); }
.field input, .field textarea, .field select { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 12px 0 14px; font: 300 17px/1.4 var(--f-text); color: var(--ink); border-radius: 0; transition: border-color .4s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--marine); }
.field textarea { min-height: 140px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 12px; font-size: 13px; color: var(--muted); align-items: flex-start; }
.check input { margin-top: 4px; accent-color: var(--marine); }
.newsletter { display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,.4); max-width: 520px; }
.newsletter input { flex: 1; background: transparent; border: 0; padding: 18px 0; color: #fff; font: 300 16px/1 var(--f-text); }
.newsletter input::placeholder { color: rgba(255,255,255,.55); }
.newsletter input:focus { outline: none; }
.newsletter button { font: 400 11px/1 var(--f-text); letter-spacing: .3em; text-transform: uppercase; color: #fff; padding: 0 0 0 20px; }
.form-msg { font-size: 14px; margin-top: 14px; color: var(--sand); min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { background: var(--marine-deep); color: rgba(255,255,255,.72); padding: clamp(70px, 9vw, 130px) 0 40px; position: relative; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 70px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer h4 { margin: 0 0 22px; font: 400 10px/1 var(--f-text); letter-spacing: .32em; text-transform: uppercase; color: var(--sand); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer__big { margin: 60px 0 40px; }
.footer__big img { width: 100%; opacity: .95; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; letter-spacing: .06em; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); display: grid; place-items: center; transition: background .4s, color .4s; }
.footer__social a:hover { background: #fff; color: var(--marine); }

/* ---------- Divers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 120px); align-items: center; }
.split--wide { grid-template-columns: 1.15fr .85fr; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dims > div { background: var(--ivory); padding: clamp(28px, 3.4vw, 54px); display: grid; gap: 16px; align-content: start; }
.dims .num { font: 400 15px/1 var(--f-display); color: var(--camel); }
.quote-slider { position: relative; min-height: 340px; }
.quote-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; display: grid; align-content: center; justify-items: center; text-align: center; gap: 30px; }
.quote-slide.on { opacity: 1; }
.quote-slide blockquote { margin: 0; max-width: 980px; font: 400 clamp(20px, 2.2vw, 32px)/1.4 var(--f-display); color: var(--marine); }
.dots { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.dots button { width: 28px; height: 1px; background: var(--line); position: relative; }
.dots button::before { content: ""; position: absolute; inset: -10px 0; }
.dots button.on { background: var(--marine); }
.legal h2 { font-size: 26px; margin: 50px 0 16px; }
.legal p, .legal li { font-size: 15px; }
.empty { padding: 60px; text-align: center; border: 1px dashed var(--line); color: var(--muted); }
.tag-todo { display: inline-block; background: #fff3cd; color: #7a5b00; font-size: 12px; padding: 2px 8px; letter-spacing: .05em; }
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.team > div { background: var(--paper); padding: 30px 24px; display: grid; gap: 8px; }
.team strong { font: 400 20px/1.1 var(--f-display); text-transform: uppercase; color: var(--marine); font-weight: 400; }
.map-cities { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.map-cities span { font: 400 clamp(28px, 3vw, 44px)/1 var(--f-display); text-transform: uppercase; color: var(--marine); }
.map-cities span.soon { color: var(--camel); opacity: .7; }
.cursor-dot { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__nav--left, .header__nav--right .nav-link { display: none; }
  .header__in { grid-template-columns: 44px 1fr auto; }
  .header__logo { justify-self: center; }
  .burger { display: block; }
  .grid--4, .issues, .vgrid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .event-row { grid-template-columns: 60px 1fr auto; }
  .event-row > :nth-child(3) { display: none; }
}
@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .menu { grid-template-columns: 1fr; }
  .menu__aside { display: none; }
  .grid--3, .grid--2, .issues, .vgrid, .vgrid--land, .plans { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .issue-feature, .issue-hero, .split, .split--wide, .phero--split .wrap, .article-hero, .offer { grid-template-columns: 1fr; }
  .offer:nth-child(even) .offer__media { order: 0; }
  .article-hero__media { min-height: 72vh; }
  .article-hero { min-height: 0; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic > * { grid-column: auto !important; margin-top: 0 !important; }
  .mosaic > :nth-child(1) { grid-column: 1 / -1 !important; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { padding-bottom: 30px; }
  .dims { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .spread img { max-width: 92vw; }
  .reader__arrow { width: 22%; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .event-row__peek { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .grid--3, .grid--2, .vgrid--land { grid-template-columns: 1fr; }
  .issues, .vgrid { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .footer__top { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 1fr auto; gap: 14px; padding: 24px 0; }
  .event-row__n { display: none; }
  .btn { padding: 0 24px; }
  .toc li { grid-template-columns: 34px 1fr; } .toc em { display: none; }
  .rail__track { grid-auto-columns: 74vw; }
  .gallery { columns: 2 140px; }
  .quote-slider { min-height: 440px; }
}
@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 [data-reveal], .js .split-line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee__track { animation: none; }
}
