/* BSides Réunion — feuille commune (accueil + pages d'information).
   Direction : basalte & lave. Noir chaud, blanc cassé, orange lave.
   Typo éditoriale, filets fins, mouvements sobres. Aucune ressource externe. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Kaushan Script"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/kaushan-script-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/caveat-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #070606;
  --bg-2: #0c0a09;
  --panel: #100d0b;
  --panel-2: #171210;
  --line: rgba(247, 242, 232, .12);
  --line-2: rgba(247, 242, 232, .26);
  --text: #f7f2e8;
  --muted: #c8bfb2;
  --soft: #94887a;
  --or: #ff5a1f;
  --or-l: #ff8455;
  --or-d: #c8410f;
  --gold: #ffc48a;
  --vi: #8d6bff;
  --vi-l: #b9a3ff;
  --ink: #140802;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Archivo", "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --hand: "Caveat", "Segoe Print", cursive;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --skew: -12deg;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 84px;
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-anchor: none; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); letter-spacing: .005em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; color-scheme: dark; }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; }
address { font-style: normal; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--or); color: var(--ink); }
:focus-visible { outline: 2px solid var(--or-l); outline-offset: 3px; }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -70px; z-index: 200; background: var(--or); color: var(--ink); padding: 10px 16px; font: 700 .8rem/1 var(--head); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- États selon la date ---------- */
html[data-ctf="before"] [data-show]:not([data-show~="before"]),
html[data-ctf="on"] [data-show]:not([data-show~="on"]),
html[data-ctf="after"] [data-show]:not([data-show~="after"]) { display: none !important; }

/* ---------- Apparition au défilement ---------- */
html.js .rv { opacity: 0; transform: translateY(28px); animation: rv-failsafe .01s 3.4s forwards; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
html.js .rv.in { opacity: 1; transform: none; animation: none; }
@keyframes rv-failsafe { to { opacity: 1; transform: none; clip-path: none; } }

/* ---------- Textes ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; font: 600 .7rem/1.3 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--or-l); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--or); flex: none; }
.eyebrow-light { color: rgba(247, 242, 232, .78); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.02; text-wrap: balance; letter-spacing: -.03em; overflow-wrap: break-word; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.6rem); font-weight: 900; }
h3 { font-weight: 800; }
.u-link { color: var(--or-l); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; }
.u-link:hover { color: #fff; }
.sec-head { max-width: 820px; margin-bottom: clamp(38px, 5vw, 64px); position: relative; z-index: 1; }
.sec-head p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.fine { font: 400 .74rem/1.6 var(--mono); color: var(--soft); margin-top: 22px; }

/* Numéros de section en filigrane */
main > section[data-num] { position: relative; }
main > section[data-num]::before { content: attr(data-num); position: absolute; top: clamp(18px, 3vw, 40px); right: var(--gutter); z-index: 0; font: 900 clamp(4rem, 11vw, 10rem)/.75 var(--head); letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px rgba(247, 242, 232, .10); pointer-events: none; }
@media (max-width: 760px) { main > section[data-num]::before { display: none; } }

/* ---------- Boutons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 700 .74rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; overflow: visible; transition: color .25s, border-color .25s, background-color .25s, transform .25s var(--ease); }
.btn .bi { display: inline-flex; align-items: center; gap: 12px; }
.btn .arr { font-family: var(--sans); font-weight: 500; font-size: 1.15em; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-primary { background: var(--or); border-color: var(--or); color: var(--ink); }
.btn-primary:hover { background: var(--or-l); border-color: var(--or-l); transform: translateY(-2px); }
.btn-line:hover { border-color: var(--or); color: var(--or-l); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .66rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 60; background: transparent; border-bottom: 1px solid transparent; transition: border-color .25s; }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 6, 6, .82); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.top.is-scrolled { border-bottom-color: var(--line); }
.top.is-scrolled::before { background: rgba(7, 6, 6, .94); }
.top-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.top-progress > i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--or-d), var(--or), var(--gold)); box-shadow: 0 0 14px rgba(255, 90, 31, .45); }
/* la goutte en bout de jauge : elle gonfle, s'étire, puis tombe */
.top-progress > b { position: absolute; top: 50%; left: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold), var(--or) 72%); box-shadow: 0 0 12px rgba(255, 90, 31, .85); opacity: 0; transition: opacity .25s; }
.top-progress > b.is-on { opacity: 1; }
.top-progress > b::before { content: ""; position: absolute; left: 50%; top: -2px; width: 2px; height: 5px; margin-left: -1px; border-radius: 1px; background: linear-gradient(180deg, var(--or), var(--gold)); opacity: .85; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 26px; height: var(--header-h); }
.brand { display: block; flex: none; text-decoration: none; }
.brand img { height: 44px; width: auto; filter: saturate(1.4); }
.nav { display: none; align-items: center; gap: clamp(14px, 1.7vw, 28px); margin-inline: auto; }
.nav a { position: relative; display: flex; align-items: center; height: var(--header-h); font: 500 .84rem/1 var(--sans); color: rgba(247, 242, 232, .76); text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(50% - 18px); height: 2px; background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a[aria-current="true"] { color: var(--text); }
.nav a[aria-current="true"]::after { transform: scaleX(1); }
.top-cta { display: none; flex: none; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; content: ""; transition: transform .25s, background-color .25s; }
.menu-ico::before { position: absolute; top: -6px; }
.menu-ico::after { position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] .menu-ico { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-ico::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico::after { transform: translateY(-6px) rotate(-45deg); }
.sheet { display: none; position: fixed; z-index: 70; inset: var(--header-h) 0 0 0; padding: 18px var(--gutter) 40px; background: rgba(7, 6, 6, .985); overflow-y: auto; flex-direction: column; gap: 2px; }
.sheet.open { display: flex; }
.sheet a:not(.btn) { padding: 16px 4px; font: 800 1.4rem/1.2 var(--head); letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: 26px; align-self: flex-start; }
@media (max-width: 1179px) { :root { --header-h: 68px; } .brand img { height: 38px; } }
@media (min-width: 1180px) { .nav, .top-cta { display: flex; } .menu-btn, .sheet { display: none !important; } }

/* ---------- Emplacements photo ---------- */
.slot { position: relative; overflow: hidden; background: #0b0908; }
.slot > img { width: 100%; height: 100%; object-fit: cover; }
.slot > .photo { position: absolute; inset: 0; animation: photo-in 1.1s var(--ease) both; }
@keyframes photo-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); padding: clamp(40px, 6vh, 80px) 0 clamp(50px, 8vh, 100px); }
.hero-art { position: absolute; inset: -9% 0; z-index: -2; will-change: transform; }
.hero-art > img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; animation: hero-zoom 26s ease-in-out infinite alternate; }
@keyframes hero-zoom { from { transform: scale(1.02); } to { transform: scale(1.09); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(7, 6, 6, .97) 0%, rgba(7, 6, 6, .82) 30%, rgba(7, 6, 6, .28) 60%, rgba(7, 6, 6, .05) 78%),
  linear-gradient(180deg, rgba(7, 6, 6, .72) 0, rgba(7, 6, 6, 0) 18%),
  linear-gradient(0deg, var(--bg) 0, rgba(7, 6, 6, .55) 10%, rgba(7, 6, 6, 0) 32%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(28px, 4vw, 60px); }
.hero-copy { max-width: 760px; }
.hero-lock { margin: 4px 0 clamp(16px, 2vw, 24px); }
.hero-logo { width: clamp(210px, 24vw, 340px); height: auto; filter: saturate(1.4) drop-shadow(0 16px 44px rgba(0, 0, 0, .45)); }
.hero-year { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(10px, 1.4vw, 18px); }
.hero-year .yr { font: 900 clamp(3.6rem, 7vw, 6.4rem)/.76 var(--head); letter-spacing: -.06em; color: var(--or); }
.hero-year .yr-meta { font: 600 clamp(.58rem, .78vw, .72rem)/1.6 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(247, 242, 232, .86); padding-bottom: clamp(4px, .6vw, 10px); }
.hero-tag { font: 900 clamp(1.6rem, 2.7vw, 2.5rem)/1.02 var(--head); letter-spacing: -.035em; margin-bottom: 18px; }
.hero-p { font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.65; color: var(--muted); max-width: 54ch; }
.hero-p strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
html.js .hero-copy > *, html.js .hero-side { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js.booted .hero-copy > *, html.js.booted .hero-side { opacity: 1; transform: none; }
html.js .hero-copy > *:nth-child(2) { transition-delay: .07s; }
html.js .hero-copy > *:nth-child(3) { transition-delay: .14s; }
html.js .hero-copy > *:nth-child(4) { transition-delay: .21s; }
html.js .hero-copy > *:nth-child(5) { transition-delay: .28s; }
html.js .hero-side { transition-delay: .34s; }
.hero-side { display: grid; gap: 14px; justify-items: start; padding: 18px 20px; background: linear-gradient(180deg, rgba(7, 6, 6, .58), rgba(7, 6, 6, .34)); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-side-label { font: 600 .64rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.hero-count { display: flex; align-items: baseline; gap: 8px; }
.hero-count strong { font: 900 clamp(3rem, 5vw, 5rem)/.78 var(--head); letter-spacing: -.05em; color: var(--text); }
.hero-count span { font: 600 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--or-l); }
.hero-side-date { font: 400 .74rem/1.7 var(--mono); letter-spacing: .08em; color: var(--muted); }
.hero-scroll { display: flex; align-items: center; gap: 10px; margin-top: 6px; font: 600 .62rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); text-decoration: none; }
.hero-scroll i { display: block; width: 1px; height: 34px; background: linear-gradient(180deg, var(--or), transparent); animation: scroll-pulse 2.2s ease-in-out infinite; }
@keyframes scroll-pulse { 50% { transform: scaleY(.55); opacity: .5; } }
@media (max-width: 1023px) {
  .hero { align-items: flex-start; padding-bottom: 48px; }
  .hero-side-label { grid-column: 1 / -1; letter-spacing: .12em; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-side { grid-template-columns: auto auto; align-items: end; justify-content: start; gap: 10px 22px; padding: 16px 18px; border: 1px solid var(--line); }
  .hero-side-date { grid-column: 1 / -1; }
  .hero-scroll { display: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(7, 6, 6, .82), rgba(7, 6, 6, .58) 55%, var(--bg)); }
}

/* ---------- Ticker ---------- */
.ticker-wrap { position: relative; z-index: 2; }
.ticker { position: relative; overflow: hidden; background: var(--or); color: var(--ink); border-top: 1px solid var(--or); border-bottom: 1px solid var(--or); }
.ticker-track { display: flex; width: max-content; animation: ticker 44s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 2.4rem; padding: 13px 1.2rem; font: 900 clamp(1.1rem, 2.2vw, 1.9rem)/1 var(--head); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.ticker-track b { font-weight: 400; color: rgba(20, 8, 2, .34); }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- CyberTour ---------- */
.ct { padding: clamp(70px, 9vw, 120px) 0; background: var(--bg); }
.ct-card { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 30px 44px; align-items: center; padding: clamp(26px, 3.4vw, 48px); background: linear-gradient(155deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-left: 2px solid var(--or); }
.ct-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(180deg, var(--gold), var(--or), transparent); }
.ct-brand { display: grid; gap: 16px; }
.ct-logo { display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 16px 18px; background: rgba(247, 242, 232, .04); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, background-color .2s; }
.ct-logo:hover { border-color: var(--or); background: rgba(255, 90, 31, .06); }
.ct-logo img { max-height: 108px; width: auto; max-width: 100%; }
.ct-fallback { display: none; text-align: center; font: 500 1.7rem/1 var(--head); }
.ct-fallback strong { font-weight: 900; color: var(--or); }
.ct-fallback small { display: block; margin-top: 6px; font: 600 .68rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.ct-logo.no-logo img { display: none; }
.ct-logo.no-logo .ct-fallback { display: block; }
.ct-pill { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--or); color: var(--gold); font: 600 .72rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ct-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--or); flex: none; box-shadow: 0 0 10px var(--or); }
.ct-pill[data-state="after"] { border-color: var(--line-2); color: var(--muted); }
.ct-pill[data-state="after"] .dot { background: var(--soft); box-shadow: none; }
.ct-main h2 { font-size: clamp(1.7rem, 2.8vw, 2.7rem); line-height: 1.06; margin-bottom: 16px; }
.ct-main p:not(.eyebrow) { color: var(--muted); font-size: 1.02rem; }
.ct-main .ct-note { margin-top: 12px; font-size: .88rem; color: var(--soft); }
.ct-actions { display: grid; gap: 12px; justify-items: stretch; }
.cal { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 24px; margin-top: 6px; }
.cal li { position: relative; display: grid; gap: 4px; padding: 4px 24px; }
.cal li + li { border-left: 1px solid var(--line); }
.cal li:first-child { padding-left: 0; }
.cal time { font: 600 .7rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.cal strong { font: 800 1.06rem/1.3 var(--head); }
.cal [data-tag] { font: 400 .74rem/1.3 var(--mono); color: var(--soft); }
.cal li[data-state="past"] strong { color: var(--muted); }
.cal li[data-state="next"] time, .cal li[data-state="next"] [data-tag] { color: var(--or-l); }
.cal li[data-state="next"]::before { content: ""; position: absolute; left: 0; top: -25px; width: 100%; height: 2px; background: var(--or); box-shadow: 0 0 12px rgba(255, 90, 31, .5); }
@media (max-width: 1100px) {
  .ct-card { grid-template-columns: 1fr; padding: 26px 22px; }
  .ct-brand { grid-template-columns: 200px auto; align-items: center; justify-content: start; }
  .ct-actions { grid-auto-flow: column; justify-content: start; }
}
@media (max-width: 760px) {
  .cal { grid-template-columns: 1fr; gap: 14px; }
  .cal li { padding: 0 0 14px; }
  .cal li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .cal li[data-state="next"]::before { display: none; }
  .cal li[data-state="next"] { box-shadow: -14px 0 0 -12px var(--or); padding-left: 12px; }
}
@media (max-width: 560px) {
  .ct-brand { grid-template-columns: 1fr; }
  .ct-actions { grid-auto-flow: row; }
  .ct-actions .btn { width: 100%; }
  .ct-actions .btn .bi { flex: 1; justify-content: center; }
}

/* ---------- 4 piliers : bento ---------- */
.features { padding: clamp(70px, 9vw, 130px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.feat-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(180px, auto); gap: 14px; }
.feat { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(22px, 2.6vw, 36px); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, background-color .3s; }
.feat:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.feat:nth-child(2) { grid-column: span 6; }
.feat:nth-child(3) { grid-column: span 3; }
.feat:nth-child(4) { grid-column: span 3; }
.feat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--or-d), var(--or), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.feat:hover { border-color: var(--line-2); background: var(--panel-2); }
.feat:hover::after { transform: scaleX(1); }
.feat .ico { width: 42px; height: 42px; margin-bottom: auto; color: var(--or); }
.feat:nth-child(1) .ico { width: 54px; height: 54px; }
.feat h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 26px 0 10px; }
.feat:nth-child(1) h3 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.feat p { color: var(--muted); font-size: .96rem; line-height: 1.6; max-width: 42ch; }
@media (max-width: 980px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(200px, auto); }
  .feat:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .feat:nth-child(2), .feat:nth-child(3), .feat:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 620px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat:nth-child(1), .feat:nth-child(2), .feat:nth-child(3), .feat:nth-child(4) { grid-column: span 1; }
}

/* ---------- À propos ---------- */
/* ---------- Respiration : bandeau photo plein cadre ---------- */
.breather { position: relative; margin: 0; height: clamp(240px, 40vw, 440px); overflow: hidden; background: var(--bg-2); isolation: isolate; }
.breather::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; z-index: 3; background: linear-gradient(180deg, transparent, var(--or), var(--gold), transparent); background-size: 100% 220%; animation: pour 7s linear infinite; }
.breather-img { position: absolute; inset: -10% 0; }
.breather-img > img { width: 100%; height: 100%; object-fit: cover; }
.breather-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg-2) 0%, rgba(7, 6, 6, .12) 26%, rgba(7, 6, 6, .38) 68%, var(--bg) 100%), linear-gradient(90deg, rgba(7, 6, 6, .55), rgba(7, 6, 6, 0) 46%); }
.breather figcaption { position: absolute; left: var(--gutter); bottom: clamp(18px, 2.6vw, 36px); z-index: 2; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.breather .script { display: block; font: 400 clamp(2rem, 4.2vw, 3.8rem)/1 var(--script); transform: rotate(-4deg); transform-origin: left bottom; }
.breather .cap { display: block; margin-top: 10px; font: 600 .68rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; }
@media (max-width: 640px) {
  .breather { height: clamp(200px, 52vw, 300px); }
  .breather .script { font-size: 2rem; }
}

/* ---------- CTF ---------- */
.ctf { position: relative; padding: clamp(70px, 9vw, 130px) 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ctf::after { content: ""; position: absolute; width: 900px; height: 900px; right: -320px; top: -340px; background: radial-gradient(circle, rgba(255, 90, 31, .12), transparent 65%); pointer-events: none; }
.ctf-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(0, .9fr); gap: clamp(26px, 3.6vw, 56px); align-items: center; }
.term { background: #030202; border: 1px solid var(--line-2); box-shadow: 0 0 0 1px rgba(255, 90, 31, .08), 0 40px 90px -50px rgba(255, 90, 31, .55); font-family: var(--mono); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .72rem; color: var(--soft); }
.term-bar i { width: 9px; height: 9px; border: 1px solid var(--soft); border-radius: 50%; }
.term-bar span { margin-left: auto; letter-spacing: .08em; }
.term pre { margin: 0; padding: 22px 22px 26px; font: 400 clamp(.72rem, .92vw, .84rem)/1.9 var(--mono); color: #ddd3c6; overflow: hidden; white-space: pre; }
.term .d { color: var(--vi-l); }
.term .o { color: var(--or-l); }
.term .cur { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--or); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ctf-copy h2 { font-size: clamp(2.4rem, 4.4vw, 4rem); margin-bottom: 22px; }
.ctf-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.02rem; margin-bottom: 28px; }
.ctf-points { display: grid; gap: 24px; }
.ctf-points li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: center; }
.pt-ico { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-2); color: var(--or); }
.pt-ico svg { width: 24px; height: 24px; }
.ctf-points li > div { display: grid; gap: 3px; }
.ctf-points strong { font: 800 1.05rem/1.25 var(--head); }
.ctf-points li > div > span { color: var(--soft); font-size: .9rem; line-height: 1.45; }
.ctf-how { position: relative; z-index: 1; margin-top: clamp(54px, 7vw, 90px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line); }
.ctf-how h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); margin-bottom: 34px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { padding: 0 28px; position: relative; }
.steps li:first-child { padding-left: 0; }
.steps li + li { border-left: 1px solid var(--line); }
.steps .n { display: inline-grid; place-items: center; width: 42px; height: 36px; margin-bottom: 18px; background: var(--or); color: var(--ink); font: 900 1.2rem/1 var(--head); }
.steps strong { display: block; font: 800 1.08rem/1.3 var(--head); margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .94rem; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 38px; }
.chips li { padding: 7px 13px; border: 1px solid var(--line-2); font: 400 .74rem/1.2 var(--mono); letter-spacing: .05em; color: var(--muted); }
.tips { margin-top: 30px; border-top: 1px solid var(--line); }
.tips summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font: 800 1.02rem/1.3 var(--head); list-style: none; }
.tips summary::-webkit-details-marker { display: none; }
.tips summary::after { content: "+"; font: 400 1.5rem/1 var(--mono); color: var(--or); }
.tips[open] summary::after { content: "−"; }
.tips ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 44px; padding: 4px 0 8px; }
.tips li { color: var(--muted); font-size: .94rem; line-height: 1.6; }
.tips li strong { color: var(--text); }
@media (max-width: 1100px) {
  .ctf-grid { grid-template-columns: minmax(0, 1fr); }
  .ctf-copy { order: 1; } .ctf-points { order: 2; } .term { order: 3; max-width: 580px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .ctf::after { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 24px 0; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { padding-top: 0; }
  .tips ul { grid-template-columns: 1fr; }
}

/* ---------- Conférences ---------- */
.conf { padding: clamp(70px, 9vw, 130px) 0; background: var(--bg-2); }
.conf-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: clamp(26px, 4vw, 64px); align-items: center; }
.conf-copy { min-width: 0; }
.conf-copy h2 { margin-bottom: 20px; font-size: clamp(1.85rem, 3.4vw, 3.3rem); overflow-wrap: break-word; hyphens: auto; }
.conf-copy p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; }
.conf-ctrl { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 16px; }
.round { display: grid; place-items: center; width: 44px; height: 38px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.round:hover:not(:disabled) { background: var(--or); border-color: var(--or); color: var(--ink); }
.round:disabled { opacity: .3; cursor: default; }
.speakers { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--or) transparent; }
.speakers:focus-visible { outline-offset: 6px; }
.sp { position: relative; flex: 0 0 clamp(220px, 22vw, 280px); height: clamp(320px, 30vw, 390px); scroll-snap-align: start; overflow: hidden; isolation: isolate; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--or); transition: border-color .3s, transform .3s var(--ease); }
.sp:hover { border-color: var(--line-2); transform: translateY(-4px); }
.sp:nth-child(even) { border-top-color: var(--vi); }
.sp-kind { position: absolute; left: 16px; top: 16px; font: 600 .64rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.sil { position: absolute; left: 50%; bottom: 72px; width: 80%; transform: translateX(-50%); fill: #1a1512; z-index: -1; }
.sp-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px 18px; background: linear-gradient(0deg, var(--panel) 62%, transparent); }
.sp-txt strong { display: block; font: 800 1.12rem/1.2 var(--head); }
.sp-txt span { display: block; margin-top: 6px; font-size: .82rem; line-height: 1.4; color: var(--muted); }
.sp-next { background: repeating-linear-gradient(135deg, rgba(255, 90, 31, .06) 0 10px, transparent 10px 20px), var(--bg-2); border-style: dashed; border-top-style: solid; }
@media (max-width: 900px) {
  .conf-grid { grid-template-columns: minmax(0, 1fr); }
  .conf-ctrl { justify-content: flex-start; }
}

/* ---------- Bilan 2026 ---------- */
.bilan { padding: clamp(70px, 9vw, 130px) 0; background: var(--bg); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.bilan::after { content: "2026"; position: absolute; right: -2vw; bottom: -2vw; font: 900 clamp(6rem, 18vw, 18rem)/.7 var(--head); color: transparent; -webkit-text-stroke: 1px rgba(247, 242, 232, .05); pointer-events: none; }
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); margin-bottom: clamp(46px, 6vw, 80px); }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 24px 24px 4px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats > div:first-child { padding-left: 0; }
.stats dd { font: 900 clamp(3rem, 6vw, 5.4rem)/.85 var(--head); letter-spacing: -.05em; color: var(--text); }
.stats dt { font: 600 .7rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--or-l); }
.bilan-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 6vw, 110px); }
.bilan-col h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); margin-bottom: 28px; }
.podium { display: grid; gap: 12px; }
.podium li { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: stretch; background: var(--panel); border: 1px solid var(--line); }
.podium b { display: grid; place-items: center; background: var(--or); color: var(--ink); font: 900 1.8rem/1 var(--head); }
.podium li:nth-child(2) b { background: var(--muted); }
.podium li > div { display: grid; gap: 2px; padding: 16px 20px; }
.podium strong { font: 800 1.4rem/1.2 var(--head); }
.podium span { font: 400 .76rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.bars { display: grid; gap: 26px; }
.bars li { display: grid; gap: 11px; }
.bars li > div { display: flex; align-items: baseline; gap: 16px; }
.bars b { flex: none; min-width: 5.2ch; font: 900 1.9rem/1 var(--head); color: var(--text); }
.bars span { color: var(--muted); font-size: .98rem; }
.bars i { position: relative; display: block; height: 7px; background: rgba(247, 242, 232, .1); }
.bars i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); background: linear-gradient(90deg, var(--or-d), var(--or), var(--gold)); transition: width 1.1s var(--ease); }
html.js .bilan-col:not(.in) .bars i::after { width: 0; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 22px; }
  .bilan-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}

/* ---------- Infos pratiques ---------- */
.infos { position: relative; padding: clamp(70px, 9vw, 130px) 0; background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.infos-photo { position: absolute; left: 0; top: 0; width: min(38%, 600px); height: 100%; opacity: .28; filter: saturate(.8); -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 100%), linear-gradient(180deg, #000 60%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #000 40%, transparent 100%), linear-gradient(180deg, #000 60%, transparent 100%); mask-composite: intersect; }
.infos-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.1fr) minmax(0, .62fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.infos-copy { grid-column: 2; background: linear-gradient(170deg, var(--panel), var(--bg)); border: 1px solid var(--line); padding: clamp(26px, 3.6vw, 52px); position: relative; }
.infos-copy::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--or), var(--gold), transparent); }
.infos-copy h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); margin-bottom: 34px; }
.facts { display: grid; gap: 20px; margin-bottom: 32px; }
.facts li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts svg { width: 30px; height: 30px; color: var(--or); margin-top: 2px; }
.facts li > div { display: grid; gap: 2px; }
.facts strong { font: 600 .68rem/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--or-l); }
.facts li > div > span { color: var(--text); font-size: 1rem; line-height: 1.5; }
.map-isle { grid-column: 3; position: relative; width: min(100%, 400px); justify-self: center; margin-top: 6px; }
.map-isle > img { width: 100%; height: auto; display: block; }
.map-isle .spot { position: absolute; left: 41.97%; top: 85.2%; width: 0; height: 0; color: var(--gold); }
.map-isle .arrow { position: absolute; right: 0; top: 0; width: 64px; height: 28px; max-width: none; overflow: visible; }
.map-isle .here { cursor: default; text-decoration: none; position: absolute; right: 68px; top: 8px; font: 600 2.1rem/1 var(--hand); color: var(--gold); white-space: nowrap; transform: rotate(-8deg); transform-origin: right center; }
@media (max-width: 1100px) {
  .infos-photo { position: relative; width: 100%; height: 300px; margin: 0 0 48px; opacity: .5; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); -webkit-mask-composite: source-over; mask-composite: add; }
  .infos-grid { grid-template-columns: minmax(0, 1fr); }
  .infos-copy, .map-isle { grid-column: 1; }
  .map-isle { width: min(100%, 340px); justify-self: start; margin-top: 18px; }
}

/* accès + carte */
.venue { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); margin-top: clamp(54px, 7vw, 90px); background: var(--panel); border: 1px solid var(--line); position: relative; }
.venue-info { padding: clamp(26px, 3.2vw, 46px); align-self: center; }
.venue-info h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); margin-bottom: 18px; }
.venue-info address { font: 400 .96rem/1.75 var(--mono); color: var(--text); padding: 14px 0 14px 18px; border-left: 2px solid var(--or); margin-bottom: 18px; }
.venue-info p:not(.eyebrow) { color: var(--muted); font-size: .96rem; line-height: 1.65; }
.venue-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.map { position: relative; min-height: 380px; overflow: hidden; background: #0b0908; border-left: 1px solid var(--line); }
.map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.map .map-pin { position: absolute; left: 50%; top: 50.4%; transform: translate(-50%, -96%); }
.map-cta { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 14px 18px; background: rgba(7, 6, 6, .92); border: 1px solid var(--line); }
.map-cta p { flex: 1 1 220px; font-size: .78rem; line-height: 1.45; color: var(--muted); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0b0908; filter: grayscale(.3) contrast(1.05); }
.map.is-live > img, .map.is-live .map-pin, .map.is-live .map-cta { display: none; }
@media (max-width: 900px) {
  .venue { grid-template-columns: minmax(0, 1fr); margin-top: 54px; }
  .map { border-left: 0; border-top: 1px solid var(--line); min-height: 330px; }
}

/* ---------- Participer ---------- */
.join { padding: clamp(70px, 9vw, 130px) 0; background: var(--bg); border-top: 1px solid var(--line); }
.join-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-2); }
.join-card { position: relative; display: grid; grid-template-columns: 88px minmax(0, .7fr) minmax(0, 1.1fr) 19.5rem; gap: clamp(18px, 3vw, 46px); align-items: center; padding: clamp(24px, 3vw, 38px) 0 clamp(24px, 3vw, 38px) clamp(20px, 2.4vw, 34px); border-bottom: 1px solid var(--line); transition: background-color .25s, box-shadow .25s; }
.join-card:hover { background: rgba(255, 90, 31, .035); box-shadow: inset 3px 0 0 var(--or); }
.join-card .num { font: 900 clamp(2.2rem, 4vw, 3.8rem)/1 var(--head); color: transparent; -webkit-text-stroke: 1px var(--or); letter-spacing: -.04em; }
.join-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.join-card p { color: var(--muted); font-size: .96rem; line-height: 1.6; }
.join-card .btn { justify-self: stretch; justify-content: center; white-space: nowrap; }
@media (max-width: 900px) {
  .join-card { grid-template-columns: 54px minmax(0, 1fr); gap: 12px 18px; align-items: start; }
  .join-card h3 { align-self: center; }
  .join-card p { grid-column: 2; }
  .join-card .btn { grid-column: 2; }
}

/* ---------- Appel final ---------- */
.cta { position: relative; isolation: isolate; min-height: clamp(480px, 70vh, 720px); display: flex; align-items: center; overflow: hidden; background: var(--bg); border-top: 1px solid var(--line); }
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg > img { width: 100%; height: 100%; object-fit: cover; }
.cta-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 6, 6, .96) 0, rgba(7, 6, 6, .7) 46%, rgba(7, 6, 6, .2) 100%), linear-gradient(180deg, var(--bg-2) 0, rgba(7, 6, 6, 0) 24%); }
.cta::before { content: "2027"; position: absolute; right: -1vw; bottom: -4vw; font: 900 clamp(8rem, 24vw, 24rem)/.7 var(--head); color: transparent; -webkit-text-stroke: 1px rgba(247, 242, 232, .07); pointer-events: none; z-index: 0; }
.cta-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: clamp(70px, 10vw, 130px) 0; }
.cta-copy h2 { font-size: clamp(2.4rem, 5.4vw, 5rem); margin-bottom: 20px; }
.cta-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; max-width: 50ch; margin-bottom: 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-script { position: relative; justify-self: center; color: var(--or); font: 400 clamp(2.2rem, 3.8vw, 3.4rem)/1 var(--script); transform: rotate(-8deg); display: grid; justify-items: start; padding-bottom: 36px; pointer-events: none; }
.cta-script span:nth-child(2) { margin-left: .3em; }
.cta-script span:nth-child(3) { margin-left: .9em; font-size: 1.15em; }
.cta-script span:nth-child(4) { margin-left: 1.3em; font-size: 1.15em; }
.cta-palm { position: absolute; right: -76px; bottom: 34px; width: 64px; height: auto; transform: rotate(8deg); }
.cta-line { position: absolute; left: .3em; bottom: 0; width: 280px; height: auto; }
@media (max-width: 900px) {
  .cta-in { grid-template-columns: minmax(0, 1fr); padding: 70px 0 60px; gap: 44px; }
  .cta-script { justify-self: start; margin-left: 8px; font-size: 2.3rem; }
  .cta-palm { right: auto; left: 190px; bottom: 36px; width: 54px; }
  .cta-line { width: 230px; }
  .cta-shade { background: linear-gradient(180deg, rgba(7, 6, 6, .9), rgba(7, 6, 6, .55)); }
}

/* ---------- Pied de page ---------- */
.foot { position: relative; isolation: isolate; overflow: hidden; background: #050404; border-top: 1px solid var(--line-2); padding-top: clamp(56px, 7vw, 86px); }
.foot::before { content: "974"; position: absolute; right: -2vw; bottom: -5vw; z-index: -1; font: 900 clamp(8rem, 26vw, 24rem)/.7 var(--head); color: transparent; -webkit-text-stroke: 1px rgba(247, 242, 232, .05); pointer-events: none; }
.foot-art { position: absolute; right: -120px; bottom: -80px; width: min(760px, 70vw); height: auto; z-index: -1; opacity: .28; -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); mask-image: radial-gradient(closest-side, #000 40%, transparent); pointer-events: none; }
.foot-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); padding-bottom: 64px; }
.brand-foot img { height: 72px; width: auto; filter: saturate(1.4); }
.foot-tag { margin-top: 22px; font: 800 1.35rem/1.25 var(--head); letter-spacing: -.015em; max-width: 16ch; }
.foot-mail { display: inline-block; margin-top: 20px; font: 400 .94rem/1.4 var(--mono); color: var(--or-l); text-decoration: none; border-bottom: 1px solid var(--or); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.foot-mail:hover { color: #fff; border-color: #fff; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--or); border-color: var(--or); color: var(--ink); }
.foot-addr { margin-top: 18px; font-size: .9rem; line-height: 1.6; color: var(--soft); }
.foot-col .foot-h { font: 600 .68rem/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--or-l); padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.foot-col ul { display: grid; gap: 12px; }
.foot-col a { position: relative; display: inline-block; color: var(--muted); text-decoration: none; font-size: .94rem; line-height: 1.4; transition: color .2s, transform .2s; }
.foot-col a:hover { color: var(--text); transform: translateX(4px); }
.foot-bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 22px 0 28px; border-top: 1px solid var(--line); font: 400 .72rem/1.4 var(--mono); letter-spacing: .05em; color: var(--soft); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-legal a { text-decoration: none; }
.foot-legal a:hover { color: var(--text); text-decoration: underline; }
.foot-top { color: var(--or-l); text-decoration: none; font: 600 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.foot-top:hover { color: var(--text); }
.photo-credits { position: relative; margin: 0; padding: 0 0 26px; color: var(--soft); font: 400 .68rem/1.55 var(--mono); }
.photo-credits a { color: inherit; }
@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .foot { padding-top: 50px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 44px; }
  .brand-foot img { height: 62px; }
}

/* ---------- Intro volcanique (une fois par session) ---------- */
.boot { display: none; }
html.is-booting { overflow: hidden; }
html.is-booting body { overflow: hidden; }
html.is-booting .boot { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; overflow: hidden; background: #050404; border-bottom: 2px solid var(--or); box-shadow: 0 24px 70px rgba(255, 90, 31, .35); transition: transform .95s cubic-bezier(.76, 0, .24, 1); will-change: transform; }
.boot-heat { position: absolute; left: -10%; right: -10%; bottom: -38%; height: 86%; background: radial-gradient(ellipse at 50% 100%, rgba(255, 90, 31, .52), rgba(200, 65, 15, .16) 40%, transparent 68%); filter: blur(10px); }
.boot-embers { position: absolute; inset: 0; overflow: hidden; }
.boot-embers i { position: absolute; bottom: -14px; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 2px rgba(255, 90, 31, .6); opacity: 0; animation: ember 3.8s linear infinite; }
@keyframes ember { 0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; } 12% { opacity: .95; } 70% { opacity: .45; } 100% { transform: translate3d(var(--dx, 0px), -82vh, 0) scale(1.15); opacity: 0; } }
.boot-core { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; padding: 0 24px; transition: opacity .3s, transform .4s var(--ease); }
.boot-logo { width: clamp(196px, 25vw, 320px); height: auto; margin-bottom: 20px; filter: saturate(1.4) drop-shadow(0 0 52px rgba(255, 90, 31, .28)); }
.boot-year { font: 900 clamp(3rem, 8vw, 6rem)/.9 var(--head); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(247, 242, 232, .6); }
.boot-status { display: flex; align-items: center; gap: 18px; margin-top: 28px; font: 600 .66rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.boot-pct { min-width: 3ch; color: var(--gold); }
.boot-bar { width: min(320px, 62vw); height: 2px; margin-top: 12px; background: rgba(247, 242, 232, .14); }
.boot-bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--or-d), var(--or), var(--gold)); box-shadow: 0 0 16px rgba(255, 90, 31, .8); transition: transform .18s linear; }
.boot-crack { position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold), #fff, var(--gold), transparent); box-shadow: 0 0 24px 5px rgba(255, 90, 31, .6); animation: crack 1.5s .1s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes crack { 0% { width: 0; opacity: 0; } 35% { opacity: 1; } 100% { width: 118%; opacity: .9; } }
.boot-skip { position: absolute; right: clamp(16px, 3vw, 34px); bottom: clamp(16px, 3vw, 30px); z-index: 3; padding: 9px 15px; border: 1px solid var(--line-2); background: transparent; color: var(--soft); font: 600 .64rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: color .2s, border-color .2s; }
.boot-skip:hover, .boot-skip:focus-visible { color: var(--text); border-color: var(--or); }
.boot.is-done { transform: translateY(-101%); }
.boot.is-done .boot-core { opacity: 0; transform: translateY(-18px); }
@media (prefers-reduced-motion: reduce) { .boot { display: none !important; } }

/* ---------- Gouttes, coulées, lave ---------- */
.lava-rule { position: relative; height: 34px; overflow: hidden; background: transparent; }
.lava-rule::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 16%, var(--line-2) 84%, transparent); transform-origin: left; }
html.js .lava-rule::before { transform: scaleX(0); transition: transform 1.2s var(--ease); }
html.js .lava-rule.in::before { transform: scaleX(1); }
.lava-rule::after { content: ""; position: absolute; left: 0; top: 0; width: 28%; height: 1px; background: linear-gradient(90deg, transparent, var(--or), var(--gold), var(--or), transparent); opacity: .8; animation: lava-run 9s linear infinite; }
@keyframes lava-run { from { transform: translateX(-110%); } to { transform: translateX(430%); } }

/* numbers de section : ignition à l'entrée */
main > section[data-num]::before { transition: -webkit-text-stroke-color 1.4s var(--ease); }
main > section[data-num].in-view::before { -webkit-text-stroke-color: rgba(255, 90, 31, .22); }

/* filet de lave sous les titres de section */
.sec-head h2, .ctf-copy h2, .ctf-how h3 { position: relative; }
.sec-head h2::after, .ctf-copy h2::after, .ctf-how h3::after { content: ""; display: block; width: 68px; height: 2px; margin-top: 22px; background: linear-gradient(90deg, var(--or), var(--gold), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .15s; }
.sec-head.in h2::after, .ctf-copy.in h2::after, .ctf-how h3.in::after { transform: scaleX(1); }

/* logo : braise qui respire */
.hero-logo { animation: logo-braise 9s ease-in-out infinite alternate; }
@keyframes logo-braise {
  from { filter: saturate(1.35) drop-shadow(0 16px 40px rgba(0, 0, 0, .45)); }
  to { filter: saturate(1.5) drop-shadow(0 16px 46px rgba(255, 90, 31, .34)); }
}

/* boutons : lave qui coule */
.btn-primary { background-image: linear-gradient(110deg, var(--or-d), var(--or) 40%, var(--or-l) 50%, var(--or) 60%, var(--or-d)); background-size: 220% 100%; animation: lava-flow 9s linear infinite; }
@keyframes lava-flow { to { background-position: 220% 0; } }
.btn-primary:hover { background-color: var(--or-l); }

/* bandeau : reflet qui balaie */
.ticker { position: relative; }
.ticker::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 18%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); pointer-events: none; animation: ticker-sheen 7s ease-in-out infinite; }
@keyframes ticker-sheen { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(680%); } }

/* cartes : filet de lave qui monte au survol */
.feat::after { transition: transform .6s var(--ease); }
.join-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--or), var(--gold), transparent); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.join-card:hover::after { transform: scaleY(1); }

/* barres du bilan : reflet de lave */
.bars i { overflow: hidden; }
.bars i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); animation: bars-sheen 3.6s ease-in-out infinite; }
@keyframes bars-sheen { 0%, 100% { opacity: 0; transform: translateX(-100%); } 50% { opacity: 1; transform: translateX(100%); } }

/* ---------- La coulée : une veine de lave qui descend le long d'un filet ---------- */
@keyframes pour { from { background-position: 0 -110%; } to { background-position: 0 210%; } }

/* ---------- Faisceau qui parcourt le contour des boutons ---------- */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: conic-gradient(from var(--beam),
    transparent 0 62%,
    rgba(255, 196, 138, .5) 74%,
    var(--gold) 83%,
    rgba(255, 90, 31, .9) 88%,
    transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: beam-spin 5.2s linear infinite paused;
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.btn:hover::before, .btn:focus-visible::before { opacity: 1; animation-play-state: running; }
@keyframes beam-spin { to { --beam: 360deg; } }
.btn-sm::before { padding: .5px; }

/* ---------- Boutons magnétiques ---------- */
.btn { --tx: 0px; --ty: 0px; transform: translate3d(var(--tx), var(--ty), 0); transition: transform .18s var(--ease), color .25s, border-color .25s, background-color .25s; }
.btn-primary:hover { transform: translate3d(var(--tx), calc(var(--ty) - 2px), 0); }

/* ---------- Titres : le voile se lève ---------- */
html.js .rv h1, html.js .rv h2 { transition: clip-path 1.05s var(--ease) .06s; }
html.js .rv:not(.in) h1, html.js .rv:not(.in) h2 { clip-path: inset(0 0 108% 0); animation: veil-failsafe .01s 3.6s forwards; }
html.js .rv.in h1, html.js .rv.in h2 { clip-path: inset(-10% -6% -12% -6%); }
@keyframes veil-failsafe { to { clip-path: inset(-10% -6% -12% -6%); } }

/* ---------- Accroche du hero : les mots montent un par un ---------- */
.hero-tag .tag-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-tag .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
.hero-tag .w > span { display: inline-block; transform: translateY(115%) rotate(2deg); transition: transform 1s var(--ease), opacity .6s; opacity: 0; }
html.booted .hero-tag .w > span { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-tag .w > span { transform: none; opacity: 1; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); max-width: min(92vw, 520px); padding: 14px 20px; background: var(--panel-2); border: 1px solid var(--or); border-left-width: 4px; color: var(--text); font: 400 .86rem/1.5 var(--mono); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* mode « hacker » (code Konami) */
html.hacked body { filter: hue-rotate(-24deg) saturate(1.3); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero-art > img { animation: none; }
  .ticker-track { animation: none; }
  .hero-scroll i { animation: none; }
  .lava-rule::after, .ticker::after, .bars i::before, .btn::before { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .btn:not(.btn-sm) { min-height: 50px; padding: 0 18px; white-space: normal; text-align: center; }
  .btn:not(.btn-sm) .bi { justify-content: center; }
  .cta-actions .btn { width: 100%; }
}
