/* Page Recrutement (candidature staff) : mêmes jetons que style.css (bleu Meetaverse, fonds presque noirs). */

.page-candidature [hidden] { display: none !important; }   /* sinon un display: flex/inline-flex l'emporte sur hidden */
.cd-hero { min-height: 70vh; min-height: 70svh; }
.cd-degrade { background: linear-gradient(100deg, #fff 0%, #8fdcff 45%, var(--bleu) 75%, var(--bleu-2) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.cd-zone { position: relative; z-index: 2; padding: 0 var(--marge) clamp(110px, 14vw, 180px); max-width: 920px; margin: clamp(-40px, -4vw, -20px) auto 0; }

/* ---------------------------------------------------------------- cartes */
.cd-carte {
    position: relative; border-radius: var(--rayon); padding: clamp(26px, 4.5vw, 48px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
    border: 1px solid var(--trait);
    backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
    box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8);
    animation: cdEntree .8s var(--ease) both;
}
.cd-carte[hidden] { display: none; }
@keyframes cdEntree { from { opacity: 0; transform: translateY(24px) scale(.985); } }
.cd-centre { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cd-porte { max-width: 640px; margin: 0 auto; overflow: hidden; }
.cd-porte::before {
    content: ''; position: absolute; inset: -40% -20% auto; height: 120%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(25, 184, 255, .2), transparent 70%);
}
.cd-porte > * { position: relative; }
.cd-porte h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.cd-porte p { color: var(--texte-2); max-width: 500px; }
.cd-porte p b { color: var(--texte); }

.cd-pastille {
    display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: #bfeaff;
    background: rgba(25, 184, 255, .1); border: 1px solid rgba(25, 184, 255, .3);
}
.cd-pastille i { width: 7px; height: 7px; border-radius: 50%; background: var(--bleu); box-shadow: 0 0 10px var(--bleu); animation: cdPulse 2s ease-in-out infinite; }
@keyframes cdPulse { 50% { opacity: .35; } }

.cd-note { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--texte-3) !important; }
.cd-note svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.cd-lien-discret { font-size: 13px; color: var(--texte-3); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.cd-lien-discret:hover { color: var(--texte); }
.cd-erreur-connexion { color: #ff8b8b !important; font-size: 14px; }

.bouton-discord { background: #5865f2; color: #fff; box-shadow: 0 10px 40px -10px rgba(88, 101, 242, .8); }
.bouton-discord:hover { background: #6d78ff; box-shadow: 0 16px 50px -10px rgba(88, 101, 242, 1); }

.cd-roue { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--bleu); animation: cdTourne .8s linear infinite; }
@keyframes cdTourne { to { transform: rotate(360deg); } }

.cd-succes .cd-coche { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(25, 184, 255, .12); border: 1px solid rgba(25, 184, 255, .4); box-shadow: 0 0 60px -10px rgba(25, 184, 255, .7); }
.cd-coche svg { width: 38px; height: 38px; fill: none; stroke: var(--bleu); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: cdTrait .7s var(--ease) .25s forwards; }
@keyframes cdTrait { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- formulaire */
.cd-formulaire { display: flex; flex-direction: column; gap: 34px; }
.cd-compte {
    display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 18px;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--trait);
}
.cd-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #1a2230; }
.cd-compte div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cd-compte b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-compte span { font-size: 13px; color: var(--texte-3); }
.cd-compte .cd-lien-discret { margin-left: auto; white-space: nowrap; }

.cd-question { display: flex; flex-direction: column; gap: 12px; }
.cd-intitule { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.cd-intitule em { font-style: normal; font-weight: 500; color: var(--texte-3); }
/* [MEETAVERSE 2026-11-20] indication « 5 lignes minimum » à côté des questions (simple consigne, rien de bloquant) */
.cd-intitule { flex-wrap: wrap; row-gap: 8px; }
.cd-lignes {
    flex: none; margin-left: auto; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
    font-size: 12px; font-weight: 600; letter-spacing: 0; color: #8fdcff;
    background: rgba(25, 184, 255, .1); border: 1px solid rgba(25, 184, 255, .28);
}
.cd-num {
    flex: none; display: grid; place-items: center; min-width: 30px; height: 26px; padding: 0 7px; border-radius: 8px;
    font-size: 12px; font-weight: 800; color: #001018;
    background: linear-gradient(135deg, #6fd3ff, var(--bleu) 55%, var(--bleu-2));
    box-shadow: 0 6px 18px -6px rgba(25, 184, 255, .8);
}
.cd-aide { font-size: 13px; color: var(--texte-3); margin-top: -4px; }

.cd-champ {
    width: 100%; font: inherit; font-size: 15px; color: var(--texte); line-height: 1.55;
    padding: 14px 16px; border-radius: 14px; resize: vertical;
    background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .09);
    transition: border-color .25s, box-shadow .25s, background .25s;
}
textarea.cd-champ { min-height: 104px; }
.cd-champ::placeholder { color: rgba(235, 240, 248, .26); }
.cd-champ:focus { outline: none; border-color: rgba(25, 184, 255, .6); background: rgba(0, 0, 0, .38); box-shadow: 0 0 0 4px rgba(25, 184, 255, .12); }
.cd-champ[readonly] { color: var(--texte-2); cursor: default; font-variant-numeric: tabular-nums; }
.cd-question.invalide .cd-champ { border-color: rgba(255, 110, 110, .7); box-shadow: 0 0 0 4px rgba(255, 110, 110, .1); }
.cd-compteur { align-self: flex-end; margin-top: -6px; font-size: 12px; color: var(--texte-3); font-variant-numeric: tabular-nums; }

/* choix de l'équipe (Staff / Animation) */
.cd-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cd-option {
    position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 16px; cursor: pointer;
    background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .09);
    transition: border-color .25s, background .25s, box-shadow .25s, transform .2s var(--ease);
}
.cd-option:hover { border-color: rgba(25, 184, 255, .45); }
.cd-option:active { transform: scale(.99); }
.cd-option input { position: absolute; opacity: 0; pointer-events: none; }
.cd-option-rond { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1.6px solid rgba(255, 255, 255, .3); transition: border-color .25s, box-shadow .25s; }
.cd-option-texte { display: flex; flex-direction: column; gap: 3px; }
.cd-option-texte b { font-size: 16px; font-weight: 700; }
.cd-option-texte small { font-size: 13px; color: var(--texte-3); line-height: 1.4; }
.cd-option:has(input:checked) {
    background: linear-gradient(135deg, rgba(25, 184, 255, .16), rgba(10, 108, 255, .08));
    border-color: rgba(120, 214, 255, .6); box-shadow: 0 10px 34px -14px rgba(25, 184, 255, .8);
}
.cd-option:has(input:checked) .cd-option-rond { border-color: var(--bleu); box-shadow: inset 0 0 0 5px var(--bleu); }
.cd-option:has(input:focus-visible) { outline: 2px solid var(--bleu); outline-offset: 2px; }
.cd-question.invalide .cd-option { border-color: rgba(255, 110, 110, .45); }
.cd-suite { display: flex; flex-direction: column; gap: 34px; animation: cdEntree .6s var(--ease) both; }

/* grille des disponibilités */
.cd-grille { display: grid; grid-template-columns: 46px repeat(4, 1fr); gap: 7px; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.cd-grille .cd-tete { padding: 9px 4px; border-radius: 10px; text-align: center; background: rgba(255, 255, 255, .035); }
.cd-grille .cd-tete b { display: block; font-size: 13px; font-weight: 700; }
.cd-grille .cd-tete small { font-size: 11px; color: var(--texte-3); }
.cd-grille .cd-jour { display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--texte-2); }
.cd-case {
    position: relative; height: 42px; border-radius: 10px;
    background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .08);
    transition: background .2s, border-color .2s, box-shadow .2s, transform .15s var(--ease);
}
.cd-case:hover { border-color: rgba(25, 184, 255, .45); }
.cd-case:active { transform: scale(.96); }
.cd-case:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.cd-case[aria-pressed="true"] {
    background: linear-gradient(135deg, rgba(25, 184, 255, .55), rgba(10, 108, 255, .55));
    border-color: rgba(120, 214, 255, .7); box-shadow: 0 6px 22px -8px rgba(25, 184, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.cd-case[aria-pressed="true"]::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 7px; margin: -5px 0 0 -6px;
    border-left: 2.2px solid #fff; border-bottom: 2.2px solid #fff; transform: rotate(-45deg);
}
.cd-question.invalide .cd-grille .cd-case { border-color: rgba(255, 110, 110, .45); }
.cd-raccourcis { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cd-raccourcis button {
    height: 34px; padding: 0 15px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--texte-2);
    background: rgba(255, 255, 255, .05); border: 1px solid var(--trait); transition: color .2s, background .2s, border-color .2s;
}
.cd-raccourcis button:hover { color: var(--texte); background: rgba(25, 184, 255, .12); border-color: rgba(25, 184, 255, .35); }

.cd-erreur { padding: 13px 16px; border-radius: 14px; font-size: 14px; color: #ffb4b4; background: rgba(255, 80, 80, .08); border: 1px solid rgba(255, 110, 110, .3); }
.cd-envoi { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 6px; }
.cd-envoi .bouton[disabled] { opacity: .6; pointer-events: none; }
.cd-envoi .bouton.envoi-en-cours span::after { content: '…'; }

@media (max-width: 640px) {
    .cd-grille { grid-template-columns: 38px repeat(4, 1fr); gap: 5px; }
    .cd-grille .cd-tete small { display: none; }
    .cd-case { height: 38px; }
    .cd-compte { flex-wrap: wrap; }
    .cd-choix { grid-template-columns: 1fr; }
    .cd-envoi .bouton { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .cd-carte, .cd-coche svg, .cd-pastille i { animation: none; }
    .cd-coche svg { stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------------- [MEETAVERSE 2026-11-13] fenêtre « ouvre tes MP » */
.cd-modal { position: fixed; inset: 0; margin: auto; padding: 0; border: 0; background: transparent; color: var(--texte);
    max-width: min(560px, calc(100vw - 32px)); width: 100%; height: fit-content; max-height: calc(100dvh - 32px); overflow: auto; }   /* margin auto : le reset global du site l'annulait (fenêtre collée en haut à gauche) */
.cd-modal::backdrop { background: rgba(2, 6, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cd-modal[open] .cd-modal-boite { animation: cdEntree .45s var(--ease) both; }
.cd-modal-boite {
    position: relative; border-radius: var(--rayon); padding: clamp(24px, 4vw, 38px); text-align: center;
    background: linear-gradient(180deg, #0d1622, #070c14); border: 1px solid rgba(25, 184, 255, .35);
    box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(25, 184, 255, .5);
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.cd-modal-icone { font-size: 40px; line-height: 1; }
.cd-modal h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.03em; }
.cd-modal p { color: var(--texte-2); }
.cd-modal p b, .cd-modal li b { color: var(--texte); }
.cd-modal-etapes { text-align: left; color: var(--texte-2); padding-left: 22px; display: grid; gap: 8px; width: 100%; max-width: 440px; }
.cd-modal-etapes li::marker { color: var(--bleu); font-weight: 800; }
.cd-modal-note { font-size: 13px; }
.cd-modal-case { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; cursor: pointer; text-align: left;
    background: rgba(25, 184, 255, .08); border: 1px solid rgba(25, 184, 255, .3); font-weight: 600; }
.cd-modal-case input { width: 18px; height: 18px; accent-color: var(--bleu); flex: none; }
.cd-modal-boutons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.cd-modal-boutons .bouton[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
