/*
|--------------------------------------------------------------------------
| BEN'S LINE DANCE
| ESPACE MEMBRE
| Connexion + inscription
| Design harmonisé avec EVENTS / DECONNEXION
|--------------------------------------------------------------------------
*/


/* =========================================================
   1. PAGE
========================================================= */

.member-page {

    width: 100%;

    min-height: calc(100vh - 80px);

    background: #f8f5ee;

    color: #302a24;

}


/* =========================================================
   2. HERO
========================================================= */

/* =========================================================
   HERO — ESPACE MEMBRE
   Même dégradé que la page ÉVÈNEMENTS
   Hauteur : 190px
========================================================= */

.member-top {

    position: relative;

    width: 100%;

    height: 190px;
    min-height: 190px;

    background:
        linear-gradient(
            135deg,
            #4f624b 0%,
            #66785f 45%,
            #80694f 100%
        );

    color: #fffaf0;

    border-bottom: 1px solid #ddd5c7;

    overflow: hidden;

}


/* =========================================================
   EFFETS LUMINEUX DU HERO
========================================================= */

.member-top::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 15% 30%,
            rgba(255,255,255,.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(255,255,255,.06),
            transparent 30%
        );

    pointer-events: none;

}


/* =========================================================
   CONTENU HERO
========================================================= */

.member-top-inner {

    position: relative;

    z-index: 1;

    width: calc(100% - 32px);

    max-width: 1400px;

    height: 190px;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    text-align: left;

}


/* =========================================================
   PETIT TITRE
========================================================= */

.member-eyebrow {

    display: block;

    margin: 0 0 7px;

    color: #e8eee5;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .15em;

    line-height: 1.2;

}


/* =========================================================
   TITRE
========================================================= */

.member-top h1 {

    margin: 0;

    color: #fffaf0;

    font-size: clamp(
        2rem,
        5vw,
        3rem
    );

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -.03em;

}


/* =========================================================
   DESCRIPTION
========================================================= */

.member-top p {

    max-width: 620px;

    margin: 9px 0 0;

    color: rgba(
        255,
        250,
        240,
        .88
    );

    font-size: 14px;

    line-height: 1.5;

}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 768px) {

    .member-top {

        height: 190px;

        min-height: 190px;

    }

    .member-top-inner {

        width: calc(100% - 40px);

        height: 190px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .member-top {

        height: 190px;

        min-height: 190px;

    }

    .member-top-inner {

        width: calc(100% - 30px);

        height: 190px;

    }

    .member-eyebrow {

        font-size: 9px;

        margin-bottom: 6px;

    }

    .member-top h1 {

        font-size: 2rem;

    }

    .member-top p {

        max-width: 100%;

        margin-top: 8px;

        font-size: 13px;

        line-height: 1.45;

    }

}


/* =========================================================
   TRÈS PETIT MOBILE
========================================================= */

@media (max-width: 380px) {

    .member-top-inner {

        width: calc(100% - 24px);

    }

    .member-top h1 {

        font-size: 1.75rem;

    }

    .member-top p {

        font-size: 12px;

    }

}

/* =========================================================
   3. CONTENU
========================================================= */

.member-content {

    width: calc(100% - 32px);

    max-width: 1100px;

    margin: 0 auto;

    padding: 65px 0 100px;

}


/* =========================================================
   4. CARTE PRINCIPALE
========================================================= */

.member-card {

    width: 100%;

    max-width: 600px;

    margin: 0 auto;

    padding: 38px 42px 35px;

    background: #fff;

    border: 1px solid #ddd5c7;

    border-radius: 18px;

    box-shadow:
        0 6px 20px
        rgba(
            63,
            53,
            43,
            .06
        );

}


/* =========================================================
   5. EN-TÊTE DE LA CARTE
========================================================= */

.member-card-header {

    display: flex;

    align-items: center;

    gap: 17px;

    margin-bottom: 30px;

}


/* =========================================================
   ICÔNE
========================================================= */

.member-card-icon {

    width: 58px;

    height: 58px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 17px;

    background: #e8eee5;

    color: #667a62;

    font-size: 1.25rem;

}


/* =========================================================
   LABEL
========================================================= */

.member-card-label {

    display: block;

    margin-bottom: 5px;

    color: #667a62;

    font-size: 0.68rem;

    font-weight: 800;

    letter-spacing: .17em;

}


/* =========================================================
   TITRE CARTE
========================================================= */

.member-card-header h2 {

    margin: 0;

    color: #302a24;

    font-size: 1.65rem;

    line-height: 1.2;

    font-weight: 800;

}


/* =========================================================
   6. ONGLETS
========================================================= */

.member-tabs {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 6px;

    padding: 5px;

    margin-bottom: 27px;

    border-radius: 14px;

    background: #e8eee5;

}


/* =========================================================
   ONGLET
========================================================= */

.member-tab {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 46px;

    padding: 10px 14px;

    border-radius: 10px;

    color: #667a62;

    font-size: .88rem;

    font-weight: 800;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;

}


/* =========================================================
   HOVER
========================================================= */

.member-tab:hover {

    color: #4f624b;

}


/* =========================================================
   ACTIF
========================================================= */

.member-tab.active {

    background: #fff;

    color: #4f624b;

    box-shadow:
        0 3px 10px
        rgba(
            63,
            53,
            43,
            .08
        );

}


/* =========================================================
   7. MESSAGES
========================================================= */

.member-message {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    width: 100%;

    margin-bottom: 22px;

    padding: 13px 15px;

    border-radius: 12px;

    font-size: .88rem;

    line-height: 1.45;

}


.member-message i {

    flex-shrink: 0;

    margin-top: 2px;

}


/* =========================================================
   ERREUR
========================================================= */

.member-message.error {

    background: #f8e9e5;

    border: 1px solid #e5c3bb;

    color: #8b4336;

}


/* =========================================================
   SUCCÈS
========================================================= */

.member-message.success {

    background: #e8eee5;

    border: 1px solid #cbd9c7;

    color: #52654f;

}


/* =========================================================
   8. FORMULAIRE
========================================================= */

.member-form {

    display: flex;

    flex-direction: column;

    gap: 19px;

    width: 100%;

}


.member-form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

}


/* =========================================================
   FORM GROUP
========================================================= */

.member-form-group {

    width: 100%;

}


.member-form-group label {

    display: block;

    margin-bottom: 8px;

    color: #594a3c;

    font-size: .84rem;

    font-weight: 700;

}


/* =========================================================
   CHAMPS
========================================================= */

.member-input {

    position: relative;

    width: 100%;

}


.member-input > i {

    position: absolute;

    left: 16px;

    top: 50%;

    transform: translateY(-50%);

    color: #667a62;

    font-size: .92rem;

    pointer-events: none;

}


.member-input input {

    width: 100%;

    height: 54px;

    padding: 0 16px 0 46px;

    border: 1px solid #ddd5c7;

    border-radius: 12px;

    background: #fff;

    color: #302a24;

    font-family: inherit;

    font-size: .94rem;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


.member-input input::placeholder {

    color: #9b9389;

}


.member-input input:hover {

    border-color: #c9c0b4;

}


.member-input input:focus {

    border-color: #667a62;

    background: #fff;

    box-shadow:
        0 0 0 3px
        rgba(
            102,
            122,
            98,
            .12
        );

}


/* =========================================================
   AIDE
========================================================= */

.member-help {

    display: block;

    margin-top: 7px;

    color: #756d63;

    font-size: .76rem;

}


/* =========================================================
   9. BOUTON PRINCIPAL
   Même brun que EVENTS
========================================================= */

.member-submit {

    width: 100%;

    min-height: 48px;

    margin-top: 5px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 12px 20px;

    border: 1px solid #4b3f35;

    border-radius: 12px;

    background: #4b3f35;

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 15px
        rgba(
            75,
            63,
            53,
            .16
        );

    transition: .2s ease;

}


/* =========================================================
   HOVER BOUTON
========================================================= */

.member-submit:hover {

    background: #d8cabc;

    border-color: #b9a999;

    color: #4b3f35;

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px
        rgba(
            75,
            63,
            53,
            .18
        );

}


/* =========================================================
   ACTIVE
========================================================= */

.member-submit:active {

    transform: translateY(0);

}


/* =========================================================
   10. TEXTE DU BAS
========================================================= */

.member-bottom-text {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    margin-top: 26px;

    padding-top: 22px;

    border-top: 1px solid #e2dbd1;

    color: #756d63;

    font-size: .84rem;

    text-align: center;

}


.member-bottom-text a {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #667a62;

    font-weight: 800;

    text-decoration: none;

    transition: color .2s ease;

}


.member-bottom-text a:hover {

    color: #4f624b;

}


/* =========================================================
   11. AVANTAGES
========================================================= */

.member-benefits {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap: 18px;

    max-width: 900px;

    margin: 30px auto 0;

}


/* =========================================================
   AVANTAGE
========================================================= */

.member-benefit {

    display: flex;

    align-items: flex-start;

    gap: 13px;

    padding: 21px;

    background: #fff;

    border: 1px solid #ddd5c7;

    border-radius: 18px;

    box-shadow:
        0 6px 20px
        rgba(
            63,
            53,
            43,
            .04
        );

}


/* =========================================================
   ICÔNE AVANTAGE
========================================================= */

.member-benefit-icon {

    width: 42px;

    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #e8eee5;

    color: #667a62;

}


/* =========================================================
   TITRE AVANTAGE
========================================================= */

.member-benefit strong {

    display: block;

    margin-bottom: 4px;

    color: #594a3c;

    font-size: .88rem;

}


/* =========================================================
   TEXTE AVANTAGE
========================================================= */

.member-benefit span {

    display: block;

    color: #756d63;

    font-size: .77rem;

    line-height: 1.5;

}


/* =========================================================
   12. TABLETTE
========================================================= */

@media (max-width: 768px) {

    .member-top {

        height: 190px;

        min-height: 190px;

    }


    .member-top-inner {

        height: 190px;

        width: calc(100% - 48px);

        padding: 25px 0;

    }


    .member-top h1 {

        font-size: 2.45rem;

    }


    .member-content {

        width: calc(100% - 40px);

        padding:
            50px
            0
            100px;

    }


    .member-card {

        padding:
            32px
            28px
            30px;

        border-radius: 18px;

    }


    .member-benefits {

        grid-template-columns: 1fr;

        max-width: 600px;

    }

}


/* =========================================================
   13. MOBILE
========================================================= */

@media (max-width: 576px) {

    .member-page {

        min-height: auto;

    }


    .member-top {

        height: 190px;

        min-height: 190px;

    }


    .member-top-inner {

        height: 190px;

        width: calc(100% - 30px);

        padding:
            22px
            0;

    }


    .member-eyebrow {

        font-size: .64rem;

        letter-spacing: .15em;

    }


    .member-top h1 {

        font-size: 2rem;

    }


    .member-top p {

        margin-top: 10px;

        font-size: .88rem;

        line-height: 1.5;

    }


    .member-content {

        width: calc(100% - 24px);

        padding:
            42px
            0
            105px;

    }


    .member-card {

        padding:
            26px
            18px
            25px;

        border-radius: 16px;

    }


    .member-card-header {

        gap: 13px;

        margin-bottom: 23px;

    }


    .member-card-icon {

        width: 50px;

        height: 50px;

        border-radius: 14px;

        font-size: 1.05rem;

    }


    .member-card-label {

        font-size: .61rem;

    }


    .member-card-header h2 {

        font-size: 1.35rem;

    }


    .member-tabs {

        margin-bottom: 23px;

    }


    .member-tab {

        min-height: 44px;

        padding:
            9px
            8px;

        font-size: .78rem;

    }


    .member-tab i {

        font-size: .75rem;

    }


    .member-form {

        gap: 17px;

    }


    .member-form-row {

        grid-template-columns: 1fr;

        gap: 17px;

    }


    .member-form-group label {

        margin-bottom: 7px;

        font-size: .80rem;

    }


    .member-input input {

        height: 52px;

        font-size: .91rem;

        border-radius: 12px;

    }


    .member-submit {

        min-height: 48px;

        border-radius: 12px;

        font-size: 14px;

    }


    .member-bottom-text {

        margin-top: 22px;

        padding-top: 19px;

        font-size: .79rem;

    }


    .member-benefits {

        margin-top: 20px;

        gap: 12px;

    }


    .member-benefit {

        padding: 17px;

        border-radius: 15px;

    }

}


/* =========================================================
   14. TRÈS PETITS ÉCRANS
========================================================= */

@media (max-width: 380px) {

    .member-top-inner {

        width: calc(100% - 24px);

    }


    .member-top h1 {

        font-size: 1.75rem;

    }


    .member-top p {

        font-size: .82rem;

    }


    .member-content {

        width: calc(100% - 18px);

        padding-left: 0;

        padding-right: 0;

    }


    .member-card {

        padding-left: 15px;

        padding-right: 15px;

    }


    .member-card-header h2 {

        font-size: 1.22rem;

    }


    .member-tab {

        gap: 5px;

        font-size: .73rem;

    }


    .member-input input {

        padding-left: 43px;

    }

}


/* =========================================================
   15. ACCESSIBILITÉ
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .member-tab,
    .member-input input,
    .member-submit,
    .member-bottom-text a {

        transition: none;

    }

}