/* LA FENÊTRE DE CONNEXION, maquette du 17 novembre 2026 (407:2).
   880 sur 580, arrondie à 24, l'ombre forte. À gauche 360 sur le dégradé
   volcan, la phrase puis trois visuels de la Vitrine penchés. À droite 520,
   40 en haut, 48 sur les côtés puis en bas, 20 entre chaque élément. Au
   téléphone, un écran plein, la bande des visuels sur l'accueil seulement.
   Voir templates/partials/_connexion.html.twig. */

.cx {
    width: min(880px, calc(100vw - 2 * var(--space-6)));
    max-width: none;
    min-height: 580px;
    max-height: calc(100dvh - 2 * var(--space-6));
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    overflow: hidden;
}
.cx[open], .cx--page { display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.cx::backdrop { background: var(--overlay); }
.cx--page { position: relative; z-index: var(--z-raised); margin: var(--space-12) auto var(--space-16); }

.cx__visuel { position: relative; overflow: hidden; background: var(--gradient-bande); }
.cx__visuel-titre {
    position: absolute;
    top: var(--space-10);
    left: var(--space-10);
    width: 280px;
    margin: 0;
    font-size: var(--fs-titre-s);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    color: var(--on-accent);
}
.cx__img { position: absolute; width: 160px; height: 226px; object-fit: cover; border-radius: var(--radius-xs); box-shadow: var(--shadow-lg); }
.cx__img--1 { left: 16px; top: 158px; rotate: 6deg; }
.cx__img--2 { left: 186px; top: 121px; rotate: -5deg; }
.cx__img--3 { left: 112px; top: 351px; width: 172px; height: 214px; rotate: 2deg; }

.cx__corps { overflow-y: auto; }
.cx__ecran { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-10) var(--space-12) var(--space-12); }
.cx__ecran[hidden] { display: none; }
.cx__haut { display: flex; align-items: center; justify-content: space-between; height: var(--space-8); }
.cx__icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--space-8);
    height: var(--space-8);
    padding: 0;
    border: 0;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--icon);
    cursor: pointer;
}
.cx__icone:hover { background: var(--surface-3); }
.cx__icone:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.cx__titre { margin: 0; font-size: var(--fs-titre-m); font-weight: var(--fw-medium); line-height: var(--lh-ui); letter-spacing: var(--ls-titre); }
.cx__titre:focus { outline: none; }
.cx__texte { margin: 0; font-size: var(--fs-body); line-height: var(--lh-normal); color: var(--muted); overflow-wrap: anywhere; }
.cx__large { width: 100%; gap: var(--space-2); }
.cx__large svg { width: var(--icon-md); height: var(--icon-md); flex: none; }
.cx__legal { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-normal); color: var(--muted); }
.cx__legal a { color: inherit; text-decoration: underline; }
.cx__form { display: flex; flex-direction: column; gap: var(--space-5); }
.cx__form .v-field { margin-bottom: 0; }
.cx__erreur { margin: 0; font-size: var(--fs-xs); color: var(--teinte-rose); }
.cx__lien {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: var(--fs-btn-sm);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-ui);
    color: var(--action);
    cursor: pointer;
}
.cx__lien:hover { text-decoration: underline; }
.cx__pastille {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--space-16);
    height: var(--space-16);
    border-radius: var(--radius-pill);
    background: var(--pastel-rose);
    color: var(--action);
}
.cx__piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* LE CHAMP DE MOT DE PASSE ET SON ŒIL, partials/_mot_de_passe.html.twig.
   Venu de auth.css, la fenêtre de connexion le porte sur toutes les pages. */
.auth__mdp { position: relative; }
.auth__mdp .v-input { padding-right: var(--space-12); }
.auth__mdp .pwd-toggle {
    position: absolute;
    top: 50%;
    right: var(--space-1);
    transform: translateY(-50%);
    width: var(--control-h-sm);
    height: var(--control-h-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.auth__mdp .pwd-toggle:hover { background: var(--surface-2); color: var(--text); }
.auth__mdp .pwd-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.auth__mdp .pwd-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.auth__mdp .pwd-toggle .eye-off, .auth__mdp .pwd-toggle.visible .eye-on { display: none; }
.auth__mdp .pwd-toggle.visible .eye-off { display: block; }

/* Au téléphone, un écran plein. La bande de 190 des visuels ne sort que sur
   l'accueil, comme le dessin (409:112). */
@media (max-width: 760px) {
    .cx { width: 100vw; height: 100dvh; min-height: 0; max-height: none; border-radius: 0; }
    .cx[open], .cx--page { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    .cx--page { margin: 0; border-radius: 0; box-shadow: none; min-height: calc(100dvh - var(--nav-h)); height: auto; }
    .cx__visuel { display: none; height: 190px; }
    .cx:has([data-ecran="accueil"]:not([hidden])) .cx__visuel { display: block; }
    .cx__visuel-titre { display: none; }
    .cx__img { width: 120px; height: 168px; }
    .cx__img--1 { left: 70px; top: 40px; rotate: -6deg; }
    .cx__img--2 { left: 150px; top: 20px; rotate: 3deg; }
    .cx__img--3 { left: 225px; top: 44px; width: 128px; height: 152px; rotate: 6deg; }
    .cx__ecran { padding: var(--space-3) var(--space-6) var(--space-8); }
    .cx__titre { font-size: calc(var(--fs-titre-m) - 6px); }
}

/* LES PAGES OUVERTES DEPUIS UN COURRIEL, écrans 8 à 10 (408:416). Le fond
   doux, le logo à 48 puis 28, la carte de 480 au milieu, 48 dedans, 20 entre
   chaque élément, centrée. */
.cx-seule { margin-top: calc(-1 * var(--nav-h)); position: relative; z-index: var(--z-raised); display: flex; align-items: center; justify-content: center; min-height: 100dvh; padding: var(--space-24) var(--space-6); background: var(--surface-2); }
.cx-seule__logo { position: absolute; top: calc(var(--space-6) + var(--space-1)); left: var(--space-12); text-decoration: none; }
.cx-seule__carte {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
    width: min(480px, 100%);
    padding: var(--space-12);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.cx-seule__carte .cx__form { align-self: stretch; text-align: left; }
@media (max-width: 760px) {
    .cx-seule { align-items: flex-start; padding: var(--space-16) 0 0; background: var(--surface); }
    .cx-seule__logo { top: calc(var(--space-3) + 2px); left: var(--space-6); }
    .cx-seule__carte { align-items: flex-start; padding: var(--space-6); border-radius: 0; box-shadow: none; text-align: left; }
}
