/* ─────────────────────────────────────────────────────────────────────
 * hd-sso.css - boutons Social Login Google + Facebook
 * Palette Rosmaryn (bleu nuit + or). Modes jour et nuit traités.
 * ───────────────────────────────────────────────────────────────────── */

.hd-sso {
    margin-top: 1.4rem;
    width: 100%;
}

/* Séparateur "ou continuer avec" */
.hd-sso__sep {
    position: relative;
    text-align: center;
    margin: 0 0 0.95rem;
    font: 400 0.78rem/1 Lora, serif;
    color: rgba(233, 228, 209, 0.55);
    letter-spacing: 0.04em;
}
.hd-sso__sep::before,
.hd-sso__sep::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 5.5rem);
    height: 1px;
    background: linear-gradient(90deg,
        rgba(201, 168, 76, 0)   0%,
        rgba(201, 168, 76, 0.3) 50%,
        rgba(201, 168, 76, 0)   100%);
}
.hd-sso__sep::before { left: 0; }
.hd-sso__sep::after  { right: 0; }
.hd-sso__sep span {
    position: relative;
    display: inline-block;
    padding: 0 0.75rem;
    background: transparent;
}

/* Container boutons : 2 colonnes égales sur desktop, stack sur mobile */
.hd-sso__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
@media (max-width: 480px) {
    .hd-sso__buttons {
        grid-template-columns: 1fr;
    }
}

/* Bouton individuel : sobre, palette site, ne ressemble PAS au "Sign in
 * with Google" officiel coloré qui dénote totalement avec le thème. */
.hd-sso__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.32);
    background: rgba(11, 20, 40, 0.7);
    color: #e9e4d1;
    text-decoration: none;
    font: 500 0.92rem/1.2 Lora, serif;
    cursor: pointer;
    transition: border-color 0.18s ease,
                background 0.18s ease,
                transform 0.18s ease,
                box-shadow 0.18s ease;
    white-space: nowrap;
    min-height: 44px; /* a11y touch target */
}
.hd-sso__btn:hover,
.hd-sso__btn:focus-visible {
    border-color: rgba(201, 168, 76, 0.72);
    background: rgba(16, 30, 60, 0.92);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.12);
    color: #f5efd7;
    text-decoration: none;
}
.hd-sso__btn:focus-visible {
    outline: 2px solid rgba(201, 168, 76, 0.5);
    outline-offset: 2px;
}
.hd-sso__btn:active {
    transform: translateY(0);
}

.hd-sso__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}
.hd-sso__icon svg {
    display: block;
}

.hd-sso__label {
    font-weight: 500;
}

/* Variante taille sm (popup signup) */
.hd-sso[data-size="sm"] .hd-sso__btn {
    padding: 0.55rem 0.7rem;
    font-size: 0.84rem;
    min-height: 40px;
}
.hd-sso[data-size="sm"] .hd-sso__sep {
    margin-bottom: 0.7rem;
}

/* ─── Contexte popup signup : adapter sur fond clair de la popup ───── */
.hd-signup-popup .hd-sso {
    margin-top: 1rem;
}
.hd-signup-popup .hd-sso__sep {
    color: rgba(11, 20, 40, 0.5);
}
.hd-signup-popup .hd-sso__sep::before,
.hd-signup-popup .hd-sso__sep::after {
    background: linear-gradient(90deg,
        rgba(201, 168, 76, 0)   0%,
        rgba(201, 168, 76, 0.4) 50%,
        rgba(201, 168, 76, 0)   100%);
}
.hd-signup-popup .hd-sso__btn {
    background: #ffffff;
    color: #0b1428;
    border-color: rgba(11, 20, 40, 0.18);
}
.hd-signup-popup .hd-sso__btn:hover,
.hd-signup-popup .hd-sso__btn:focus-visible {
    background: #fdfaf0;
    border-color: rgba(201, 168, 76, 0.7);
    color: #0b1428;
    box-shadow: 0 6px 18px rgba(11, 20, 40, 0.12);
}

/* ─── Mode jour global du site (body.theme-light) ─────────────────── */
body.theme-light .hd-sso__sep {
    color: rgba(11, 20, 40, 0.55);
}
body.theme-light .hd-sso__sep::before,
body.theme-light .hd-sso__sep::after {
    background: linear-gradient(90deg,
        rgba(201, 168, 76, 0)   0%,
        rgba(201, 168, 76, 0.45) 50%,
        rgba(201, 168, 76, 0)   100%);
}
body.theme-light .hd-sso__btn {
    background: #ffffff;
    color: #0b1428;
    border-color: rgba(11, 20, 40, 0.2);
}
body.theme-light .hd-sso__btn:hover,
body.theme-light .hd-sso__btn:focus-visible {
    background: #fdfaf0;
    border-color: rgba(201, 168, 76, 0.7);
    color: #0b1428;
    box-shadow: 0 6px 18px rgba(11, 20, 40, 0.12);
}

/* ─── Espacement à l'intérieur des formulaires auth ─────────────────── */
.auth-form .hd-sso {
    margin-top: 1.5rem;
}
