/* OVH : www2/assets/css/gd.css — Glorious Days V2 */

/* ============ Tokens ============ */
:root {
  --bg: #170709;
  --side: #110406;
  --text: #FFF4EF;
  --muted: #E6CBC3;
  --muted-2: #C9A59C;
  --side-link: #F3DCD4;
  --gold: #F3A30B;
  --gold-2: #F6B73C;
  --gold-hover: #FFC14D;
  --ok: #6FE3A1;
  --error: #FF8A7A;
  --card: #22080C;
  --card-2: #24090D;
  --ink: #1C0A0A;
  --line: rgba(255, 244, 239, .08);
  --line-2: rgba(255, 244, 239, .12);
  --line-gold: rgba(243, 163, 11, .35);
  --f-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --side-w: 300px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-head); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: rgba(243, 163, 11, .35); color: #fff; }
input::placeholder { color: #A88A83; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 12px;
  background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

.grad {
  background: linear-gradient(90deg, #F6B73C, #E8741A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--f-head); font-size: 14px; font-weight: 700;
  letter-spacing: .12em; color: var(--gold);
}

/* ============ Shell ============ */
.shell {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============ Side menu ============ */
.side {
  background: var(--side);
  border-right: 1px solid var(--line);
  position: relative;
  z-index: 10;
  view-transition-name: gd-side;
}
.side__inner {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 244, 239, .15) transparent;
  padding: 30px 22px;
  display: flex; flex-direction: column; gap: 26px;
}
.side__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.side__panel-inner { display: flex; flex-direction: column; gap: 22px; }

.brand {
  display: flex; align-items: center; gap: 14px;
  padding: 0 6px; color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand img { width: 58px; height: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: scale(1.05) rotate(-2deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--f-head); font-size: 17px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.brand__tag { font-size: 13px; color: var(--muted-2); }

.burger {
  display: none;
  width: 48px; height: 48px; flex: none;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(36, 9, 13, .7); color: var(--text); cursor: pointer;
}
.burger__close { display: none; }
.side.is-open .burger__open { display: none; }
.side.is-open .burger__close { display: block; }

.side-link {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 52px; padding: 0 16px;
  border-radius: 14px;
  color: var(--side-link); text-decoration: none;
  font-family: var(--f-head); font-size: 16px; font-weight: 600;
  transition: background-color .2s ease, color .2s ease;
}
.side-link:hover { background: rgba(255, 244, 239, .06); color: var(--text); }
.side-link svg { flex: none; }
.side-link.is-active {
  background: rgba(243, 163, 11, .14);
  box-shadow: inset 0 0 0 1px var(--line-gold);
  color: var(--gold-2); font-weight: 700;
}

/* Langue (details/summary natif) */
.lang { position: relative; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lang__btn { cursor: pointer; list-style: none; user-select: none; }
.lang__btn::-webkit-details-marker { display: none; }
.lang__code { margin-left: auto; font-size: 14px; color: var(--muted-2); }
.lang__chev { transition: transform .25s var(--ease); }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__list {
  list-style: none; margin: 6px 0 0; padding: 6px;
  border-radius: 14px; background: #1E080B; border: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 2px;
  animation: drop .22s var(--ease);
}
.lang__item { min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--text); font-family: var(--f-body); font-weight: 500; }
.lang__tick { margin-left: auto; color: var(--gold); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

.flag {
  display: inline-block; flex: none;
  width: 26px; height: 18px; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}
.flag--EN { background: linear-gradient(#3C3B6E, #3C3B6E) 0 0 / 44% 54% no-repeat, repeating-linear-gradient(#B22234 0 7.7%, #FFFFFF 7.7% 15.4%); }
.flag--JP { background: radial-gradient(circle at 50% 50%, #BC002D 0 26%, #FFFFFF 27%); }
.flag--DE { background: linear-gradient(#000000 0 33.3%, #DD0000 33.3% 66.6%, #FFCE00 66.6%); }
.flag--FR { background: linear-gradient(90deg, #0055A4 0 33.3%, #FFFFFF 33.3% 66.6%, #EF4135 66.6%); }
.flag--PT { background: radial-gradient(circle at 50% 50%, #002776 0 20%, transparent 21%), radial-gradient(ellipse 44% 40% at 50% 50%, #FEDF00 0 98%, transparent 100%), #009C3B; }
.flag--ES { background: linear-gradient(#AA151B 0 25%, #F1BF00 25% 75%, #AA151B 75%); }

.pill {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 50px; padding: 0 20px 0 22px;
  border-radius: 999px; border: 1px solid rgba(255, 244, 239, .25);
  background: rgba(36, 9, 13, .7);
  color: var(--text); text-decoration: none;
  font-family: var(--f-head); font-size: 15px; font-weight: 700;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.pill:hover { color: var(--text); border-color: var(--gold); box-shadow: 0 0 26px -4px rgba(243, 163, 11, .45); }
.pills { display: flex; flex-direction: column; gap: 10px; }
.pill.is-active { border-color: var(--line-gold); background: rgba(243, 163, 11, .14); color: var(--gold-2); }
.pill.is-active:hover { color: var(--gold-2); }

.nav { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line); }

.socials { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 6px; font-size: 14px; font-weight: 600; }
.socials a { color: var(--muted); text-decoration: none; }
.socials a:hover { color: var(--gold-hover); }

.arrow { transition: transform .3s var(--ease); }
a:hover > .arrow, button:hover > .arrow, a:hover .btn__circle svg { transform: translateX(4px); }
.pill:hover > .arrow, a:hover .btn__circle svg.ext { transform: translate(2px, -2px); }

/* ============ Main ============ */
.main {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  outline: none;
}
.watermark {
  position: absolute; z-index: 0;
  right: 2%; top: -10px;
  width: min(700px, 70vw);
  aspect-ratio: 1085 / 796;
  pointer-events: none;
  view-transition-name: gd-watermark;
}
.watermark__glow {
  position: absolute; left: -25%; right: -25%; top: -30%; bottom: -35%;
  background: radial-gradient(ellipse 50% 50% at 50% 45%, rgba(140, 24, 26, .42) 0%, rgba(110, 16, 21, .24) 35%, rgba(70, 12, 18, .1) 60%, rgba(23, 7, 9, 0) 100%);
  filter: blur(30px);
}
.watermark img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: .3; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 60% 58% at 50% 42%, #000 30%, rgba(0, 0, 0, .5) 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 58% at 50% 42%, #000 30%, rgba(0, 0, 0, .5) 60%, transparent 100%);
}
.container {
  position: relative; z-index: 1;
  flex: 1 0 auto;
  width: 100%; max-width: 1040px;
  margin: 0 auto;
  padding: 64px 40px 80px;
  view-transition-name: gd-content;
}
.footer {
  position: relative; z-index: 1;
  padding: 24px 40px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted-2);
}

/* Apparition douce du contenu */
.rise { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ============ Boutons ============ */
.btn {
  display: inline-flex; align-items: center;
  min-height: 58px; border-radius: 999px; border: 0;
  font-family: var(--f-head); font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: box-shadow .3s ease, filter .3s ease, transform .3s var(--ease);
}
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary {
  gap: 26px; padding: 0 24px 0 28px; color: var(--ink);
  background: linear-gradient(100deg, #E0741A 0%, #EE9A2E 50%, #F6C47A 100%);
  box-shadow: 0 14px 40px -12px rgba(238, 154, 46, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--primary:hover {
  color: var(--ink); filter: brightness(1.06); transform: translateY(-2px);
  box-shadow: 0 18px 56px -8px rgba(243, 163, 11, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn--ghost {
  gap: 22px; padding: 0 10px 0 26px; color: var(--text);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #2B0B10, #1A0709) padding-box,
    linear-gradient(120deg, rgba(243, 163, 11, .85), rgba(243, 163, 11, .08) 45%, rgba(200, 40, 20, .7)) border-box;
}
.btn--ghost:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(243, 163, 11, .4), 0 12px 40px -12px rgba(243, 163, 11, .5); }
.btn--sm { min-height: 50px; font-size: 15px; gap: 18px; padding: 0 20px 0 22px; }
.btn--ghost.btn--sm { padding: 0 22px; }
.btn__circle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(255, 244, 239, .85);
  display: flex; align-items: center; justify-content: center;
}
.btn__circle svg { transition: transform .3s var(--ease); }

.linkbtn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 6px; border: 0; background: transparent;
  color: var(--gold-2); cursor: pointer;
  font-family: var(--f-body); font-size: 15px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px;
}
.linkbtn:hover { color: var(--gold-hover); }
.linkbtn svg { transition: transform .3s var(--ease); }
.linkbtn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ============ Event ============ */
.hero { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(243, 163, 11, .12); border: 1px solid var(--line-gold);
  font-family: var(--f-head); font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--gold-2);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.status {
  width: 100%; max-width: 360px;
  padding: 18px 20px; border-radius: 18px;
  background: rgba(28, 8, 11, .82); border: 1px solid var(--line-gold);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  --status: var(--gold-2);
}
.status.is-open { --status: var(--ok); }
.status__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status__word { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-size: 17px; font-weight: 800; color: var(--status); }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--status); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--status) 50%, transparent); } 50% { opacity: .45; box-shadow: 0 0 0 6px transparent; } }
.status__clock { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.status__count { margin-top: 8px; font-size: 16px; font-variant-numeric: tabular-nums; }
.status__count strong { color: var(--gold-2); }
.status__bar { position: relative; height: 6px; margin-top: 14px; border-radius: 999px; background: rgba(255, 244, 239, .14); overflow: hidden; }
.status__fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, #F3A30B, #E0741A); transition: width 1s var(--ease); }
.status__range { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--muted-2); }

.hero__title { margin-top: 18px; font-weight: 800; font-size: clamp(40px, 5vw, 68px); line-height: 1.05; letter-spacing: -.02em; }
.hero__lead { max-width: 520px; font-size: 20px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-radius: 14px;
  background: var(--card-2); border: 1px solid var(--line-2);
  font-size: 16px; font-weight: 600;
}
.chip svg { color: var(--gold); }
.chip small { font-size: inherit; color: var(--muted); font-weight: 500; }

.cta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 6px; }
.cta__hud { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* Panneau HUD repliable (animation de hauteur fluide) */
.collapse { display: grid; grid-template-rows: 1fr; width: 100%; transition: grid-template-rows .45s var(--ease); }
.collapse > .collapse__inner { min-height: 0; overflow: hidden; }
.collapse.is-closed { grid-template-rows: 0fr; }
.collapse.is-closed > .collapse__inner { visibility: hidden; transition: visibility 0s .45s; }

.hudinfo { margin-top: 26px; padding-top: 40px; border-top: 1px solid var(--line-2); }
.hudinfo__title { font-weight: 800; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; }
.hudinfo__lead { margin: 12px 0 28px; max-width: 560px; font-size: 17px; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

.card {
  border: 1px solid var(--line-2); border-radius: 20px;
  transition: border-color .3s ease, transform .3s var(--ease), box-shadow .3s ease;
}
a.card:hover, .card--hover:hover { border-color: rgba(243, 163, 11, .55); transform: translateY(-3px); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .9); }

.video-card { display: block; overflow: hidden; background: var(--card); color: var(--text); text-decoration: none; }
.video-card:hover { color: var(--text); }
.video-card__media {
  position: relative; aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, #6E1015, #2B0B10);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.video-card--2 .video-card__media { background: linear-gradient(140deg, #9C1C1C, #3A0A10); }
.video-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video-card:hover .video-card__media img { transform: scale(1.04); }
.play {
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(120deg, #EE9A2E, #F6C47A); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .7);
  transition: transform .3s var(--ease);
}
.play svg { margin-left: 3px; }
.video-card:hover .play { transform: scale(1.08); }
.video-card__foot { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.video-card__name { font-family: var(--f-head); font-size: 18px; font-weight: 700; }
.video-card__cta { font-size: 15px; font-weight: 600; color: var(--gold-2); }

.feature {
  border-radius: 20px; padding: 28px;
  background: linear-gradient(165deg, #5A0E16 0%, #2B0B10 100%);
  border: 1px solid rgba(243, 163, 11, .3);
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
}
.feature h3 { font-size: 20px; font-weight: 700; }
.ticks { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 2px; color: var(--gold); stroke-width: 2.4; }
.feature__cta { display: flex; flex-wrap: wrap; gap: 10px; }

.how { margin-top: 70px; }
.how__title { margin-bottom: 30px; font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.01em; }
.how__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.how__card { padding: 20px; background: linear-gradient(160deg, #3A0C14, #22080C); border-color: rgba(255, 244, 239, .1); }
.how__head { display: flex; align-items: center; gap: 12px; }
.how__icon { display: flex; flex: none; width: 38px; height: 38px; border-radius: 12px; background: rgba(243, 163, 11, .14); color: var(--gold); align-items: center; justify-content: center; }
.how__card h3 { font-size: clamp(16px, 1.35vw, 19px); font-weight: 700; }
.how__card p { margin-top: 10px; font-size: 17px; color: var(--muted); }

/* Modale vidéo */
.vmodal {
  width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--line-gold); border-radius: 20px;
  background: #0E0304; color: var(--text); overflow: hidden;
}
.vmodal::backdrop { background: rgba(10, 2, 3, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vmodal[open] { animation: pop .3s var(--ease); }
.vmodal[open]::backdrop { animation: fade .3s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
.vmodal__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; }
.vmodal__title { font-family: var(--f-head); font-weight: 700; font-size: 17px; }
.vmodal__close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vmodal__close:hover { border-color: var(--gold); }
.vmodal video { width: 100%; max-height: calc(100dvh - 120px); background: #000; }

/* ============ Sign up ============ */
/* Ordinateur : texte à gauche, formulaire à droite. Mobile : titre + compteur, formulaire, puis le détail */
.signup {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head form" "more form";
  column-gap: 48px; align-items: start;
}
.signup__head { grid-area: head; min-width: 0; }
.signup__more { grid-area: more; min-width: 0; margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.signup__more .steps, .signup__more .amb { margin-top: 0; }
/* Un seul bloc selon le rôle coché : Créateur → les 3 étapes, Ambassadeur → le bloc Ambassadeur */
.signup:has(#role-amb:checked) .signup__more .steps { display: none; }
.signup:has(#role-designer:checked) .signup__more .amb { display: none; }
.signup > .form { grid-area: form; }
@media (max-width: 1180px) {
  .signup { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "more"; row-gap: 28px; }
  .signup__more { margin-top: 0; }
}
.signup__title { font-weight: 800; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; }
.steps { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid rgba(255, 244, 239, .1); }
.steps__num {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(120deg, #EE9A2E, #F6C47A); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-weight: 800; font-size: 18px;
}
.steps__t { font-family: var(--f-head); font-weight: 700; font-size: 18px; }
.steps__p { margin-top: 4px; font-size: 17px; color: var(--muted); }

.form {
  min-width: 0;
  background: linear-gradient(170deg, #2B0B10, #1C0709);
  border: 1px solid rgba(243, 163, 11, .25); border-radius: 24px;
  padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
}
.form__title { margin-bottom: 4px; font-size: 24px; font-weight: 800; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.field input {
  min-height: 52px; padding: 0 18px; border-radius: 14px;
  border: 1px solid rgba(255, 244, 239, .22); background: var(--bg); color: var(--text);
  font: inherit; font-size: 17px; font-weight: 400;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:hover { border-color: rgba(255, 244, 239, .4); }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243, 163, 11, .28); }
.field.has-error input { border-color: var(--error); }
.field__err, .check__err { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--error); }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 17px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--gold); cursor: pointer; }
.form .btn--primary { justify-content: space-between; padding: 0 26px 0 30px; font-size: 17px; width: 100%; }
.form .btn--primary[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px; font-size: 16px;
}
.notice svg { flex: none; margin-top: 3px; }
.notice--error { background: rgba(255, 138, 122, .1); border: 1px solid rgba(255, 138, 122, .45); color: #FFD6CF; }
.notice--ok { background: rgba(111, 227, 161, .08); border: 1px solid rgba(111, 227, 161, .4); }
.notice--ok strong { display: block; font-family: var(--f-head); color: var(--ok); }

/* Compteur du groupe */
.stat {
  margin-top: 28px; display: flex; gap: 18px; align-items: center;
  padding: 22px 24px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(243, 163, 11, .16), rgba(232, 116, 26, .06));
  border: 1px solid var(--line-gold);
}
.stat__icon {
  flex: none; width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(243, 163, 11, .16); color: var(--gold-2);
}
.stat__num {
  font-family: var(--f-head); font-weight: 800; line-height: 1;
  font-size: clamp(36px, 4vw, 48px); font-variant-numeric: tabular-nums;
  color: var(--gold-2);
}
.stat__label { margin-top: 6px; font-family: var(--f-head); font-weight: 700; font-size: 17px; }
.stat__sub { margin-top: 2px; font-size: 15px; color: var(--muted-2); }

/* Bloc Ambassador */
.amb {
  margin-top: 12px; padding: 22px 24px; border-radius: 18px;
  background: var(--card); border: 1px dashed rgba(243, 163, 11, .45);
}
.amb__title { display: flex; gap: 12px; align-items: center; font-size: 19px; font-weight: 800; }
.amb__title svg { flex: none; color: var(--gold); }
.amb__p { margin-top: 10px; font-size: 17px; }
.amb__how { margin-top: 8px; font-size: 16px; color: var(--muted); }

/* Choix du rôle */
.roles { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roles__legend { margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 600; }
.roles .field__err { grid-column: 1 / -1; }
.role { position: relative; cursor: pointer; }
.role input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role__box {
  height: 100%; display: flex; flex-direction: column; gap: 4px;
  padding: 16px; border-radius: 14px;
  border: 1px solid rgba(255, 244, 239, .22); background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.role__box svg { color: var(--muted-2); margin-bottom: 4px; }
.role__t { font-family: var(--f-head); font-weight: 700; font-size: 17px; }
.role__p { font-size: 15px; line-height: 1.4; color: var(--muted); }
.role:hover .role__box { border-color: rgba(255, 244, 239, .4); }
.role input:checked + .role__box { border-color: var(--gold); background: rgba(243, 163, 11, .1); }
.role input:checked + .role__box svg { color: var(--gold); }
.role input:focus-visible + .role__box { outline: 3px solid var(--gold); outline-offset: 3px; }
/* Ambassador : la boutique et le parrain ne servent pas */
.form:has(#role-amb:checked) .only-designer { display: none; }
@media (max-width: 420px) { .roles { grid-template-columns: 1fr; } }

.field__help { font-size: 14px; font-weight: 400; color: var(--muted-2); }
.form__inner { display: flex; flex-direction: column; gap: 18px; }
.form__lead { font-size: 17px; }
.form__tip { font-size: 15px; color: var(--muted-2); }
.form__links { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.field--code input {
  max-width: 260px; text-align: center; font-family: var(--f-head);
  font-size: 28px; font-weight: 700; letter-spacing: .35em; font-variant-numeric: tabular-nums;
}
.linkbtn {
  display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0;
  background: none; border: 0; color: var(--gold); font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.linkbtn:hover { color: var(--gold-hover); }
.linkbtn[disabled] { opacity: .6; cursor: progress; }

/* Écran « Inscription terminée » */
.form--done { align-items: flex-start; }
.done__icon {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(111, 227, 161, .14); color: var(--ok); border: 1px solid rgba(111, 227, 161, .45);
}
.done__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.done__list li { display: flex; gap: 12px; align-items: center; font-size: 16px; font-weight: 600; }
.done__list li svg { flex: none; color: var(--ok); }
.done__list li.is-next { color: var(--muted); font-weight: 400; }
.done__list li.is-next svg { color: var(--gold); }
.form--done .btn { align-self: stretch; }

/* ============ Connexion / compte ============ */
.auth { max-width: 560px; display: flex; flex-direction: column; gap: 20px; }
.auth--wide { max-width: 720px; }
.auth__title { font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1.08; margin-bottom: 8px; }
.form__alt { font-size: 16px; color: var(--muted); }
.form__alt a { color: var(--gold); font-weight: 600; text-underline-offset: 3px; }
.form__alt a:hover { color: var(--gold-hover); }
.notice a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.acc-head { display: flex; gap: 22px; align-items: center; }
.acc-head .auth__title { margin: 6px 0 0; }
.acc-photo {
  flex: none; width: 128px; height: 96px; border-radius: 16px; object-fit: cover;
  border: 1px solid var(--line-gold); background: var(--card);
}
.acc-photo--none { display: flex; align-items: center; justify-content: center; color: var(--muted-2); }
@media (max-width: 480px) {
  .acc-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .acc-photo { width: 112px; height: 84px; }
}

.acc-status {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2);
}
.acc-status svg { flex: none; margin-top: 2px; color: var(--gold); }
.acc-status--accepted { border-color: rgba(111, 227, 161, .45); }
.acc-status--accepted svg { color: var(--ok); }
.acc-status--refused { border-color: rgba(255, 138, 122, .45); }
.acc-status--refused svg { color: var(--error); }
.acc-status__t { font-family: var(--f-head); font-weight: 800; font-size: 19px; }
.acc-status__p { margin-top: 4px; font-size: 16px; color: var(--muted); }
.acc-status__p a { color: var(--gold); font-weight: 600; }

.acc-list { margin: 0; display: flex; flex-direction: column; }
.acc-list > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px;
  padding: 12px 0; border-top: 1px solid var(--line-2);
}
.acc-list > div:first-child { border-top: 0; padding-top: 0; }
.acc-list dt { color: var(--muted-2); font-size: 15px; }
.acc-list dd { margin: 0; font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.acc-invite { margin-top: 12px; }
.amb-code {
  margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding: 14px 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-gold);
}
.amb-code__label { font-size: 15px; color: var(--muted); }
.amb-code__value { font-family: var(--f-head); font-weight: 800; font-size: 26px; letter-spacing: .08em; color: var(--gold-2); }
.amb-edit { margin-top: 12px; }
.amb-edit > summary { list-style: none; width: fit-content; }
.amb-edit > summary::-webkit-details-marker { display: none; }
.amb-edit__form { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.amb-edit__form .field { width: 100%; }
.input-code { text-transform: uppercase; letter-spacing: .06em; }
.input-code::placeholder { text-transform: none; letter-spacing: normal; }
.acc-invite input { font-size: 15px; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* ============ Contact ============ */
.contact { max-width: 720px; }
.contact__title { font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; }
.contact__lead { margin: 16px 0 28px; font-size: 18px; color: var(--muted); }
.contact__list { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.contact__item {
  display: flex; gap: 16px; align-items: center;
  padding: 20px 22px; border-radius: 16px;
  background: rgba(28, 8, 11, .85); color: var(--text); text-decoration: none;
}
.contact__item:hover { color: var(--text); }
.contact__item > svg { flex: none; color: var(--gold); }
.contact__small { font-size: 15px; color: var(--muted); }
.contact__big { font-family: var(--f-head); font-size: 19px; font-weight: 700; }
.contact__go { margin-left: auto; color: var(--gold-2); }

/* ============ View transitions (navigation fluide entre pages) ============ */
@view-transition { navigation: auto; }
::view-transition-old(gd-content) { animation: vt-out .18s ease both; }
::view-transition-new(gd-content) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ============ Mobile / tablette ============ */
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(17, 4, 6, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .side__inner { position: static; height: auto; overflow: visible; padding: 12px 16px; gap: 0; }
  .brand img { width: 46px; }
  .brand__name { font-size: 15px; }
  .burger { display: flex; }

  .side__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
  .side__panel-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .35s; }
  .side.is-open .side__panel { grid-template-rows: 1fr; }
  .side.is-open .side__panel-inner {
    visibility: visible; transition-delay: 0s;
    max-height: calc(100dvh - 74px); overflow-y: auto; overscroll-behavior: contain;
    padding: 18px 0 20px;
  }

  .container { padding: 40px 20px 64px; }
  .footer { padding: 22px 20px; }
  .watermark { width: 90vw; right: -12%; top: 10px; }
  .hero__lead { font-size: 18px; }
  .how { margin-top: 56px; }
  .form { padding: 26px 20px; }
  .signup { gap: 32px; }
  .vmodal { border-radius: 16px; }
}
@media (max-width: 520px) {
  .cta { width: 100%; flex-direction: column; align-items: stretch; }
  .cta .btn { justify-content: space-between; }
  .cta__hud { align-items: stretch; }
  .cta__hud .linkbtn { align-self: center; }
  .status { max-width: none; }
}

/* ============ Mouvement réduit ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
