/*
 * GABARIT — Les six pages « une carte sur le dégradé »
 * /login, /register, /reset/request, /reset/password, /callme, /submited.
 * Chargé après `edouk.css`, qui porte les polices, les tokens et les primitives.
 * `auth.css` n'arrive pas jusqu'ici : ce monde n'a ni le header ni le pied de
 * l'application, il a les siens.
 *
 * Le portage de `Design system pour agence Facebook (4)/export-oultem-pages`
 * ( 2026-09-06 ). La maquette était en styles inline ; ici chaque `style=""` est
 * une classe `gabarit_*`, et chaque couleur en dur un token d'`edouk.css`. Seuls
 * les blancs translucides du décor restent en `rgba` : ils n'ont pas de token, ils
 * sont des voiles sur le dégradé.
*/

/* ========================================
   LA PAGE
   Un seul fond pour les six routes : `--hero-mesh`, le dégradé bleu de la landing
   et du header public, sur un CALQUE FIXE derrière la page — le même mécanisme
   que `.edouk_lp::before` sur l'accueil, pour la même raison : un fond en
   `attachment: fixed` se repeint à chaque image du défilement, un calque
   `position: fixed` est composé une fois. Le header peint le même token calé sur
   le viewport ( voir `.edouk_header_hero` ) : les deux coïncident au pixel.
   ======================================== */
.gabarit {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}
.gabarit::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: #1031a9;
    background-image: var(--hero-mesh);
    background-blend-mode: var(--hero-mesh-blend);
    background-repeat: no-repeat;
}
/* Le sélecteur `*` d'`edouk.css` peindrait chaque `svg` en gris de corps — et
   chaque `<path>` dedans, sur lequel `stroke="currentColor"` se résout. */
.gabarit svg,
.gabarit svg * {
    color: inherit;
}
/* Le mesh du body ne se voit nulle part sous la page, et il se recalcule à chaque
   image du défilement. Même mécanisme que `.edouk_body:has(.edouk_lp)`. */
.edouk_body:has(.gabarit) {
    background-image: none;
    background-attachment: scroll;
}

/* ========================================
   LE DÉCOR
   Deux halos et deux pastilles flottantes, identiques sur les six pages. Tout
   est hors du flux et transparent au clic ; sous 1120px il n'y a plus la place.
   ======================================== */
.gabarit_ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.gabarit_ambient > * {
    position: absolute;
    will-change: transform;
}
.gabarit_aurora {
    top: 9%;
    left: -5%;
    width: 450px;
    height: 364px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(125, 247, 192, 0.2), transparent 66%);
    animation: edouk_lp_aurora 19s ease-in-out infinite;
}
.gabarit_aurora_b {
    bottom: -7%;
    right: -3%;
    width: 486px;
    height: 382px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 66%);
    animation: edouk_lp_aurora_b 23s ease-in-out infinite;
}
.gabarit_bars {
    bottom: 16%;
    left: 5%;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 64px;
    padding: 14px 16px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -22px rgba(4, 14, 50, 0.75);
    animation: edouk_lp_drift_a 17s ease-in-out infinite;
}
.gabarit_bar {
    width: 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.24);
}
.gabarit_bar_1 { height: 26%; }
.gabarit_bar_2 { height: 44%; background: rgba(255, 255, 255, 0.3); }
.gabarit_bar_3 { height: 35%; }
.gabarit_bar_4 { height: 62%; background: rgba(255, 255, 255, 0.38); }
.gabarit_bar_5 { height: 100%; background: var(--mint); }
.gabarit_pill {
    top: 14%;
    right: 4%;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 200px;
    padding: 11px 12px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 22px 44px -22px rgba(4, 14, 50, 0.8);
    animation: edouk_lp_drift_b 15s ease-in-out infinite;
}
.gabarit_pill_avatar {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1;
}
.gabarit_pill_lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.gabarit_pill_line {
    width: 70%;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}
.gabarit_pill_line_b {
    width: 46%;
    background: rgba(255, 255, 255, 0.2);
}
.gabarit_pill_tag {
    flex: none;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--mint-veil);
    border: 1px solid var(--mint-line);
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--mint);
    letter-spacing: 0.08em;
    white-space: nowrap;
}
@media (max-width: 1120px) {
    .gabarit_ambient {
        display: none;
    }
}

/* ========================================
   LE HEADER N'EST PAS ICI. C'est celui de l'application ( `.edouk_header` dans
   `auth.css`, gabarit `auth/_components/header.html.twig` ) : un seul header, le
   logo ne bouge pas d'une page à l'autre. Sur ces six routes il remplace le CTA
   et le globe par « Retour au site » ( `.edouk_header_back` ). La grille dégage
   ses 96px, juste en dessous.
   ======================================== */

/* ========================================
   LA GRILLE — la copie à gauche, la carte à droite
   Une colonne dès que les deux ne tiennent plus côte à côte. Les 96px du haut
   sont le header fixe ( voir `.edouk_main` dans `edouk.css` ), la respiration de
   la maquette vient après.
   ======================================== */
.gabarit_grid {
    position: relative;
    flex: 1;
    width: 100%;
    padding-top: calc(96px + clamp(44px, 6vw, 76px));
    padding-bottom: 72px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
    gap: clamp(36px, 5vw, 56px);
    align-items: center;
}

/* ---------- La colonne de copie ---------- */
.gabarit_copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.gabarit_badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    white-space: nowrap;
}
/* Le point qui bat : deux `<span>`, l'un grossit et s'efface, l'autre reste. */
.gabarit_dot {
    position: relative;
    display: flex;
    flex: none;
    width: 8px;
    height: 8px;
}
.gabarit_dot span {
    border-radius: 999px;
    background: var(--mint);
}
.gabarit_dot span:first-child {
    position: absolute;
    inset: 0;
    animation: edouk_lp_ping 1.9s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.gabarit_dot span:last-child {
    position: relative;
    width: 8px;
    height: 8px;
}
.gabarit_h1 {
    margin: 0;
    font-size: clamp(34px, 4.86vw, 61px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.038em;
    color: #ffffff;
    text-wrap: balance;
}
.gabarit_h1 em {
    font-style: normal;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: var(--mint-light);
}
.gabarit_lead {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 460px;
    text-wrap: pretty;
}
.gabarit_checks {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding-top: 6px;
}
.gabarit_check {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}
.gabarit_check svg {
    flex: none;
    color: var(--mint);
}
/* SUR MOBILE LA COLONNE SE RÉDUIT AU BADGE ET AU TITRE, centrés au-dessus de la
   carte : le chapô et les trois promesses ne se rendent pas, la carte arrive
   sans défiler. Le palier est celui de la tablette dans `edouk.css` ( 768px ). */
@media (max-width: 767px) {
    .gabarit_copy {
        align-items: center;
        text-align: center;
    }
    .gabarit_badge {
        align-self: center;
    }
    .gabarit_lead,
    .gabarit_checks {
        display: none;
    }
}

/* ========================================
   LA CARTE
   Blanche, rayon 22, l'ombre longue et le liseré animé de la carte de capture.
   ======================================== */
.gabarit_card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border-radius: 22px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 32px 72px -22px rgba(4, 14, 50, 0.62);
    padding: 32px;
}
/* D'un bord à l'autre, un dégradé de 300 % qui balaie mint → blanc → or → mint
   une fois toutes les 10,5 s, puis se repose. */
.gabarit_card_edge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mint), #ffffff, var(--edge-gold), var(--mint));
    background-size: 300% 100%;
    animation: gabarit_edge 10.5s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}
.gabarit_card_title {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.022em;
    color: var(--default-color);
}
.gabarit_card_lead {
    margin: 9px 0 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--accent-color);
}

/* ---------- Le formulaire ---------- */
.gabarit_form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}
.gabarit_form_row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}
.gabarit_field {
    display: block;
}
.gabarit_label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: var(--default-color);
    margin-bottom: 7px;
}
/* Le libellé et le lien « oublié ? » sur la même ligne. */
.gabarit_label_row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}
.gabarit_label_row .gabarit_label {
    margin-bottom: 0;
}
.gabarit_label_link {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    color: var(--cta);
    white-space: nowrap;
    transition: color 0.15s ease;
}
@media (hover: hover) {
    .gabarit_label_link:hover {
        color: var(--cta-hover);
    }
}
.gabarit_input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-s);
    background: var(--bg-page);
    padding: 0 14px;
    font-size: 16px;
    line-height: 1;
    color: var(--default-color);
    transition: all 0.15s ease;
}
.gabarit_input::placeholder {
    color: var(--grey-text-muted);
}
.gabarit_input:focus {
    outline: none;
    border-color: var(--cta);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(49, 107, 255, 0.16);
}
/* Le menu déroulant natif hérite du fond du `<select>` : sans cette ligne il
   retombe sur son blanc. Même correctif que `select.edouk_input option`. */
select.gabarit_input option,
select.gabarit_input optgroup {
    background-color: var(--bg-card);
    color: var(--default-color);
}
/* Le champ mot de passe et son œil. Le bouton se pose à la fin de la ligne dans
   les deux sens de lecture, et le champ lui laisse ses 46px. */
.gabarit_pass {
    position: relative;
    display: block;
}
.gabarit_pass .gabarit_input {
    padding-inline-end: 46px;
}
.gabarit_eye {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 48px;
    border: none;
    background: transparent;
    color: var(--grey-text-muted);
    cursor: pointer;
    transition: color 0.15s ease;
}
@media (hover: hover) {
    .gabarit_eye:hover {
        color: var(--cta);
    }
}
.gabarit_eye[aria-pressed="true"] {
    color: var(--cta);
}
.gabarit_submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    border: none;
    border-radius: var(--radius);
    background: var(--cta);
    color: var(--on-accent);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s ease;
}
.gabarit_submit:active {
    transform: translateY(1px);
}
@media (hover: hover) {
    .gabarit_submit:hover {
        background: var(--cta-hover);
        transform: translateY(-1px);
    }
}
/* La flèche est mint dans tous les boutons pleins. Elle se retourne en arabe :
   c'est une direction, pas un signe. */
.gabarit_arrow {
    color: var(--mint);
    font-size: 18px;
    line-height: 1;
}
html[dir="rtl"] .gabarit_arrow {
    display: inline-block;
    transform: scaleX(-1);
}
.gabarit_reassure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--grey-text-muted);
    text-align: center;
}
.gabarit_reassure svg {
    flex: none;
    color: inherit;
}
/* « Pas encore de compte ? Créer mon espace » — la question en gris, le lien en
   bleu, centrés sous le bouton. */
.gabarit_alt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--grey-text-muted);
    text-align: center;
}
.gabarit_alt a {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--cta);
    transition: color 0.15s ease;
}
@media (hover: hover) {
    .gabarit_alt a:hover {
        color: var(--cta-hover);
    }
}

/* ---------- La zone de dépôt ( register ) ----------
   Le composant UX rend ses trois enfants ( input invisible, invite, aperçu ),
   stylés par le bloc `.dropzone-container` d'`edouk.css` sur les tokens
   `--dropzone-*`. Ici on ne repeint que la coque, en réglant ces tokens dans la
   portée : la teinte papier, le pointillé bleu pâle et le rayon 14 de la maquette. */
.gabarit_drop {
    --dropzone-bg: var(--bg-card-tint);
    --dropzone-border: var(--blue-tint-600);
    --dropzone-veil: transparent;
}
.gabarit_drop .dropzone-container {
    border-width: 1.5px !important;
    border-radius: var(--radius) !important;
    padding: 30px 20px;
    transition: all 0.18s ease;
}
.gabarit_drop .dropzone-container::after {
    display: none;
}
.gabarit_drop .dropzone-container:hover {
    border-color: var(--cta) !important;
    background-color: var(--bg-soft) !important;
}

/* ========================================
   LE REMERCIEMENT ( /submited )
   ======================================== */
.gabarit_done {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 6px 6px;
}
.gabarit_done_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: var(--success-light);
    color: var(--success-dark);
}
.gabarit_done .gabarit_card_title {
    margin-top: 20px;
}
.gabarit_done .gabarit_card_lead {
    max-width: 340px;
}
/* Le délai de rappel : une horloge, un surtitre mono, la plage horaire. */
.gabarit_delay {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    text-align: start;
}
.gabarit_delay_icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--cta);
}
.gabarit_delay_body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.gabarit_delay_label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    color: var(--grey-text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
/* L'arabe ne s'espace pas lettre à lettre, et IBM Plex Mono n'en a pas le jeu. */
html[lang="ar"] .gabarit_delay_label,
html[lang="ar"] .gabarit_pill_tag {
    font-family: inherit;
    letter-spacing: 0;
}
.gabarit_delay_text {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--default-color);
    text-wrap: pretty;
}
.gabarit_done .gabarit_submit {
    margin-top: 16px;
}
.gabarit_done .gabarit_reassure {
    margin-top: 16px;
}

/* ========================================
   LE PIED — une ligne
   ======================================== */
.gabarit_foot {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.gabarit_foot p {
    padding-block: 18px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   LES IMAGES-CLÉS
   Les décors tournent sur celles de la landing ( `edouk_lp_ping`, `_drift_a`,
   `_drift_b`, `_aurora`, `_aurora_b` dans `auth.css`, chargé ici ). Seul le
   liseré de la carte a la sienne : la landing n'en a plus.
   ======================================== */
@keyframes gabarit_edge {
    0%    { background-position: 0% 50%;   filter: none; }
    7.1%  { background-position: 100% 50%; filter: saturate(1.35) brightness(1.08); }
    14.3% { background-position: 0% 50%;   filter: none; }
    100%  { background-position: 0% 50%;   filter: none; }
}
@media (prefers-reduced-motion: reduce) {
    .gabarit_ambient > *,
    .gabarit_card_edge,
    .gabarit_dot span:first-child {
        animation: none;
    }
}
