:root {
  --bg: #050d2b;
  --bg-2: #0a1a4f;
  --blue: #2457ff;
  --sky: #4fb3ff;
  --cyan: #5ce1f0;
  --violet: #7b5cff;
  --mint: #5fe3b0;
  --text: #eef3ff;
  --soft: rgba(238, 243, 255, 0.74);
  --muted: rgba(238, 243, 255, 0.66);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-2: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.12);
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --pad: clamp(18px, 5vw, 56px);
  --max: 1220px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
html, body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh;
  background: radial-gradient(1200px 800px at 80% -10%, #12308f 0%, transparent 60%), linear-gradient(180deg, var(--bg) 0%, #071640 60%, var(--bg) 100%);
  color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
main { position: relative; z-index: 2; }
main:focus { outline: none; }
::selection { background: var(--sky); color: var(--bg); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Aurore en fond (dégradés radiaux, sans flou coûteux) */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; background: radial-gradient(closest-side, var(--c) 0%, transparent 72%); }
.aurora span:nth-child(1) { --c: rgba(36,87,255,.55); top: -25vmax; left: -20vmax; animation: float1 22s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { --c: rgba(123,92,255,.32); bottom: -30vmax; right: -25vmax; animation: float2 26s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { --c: rgba(25,184,230,.25); top: 35%; left: 40%; width: 50vmax; height: 50vmax; animation: float3 30s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate(18vmax, 14vmax) scale(1.15); } }
@keyframes float2 { to { transform: translate(-16vmax, -10vmax) scale(.9); } }
@keyframes float3 { to { transform: translate(-22vmax, 12vmax) scale(1.2); } }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); transition: background .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { background: rgba(5, 13, 43, 0.82); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-logos { display: flex; align-items: center; gap: 8px; transition: transform .5s var(--spring); }
.brand:hover .brand-logos { transform: rotate(-4deg) scale(1.04); }
.brand-logos .b-ukag { width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 1px; box-shadow: 0 6px 20px -6px rgba(79,179,255,.8); }
.brand-logos .b-promo { height: 28px; width: auto; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-tag { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--cyan); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--soft); padding: 9px 13px; border-radius: 999px; transition: color .2s, background .2s; }
.site-nav a:hover, .site-nav a.is-active { color: #fff; background: var(--glass); }
.site-nav .nav-cta, .site-nav .nav-cta.is-active { color: #fff; background: linear-gradient(135deg, #1f4be6, #2457ff 60%, #1a56c4); box-shadow: 0 8px 24px -10px rgba(36, 87, 255, .9); padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 640px) { .hide-sm { display: none; } }
@media (max-width: 440px) { :root { --header-h: 58px; } .hide-xs, .brand-tag, .brand-logos .b-promo { display: none; } .brand-name { font-size: 18px; } }

/* Commun */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(56px, 10vw, 120px) 0; }
.eyebrow { display: flex; width: fit-content; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.h1, .h2, .h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; margin: 0; }
.h1 { font-size: clamp(44px, 10vw, 104px); line-height: .95; }
.h2 { font-size: clamp(32px, 6vw, 60px); line-height: 1; }
.h3 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.1; letter-spacing: -0.02em; }
.grad-text, .accent { background: linear-gradient(100deg, #fff 10%, var(--cyan) 45%, var(--sky) 70%, #b9a8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--soft); max-width: 36em; margin: 18px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.word { display: inline-block; overflow: hidden; vertical-align: top; white-space: nowrap; padding-bottom: .16em; margin-bottom: -.1em; }
.word > span { display: inline-block; padding-right: .04em; transform: translateY(105%); animation: wordup .9s var(--ease) forwards; }
@keyframes wordup { to { transform: none; } }

.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .35s var(--spring), box-shadow .3s ease, background .3s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-shine, .btn-primary { color: #fff; background: linear-gradient(135deg, #1f4be6 0%, #2457ff 60%, #1a56c4 100%); box-shadow: 0 14px 34px -12px rgba(36, 87, 255, .95); }
.btn-shine::after, .btn-primary::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: translateX(-150%) skewX(-20deg); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 55% { transform: translateX(-150%) skewX(-20deg); } 100% { transform: translateX(350%) skewX(-20deg); } }
.btn-glass, .btn-quiet { color: #fff; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover, .btn-quiet:hover { background: var(--glass-2); }
.btn-mint, .btn-green { color: #052b22; background: linear-gradient(135deg, var(--mint), var(--cyan)); }
.btn[disabled] { opacity: .55; filter: saturate(.4); pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.link-arrow { font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: var(--cyan); }
.link-arrow::after { content: "→"; transition: transform .3s var(--spring); }
.link-arrow:hover::after { transform: translateX(5px); }
.back { display: flex; width: fit-content; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--soft); text-decoration: none; margin-bottom: 22px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--glass); }
.back::before { content: "←"; }
.glass { background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0,0,0,.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: var(--radius); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.fade-in { animation: fadein .6s var(--ease) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } }

/* Héros : mur de photos qui défile */
.hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: center; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 46px) 0 80px; }
.photo-wall { position: absolute; inset: -10% -20%; display: grid; gap: 14px; align-content: center; transform: rotate(-9deg); opacity: .55; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, #000 30%, transparent 75%); }
.wall-row { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.wall-row:nth-child(2) { animation-direction: reverse; animation-duration: 75s; }
.wall-row:nth-child(3) { animation-duration: 90s; }
.wall-row img { height: clamp(140px, 22vh, 230px); width: auto; border-radius: 18px; object-fit: cover; }
.wall-row img.portrait { background: linear-gradient(160deg, #e9eefc, #c9d6f7); object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,13,43,.92) 0%, rgba(5,13,43,.55) 55%, rgba(5,13,43,.2) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
@media (max-width: 760px) { .hero::after { background: linear-gradient(0deg, var(--bg) 6%, rgba(5,13,43,.74) 50%, rgba(5,13,43,.35) 100%); } .photo-wall { opacity: .7; } }
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero .h1 { max-width: 12ch; }
.logos { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; }
.logos .logo-ukag { width: 58px; height: 58px; border-radius: 50%; background: #fff; padding: 2px; }
.logos .logo-promo { width: 160px; height: auto; }
.logos-sep { width: 1px; height: 44px; background: rgba(255,255,255,.3); }
@media (max-width: 560px) { .hero .logos .logo-ukag { width: 46px; height: 46px; } .hero .logos .logo-promo { width: 120px; } }
.toss { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: none; color: var(--soft); font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; }
.toss svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linejoin: round; transition: transform .6s var(--spring); }
.toss:hover svg { transform: translateY(-6px) rotate(-18deg); }
.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 40px; max-width: 520px; }
.stat { padding: 16px; border-radius: 18px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(28px, 5vw, 40px); line-height: 1; letter-spacing: -0.03em; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Journées en carrousel */
.days-scroller { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 30px calc(50% - 50vw) 0; padding: 10px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))) 40px; scroll-padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); scrollbar-width: none; }
.days-scroller::-webkit-scrollbar { display: none; }
.day-card { --c1: #2457ff; --c2: #4fb3ff; flex: 0 0 min(76vw, 300px); scroll-snap-align: start; position: relative; aspect-ratio: 3/4; border-radius: 26px; overflow: hidden; text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s ease; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c1) 80%, transparent); }
.day-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.day-card:hover img { transform: scale(1.07); }
.day-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--c1) 92%, black) 100%), linear-gradient(135deg, color-mix(in srgb, var(--c1) 40%, transparent), color-mix(in srgb, var(--c2) 20%, transparent)); }
.day-card .day-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; }
.day-card .day-num { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: .8; color: rgba(255,255,255,.22); position: absolute; top: 16px; right: 18px; z-index: 2; }
.day-card .day-title { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.03em; margin: 0; }
.day-card .day-meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.day-card.is-empty { background: linear-gradient(140deg, var(--c1), var(--c2)); }
.day-card.is-empty .empty-art { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.day-card.is-empty .empty-art svg { width: 46%; opacity: .25; fill: none; stroke: #fff; stroke-width: 1.2; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-4deg); } }

/* Félicitations : les deux diplômés */
.laureats-in { position: relative; display: grid; gap: 10px; align-items: end; overflow: hidden; padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 56px) 0; }
@media (min-width: 860px) { .laureats-in { grid-template-columns: 1fr 1.1fr; gap: 40px; } }
.laureats-text { padding-bottom: clamp(28px, 5vw, 60px); }
.laureats-duo { position: relative; height: clamp(300px, 44vw, 500px); }
.laureats-duo::before { content: ""; position: absolute; left: 50%; bottom: 0; width: min(92%, 500px); aspect-ratio: 1; transform: translate(-50%, 36%); border-radius: 50%; background: radial-gradient(circle at 40% 30%, #4fb3ff, #2457ff 50%, #0a1f7a); box-shadow: 0 0 120px 20px rgba(36,87,255,.45); }
.duo { position: absolute; bottom: 0; height: 100%; width: auto; max-width: none; -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.duo-a { left: 50%; height: 96%; transform: translateX(-100%); opacity: 0; }
.duo-b { left: 50%; transform: translateX(0); opacity: 0; }
.duo-a.is-in { transform: translateX(-90%); opacity: 1; }
.duo-b.is-in { transform: translateX(-10%); opacity: 1; }
@media (max-width: 560px) { .laureats-duo { height: 64vw; } .duo-a.is-in { transform: translateX(-88%); } .duo-b.is-in { transform: translateX(-14%); } }

/* Étapes */
.steps { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 26px; position: relative; overflow: hidden; }
.step-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 12px 30px -10px rgba(79,179,255,.8); }
.step:nth-child(2) .step-icon { background: linear-gradient(135deg, var(--violet), var(--sky)); }
.step:nth-child(3) .step-icon { background: linear-gradient(135deg, #0b8f9e, var(--mint)); }
.step-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; margin: 20px 0 0; }
.step p { margin: 8px 0 0; color: var(--soft); }
.step-num { position: absolute; right: 18px; top: 8px; font-family: var(--display); font-weight: 800; font-size: 90px; line-height: 1; color: rgba(255,255,255,.05); }

/* Historique */
.timeline { position: relative; display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 760px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.ed-card { display: block; text-decoration: none; padding: 12px; transition: transform .5s var(--spring); }
.ed-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.ed-card .ed-media { aspect-ratio: 5/4; border-radius: 16px; overflow: hidden; position: relative; background: linear-gradient(135deg, #142a6e, #1d3f9e); }
.ed-card .ed-media img { width: 100%; height: 100%; object-fit: cover; }
.ed-card .ed-empty { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 80px; color: rgba(255,255,255,.12); }
.ed-card .ed-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 6px 4px; }
.ed-card .ed-title { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin: 0; }
.ed-card .ed-sub { font-size: 13px; color: var(--muted); margin: 0; }
.ed-card .badge { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--glass-2); color: var(--soft); white-space: nowrap; }
.ed-card .badge.live { background: linear-gradient(135deg, var(--mint), var(--cyan)); color: #052b22; }
.ed-card.is-soon { pointer-events: none; opacity: .75; }

.privacy { padding: clamp(28px, 6vw, 60px); display: grid; gap: 28px; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 860px) { .privacy { grid-template-columns: 1.4fr 1fr; } }
.shield { justify-self: center; width: min(240px, 60vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative; }
.shield::before, .shield::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(92,225,240,.4); animation: ripple 3.2s ease-out infinite; }
.shield::after { animation-delay: 1.6s; }
@keyframes ripple { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }
.shield svg { width: 42%; fill: none; stroke: var(--cyan); stroke-width: 1.4; filter: drop-shadow(0 0 18px rgba(92,225,240,.6)); }

/* Pages intérieures */
.page-head { padding-top: clamp(20px, 5vw, 56px); padding-bottom: clamp(20px, 4vw, 36px); }
.day-hero { --c1: #2457ff; --c2: #4fb3ff; position: relative; border-radius: 30px; overflow: hidden; padding: clamp(26px, 6vw, 64px); min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(135deg, var(--c1), var(--c2)); isolation: isolate; }
.day-hero .bg { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; opacity: .45; mix-blend-mode: luminosity; }
.day-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.day-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--c1) 85%, black) 100%); }
.day-hero .eyebrow { color: #fff; }
.day-hero .lead { color: rgba(255,255,255,.88); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 18px var(--pad) 16px; margin: 0 calc(var(--pad) * -1); scrollbar-width: none; position: sticky; top: var(--header-h); z-index: 5; background: linear-gradient(#050d2b 72%, rgba(5,13,43,0)); }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(5,13,43,.6); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--soft); cursor: pointer; transition: all .3s var(--spring); }
.chip:hover { color: #fff; }
.chip.is-on { color: #fff; background: linear-gradient(135deg, #1f4be6, #2457ff 60%, #1a56c4); box-shadow: 0 8px 22px -10px rgba(79,179,255,.9); transform: scale(1.04); }
.gallery { columns: 2 150px; column-gap: 8px; }
@media (min-width: 760px) { .gallery { columns: 3 220px; column-gap: 14px; } }
@media (min-width: 1100px) { .gallery { columns: 4 220px; } }
.tile { break-inside: avoid; margin: 0 0 8px; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.06); cursor: zoom-in; position: relative; border: 0; padding: 0; width: 100%; display: block; opacity: 0; transform: translateY(24px) scale(.96) rotate(var(--r, 0deg)); transition: opacity .7s var(--ease), transform .7s var(--spring); }
@media (min-width: 760px) { .tile { margin-bottom: 14px; } }
.tile.is-in { opacity: 1; transform: none; }
.tile[hidden], .tile-wrap[hidden] { display: none; }
.tile img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile-wrap { position: relative; break-inside: avoid; margin: 0 0 8px; opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .7s var(--ease), transform .7s var(--spring); }
@media (min-width: 760px) { .tile-wrap { margin-bottom: 14px; } }
.tile-wrap.is-in { opacity: 1; transform: none; }
.tile-wrap .tile { margin: 0; opacity: 1; transform: none; }
.tile-wrap .check { position: absolute; top: 6px; right: 6px; z-index: 3; width: 44px; height: 44px; border: 0; cursor: pointer; border-radius: 50%; background: rgba(5,13,43,.6); box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); color: #fff; font-size: 20px; font-weight: 700; display: grid; place-items: center; transition: transform .35s var(--spring), background .25s; }
.tile-wrap .check[aria-pressed="true"] { background: linear-gradient(135deg, var(--mint), var(--cyan)); color: #052b22; box-shadow: none; transform: scale(1.06); }
.tile-wrap.is-me .tile { box-shadow: 0 0 0 3px var(--mint), 0 16px 40px -16px rgba(95,227,176,.8); }
.empty-day { padding: clamp(36px, 8vw, 70px); text-align: center; margin-top: 24px; }
.empty-day .muted { margin: 10px auto 18px; max-width: 30em; }
.day-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.day-pager a { text-decoration: none; padding: 18px; }
.day-pager small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.day-pager span { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.day-pager .next { text-align: right; grid-column: 2; }

/* Visionneuse */
.viewer { position: fixed; inset: 0; z-index: 50; background: #03081c; color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: vfade .35s ease; }
@keyframes vfade { from { opacity: 0; } }
.viewer[hidden] { display: none; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.viewer-count { font-size: 13px; font-weight: 600; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--glass); display: grid; place-items: center; cursor: pointer; }
span.icon-btn { background: none; }
.icon-btn svg, .viewer-nav svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.viewer-stage { position: relative; display: grid; place-items: center; min-height: 0; height: 100%; overflow: hidden; padding: 0 10px; }
.viewer-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 14px; user-select: none; animation: vpop .5s var(--spring); }
@keyframes vpop { from { opacity: 0; transform: scale(.92); } }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--glass-2); color: #fff; display: grid; place-items: center; cursor: pointer; }
.viewer-nav.prev { left: 14px; } .viewer-nav.next { right: 14px; }
@media (max-width: 700px) { .viewer-nav { top: auto; bottom: 10px; transform: none; width: 46px; height: 46px; background: rgba(0,0,0,.5); } }
.viewer-info { padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
.viewer-meta { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); text-align: center; }
.viewer-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.viewer-actions .btn { min-height: 46px; padding: 0 18px; font-size: 14px; }

/* Recherche */
.search-shell { max-width: 620px; margin: 0 auto; }
.panel { padding: clamp(22px, 5vw, 38px); background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0,0,0,.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: var(--radius); }
.field { display: grid; gap: 8px; margin-top: 20px; }
.field label { font-size: 13px; font-weight: 700; color: var(--soft); }
.select, .input, .textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 0; background: rgba(5,13,43,.55); box-shadow: inset 0 0 0 1px var(--line); font: inherit; color: #fff; appearance: none; -webkit-appearance: none; }
.select option { color: #0a1a4f; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' fill='none' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.textarea { min-height: 110px; resize: vertical; }
.select:focus, .input:focus, .textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--sky); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.field-error { color: #ffd2d2; font-size: 13px; margin: 6px 0 0; min-height: 1em; }
.selfie-drop { margin-top: 22px; display: grid; place-items: center; gap: 16px; text-align: center; padding: 30px 18px; border-radius: 20px; background: rgba(5,13,43,.4); box-shadow: inset 0 0 0 1.5px rgba(92,225,240,.35); cursor: pointer; }
.selfie-drop:has(+ input:focus-visible), .drop:has(+ input:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
.selfie-ring { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; padding: 4px; background: conic-gradient(from 0deg, var(--blue), var(--cyan), var(--violet), var(--blue)); animation: spin 6s linear infinite; }
.selfie-ring > * { animation: spin 6s linear infinite reverse; }
.selfie-ring .inner { width: 100%; height: 100%; border-radius: 50%; background: #0a1a4f; display: grid; place-items: center; overflow: hidden; }
.selfie-ring svg { width: 50px; height: 50px; stroke: #fff; stroke-width: 1.4; fill: none; }
.selfie-ring img { width: 100%; height: 100%; object-fit: cover; }
@keyframes spin { to { transform: rotate(360deg); } }
.alt-pick { display: block; text-align: center; margin: 12px 0 0; }
.alt-pick label { cursor: pointer; }
.radar { position: relative; width: 200px; height: 200px; margin: 26px auto 10px; }
.radar .face { position: absolute; inset: 30px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px rgba(92,225,240,.6), 0 0 40px rgba(92,225,240,.5); }
.radar .face img { width: 100%; height: 100%; object-fit: cover; }
.radar .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(92,225,240,.5); animation: ripple 2s ease-out infinite; }
.radar .ring:nth-child(2) { animation-delay: .66s; } .radar .ring:nth-child(3) { animation-delay: 1.33s; }
.radar .sweep { position: absolute; inset: 30px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 70%, rgba(92,225,240,.55)); animation: spin 1.6s linear infinite; }
.radar .dots { position: absolute; inset: 30px; border-radius: 50%; }
.radar .dots i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); opacity: 0; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 1; } }
.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 13px; color: var(--soft); }
.note svg { flex: none; width: 18px; height: 18px; stroke: var(--mint); stroke-width: 1.8; fill: none; margin-top: 2px; }
.progress { height: 6px; background: rgba(255,255,255,.1); border-radius: 6px; overflow: hidden; margin-top: 18px; }
.progress span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--mint)); transition: width .3s ease; }
.results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.refine { padding: 16px 18px; font-size: 14px; margin-bottom: 20px; color: var(--soft); background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius); }
.refine strong { color: #fff; }
.demo-flag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); background: rgba(92,225,240,.12); border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }

/* Carte souvenir */
.souvenir-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 880px) { .souvenir-layout { grid-template-columns: 1fr 380px; } }
.souvenir-canvas { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(36,87,255,.7); animation: vpop .6s var(--spring); }
.seg { display: inline-flex; flex-wrap: wrap; background: rgba(5,13,43,.55); border-radius: 999px; padding: 4px; gap: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: transparent; min-height: 40px; padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--soft); cursor: pointer; transition: all .3s var(--spring); }
.seg button.is-on { background: linear-gradient(135deg, #1f4be6, #2457ff 60%, #1a56c4); color: #fff; }

/* Contributeur */
.drop { margin-top: 22px; display: block; border-radius: 20px; padding: 34px 18px; text-align: center; background: rgba(5,13,43,.4); box-shadow: inset 0 0 0 2px rgba(92,225,240,.3); cursor: pointer; transition: all .3s ease; }
.drop.is-over { background: rgba(36,87,255,.22); box-shadow: inset 0 0 0 2px var(--cyan); }
.drop svg { width: 40px; height: 40px; stroke: var(--cyan); fill: none; stroke-width: 1.6; margin: 0 auto 10px; display: block; animation: bob 3s ease-in-out infinite; }
.drop strong { display: block; font-size: 16px; }
.upload-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.upload-list li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; animation: vpop .5s var(--spring); }
.upload-list img { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; background: rgba(255,255,255,.08); }
.upload-list .name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-list .state { font-size: 12px; color: var(--muted); }
.upload-list .state.ok { color: var(--mint); font-weight: 700; }
.upload-list .progress { margin-top: 6px; height: 4px; }
input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--blue); }
.prose { max-width: 700px; }
.prose h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 26px; line-height: 1.15; margin: 36px 0 6px; }
.prose p { color: var(--soft); }

/* Pied de page */
.site-footer { position: relative; z-index: 2; margin-top: clamp(40px, 8vw, 100px); padding: 52px 0 calc(40px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(36,87,255,.18)); box-shadow: 0 -1px 0 var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; margin: 0; }
.footer-brand span { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; color: var(--cyan); font-weight: 700; margin-left: 6px; }
.footer-text { color: var(--soft); max-width: 34em; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 14px; margin: 14px 0 0; }
.footer-links a { text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--cyan); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: linear-gradient(135deg, #1f4be6, #2457ff 60%, #1a56c4); color: #fff; font-weight: 600; padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .4s var(--spring); z-index: 60; max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Mode allégé : téléphones modestes, économie de données */
.lite .aurora span, .lite .btn-shine::after, .lite .btn-primary::after, .lite .wall-row:nth-child(3) { animation: none; }
.lite .glass, .lite .panel, .lite .refine, .lite .btn-glass, .lite .btn-quiet, .lite .day-meta, .lite .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
.lite .glass, .lite .panel { background: rgba(14,28,78,.92); }
@media (max-width: 700px) {
  .glass, .panel, .refine, .btn-glass, .btn-quiet, .day-meta { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass, .panel { background: linear-gradient(160deg, rgba(22,40,104,.92), rgba(12,26,72,.92)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .tile, .tile-wrap, .duo { opacity: 1; transform: none; }
  .word > span { transform: none; }
}

/* Logo Instant Photo dans l'en-tête */
.brand-mark { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 6px 20px -6px rgba(79, 179, 255, .8); transition: transform .5s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }
.brand-mark svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 440px) { .brand-mark { width: 32px; height: 32px; } }
/* Pied de page : crédits */
.footer-logos { margin-bottom: 20px; }
.footer-brand span { text-transform: none; letter-spacing: .04em; }
.credits { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.credits img { height: 26px; width: auto; opacity: .92; }
.credits img + .credits-sep + img { height: 30px; }
.credits-sep { color: var(--muted); }

/* ===== Version sobre et premium : effets « tendance » retirés ===== */
.eyebrow::before { display: none; }
.eyebrow { letter-spacing: .14em; font-weight: 600; color: #9fc4ff; }
.grad-text, .accent { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #9fd0ff; }
.btn-shine::after, .btn-primary::after { display: none; }
.btn-shine, .btn-primary, .site-nav .nav-cta, .site-nav .nav-cta.is-active { background: #2457ff; box-shadow: none; }
.btn-shine:hover, .btn-primary:hover { background: #1d47e0; }
.btn:hover { transform: none; }
.chip.is-on, .seg button.is-on, .toast { background: #2457ff; box-shadow: none; transform: none; }
.brand-mark { box-shadow: none; background: #2457ff; }
.brand:hover .brand-mark { transform: none; }
.aurora span { animation: none; opacity: .7; }
.aurora span:nth-child(2) { --c: rgba(36,87,255,.22); }
.glass, .panel, .refine { box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); background: rgba(255,255,255,.045); }
.day-card { box-shadow: none; }
.day-card::before { background: linear-gradient(180deg, transparent 45%, rgba(5,13,43,.88) 100%); }
.day-card .day-num { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; line-height: 1; color: rgba(255,255,255,.85); top: 18px; right: auto; left: 20px; }
.day-card .day-meta { background: rgba(5,13,43,.55); backdrop-filter: none; -webkit-backdrop-filter: none; }
.day-card.is-empty { background: #10215e; }
.day-card.is-empty .empty-art svg { animation: none; }
.step-num { display: none; }
.step-icon, .step:nth-child(2) .step-icon, .step:nth-child(3) .step-icon { background: rgba(255,255,255,.08); box-shadow: none; }
.step-icon svg { stroke: #9fd0ff; }
.ed-card:hover { transform: none; }
.ed-card .badge.live { background: rgba(159,208,255,.15); color: #cfe3ff; }
.shield::before, .shield::after { display: none; }
.shield svg { filter: none; stroke: #9fd0ff; }
.laureats-duo::before { box-shadow: none; background: #1a3db8; }
.selfie-ring { background: rgba(255,255,255,.12); animation: none; padding: 2px; }
.selfie-ring > * { animation: none; }
.radar .sweep, .radar .dots { display: none; }
.radar .face { box-shadow: 0 0 0 2px #9fd0ff; }
.radar .ring { border-color: rgba(159,208,255,.35); }
.progress span { background: #9fd0ff; }
.tile { transform: none; }
.tile.is-in { transform: none; }
.tile:hover img { transform: scale(1.03); }
.demo-flag { color: #cfe3ff; background: rgba(255,255,255,.08); }
.drop svg { animation: none; }
.tile-wrap .check[aria-pressed="true"] { background: #2457ff; color: #fff; }
.tile-wrap.is-me .tile { box-shadow: 0 0 0 3px #9fd0ff; }
.wall-row img.portrait { background: #dfe7fb; }
.photo-wall { opacity: .45; }
/* Université (logo UKAG seul) */
.uni { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; }
.uni img { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 2px; flex: none; }
.uni span { display: grid; font-size: 13px; color: var(--soft); line-height: 1.45; }
.uni strong { color: #fff; font-size: 15px; font-weight: 600; }
.footer-uni { margin-bottom: 22px; }
.logos { display: none; }
/* Cadre photo */
.cadre-stage canvas { cursor: grab; touch-action: none; }
.cadre-stage canvas:active { cursor: grabbing; }
.small-drop { padding: 18px; }
.small-drop svg { width: 26px; height: 26px; margin-bottom: 6px; }
.range { width: 100%; accent-color: #2457ff; min-height: 32px; }
.souvenir-canvas { box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); animation: none; }
/* Choix de couleur du cadre */
.swatches{display:flex;flex-wrap:wrap;gap:8px}
.swatches button{display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 14px 6px 6px;border-radius:999px;border:0;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);color:inherit;font:600 14px var(--f-body,inherit);cursor:pointer}
.swatches button i{width:32px;height:32px;border-radius:50%;box-shadow:inset 0 0 0 2px rgba(255,255,255,.25)}
.swatches button.is-on{box-shadow:inset 0 0 0 2px #9fd0ff;background:rgba(159,208,255,.1)}
.search-error{margin:4px 0 14px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(159,208,255,.35);color:#dbe9ff;font-size:14px;line-height:1.5}
