/* ============ Thème : bleu & blanc (drapeau d'Israël) × Fortnite / Roblox / God of War ============ */
:root {
    --navy: #021033;
    --deep: #04185a;
    --israel: #0038b8;
    --blue: #1f6bff;
    --sky: #5fb4ff;
    --ice: #a9e4ff;
    --snow: #eef5ff;
    --white: #ffffff;
    --gold: #ffc93c;
    --gold2: #ff9d00;

    --bg: var(--navy);
    --panel: rgba(255, 255, 255, .06);
    --line: rgba(255, 255, 255, .14);
    --text: #f3f7ff;
    --muted: #a8bde6;

    /* alias utilisés par admin.css */
    --cyan: var(--ice);
    --yellow: var(--gold);
    --orange: var(--gold);
    --pink: var(--blue);
    --green: #4dffa6;
    --red: #ff5a6a;

    --display: "Lilita One", "Arial Black", sans-serif;
    --pixel: var(--display);
    --epic: "Cinzel", Georgia, serif;
    --label: "Nunito", system-ui, sans-serif;
    --body: "Nunito", system-ui, sans-serif;
    --hebrew: "Frank Ruhl Libre", "David", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    font-family: var(--body);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.55;
    background: linear-gradient(180deg, #031a5c 0%, var(--navy) 60%) fixed, var(--navy);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ice); }
img { max-width: 100%; display: block; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Petite étiquette épique (God of War) */
.saga {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--epic); font-weight: 700;
    font-size: 15px; letter-spacing: .28em; text-transform: uppercase;
    color: var(--ice);
    margin: 0 0 8px;
    text-shadow: 0 0 14px rgba(169, 228, 255, .55);
}
.saga::before, .saga::after { content: "✡"; letter-spacing: 0; opacity: .8; }

/* ---------- Barre du haut ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 24px;
    padding: 10px 24px;
    background: rgba(2, 16, 51, .78);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 3px solid var(--israel);
}
.topbar__logo {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--display); font-size: 28px; line-height: 1;
    color: var(--white); text-decoration: none;
}
.topbar__logo b { font-weight: 400; color: var(--sky); }
.stud {
    width: 26px; height: 26px; border-radius: 6px;
    background: var(--israel);
    box-shadow: inset -3px -4px 0 rgba(0,0,0,.25), inset 2px 2px 0 rgba(255,255,255,.3);
    position: relative;
}
.stud::after {
    content: ""; position: absolute; inset: 7px; border-radius: 50%;
    background: var(--blue); box-shadow: inset 0 -2px 0 rgba(0,0,0,.3), 0 0 0 2px rgba(255,255,255,.25);
}
.topbar__menu { display: flex; gap: 22px; margin-right: auto; }
.topbar__menu a {
    font-family: var(--display); font-size: 20px; letter-spacing: .03em;
    color: var(--muted); text-decoration: none; text-transform: uppercase;
    transition: color .15s;
}
.topbar__menu a:hover { color: var(--white); }
.topbar__player { display: flex; align-items: center; gap: 10px; }
.topbar__lvl {
    width: 38px; height: 38px; display: grid; place-items: center;
    font-family: var(--display); font-size: 20px; color: var(--deep);
    background: linear-gradient(180deg, var(--gold), var(--gold2));
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.topbar__who { display: flex; flex-direction: column; line-height: 1.1; margin-left: 4px; }
.topbar__who b { font-weight: 900; }
.topbar__who small { font-weight: 800; font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 56px 24px 0;
    min-height: calc(100vh - 61px);
    display: flex; flex-direction: column; justify-content: center;
}
.hero__bg {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
    background:
        radial-gradient(60% 50% at 72% 42%, rgba(169, 228, 255, .35), transparent 70%),
        linear-gradient(180deg, #021445 0%, var(--israel) 48%, #3c8bff 82%, #cfe6ff 100%);
}
.magen {
    position: absolute; width: 900px; height: 900px; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1.4;
}

/* Cubes à picots façon Roblox */
.cube {
    position: absolute; width: 72px; height: 72px; border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #d6e6ff);
    box-shadow: inset -7px -9px 0 rgba(0, 56, 184, .22), inset 4px 4px 0 rgba(255,255,255,.9), 0 18px 30px rgba(0, 10, 50, .35);
    animation: float 7s ease-in-out infinite;
}
.cube::after {
    content: ""; position: absolute; inset: 22px; border-radius: 50%;
    background: inherit;
    box-shadow: inset 0 -4px 0 rgba(0, 56, 184, .25), 0 3px 4px rgba(0,0,0,.15);
}
.cube--blue, .c2, .c4 { background: linear-gradient(145deg, #3d84ff, var(--israel)); }
.c1 { left: 49%; top: 56%; transform: rotate(-14deg); }
.c2 { left: 55%; top: 7%; width: 48px; height: 48px; animation-delay: -2s; }
.c2::after, .c5::after { inset: 14px; }
.c3 { left: 2%; bottom: 22%; width: 56px; height: 56px; animation-delay: -4s; }
.c3::after { inset: 17px; }
.c4 { right: 4%; top: 12%; width: 60px; height: 60px; animation-delay: -1s; }
.c4::after { inset: 18px; }
.c5 { right: 3%; bottom: 30%; width: 44px; height: 44px; animation-delay: -3s; opacity: .85; }

/* Neige / givre façon God of War */
.snow {
    position: absolute; inset: -100% 0 0 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 120px 80px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 200px 160px, #fff, transparent),
        radial-gradient(2.5px 2.5px at 60px 220px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 260px 40px, #fff, transparent);
    background-size: 300px 260px;
    opacity: .7;
    animation: snow 18s linear infinite;
}
.snow--2 { background-size: 420px 380px; opacity: .45; animation-duration: 28s; filter: blur(1px); }

.hero__grid {
    position: relative; z-index: 1;
    width: 100%; max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px;
}

/* Titre façon Fortnite : blanc, gros contour bleu, relief */
.hero__name {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(64px, 10.5vw, 160px); line-height: .9;
    white-space: nowrap;
    margin: 4px 0 6px;
    color: var(--white);
    -webkit-text-stroke: 14px var(--deep);
    paint-order: stroke fill;
    text-shadow: 0 6px 0 var(--deep), 0 12px 0 #010b26, 0 22px 40px rgba(0, 0, 0, .45);
    transform: rotate(-3deg);
    transform-origin: left bottom;
    word-break: break-word;
}
.hero__sub {
    font-family: var(--display); font-size: clamp(28px, 4vw, 44px); line-height: 1;
    margin: 10px 0 14px; color: var(--white); text-transform: uppercase;
    text-shadow: 0 4px 0 var(--deep);
}
.hero__sub span {
    display: inline-block; padding: 4px 14px 2px; margin-right: 6px;
    background: linear-gradient(180deg, var(--gold), var(--gold2));
    color: var(--deep); text-shadow: none; border-radius: 10px;
    box-shadow: 0 4px 0 #b86a00; transform: rotate(-2deg);
}
.hero__date {
    font-family: var(--display); font-size: clamp(30px, 4vw, 46px); line-height: 1;
    margin: 0 0 18px; color: var(--white); text-transform: uppercase;
    text-shadow: 0 4px 0 var(--deep);
}
.hero__intro { max-width: 540px; font-size: 18px; font-weight: 600; margin: 0 0 24px; text-shadow: 0 2px 8px rgba(0, 20, 80, .5); }

.xp { max-width: 480px; margin-bottom: 30px; }
.xp__head { display: flex; justify-content: space-between; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ice); margin-bottom: 6px; }
.xp__val { color: var(--gold); }
.xp__bar { height: 18px; padding: 3px; border-radius: 999px; background: rgba(2, 16, 51, .6); box-shadow: inset 0 2px 4px rgba(0,0,0,.4); }
.xp__bar i {
    display: block; height: 100%; width: 0; border-radius: 999px;
    background: linear-gradient(180deg, #8ad0ff, var(--blue)); box-shadow: 0 0 14px rgba(95, 180, 255, .9), inset 0 2px 0 rgba(255,255,255,.5);
    animation: xp 2.2s cubic-bezier(.2, .8, .2, 1) .4s forwards;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }

/* ---------- Boutons épais (Roblox / Fortnite) ---------- */
.btn {
    --c: var(--white); --t: var(--deep); --s: #9db7e6;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1;
    text-transform: uppercase; text-decoration: none;
    color: var(--t); background: var(--c);
    border: 0; border-radius: 14px;
    padding: 14px 30px 12px;
    cursor: pointer;
    box-shadow: 0 6px 0 var(--s), 0 12px 20px rgba(0, 10, 50, .3);
    transition: transform .1s, box-shadow .1s, filter .15s;
}
.btn small { font-family: var(--label); font-weight: 900; font-size: 12px; letter-spacing: .08em; opacity: .75; }
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 8px 0 var(--s), 0 14px 24px rgba(0, 10, 50, .3); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--s); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.btn--primary { min-width: 240px; }
.btn--blue { --c: var(--blue); --t: var(--white); --s: #0a3a9e; }
.btn--small { flex-direction: row; gap: 8px; font-size: 20px; padding: 10px 18px 8px; border-radius: 12px; --c: var(--white); --t: var(--deep); }
.btn--small .ico { width: 18px; height: 18px; margin-top: -2px; }
.btn--alt { --c: var(--blue); --t: var(--white); --s: #0a3a9e; }
.btn--block { display: flex; width: 100%; }

/* ---------- Casier du personnage ---------- */
.locker { justify-self: center; width: min(400px, 100%); text-align: center; }
.locker__stage { position: relative; aspect-ratio: 1; }
.locker__stage::before { /* halo + rayons */
    content: ""; position: absolute; inset: 6%; border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255,255,255,.9) 0%, rgba(169, 228, 255, .55) 30%, transparent 66%),
        repeating-conic-gradient(from 0deg, rgba(255,255,255,.16) 0 8deg, transparent 8deg 20deg);
    animation: spin 40s linear infinite;
}
.runes { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite reverse; }
.runes circle { fill: none; stroke: rgba(169, 228, 255, .55); stroke-width: 1.5; }
.runes circle + circle { stroke-dasharray: 2 6; }
.runes text {
    direction: ltr; unicode-bidi: bidi-override;
    font-family: var(--hebrew); font-weight: 700; font-size: 22px;
    fill: var(--ice);
    filter: drop-shadow(0 0 4px rgba(120, 210, 255, .9));
}
.locker__char {
    position: absolute; inset: 14% 14% 0;
    display: flex; align-items: flex-end; justify-content: center;
    -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}
.locker__char img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 0 22px rgba(120, 210, 255, .7)); }
.silhouette { width: 78%; fill: var(--deep); opacity: .85; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .8)); }

.locker__plate {
    position: relative; margin-top: -10px;
    background: linear-gradient(180deg, #ffffff, #dbe9ff);
    color: var(--deep);
    border-radius: 16px;
    padding: 12px 16px 12px;
    box-shadow: 0 6px 0 #8fa9da, 0 18px 30px rgba(0, 10, 50, .35);
}
.locker__plate .rarity { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); }
.locker__name { font-family: var(--display); font-size: 46px; line-height: 1; margin: 8px 0 2px; }
.locker__set { margin: 0; font-weight: 900; font-size: 15px; color: var(--israel); text-transform: uppercase; letter-spacing: .08em; }

.badges { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.badges li {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 800; font-size: 14px;
    background: rgba(2, 16, 51, .55); border: 2px solid rgba(255,255,255,.2);
    padding: 5px 12px 5px 8px; border-radius: 999px;
}
.badges .ico { width: 16px; height: 16px; color: var(--gold); fill: var(--gold); stroke: none; }

.rarity {
    display: inline-block; white-space: nowrap;
    font-family: var(--display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 14px 3px; border-radius: 8px;
    color: var(--white); background: var(--blue);
    box-shadow: 0 3px 0 rgba(0,0,0,.25);
}
.rarity--legendaire { color: var(--deep); background: linear-gradient(180deg, var(--gold), var(--gold2)); }
.rarity--epique { background: linear-gradient(180deg, #4d8dff, var(--israel)); }
.rarity--rare { color: var(--deep); background: linear-gradient(180deg, #d9f3ff, var(--sky)); }

/* ---------- Compte à rebours ---------- */
.countdown { position: relative; z-index: 1; text-align: center; margin: 48px auto 40px; }
.countdown__label {
    font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--deep); margin: 0 0 12px;
}
.countdown__grid { display: inline-grid; grid-template-columns: repeat(4, 104px); gap: 12px; }
.countdown__grid div {
    background: var(--white); color: var(--israel);
    border-radius: 16px; padding: 12px 6px 8px;
    box-shadow: 0 6px 0 #8fa9da, 0 14px 24px rgba(0, 10, 50, .25);
}
.countdown__grid span { display: block; font-family: var(--display); font-size: 52px; line-height: .95; font-variant-numeric: tabular-nums; }
.countdown__grid small { font-weight: 900; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #5a76b8; }

/* Bande du drapeau */
.flagband {
    position: relative; z-index: 1; height: 54px; margin: 0 -24px;
    background: linear-gradient(180deg, #fff 0 22%, var(--israel) 22% 58%, #fff 58% 100%);
}
.flagband--top { margin: 0 -24px 40px; height: 40px; }

/* ---------- Sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 80px 24px; }
.section__head { margin-bottom: 34px; }
.section__title {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(46px, 7vw, 72px); line-height: .95; text-transform: uppercase;
    margin: 0; color: var(--white);
    -webkit-text-stroke: 8px var(--israel); paint-order: stroke fill;
    text-shadow: 0 6px 0 var(--israel), 0 14px 24px rgba(0,0,0,.35);
}
.section__lead { color: var(--muted); max-width: 640px; margin: -10px 0 28px; font-weight: 600; }
.section__lead b { color: var(--gold); }

.panel, .card {
    position: relative;
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: 22px;
    padding: 30px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* ---------- Quêtes ---------- */
.quests { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.quest {
    --accent: var(--sky);
    position: relative; overflow: hidden;
    border-radius: 22px; padding: 26px;
    background: linear-gradient(165deg, #1a55d6 0%, #0b2f8f 55%, #071f63 100%);
    border: 3px solid rgba(255, 255, 255, .18);
    box-shadow: 0 8px 0 #031548, 0 22px 40px rgba(0, 0, 0, .35);
}
.quest::before { /* motif hexagonal discret */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-conic-gradient(from 30deg at 100% 0, rgba(255,255,255,.05) 0 10deg, transparent 10deg 20deg);
}
.quest--legendaire { --accent: var(--gold); border-color: rgba(255, 201, 60, .55); }
.quest--epique { --accent: var(--sky); }
.quest > * { position: relative; }
.quest__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.quest__num { font-family: var(--epic); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ice); font-size: 14px; }
.quest h3 {
    font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1;
    text-transform: uppercase; margin: 0 0 14px; color: var(--white);
    text-shadow: 0 4px 0 rgba(0, 10, 50, .5);
}
.quest__obj {
    display: flex; gap: 10px; align-items: flex-start;
    background: rgba(255,255,255,.1); border-radius: 12px;
    padding: 10px 14px; margin: 0 0 16px; font-weight: 700;
}
.quest__obj .ico { color: var(--accent); margin-top: 2px; }
.quest__info { list-style: none; padding: 0; margin: 0 0 18px; }
.quest__info li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; font-weight: 600; }
.quest__info .ico { color: var(--accent); margin-top: 2px; }
.quest__info b { font-weight: 900; }
.quest__reward {
    display: inline-flex; align-items: center; gap: 10px;
    margin: 0 0 20px; padding: 6px 14px 6px 6px; border-radius: 999px;
    background: rgba(2, 16, 51, .5);
    font-family: var(--display); font-size: 20px; color: var(--gold);
}
.quest__reward span {
    font-family: var(--label); font-weight: 900; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--deep); background: var(--gold); padding: 4px 10px; border-radius: 999px;
}
.quest__nav { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Formulaire ---------- */
.form { max-width: 840px; }
fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
fieldset[disabled] { opacity: .3; }
legend {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--display); font-size: 30px; line-height: 1; text-transform: uppercase;
    margin-bottom: 18px; padding: 0;
}
legend span {
    width: 38px; height: 38px; display: grid; place-items: center;
    font-size: 22px; color: var(--deep);
    background: var(--white); border-radius: 10px; box-shadow: 0 4px 0 #8fa9da;
}
.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 6px; font-weight: 900; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ice); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password] {
    width: 100%;
    font: inherit; font-size: 17px; font-weight: 700;
    color: var(--deep);
    background: var(--white);
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: inset 0 3px 0 rgba(0, 30, 100, .12);
    transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(95, 180, 255, .35); }
input::placeholder { color: #93a6cf; font-weight: 600; }

.squad__row {
    --accent: var(--sky);
    display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px;
    padding: 16px 18px; margin-bottom: 12px;
    background: rgba(0, 56, 184, .35);
    border: 2px solid rgba(255,255,255,.12);
    border-left: 6px solid var(--accent);
    border-radius: 16px;
}
.squad__row--legendaire { --accent: var(--gold); }
.squad__title { margin: 0; font-family: var(--display); font-size: 28px; line-height: 1; text-transform: uppercase; }
.squad__title span { display: block; margin-bottom: 4px; font-family: var(--epic); font-weight: 700; font-size: 12px; letter-spacing: .18em; color: var(--accent); }
.stepper label { display: block; text-align: center; margin-bottom: 5px; font-weight: 900; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ice); }
.stepper__ctrl { display: flex; align-items: center; gap: 6px; }
.stepper__ctrl input {
    width: 58px; text-align: center;
    font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1;
    padding: 6px 2px 4px;
    -moz-appearance: textfield;
}
.stepper__ctrl input::-webkit-outer-spin-button,
.stepper__ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn {
    width: 40px; height: 40px;
    font-family: var(--display); font-size: 24px; line-height: 1;
    color: var(--white); background: var(--blue);
    border: 0; border-radius: 10px; cursor: pointer;
    box-shadow: 0 4px 0 #0a3a9e;
    transition: transform .08s, box-shadow .08s;
}
.stepper__btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0a3a9e; }

.check { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; cursor: pointer; font-weight: 800; }
.check input { width: 24px; height: 24px; accent-color: var(--blue); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    max-width: 840px; margin: 0 0 24px;
    border-radius: 16px; border: 3px solid var(--red);
    background: rgba(255, 90, 106, .14);
    padding: 14px 20px;
}
.alert p { margin: 0 0 6px; }
.alert b { font-family: var(--display); font-weight: 400; font-size: 24px; text-transform: uppercase; color: var(--red); }
.alert ul { margin: 0; padding-left: 20px; }

.success { max-width: 620px; text-align: center; padding: 40px 28px; }
.success__kicker {
    display: inline-block; margin: 0;
    font-family: var(--display); font-size: 26px; color: var(--deep);
    background: linear-gradient(180deg, var(--gold), var(--gold2));
    padding: 4px 16px 2px; border-radius: 10px; box-shadow: 0 4px 0 #b86a00;
}
.success h3 {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(60px, 11vw, 100px); line-height: .95; text-transform: uppercase;
    margin: 14px 0 18px; color: var(--white);
    -webkit-text-stroke: 10px var(--israel); paint-order: stroke fill;
    text-shadow: 0 6px 0 var(--israel);
}
.sync { height: 14px; padding: 3px; border-radius: 999px; background: rgba(2, 16, 51, .6); margin: 0 auto 18px; max-width: 360px; }
.sync i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(180deg, #8ad0ff, var(--blue)); box-shadow: 0 0 12px var(--sky); animation: sync 1.4s ease-out .2s forwards; }
.success .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 0 24px 60px; color: var(--muted); overflow: hidden; }
.footer__heb { font-family: var(--hebrew); font-weight: 900; font-size: 44px; line-height: 1.2; color: var(--ice); margin: 0; text-shadow: 0 0 14px rgba(120, 210, 255, .8); }
.footer b { color: var(--white); }
.footer__gg { font-family: var(--display); font-size: 36px; text-transform: uppercase; margin: 0; color: var(--white); text-shadow: 0 4px 0 var(--israel); }

/* ---------- Animations ---------- */
@keyframes float { 50% { translate: 0 -16px; rotate: 6deg; } }
@keyframes snow { to { transform: translateY(50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes xp { to { width: 99.9%; } }
@keyframes sync { to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .xp__bar i { width: 99.9%; }
    .sync i { width: 100%; }
    html { scroll-behavior: auto; }
}

/* ---------- Tablette / mobile ---------- */
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .hero__name { transform: rotate(-3deg); transform-origin: center; }
    .hero__intro, .xp { margin-left: auto; margin-right: auto; }
    .hero__cta { justify-content: center; }
    .saga { justify-content: center; }
    .magen { width: 600px; height: 600px; top: 35%; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .topbar { padding: 8px 16px; gap: 14px; }
    .topbar__menu { display: none; }
    .topbar__player { margin-left: auto; }
    .hero { padding: 36px 16px 0; }
    .hero__name { -webkit-text-stroke-width: 10px; }
    .flagband, .flagband--top { margin-left: -16px; margin-right: -16px; }
    .section { padding: 56px 16px; }
    .panel, .card { padding: 20px; }
    .quests { grid-template-columns: 1fr; }
    .quest { padding: 22px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .squad__row { grid-template-columns: 1fr 1fr; gap: 14px; }
    .squad__title { grid-column: 1 / -1; }
    .countdown__grid { grid-template-columns: repeat(4, 1fr); width: 100%; gap: 8px; }
    .countdown__grid span { font-size: 38px; }
    .btn--primary { width: 100%; }
    .c1, .c3, .c5 { display: none; }
    .c2 { left: auto; right: 10px; top: 46%; }
    .c4 { right: auto; left: 8px; top: 40%; }
    .saga { font-size: 13px; letter-spacing: .16em; }
}
.locker__set [lang="he"] { font-family: var(--hebrew); font-size: 17px; text-transform: none; letter-spacing: 0; }

/* ---------- Médaillon photo dans le cercle ---------- */
.locker__char--photo {
    inset: 15%;
    border-radius: 50%;
    overflow: hidden;
    -webkit-mask-image: none; mask-image: none;
    border: 6px solid var(--white);
    box-shadow: 0 0 0 4px var(--israel), 0 0 50px rgba(169, 228, 255, .85), 0 20px 40px rgba(0, 10, 50, .45);
    background: var(--deep);
}
.locker__char--photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }


/* ---------- Photos de Joseph fondues dans le décor ---------- */
/* band--droite : personnage à droite du contenu ; band--gauche : à gauche (mise en page en zigzag) */
.band { position: relative; overflow: hidden; isolation: isolate; }
.band__img {
    position: absolute; z-index: -1; pointer-events: none;
    top: 0; bottom: 0; width: min(50%, 720px);
    background-repeat: no-repeat; background-size: cover; background-position: center top;
    --fade-v: linear-gradient(180deg, transparent 0%, #000 14%, #000 74%, transparent 100%);
}
.band--droite .band__img {
    right: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%), var(--fade-v);
    mask-image: linear-gradient(90deg, transparent 0%, #000 40%), var(--fade-v);
    -webkit-mask-composite: source-in; mask-composite: intersect;
}
.band--gauche .band__img {
    left: 0;
    -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 40%), var(--fade-v);
    mask-image: linear-gradient(270deg, transparent 0%, #000 40%), var(--fade-v);
    -webkit-mask-composite: source-in; mask-composite: intersect;
}
.band::after { /* neige qui tombe devant le personnage */
    content: ""; position: absolute; top: 0; bottom: 0; width: 50%; z-index: -1; pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 30px 40px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 140px 120px, #fff, transparent),
        radial-gradient(2.5px 2.5px at 220px 60px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 90px 200px, #fff, transparent);
    background-size: 280px 240px;
    opacity: .55;
    animation: snowband 14s linear infinite;
}
.band--droite::after { right: 0; }
.band--gauche::after { left: 0; }
@keyframes snowband { to { background-position: 0 240px; } }

/* Programme : titre et cartes empilées à droite, Joseph à gauche */
.band--gauche .section__head, .band--gauche .quests { margin-left: auto; max-width: 640px; }
.band--gauche .quests { grid-template-columns: 1fr; gap: 24px; }

@media (max-width: 1100px) {
    .band__img { width: 60%; opacity: .45; }
    .band--gauche .section__head, .band--gauche .quests { max-width: none; }
    .band--gauche .quests { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}
@media (max-width: 760px) {
    /* Sur téléphone : le personnage passe en fond derrière le titre de la section */
    .band__img, .band--droite .band__img, .band--gauche .band__img {
        left: 0; right: 0; width: auto; bottom: auto; height: 620px;
        background-position: center 12%;
        opacity: .5;
        -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
    }
    .band::after { width: 100%; }
}
@media (min-width: 761px) {
    /* Le guerrier commence sous le titre pour garder son visage bien visible */
    .band--droite .band__img { top: 150px; --fade-v: linear-gradient(180deg, transparent 0%, #000 7%, #000 80%, transparent 100%); }
}
@media (max-width: 760px) {
    /* Téléphone : on laisse voir le personnage au-dessus du titre de la section */
    .band:has(.band__img) > .section { padding-top: 300px; }
    .band .band__img { height: 560px; background-position: center 6%; opacity: .9; }
}

/* ---------- Déroulé d'une étape (une ligne par moment) ---------- */
.quest__steps {
    list-style: none; counter-reset: etape;
    margin: 0 0 18px; padding: 14px 16px;
    background: rgba(255, 255, 255, .1); border-radius: 14px;
}
.quest__steps li {
    counter-increment: etape;
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 7px 0; font-weight: 800; font-size: 17px;
}
.quest__steps li::before {
    content: counter(etape);
    flex: none; width: 30px; height: 30px; display: grid; place-items: center;
    font-family: var(--display); font-size: 18px; color: var(--deep);
    background: var(--white); border-radius: 8px; box-shadow: 0 3px 0 #8fa9da;
}
.quest__steps li + li::after { /* trait qui relie les étapes */
    content: ""; position: absolute; left: 14px; top: -9px; width: 2px; height: 16px;
    background: rgba(255, 255, 255, .35);
}
.quest__steps .heb {
    font-family: var(--hebrew); font-weight: 700; font-size: 20px; color: var(--gold);
    unicode-bidi: isolate; white-space: nowrap;
}

/* ---------- Mobile : compteurs adultes/enfants qui tiennent dans la carte ---------- */
@media (max-width: 640px) {
    .squad__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 14px 12px; }
    .stepper { min-width: 0; }
    .stepper__ctrl { gap: 4px; }
    .stepper__ctrl input { flex: 1 1 auto; width: auto; min-width: 0; font-size: 24px; padding: 6px 0 4px; }
    .stepper__btn { flex: none; width: 34px; height: 38px; font-size: 20px; }
    legend { font-size: 25px; }
    .form { padding: 18px 14px; }
}
@media (max-width: 400px) { .section__title { font-size: 40px; -webkit-text-stroke-width: 6px; } }
