/* ==========================================================================
   Psy.Link — Écrans d'authentification (espaces Patient & Psychologue)
   Feuille autonome : n'a besoin ni de Metronic ni de site.css.
   Utilisée par le layout `authentification`.

   Deux déclinaisons, pilotées par une classe sur .cx :
     .cx--patient  → dominante verte / teal
     .cx--psy      → dominante teal profond + ambre
   L'objectif visuel est qu'on sache en une seconde sur quel espace on est.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    --vert: #31a99f;
    --vert-fonce: #1e7f77;
    --vert-clair: #e6f5f3;
    --teal: #0B5768;
    --teal-2: #258C8C;
    --ambre: #FFAE1E;
    --ambre-fonce: #7a5200;
    --encre: #12333a;
    --gris: #5c6f72;
    --gris-clair: #8a9b9d;
    --doux: #F5FAFA;
    --ligne: #E3ECEC;
    --blanc: #fff;

    --rayon: 18px;
    --rayon-sm: 12px;
    --rayon-pill: 999px;

    --ff: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.cx-body {
    margin: 0;
    font-family: var(--ff);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gris);
    background: var(--blanc);
    -webkit-font-smoothing: antialiased;
}

:where(body.cx-body h1,
body.cx-body h2,
body.cx-body h3) {
    font-family: var(--ff);
    color: var(--encre);
    line-height: 1.15;
    letter-spacing: -.028em;
    font-weight: 700;
    margin: 0 0 .5em;
}

:where(body.cx-body p) {
    margin: 0 0 1em;
}

:where(body.cx-body a) {
    color: inherit;
    text-decoration: none;
}

:where(body.cx-body img) {
    max-width: 100%;
    display: block;
}

:where(body.cx-body ul) {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--vert);
    outline-offset: 2px;
    border-radius: 6px;
}

.cx-cache {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   3. Ossature : colonne formulaire + panneau illustré
   -------------------------------------------------------------------------- */
.cx {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;

    /* Identité par défaut (patient) — surchargée par .cx--psy */
    --accent: var(--vert);
    --accent-fonce: var(--vert-fonce);
    --accent-doux: var(--vert-clair);
    --accent-contraste: #fff;
    --panneau-fond:
        radial-gradient(760px 460px at 18% 6%, rgba(84, 214, 197, .40) 0%, rgba(84, 214, 197, 0) 62%),
        radial-gradient(620px 420px at 96% 78%, rgba(255, 174, 30, .16) 0%, rgba(255, 174, 30, 0) 60%),
        linear-gradient(162deg, #0e6a79 0%, #199384 55%, #31a99f 100%);
}

.cx--psy {
    --accent: var(--teal);
    --accent-fonce: #06414f;
    --accent-doux: #e4eff1;
    --accent-contraste: #fff;
    --panneau-fond:
        radial-gradient(720px 460px at 14% 4%, rgba(37, 140, 140, .55) 0%, rgba(37, 140, 140, 0) 64%),
        radial-gradient(680px 460px at 94% 88%, rgba(255, 174, 30, .26) 0%, rgba(255, 174, 30, 0) 62%),
        linear-gradient(168deg, #062f3b 0%, #0B5768 58%, #10707f 100%);
}

/* Colonne formulaire ------------------------------------------------------- */
.cx-colonne {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 26px 22px 30px;
    background:
        radial-gradient(620px 420px at 0% 0%, rgba(49, 169, 159, .07) 0%, rgba(49, 169, 159, 0) 60%),
        var(--blanc);
}

.cx--psy .cx-colonne {
    background:
        radial-gradient(620px 420px at 0% 0%, rgba(11, 87, 104, .08) 0%, rgba(11, 87, 104, 0) 60%),
        var(--blanc);
}

.cx-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cx-logo img {
    height: 34px;
    width: auto;
}

/* Bascule discrète en haut de page (le CTA principal est plus bas) */
.cx-bascule-mini {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px 8px 12px;
    border: 1px solid var(--ligne);
    border-radius: var(--rayon-pill);
    background: var(--blanc);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--encre);
    box-shadow: 0 2px 8px -3px rgba(11, 87, 104, .14);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cx-bascule-mini svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--gris-clair);
    transition: transform .18s ease, color .18s ease;
}

.cx-bascule-mini:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--ligne));
    box-shadow: 0 10px 22px -16px rgba(11, 87, 104, .6);
    transform: translateY(-1px);
}

.cx-bascule-mini:hover svg {
    color: var(--accent);
    transform: translateX(2px);
}

/* Corps centré ------------------------------------------------------------- */
.cx-corps {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 0 26px;
}

.cx-boite {
    width: 100%;
    max-width: 452px;
}

/* Pastille d'espace : le repère « où suis-je » ----------------------------- */
.cx-pastille {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 11px;
    border-radius: var(--rayon-pill);
    background: var(--accent-doux);
    color: var(--accent-fonce);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    margin-bottom: 20px;
}

.cx--psy .cx-pastille {
    background: #edf4f5;
    color: var(--teal);
}

.cx-pastille svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.cx-titre {
    font-size: clamp(28px, 3.4vw, 34px);
    margin: 0 0 10px;
}

.cx-sous-titre {
    font-size: 15.5px;
    color: var(--gris);
    margin: 0 0 26px;
}

/* --------------------------------------------------------------------------
   4. Formulaire
   -------------------------------------------------------------------------- */
.cx-champ {
    margin-bottom: 16px;
}

.cx-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--encre);
    margin-bottom: 7px;
}

.cx-input-boite {
    position: relative;
    display: flex;
    align-items: center;
}

.cx-input-boite>svg {
    position: absolute;
    left: 15px;
    width: 18px;
    height: 18px;
    color: var(--gris-clair);
    pointer-events: none;
    transition: color .18s ease;
}

.cx-input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 45px;
    border: 1.5px solid var(--ligne);
    border-radius: var(--rayon-sm);
    background: var(--doux);
    font-family: inherit;
    font-size: 15.5px;
    color: var(--encre);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.cx-input::placeholder {
    color: var(--gris-clair);
}

.cx-input:focus {
    outline: none;
    background: var(--blanc);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.cx-input-boite:focus-within>svg {
    color: var(--accent);
}

.cx-input--mdp {
    padding-right: 48px;
}

/* Œil « afficher le mot de passe » */
.cx-oeil {
    position: absolute;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--gris-clair);
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.cx-oeil:hover {
    color: var(--accent);
    background: var(--accent-doux);
}

.cx-oeil svg {
    width: 18px;
    height: 18px;
}

/* Ligne « rester connecté » / mot de passe oublié --------------------------- */
.cx-ligne-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 4px 0 24px;
}

.cx-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--gris);
    cursor: pointer;
    user-select: none;
}

.cx-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.cx-lien {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-fonce);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.cx-lien:hover {
    border-bottom-color: currentColor;
}

/* Bouton principal --------------------------------------------------------- */
.cx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--rayon-sm);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-fonce) 100%);
    color: var(--accent-contraste);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    cursor: pointer;
    box-shadow: 0 14px 26px -16px color-mix(in srgb, var(--accent-fonce) 90%, transparent);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cx-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 20px 34px -18px color-mix(in srgb, var(--accent-fonce) 95%, transparent);
}

.cx-btn:active {
    transform: translateY(0);
}

.cx-btn svg {
    width: 18px;
    height: 18px;
}

/* Pied du formulaire ------------------------------------------------------- */
.cx-inscription {
    margin: 20px 0 0;
    text-align: center;
    font-size: 14.5px;
    color: var(--gris);
}

.cx-inscription a {
    font-weight: 700;
    color: var(--accent-fonce);
}

.cx-inscription a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   5. Bascule d'espace — le CTA anti-erreur
   -------------------------------------------------------------------------- */
.cx-separateur {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 18px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gris-clair);
}

.cx-separateur::before,
.cx-separateur::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ligne);
}

/* La carte prend les couleurs de l'AUTRE espace : on comprend qu'on change
   d'endroit, pas qu'on reste au même. */
.cx-bascule {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px 18px;
    border: 1.5px solid var(--bascule-bordure);
    border-radius: var(--rayon);
    background: var(--bascule-fond);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* Depuis l'espace patient, on bascule vers le psy (teal profond + ambre) */
.cx--patient .cx-bascule {
    --bascule-couleur: var(--teal);
    --bascule-fond: #eef5f6;
    --bascule-bordure: #cfe1e4;
}

/* Depuis l'espace psy, on bascule vers le patient (vert) */
.cx--psy .cx-bascule {
    --bascule-couleur: var(--vert-fonce);
    --bascule-fond: var(--vert-clair);
    --bascule-bordure: #bfe4df;
}

.cx-bascule:hover {
    border-color: var(--bascule-couleur);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -24px rgba(11, 87, 104, .75);
}

.cx-bascule-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 13px;
    background: var(--bascule-couleur);
    color: #fff;
}

.cx-bascule-ico svg {
    width: 21px;
    height: 21px;
}

.cx-bascule-texte {
    flex: 1;
    min-width: 0;
}

.cx-bascule-texte strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--encre);
    letter-spacing: -.01em;
}

.cx-bascule-texte span {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--gris);
}

.cx-bascule-fleche {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .8);
    color: var(--bascule-couleur);
    transition: transform .2s ease;
}

.cx-bascule-fleche svg {
    width: 16px;
    height: 16px;
}

.cx-bascule:hover .cx-bascule-fleche {
    transform: translateX(3px);
}

/* Encart secondaire (ex : accès formations pour les psys) ------------------- */
.cx-encart {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px dashed #f0d49a;
    border-radius: var(--rayon-sm);
    background: #fffaf0;
}

.cx-encart-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    background: var(--ambre);
    color: #4a3200;
}

.cx-encart-ico svg {
    width: 18px;
    height: 18px;
}

.cx-encart-texte {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--gris);
}

.cx-encart-texte strong {
    display: block;
    color: var(--encre);
    font-size: 14px;
}

.cx-encart a {
    font-weight: 700;
    color: var(--ambre-fonce);
    white-space: nowrap;
    font-size: 13.5px;
}

.cx-encart a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   6. Pied de colonne
   -------------------------------------------------------------------------- */
.cx-pied {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--gris-clair);
}

.cx-pied a:hover {
    color: var(--accent-fonce);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   7. Messages Flash
   -------------------------------------------------------------------------- */
.cx-boite .flash-alert,
.cx-boite .message {
    padding: 13px 16px;
    border-radius: var(--rayon-sm);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
    border: 1px solid transparent;
    cursor: pointer;
}

.cx-boite .flash-alert a {
    font-weight: 700;
    text-decoration: underline;
}

.cx-boite .alert-danger {
    background: #fdecec;
    border-color: #f6c9c9;
    color: #8c2020;
}

.cx-boite .alert-success {
    background: var(--vert-clair);
    border-color: #bfe4df;
    color: #17605a;
}

.cx-boite .alert-info {
    background: #eaf3fb;
    border-color: #c6dcf0;
    color: #1c4f76;
}

.cx-boite .warning,
.cx-boite .message.warning {
    background: #fff6e5;
    border-color: #f3d9a5;
    color: #7a5200;
}

.cx-boite .hidden {
    display: none;
}

/* --------------------------------------------------------------------------
   8. Panneau illustré (widgets)
   -------------------------------------------------------------------------- */
.cx-panneau {
    display: none;
    position: relative;
    overflow: hidden;
    padding: 44px 40px;
    background: var(--panneau-fond);
    color: rgba(255, 255, 255, .84);
}

.cx-panneau-interieur {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 470px;
    margin: 0 auto;
}

/* Halos décoratifs */
.cx-halo {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.cx-halo-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -120px;
    background: rgba(255, 255, 255, .18);
}

.cx-halo-2 {
    width: 340px;
    height: 340px;
    bottom: -140px;
    left: -110px;
    background: rgba(84, 214, 197, .35);
}

.cx--psy .cx-halo-2 {
    background: rgba(255, 174, 30, .28);
}

/* Trame de points */
.cx-panneau::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .5;
    pointer-events: none;
}

.cx-panneau-logo {
    margin-bottom: 34px;
}

.cx-panneau-logo img {
    height: 36px;
    width: auto;
}

.cx-panneau-titre {
    color: #fff;
    font-size: clamp(24px, 2.4vw, 31px);
    line-height: 1.2;
    margin: 0 0 12px;
}

.cx-panneau-texte {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
    margin: 0 0 28px;
    max-width: 40ch;
}

/* Widgets « verre » -------------------------------------------------------- */
.cx-widgets {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cx-widget {
    position: relative;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 24px 46px -30px rgba(0, 0, 0, .8);
    color: #fff;
    animation: cx-monte .7s cubic-bezier(.22, .61, .36, 1) both;
}

.cx-widget:nth-child(1) {
    animation-delay: .05s;
}

.cx-widget:nth-child(2) {
    animation-delay: .16s;
    margin-left: 26px;
}

.cx-widget:nth-child(3) {
    animation-delay: .27s;
    margin-right: 22px;
}

@keyframes cx-monte {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cx-widget {
        animation: none;
    }
}

.cx-widget-entete {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .68);
    margin-bottom: 12px;
}

.cx-widget-entete svg {
    width: 14px;
    height: 14px;
}

.cx-widget-ligne {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cx-widget-ligne+.cx-widget-ligne {
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

/* Avatar : portraits réels sous /img/connexion (crédits dans CREDITS.txt) */
.cx-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, .16);
    border: 1.5px solid rgba(255, 255, 255, .45);
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .85);
}

/* Déclinaison dense, pour les lignes d'agenda */
.cx-avatar-sm {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-width: 1px;
}

/* Emplacement sans personne (créneau libre) : on garde l'alignement */
.cx-avatar-vide {
    display: inline-block;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, .38);
}

.cx-widget-nom {
    flex: 1;
    min-width: 0;
}

.cx-widget-nom strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.cx-widget-nom span {
    display: block;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .7);
}

.cx-heure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.cx-etiquette {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--rayon-pill);
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    white-space: nowrap;
}

.cx-etiquette--ok {
    background: rgba(126, 233, 199, .26);
    color: #d9fff2;
}

.cx-etiquette--ambre {
    background: rgba(255, 174, 30, .28);
    color: #ffe3ad;
}

.cx-point {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.cx-widget-bouton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 13px;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    color: var(--accent-fonce);
    font-size: 13.5px;
    font-weight: 700;
}

.cx--psy .cx-widget-bouton {
    color: var(--teal);
}

.cx-widget-bouton svg {
    width: 15px;
    height: 15px;
}

/* Barre de progression (exercices patient) */
.cx-progression {
    height: 7px;
    border-radius: var(--rayon-pill);
    background: rgba(255, 255, 255, .2);
    overflow: hidden;
    margin-top: 10px;
}

.cx-progression span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #fff;
}

/* Chiffres clés (widget psy) */
.cx-chiffres {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cx-chiffre strong {
    display: block;
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.cx-chiffre span {
    display: block;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .68);
    line-height: 1.3;
    margin-top: 2px;
}

/* Liste d'arguments sous les widgets */
.cx-arguments {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 30px;
}

.cx-arguments li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .84);
}

.cx-arguments svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #fff;
    opacity: .85;
}

/* --------------------------------------------------------------------------
   9. Bandeau mobile (remplace le panneau sous 992px)
   -------------------------------------------------------------------------- */
.cx-bandeau {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    margin: 0 0 22px;
    border-radius: 14px;
    background: var(--panneau-fond);
    color: #fff;
    box-shadow: 0 16px 30px -22px rgba(11, 87, 104, .9);
}

.cx-bandeau-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .24);
}

.cx-bandeau-ico svg {
    width: 19px;
    height: 19px;
}

.cx-bandeau strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.cx-bandeau span {
    display: block;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .8);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   10. Points de rupture
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .cx-colonne {
        width: 52%;
        padding: 30px 44px 32px;
    }

    .cx-panneau {
        display: block;
        width: 48%;
    }

    .cx-bandeau {
        display: none;
    }

    /* La pastille d'espace suffit : on masque le doublon du logo à gauche
       uniquement si le panneau porte déjà la marque. */
    .cx-corps {
        padding: 20px 0;
    }
}

@media (min-width: 1400px) {
    .cx-colonne {
        padding: 34px 72px 36px;
    }

    .cx-boite {
        max-width: 470px;
    }

    .cx-panneau {
        padding: 54px 56px;
    }
}

@media (max-width: 480px) {
    .cx-colonne {
        padding: 20px 18px 26px;
    }

    .cx-bascule {
        padding: 15px 14px;
        gap: 12px;
    }

    .cx-bascule-fleche {
        display: none;
    }

    .cx-entete .cx-bascule-mini {
        font-size: 12.5px;
        padding: 7px 12px 7px 10px;
    }
}

/* --------------------------------------------------------------------------
   11. Page de choix d'espace (/connexion)
   -------------------------------------------------------------------------- */
.cx-choix {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 26px 22px 30px;
    background:
        radial-gradient(760px 520px at 12% -8%, rgba(49, 169, 159, .16) 0%, rgba(49, 169, 159, 0) 62%),
        radial-gradient(680px 480px at 92% 108%, rgba(11, 87, 104, .13) 0%, rgba(11, 87, 104, 0) 60%),
        var(--doux);
}

.cx-choix-corps {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.cx-choix-boite {
    width: 100%;
    max-width: 880px;
    text-align: center;
}

.cx-choix-titre {
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 12px;
}

.cx-choix-sous-titre {
    font-size: 16.5px;
    color: var(--gris);
    margin: 0 auto 40px;
    max-width: 52ch;
}

.cx-cartes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
}

@media (min-width: 760px) {
    .cx-cartes {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }
}

.cx-carte {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 24px;
    border: 1.5px solid var(--ligne);
    border-radius: 22px;
    background: var(--blanc);
    box-shadow: 0 18px 40px -32px rgba(11, 87, 104, .5);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.cx-carte::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--carte-accent);
}

.cx-carte:hover {
    transform: translateY(-4px);
    border-color: var(--carte-accent);
    box-shadow: 0 32px 56px -36px rgba(11, 87, 104, .7);
}

.cx-carte--patient {
    --carte-accent: var(--vert);
    --carte-doux: var(--vert-clair);
    --carte-texte: var(--vert-fonce);
}

.cx-carte--psy {
    --carte-accent: var(--teal);
    --carte-doux: #e9f2f4;
    --carte-texte: var(--teal);
}

.cx-carte-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--carte-doux);
    color: var(--carte-texte);
    margin-bottom: 18px;
}

.cx-carte-ico svg {
    width: 26px;
    height: 26px;
}

.cx-carte h2 {
    font-size: 21px;
    margin: 0 0 8px;
}

.cx-carte p {
    font-size: 14.5px;
    color: var(--gris);
    margin: 0 0 18px;
}

.cx-carte-liste {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 24px;
}

.cx-carte-liste li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--gris);
}

.cx-carte-liste svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--carte-accent);
}

.cx-carte-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: auto;
    height: 50px;
    padding: 0 20px;
    border-radius: var(--rayon-sm);
    background: var(--carte-accent);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    transition: filter .18s ease;
}

.cx-carte-btn svg {
    width: 17px;
    height: 17px;
    transition: transform .18s ease;
}

.cx-carte:hover .cx-carte-btn svg {
    transform: translateX(3px);
}

.cx-choix-note {
    margin: 32px 0 0;
    font-size: 14px;
    color: var(--gris-clair);
}

.cx-choix-note a {
    font-weight: 600;
    color: var(--teal);
}

.cx-choix-note a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   12. Correctifs & adaptations en hauteur
   -------------------------------------------------------------------------- */
/* L'icône « œil » masquée l'est vraiment, quelle que soit la règle amont */
.cx-oeil svg[hidden] {
    display: none;
}

.cx-inscription {
    margin-top: 24px;
}

/* Écrans peu hauts (portables 13") : on resserre le panneau plutôt que de
   laisser les widgets se faire rogner. */
@media (min-width: 992px) and (max-height: 880px) {
    .cx-panneau {
        padding: 32px 40px;
    }

    .cx-panneau-logo {
        margin-bottom: 22px;
    }

    .cx-panneau-texte {
        margin-bottom: 20px;
    }

    .cx-widgets {
        gap: 11px;
    }

    .cx-arguments {
        margin-top: 20px;
    }
}

@media (min-width: 992px) and (max-height: 760px) {
    .cx-panneau-titre {
        font-size: 26px;
    }
}

/* Couleur des liens : --accent-fonce sert au dégradé du bouton (très sombre
   côté psy), il est illisible en tant que lien. Token dédié. */
.cx {
    --accent-lien: var(--vert-fonce);
}

.cx--psy {
    --accent-lien: #10707f;
}

.cx-lien,
.cx-inscription a {
    color: var(--accent-lien);
}

/* Sous 992px, le bandeau coloré porte déjà l'identité de l'espace :
   la pastille ferait doublon juste en dessous. */
@media (max-width: 991.98px) {
    .cx-pastille {
        display: none;
    }
}
