/* ===================================== */
/*   PAGE CONNEXION – Human First        */
/* ===================================== */

.connexion-main {
    background: #ffffff;
    padding: 40px 0 80px;
}

.connexion-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

/* ---------- ONGLET STYLE "NOS ACTIONS" ---------- */

.tabs {
    margin-top: 28px;
}

/* Barre d’onglets : bandeau clair avec coins arrondis à gauche */
.tab-buttons {
    display: flex;
    align-items: stretch;
    background: #f3f5f8;              /* gris très clair, comme sur Nos actions */
    border-radius: 12px 12px 0 0;     /* arrondi côté gauche */
    overflow: hidden;
}

/* Onglets */
.tab-button {
    flex: 1;
    border: none;
    background: #f3f5f8;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a3350;                   /* bleu/gris foncé */
    cursor: pointer;
    text-align: center;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
    border-right: 1px solid #e1e5ec;
}

.tab-button:last-child {
    border-right: none;
}

/* Onglet actif : fond bleu marine + texte blanc (comme "Nos actions") */
.tab-button.active {
    background: #0A2745;              /* même bleu que le site */
    color: #ffffff;
}

/* Survol d’un onglet inactif */
.tab-button:not(.active):hover {
    background: #e4e8f0;
}

/* Contenu des onglets */
.tab-panels {
    padding-top: 20px;
    border-top: 1px solid #e1e5ec;
}

/* Par défaut, caché */
.tab-panel {
    display: none;
}

/* Onglet visible */
.tab-panel.active {
    display: block;
}

/* ---------- Formulaire de connexion ---------- */

.form-connexion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0A2745;
}

.form-group input {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #cccccc;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0A2745;
    box-shadow: 0 0 0 2px rgba(10, 39, 69, 0.18);
}

/* Bouton connexion */
.btn-connexion {
    background: #0A2745;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    align-self: flex-start;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-connexion:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    opacity: 0.96;
}

.btn-connexion:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: none;
}

.form-helper {
    font-size: 0.9rem;
    color: #555;
    margin-top: 4px;
}

.link-create-account {
    color: #0A2745;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted rgba(10, 39, 69, 0.5);
}

.link-create-account:hover {
    border-bottom-style: solid;
}

/* Texte de l’onglet Information */
.tab-panel .text_section {
    color: #555555;
    margin-left: 0;
    margin-right: 0;
    margin-top: 8px;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .connexion-wrapper {
        margin: 16px;
        padding: 18px 16px 22px;
    }

    .tab-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .tab-button {
        flex: 0 0 auto;
        padding: 10px 18px;
        white-space: nowrap;
    }
}
