/* Dépôt public de CV, page nx pure (site-nuit.css porte le shell, les
   variables --nx-* et les classes nx-hero / nx-card / nx-btn). Ce fichier ne
   couvre que le widget propre à cette page : hero, zone de dépôt, liste de
   fichiers, progression et états de fin d'envoi, étapes et mentions RGPD.
   Refonte du 28/09 : reproduit la maquette fournie par Thomas (colonne
   gauche héros + puces, illustration cv-scene.webp, carte de dépôt collante
   à droite, « Comment ça marche » en trois étapes horizontales, quatre
   tuiles RGPD + bandeau de confiance). Breakpoints : 900 (bascule interne
   du héros texte/illustration), 1152 (bascule du quadrillage héros+étapes
   / carte de dépôt collante, pas 1024 : à cette largeur une colonne
   collante réduisait le formulaire sous les 560px utiles, mesuré). */

/* Aucun reset `box-sizing` global sur le site (seuls quelques composants
   d'admin l'ont) : les champs, tuiles et cases de cette page combinent tous
   `width: 100%` (ou une piste de grille) avec padding + bordure, en
   content-box, ça déborde de leur conteneur (mesuré : le champ « Nom de la
   structure » sortait du cadre à 600px, régime scindé en 2 colonnes ; à
   320px le débordement d'autres blocs pousse tout contre les bords). */
body.cv-depot-page *,
body.cv-depot-page *::before,
body.cv-depot-page *::after {
    box-sizing: border-box;
}

.cv-depot {
    padding-bottom: clamp(24px, 3vw, 32px);
}

/* --------------------------------------------------------------------------
   Quadrillage général : héros + « Comment ça marche » à gauche, carte de
   dépôt collante à droite (grid-template-areas, DOM inchangé, voir le
   commentaire dans depot.html sur l'ordre de tabulation).
   -------------------------------------------------------------------------- */

.cv-depot__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hero" "form" "steps";
    row-gap: clamp(20px, 3vw, 28px);
    padding-top: clamp(16px, 2.6vw, 28px);
}

/* `.cv-depot__left-col` (hero + étapes) disparaît de la boîte sur téléphone :
   ses deux enfants deviennent des éléments de grille directs de
   `.cv-depot__layout`, placés chacun par leur propre zone nommée, c'est ce
   qui permet d'intercaler le formulaire ENTRE le héros et les étapes sans
   dupliquer le DOM. */
.cv-depot__left-col { display: contents; }
.cv-depot__hero { grid-area: hero; }
.cv-depot__form-card { grid-area: form; }
.cv-depot__steps { grid-area: steps; }

/* >= 1152 (pas 1024 : à cette largeur une colonne collante réduisait le
   formulaire sous les 560px utiles, mesuré) : PLUS de grille à lignes
   fusionnées ici, une carte collante bien plus haute que la colonne de
   gauche forçait la ligne du héros à s'étirer pour offrir à la carte assez
   de hauteur cumulée (règle de répartition des pistes intrinsèques d'une
   grille face à un élément qui enjambe plusieurs lignes), ouvrant un vide
   entre le héros et « Comment ça marche », mesuré le 28/09. Une rangée
   flex ordinaire n'a pas cette mécanique : chaque colonne se dimensionne
   sur SON seul contenu. */
@media (min-width: 1152px) {
    .cv-depot__layout {
        display: flex;
        align-items: flex-start;
        gap: clamp(28px, 4vw, 48px);
    }

    .cv-depot__left-col {
        display: block;
        flex: 1.6 1 0%;
        min-width: 0;
    }

    .cv-depot__hero {
        margin-bottom: clamp(24px, 3vw, 32px);
    }

    .cv-depot__form-card {
        flex: 1 1 0%;
        min-width: 0;
        position: sticky;
        top: calc(var(--nx-header-h) + 20px);
    }
}

/* ---- Héros : pilule, titre énorme, puces, illustration cv-scene ----
   Grille interne à zones nommées : la figure occupe sa propre colonne sur
   PC (>= 900px), et bascule sous le titre sur téléphone, sans jamais
   toucher à l'ordre du DOM (aria-hidden, aucun contrôle focalisable). */

/* TÉLÉPHONE : la maquette est une vue PC ; empilée telle quelle, la zone de
   dépôt arrivait à 852 px (mesuré à 375), plus d'un écran de défilement,
   l'illustration formait un bloc isolé de 218 px et les puces trois lignes.
   Ici le titre et la mascotte se partagent la largeur, les puces tiennent
   sur UNE rangée (icône au-dessus du libellé), et l'action remonte. */
.cv-depot__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
    grid-template-areas:
        "pill     pill"
        "title    fig"
        "subtitle subtitle"
        "points   points";
    column-gap: 8px;
    row-gap: 10px;
    align-items: center;
}


@media (min-width: 900px) {
    .cv-depot__hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        /* La rangée de puces prend les DEUX colonnes : dans la colonne de
           gauche seule (317 px mesurés) elle se pliait sur trois lignes ;
           la maquette la fait courir sous tout le hero, l'illustration
           s'arrêtant au-dessus. */
        grid-template-areas:
            "pill    fig"
            "title   fig"
            "subtitle fig"
            "points  points";
        column-gap: clamp(20px, 3vw, 40px);
        align-items: start;
    }
}

.cv-depot__eyebrow-pill {
    grid-area: pill;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 12px 18px; /* ≥ 12 px : la sonde ne distingue pas une pastille d'une carte, et Thomas non plus */
    border: 1px solid var(--nx-line-strong);
    border-radius: 999px;
    margin: 0;
    color: var(--nx-gold-2);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cv-depot__eyebrow-pill svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

/* Titre ÉNORME, sans-serif très gras : la maquette n'utilise PAS Fraunces
   (la serif de marque) pour ce héros, Inter en 800 reprend le poids visé. */
/* Sélecteur doublé : `site-nuit.css` charge APRÈS cette feuille et impose
   la serif Fraunces à spécificité égale, mesuré : le h1 recevait
   « Fraunces, Georgia, serif » en 800 alors qu'Inter 800 était chargée.
   La maquette est en sans très gras, pas en serif. */
.cv-depot__title.cv-depot__title {
    grid-area: title;
    margin: 0;
    font-family: 'Inter', var(--nx-font-body), system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 7.4vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.cv-depot__subtitle {
    grid-area: subtitle;
    max-width: 30ch;
    margin: 0;
    color: var(--nx-ink);
    font-size: clamp(1.05rem, 1.9vw, 1.3rem);
    font-weight: 500;
    line-height: 1.42;
}

.cv-depot__hero-points {
    grid-area: points;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.cv-depot__hero-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--nx-ink);
    font-size: 0.86rem;
    font-weight: 600;
    /* La maquette met les trois puces SUR UNE LIGNE, chaque libellé plié sur
       deux lignes courtes à côté de son médaillon. Sans borne de largeur,
       « Opportunités près de chez vous » tient sur une ligne et pousse les
       deux autres en dessous. */
    flex: 0 1 auto;
    line-height: 1.15;
}
.cv-depot__point-label { max-width: 12ch; }

.cv-depot__point-icon {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--nx-line-strong);
    border-radius: 999px;
    background: var(--nx-nuit-2);
    color: var(--nx-gold-2);
}

.cv-depot__point-icon svg {
    width: 18px;
    height: 18px;
}

/* Illustration : image déjà détourée (bords fondus en transparence dans le
   fichier), donc AUCUN masque radial ici (nx-mascotte le referait en
   trop, il recadrerait la tour Eiffel/l'enseigne au lieu de se contenter
   du fondu déjà présent). */
.cv-depot__hero-figure {
    grid-area: fig;
    margin: 0;
}

.cv-depot__hero-figure img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}
/* Sur PC la maquette fait de l'illustration la pièce maîtresse : grande,
   à cheval sur la colonne de texte, sans cadre. Le fichier a ses bords
   fondus, elle se pose donc à nu. */


@media (max-width: 899px) {
    /* <= 220px de HAUTEUR (image portrait 860x1040, ratio ~0.827) : ~182px
       de large tient la limite, demandé par Thomas pour ne pas peser sur
       la page à 375px. */
    .cv-depot__hero-figure img {
        max-height: 220px;
        width: auto;
        max-width: 60vw;
    }
}

/* --------------------------------------------------------------------------
   Carte de dépôt (colonne de droite)
   -------------------------------------------------------------------------- */

.cv-depot__form-card {
    padding: clamp(20px, 3.4vw, 28px);
}

.cv-depot__form-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.cv-depot__form-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--nx-ink);
    font-family: var(--nx-font-head);
    font-size: clamp(1.18rem, 2vw, 1.4rem);
    font-weight: 600;
}

.cv-depot__form-icon {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: var(--nx-grad-gold);
    color: var(--nx-gold-ink);
    box-shadow: 0 8px 20px rgba(214, 180, 106, 0.28);
}

.cv-depot__form-icon svg {
    width: 18px;
    height: 18px;
}

.cv-depot__lock-pill svg {
    width: 14px;
    height: 14px;
}

.cv-drop__trust {
    margin: 10px 0 0;
    color: var(--nx-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

/* ---- Zone de glisser-déposer ---- */

.cv-drop {
    position: relative;
    display: grid;
    gap: 10px;
    margin-top: 16px;
    /* ≥ 16 px partout : à 10 px la zone de dépôt était la seule surface
       sous le plancher de 12 px mesuré par la sonde (Thomas : « pas assez
       de marge des fois »). */
    padding: clamp(16px, 1.8vw, 24px);
    /* Le pointillé doré plus présent (2.5px, teinte pleine plutôt que la
       ligne froide générique) : c'est la pièce centrale de la page, elle
       doit se voir avant même de lire le texte. */
    border: 2.5px dashed var(--nx-gold);
    border-radius: var(--nx-r-lg);
    background: rgba(214, 180, 106, 0.05);
    box-shadow: inset 0 0 0 1px rgba(214, 180, 106, 0.06);
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.2s ease;
}

.cv-drop:hover,
.cv-drop:focus-within {
    border-color: var(--nx-gold-2);
    box-shadow: 0 0 0 6px rgba(214, 180, 106, 0.06), inset 0 0 0 1px rgba(214, 180, 106, 0.1);
}

.cv-drop.is-dragover {
    border-color: var(--nx-gold-2);
    background: rgba(214, 180, 106, 0.14);
    box-shadow: 0 0 0 10px rgba(214, 180, 106, 0.09), inset 0 0 0 1px rgba(214, 180, 106, 0.16);
}

.cv-visually-hidden-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cv-drop__zone {
    display: grid;
    justify-items: center;
    gap: 10px;
    /* >= 20px partout, >= 28 sur PC (mesuré : 10/10). */
    padding: clamp(20px, 3.4vw, 30px) clamp(20px, 3.4vw, 28px) clamp(14px, 2vw, 18px);
    text-align: center;
    cursor: pointer;
    border-radius: var(--nx-r-card);
}

.cv-drop__zone:focus-visible {
    outline: 2px solid var(--nx-gold);
    outline-offset: 4px;
}

/* Grand rond doré, pièce centrale de la maquette. */
.cv-drop__icon {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 999px;
    background: var(--nx-grad-gold);
    color: var(--nx-gold-ink);
    box-shadow: 0 10px 30px rgba(214, 180, 106, 0.34);
}

.cv-drop__icon svg {
    width: 32px;
    height: 32px;
}

.cv-drop__title {
    font-size: 1.06rem;
    color: var(--nx-ink);
}

.cv-drop__hint {
    max-width: 46ch;
    color: var(--nx-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.cv-drop__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4px;
}

.cv-drop__browse-btn {
    min-height: 44px;
}

.cv-drop__browse-btn svg {
    width: 17px;
    height: 17px;
}

/* Lien secondaire discret : le dossier entier reste possible, mais ce
   n'est pas le geste que montre la maquette (un seul bouton « Choisir des
   fichiers »). */
.cv-drop__folder-link {
    display: block;
    margin: 8px auto 0;
    padding: 6px 8px;
    border: 0;
    background: none;
    color: var(--nx-muted);
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    min-height: 32px;
}

.cv-drop__folder-link:hover,
.cv-drop__folder-link:focus-visible {
    color: var(--nx-gold-2);
}

/* ---- Liste des fichiers choisis ---- */

.cv-file-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.cv-file-list:empty {
    margin: 0;
}

.cv-file-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--nx-line-cool);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.cv-file-item__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: rgba(150, 165, 205, 0.12);
    color: var(--nx-muted);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cv-file-item__body {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.cv-file-item__name {
    overflow: hidden;
    color: var(--nx-ink);
    font-size: 0.92rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-file-item__meta {
    color: var(--nx-muted);
    font-size: 0.78rem;
}

.cv-file-item__meta--error {
    color: var(--nx-danger);
    font-weight: 650;
}

.cv-file-item__progress {
    grid-column: 1 / -1;
    height: 5px;
    margin-top: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: none;
}

.cv-file-item.is-sending .cv-file-item__progress,
.cv-file-item.is-done .cv-file-item__progress {
    display: block;
}

.cv-file-item__progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: var(--nx-grad-gold);
    transition: width 0.18s ease;
}

.cv-file-item.is-done .cv-file-item__progress-fill {
    background: var(--nx-ok);
}

.cv-file-item__remove {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid var(--nx-line-cool);
    border-radius: 999px;
    background: transparent;
    color: var(--nx-muted);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.cv-file-item__remove:hover,
.cv-file-item__remove:focus-visible {
    border-color: var(--nx-danger);
    color: var(--nx-danger);
}

.cv-file-item.is-sending .cv-file-item__remove,
.cv-depot__form.is-sending .cv-file-item__remove {
    visibility: hidden;
}

/* ---- Qui dépose ? : deux tuiles cliquables, pas des radios nues ----
   Le fieldset natif + sa legend restent (accessibilité, sémantique de
   groupe), mais l'apparence est entièrement reprise : le <label> qui
   enveloppe l'<input type="radio"> est déjà le déclencheur natif du clic,
   on ne touche à rien côté JS. */

.cv-consentement {
    margin: 14px 0 0;
    padding: 0;
    border: 0;
}

.cv-consentement--segment legend {
    padding: 0;
    margin: 0 0 10px;
    color: var(--nx-ink);
    font-size: 0.92rem;
    font-weight: 650;
}

.cv-mode-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    /* Stretch est déjà la valeur par défaut d'une grille, explicité ici :
       les deux tuiles doivent garder la même hauteur même si l'une des deux
       phrases fait plus de mots que l'autre. */
    align-items: stretch;
}

.cv-mode-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    /* >= 14/16 (mesuré : 11/14). */
    padding: 14px 16px;
    border: 1px solid var(--nx-line-cool);
    border-radius: var(--nx-r-card);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.cv-mode-tile:hover {
    border-color: var(--nx-line-strong);
}

.cv-mode-tile input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.cv-mode-tile__icon {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: var(--nx-nuit-2);
    border: 1px solid var(--nx-line-strong);
    color: var(--nx-gold-2);
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.cv-mode-tile__icon svg {
    width: 17px;
    height: 17px;
}

.cv-mode-tile__text {
    color: var(--nx-ink);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.cv-mode-tile:has(input:checked) {
    border-color: var(--nx-gold-2);
    background: rgba(214, 180, 106, 0.1);
}

.cv-mode-tile:has(input:checked) .cv-mode-tile__icon {
    background: var(--nx-grad-gold);
    border-color: var(--nx-gold-2);
    color: var(--nx-gold-ink);
}

.cv-mode-tile:has(input:focus-visible) {
    outline: 2px solid var(--nx-gold);
    outline-offset: 2px;
}

/* ---- Cases de consentement : une ligne propre, une case alignée ---- */

.cv-consentement--cases {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.cv-case {
    display: flex;
    align-items: flex-start;
    /* 12px d'écart case/texte, >= 12 haut/bas et >= 14 côtés (mesuré : 6/10). */
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--nx-line-cool);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.cv-case:has(input:checked) {
    border-color: var(--nx-line-strong);
    background: rgba(214, 180, 106, 0.06);
}

.cv-case input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--nx-gold-2);
}

.cv-case__text {
    color: var(--nx-muted);
    font-size: 0.84rem;
    line-height: 1.32;
}

.cv-case:has(input:checked) .cv-case__text {
    color: var(--nx-ink);
}

@media (max-width: 479px) {
    .cv-mode-tiles {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Champs, icône dans le champ ---- */

.cv-field {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

/* E-mail + structure côte à côte sur un écran assez large : deux champs
   qui tiennent sur une ligne n'ont pas besoin de deux. */
.cv-field-row {
    display: grid;
    gap: 14px;
    margin-top: 4px;
}

.cv-field-row .cv-field {
    margin-top: 0;
}

/* 700 et non 560 : en dessous, le champ « Nom de la structure » débordait du
   cadre (2 colonnes trop tôt pour la largeur de carte disponible à 600px). */
@media (min-width: 700px) {
    .cv-field-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cv-field label {
    color: var(--nx-ink);
    font-weight: 650;
    font-size: 0.92rem;
}

.cv-field__required {
    color: var(--nx-gold-2);
}

.cv-field__optional {
    color: var(--nx-muted);
    font-weight: 500;
}

.cv-field__control {
    position: relative;
}

.cv-field__icon {
    position: absolute;
    top: 50%;
    left: 13px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: var(--nx-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.cv-field__icon svg {
    width: 17px;
    height: 17px;
}

.cv-field input[type="email"],
.cv-field input[type="text"] {
    /* 16px minimum : évite le zoom automatique iOS au focus ; 44px reste la
       cible tactile minimale. */
    width: 100%;
    min-height: 44px;
    padding: 9px 14px 9px 40px;
    border: 1px solid var(--nx-line-cool);
    border-radius: 10px;
    background: rgba(6, 11, 25, 0.55);
    color: var(--nx-ink);
    font-size: 16px;
}

.cv-field input:focus-visible {
    outline: 2px solid var(--nx-gold);
    outline-offset: 2px;
}

.cv-field input.is-invalid {
    border-color: var(--nx-danger);
}

.cv-field__error {
    color: var(--nx-danger);
    font-size: 0.82rem;
    font-weight: 650;
}

/* ---- Alertes ----
   `.cv-alert`/`.cv-success` posent leur propre `display` (flex/grid) : sans
   ce garde, l'attribut HTML `hidden` (poids UA) perd face à une règle
   d'auteur de même spécificité et l'encart reste visible, vide, tant que le
   JS n'a pas retiré l'attribut ET la classe. Mesuré à l'écran (encart rose
   vide sous le formulaire) avant d'être visible dans le code. */

/* Même piège, un cran plus grave : le bloc de cases de l'AUTRE régime porte
   `hidden` (le serveur le pose, le JS le bascule), mais `.cv-consentement--cases`
   est en `display: grid`, qui bat la règle UA `[hidden]`. Mesuré le 27/09 : les
   cinq cases visibles quel que soit le régime, un déposant signait
   l'attestation qui ne le concernait pas.
   `.cv-depot__form-intro[hidden]` : le bloc d'intro du formulaire a été
   retiré de cette page le 28/09 (la zone de dépôt dit déjà l'essentiel),
   mais la règle reste, un futur retour du bloc (autre gabarit partagé) ne
   doit pas retrouver ce piège sans son garde. */
.cv-consentement--cases[hidden],
.cv-depot__form-intro[hidden],
.cv-alert[hidden],
.cv-success[hidden] {
    display: none;
}

.cv-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.cv-alert--error {
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.1);
    color: #ffd2d2;
}

.cv-alert--error a {
    color: inherit;
    text-decoration: underline;
}

/* ---- Bouton d'envoi ---- */

.cv-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 18px;
    /* La lueur dorée des CTA du site (.nx-btn en pose déjà une), un cran
       au-dessus : c'est le seul geste qui compte sur cette page. */
    box-shadow: 0 16px 40px rgba(214, 180, 106, 0.32);
}

.cv-submit:hover {
    box-shadow: 0 18px 46px rgba(214, 180, 106, 0.4);
}

.cv-submit__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.cv-submit__arrow {
    font-weight: 700;
}

.cv-submit__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(11, 16, 32, 0.35);
    border-top-color: var(--nx-gold-ink);
    border-radius: 999px;
    animation: cv-spin 0.7s linear infinite;
}

.cv-depot__form.is-sending .cv-submit__spinner {
    display: inline-block;
}

.cv-depot__form.is-sending .cv-submit {
    opacity: 0.85;
    cursor: progress;
}

@keyframes cv-spin {
    to { transform: rotate(360deg); }
}

/* ---- État de fin d'envoi ---- */

.cv-success {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: clamp(28px, 5vw, 44px) 20px;
    text-align: center;
}

.cv-success__icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.14);
    color: var(--nx-ok);
}

.cv-success__icon svg {
    width: 28px;
    height: 28px;
}

.cv-success__text {
    max-width: 40ch;
    color: var(--nx-ink);
    font-size: 1.08rem;
    font-weight: 650;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   « Comment ça marche ? » : trois étapes en ligne sur PC (pastille dorée
   numérotée + médaillon d'icône + deux lignes de texte, flèches entre les
   étapes), empilées avec le filet vertical sur téléphone.
   -------------------------------------------------------------------------- */

.cv-depot__steps {
    padding: clamp(20px, 3.4vw, 28px);
}

.cv-depot__steps-title {
    margin: 0 0 18px;
}

.cv-depot__steps-list {
    position: relative;
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Le filet qui relie les trois pastilles, empilé (téléphone/tablette) :
   sous les médaillons (z-index 0), du centre du premier au centre du
   dernier, 19px = la moitié de .cv-depot__step-num (38px, num+icone). */
.cv-depot__steps-list::before {
    content: "";
    position: absolute;
    top: 19px;
    bottom: 19px;
    left: 19px;
    width: 2px;
    background: linear-gradient(180deg, var(--nx-gold) 0%, rgba(214, 180, 106, 0.15) 100%);
}

.cv-depot__step {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.cv-depot__step-badges {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.cv-depot__step-num {
    display: grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 999px;
    background: var(--nx-grad-gold);
    color: var(--nx-gold-ink);
    font-family: var(--nx-font-head);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(214, 180, 106, 0.3);
}

.cv-depot__step-icon {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 999px;
    background: var(--nx-nuit-2);
    border: 1px solid var(--nx-line-strong);
    color: var(--nx-gold-2);
}

.cv-depot__step-icon svg {
    width: 19px;
    height: 19px;
}

.cv-depot__step-text {
    margin: 0;
    color: var(--nx-ink);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

/* >= 768 : la ligne verticale cède la place à trois colonnes + des flèches
   entre elles, comme la maquette. */
@media (min-width: 768px) {
    .cv-depot__steps-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .cv-depot__steps-list::before {
        content: none;
    }

    .cv-depot__step {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-right: 22px;
    }

    .cv-depot__step:not(:last-child)::after {
        content: "→";
        position: absolute;
        top: 10px;
        right: -4px;
        color: var(--nx-gold-2);
        font-size: 1.1rem;
        font-weight: 700;
    }
}

/* --------------------------------------------------------------------------
   Mentions RGPD : quatre tuiles (Pourquoi ? / Confidentialité / Durée /
   Vos droits, comme la maquette), une ligne discrète pour ce qu'elle ne
   montre pas (données non voulues, décision humaine), puis le bandeau de
   confiance final.
   -------------------------------------------------------------------------- */

.cv-mentions {
    padding-top: clamp(28px, 4vw, 40px);
}

.cv-mentions__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

@media (min-width: 600px) {
    .cv-mentions__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .cv-mentions__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.cv-mentions__item {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    /* >= 18/20 sur PC (mesuré : 11/12) ; la version mobile (>= 14/16) est
       reprise plus bas dans la requête @media téléphone. */
    padding: 20px 20px 18px;
    border: 1px solid var(--nx-line-cool);
    border-radius: var(--nx-r-card);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

/* Un filet doré fin en haut de chaque tuile, la signature des cartes
   « officielles » du site (tarifs, piliers), reprise ici pour que le mur
   RGPD n'ait plus l'air d'un aplat de texte. */
.cv-mentions__item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--nx-grad-gold);
    opacity: 0.7;
}

.cv-mentions__icon {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 999px;
    background: var(--nx-nuit-2);
    border: 1px solid var(--nx-line-strong);
    color: var(--nx-gold-2);
    box-shadow: 0 0 0 4px rgba(214, 180, 106, 0.05);
}

.cv-mentions__icon svg {
    width: 20px;
    height: 20px;
}

.cv-mentions__item h3 {
    margin: 0 0 4px;
    color: var(--nx-ink);
    font-family: var(--nx-font-head);
    font-size: 0.98rem;
    font-weight: 600;
}

.cv-mentions__item p {
    margin: 0;
    color: var(--nx-muted);
    font-size: 0.82rem;
    line-height: 1.38;
}

.cv-mentions__item p a {
    color: var(--nx-gold-2);
}

.cv-mentions__item strong {
    color: var(--nx-ink);
}

/* Ligne discrète : ce que la maquette réduit à quatre tuiles, en entier,
   sans se faire remarquer, jamais escamotée pour autant. */
.cv-mentions__discreet {
    max-width: 92ch;
    margin: 16px 0 0;
    color: var(--nx-faint);
    font-size: 0.78rem;
    line-height: 1.55;
}

/* ---- Bandeau de confiance final ---- */

.cv-depot__trustbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: clamp(18px, 2.6vw, 26px);
    padding-top: clamp(16px, 2.2vw, 22px);
    border-top: 1px solid var(--nx-line-cool);
}

.cv-depot__trustbar-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cv-depot__trustbar-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--nx-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.cv-depot__trustbar-list li svg {
    width: 16px;
    height: 16px;
    color: var(--nx-gold-2);
}

.cv-depot__trustbar-legal {
    margin: 0;
    color: var(--nx-faint);
    font-size: 0.82rem;
}

/* ---- Pied de page court de cette page (marque, confidentialité, contact) ---- */

.nx-footer.nx-footer--mini {
    padding: clamp(16px, 2vw, 24px) 0 16px;
    margin-top: clamp(16px, 2vw, 24px);
}

.nx-footer.nx-footer--mini .nx-footer__bottom {
    margin-top: 14px;
    padding-top: 12px;
}

/* Double sélecteur : site-nuit.css charge APRÈS ce fichier et pose
   `.nx-footer__inner { display: grid }` avec la même spécificité, sans ce
   renfort, le grid natif gagne à l'ordre de source et les deux blocs de ce
   pied de page se retrouvent collés au lieu d'être écartés. */
.nx-footer--mini .nx-footer__inner--mini {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.nx-footer__inner--mini .nx-footer__brand {
    max-width: 42ch;
}

/* `nav.nx-footer__mini-links` (plutôt que `.nx-footer__mini-links` seul) :
   site-nuit.css pose `.nx-footer nav { display: grid }` (classe + type,
   plus spécifique qu'une classe seule), sans le type ici, ce <nav> restait
   en grille une colonne, empilé au lieu d'une ligne de liens. */
.nx-footer nav.nx-footer__mini-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
}

.nx-footer nav.nx-footer__mini-links a {
    color: var(--nx-muted);
    font-size: 0.92rem;
    text-decoration: none;
}

.nx-footer nav.nx-footer__mini-links a:hover {
    color: var(--nx-gold-2);
}

@media (max-width: 767px) {
    .nx-footer__inner--mini {
        flex-direction: column;
    }
}

/* ---- Téléphone : resserre sans jamais couper l'action principale ---- */

@media (max-width: 767px) {
    .cv-drop {
        gap: 12px;
    }

    .cv-file-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .cv-file-item__remove {
        grid-row: 1;
        grid-column: 3;
    }

    .cv-file-item {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .cv-mentions {
        padding-top: 22px;
    }

    .cv-mentions__grid {
        gap: 8px;
    }

    .cv-mentions__item {
        /* >= 14/16 sur téléphone (mesuré : 9/10). */
        gap: 10px;
        padding: 16px 16px 14px;
    }

    .cv-mentions__icon {
        width: 34px;
        height: 34px;
    }

    .cv-mentions__icon svg {
        width: 16px;
        height: 16px;
    }

    .cv-mentions__item h3 {
        font-size: 0.92rem;
    }

    .cv-mentions__item p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .cv-depot__trustbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nx-footer.nx-footer--mini {
        margin-top: 20px;
        padding: 22px 0 18px;
    }

    .nx-footer__inner--mini .nx-footer__brand p {
        margin-top: 8px;
    }
}

/* --- Suivi de l'import (28/09) : l'analyse se fait après l'envoi -------- */
.cv-import-progress { margin-top: 18px; padding: 16px 18px; border-radius: 16px;
  border: 1px solid var(--nx-line-cool); background: rgba(7, 15, 28, 0.45); text-align: left; }
.cv-import-progress__titre { margin: 0 0 10px; color: var(--nx-ink); }
.cv-import-progress__barre { height: 8px; border-radius: 999px; background: rgba(148, 163, 184, 0.18); overflow: hidden; }
.cv-import-progress__barre span { display: block; height: 100%; background: var(--nx-gold); transition: width .4s ease; }
.cv-import-progress__compteurs { list-style: none; margin: 12px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 0.92rem; color: var(--nx-faint); }
.cv-import-progress__compteurs strong { color: var(--nx-ink); font-size: 1.05rem; margin-right: 4px; }
.cv-import-progress__etat { margin: 0; font-size: 0.9rem; color: var(--nx-faint); }

/* ---- Téléphone (< 900) : hero à deux colonnes, puces sur une rangée ----
   En fin de fichier exprès : une règle de base plus bas dans la feuille
   battait la même déclaration posée plus haut (mesuré : image à 180 px qui
   débordait de 18 px à droite, alors que sa colonne en faisait 144). */
@media (max-width: 899px) {
    .cv-depot__hero-figure { align-self: center; justify-self: end; min-width: 0; }
    .cv-depot__hero-figure img {
        width: 100%;
        max-width: 100%;
        margin: -6px 0 0;
    }
    .cv-depot__hero-points {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-top: 2px;
    }
    .cv-depot__hero-points li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        font-size: 0.78rem;
    }
    .cv-depot__point-label { max-width: 10ch; }
}

/* ---- PC (≥ 900) : l'illustration grande, à cheval sur le titre ----
   Ici aussi en fin de feuille : posée plus haut, la règle de base
   `max-width: 300px` la battait et l'image retombait à 302 px (mesuré). */
@media (min-width: 900px) {
    .cv-depot__hero-figure { align-self: center; }
    /* `max-width: 540px` ne suffisait pas : la colonne `fig` fait ~340 px à
       1440 et bornait l'image à 302 px (mesuré). Elle déborde donc de sa
       colonne, à cheval sur le titre comme dans la maquette. */
    .cv-depot__hero-figure { justify-self: center; overflow: visible; }
    .cv-depot__hero-figure img {
        /* 440 px et décalée à gauche : à 520 elle mordait la carte de dépôt
           de 48 px (bord droit 884 pour une carte à 836, mesuré à 1440). */
        width: min(440px, 140%);
        max-width: none;
        margin: -12px 0 0 -100px;
    }
}
