/* ==========================================================
   GRENOBLE POKER PONTOIS
   COMPOSANT : REJOINDRE LE CLUB

   Organisation :
   1. Conteneur
   2. Mise en page
   3. Texte
   4. Bouton d'adhésion
   5. Responsive
   6. Accessibilité

   Identité graphique :
   - Fond sombre : --gp-black
   - Texte clair : --gp-white
   - Action principale : --gp-red
   ========================================================== */


/* ==========================================================
   1. CONTENEUR
   ========================================================== */

.gp-join-club {
    position: relative;

    width: 100%;
    padding: 42px 48px;

    background-color: var(--gp-black);
    border-radius: 16px;

    overflow: hidden;
}

/* Accent graphique discret */

.gp-join-club::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 5px;
    height: 100%;

    background-color: var(--gp-red);
}


/* ==========================================================
   2. MISE EN PAGE

   Présentation à gauche.
   Bouton d'adhésion à droite.
   ========================================================== */

.gp-join-club-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 36px;
}

.gp-join-club-text {
    flex: 1;
    min-width: 0;
}

.gp-join-club-action {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}


/* ==========================================================
   3. TEXTE
   ========================================================== */

.gp-join-club-eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: #FF6B80;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gp-join-club-title {
    margin: 0 0 14px;

    color: var(--gp-white);

    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.3;
}

.gp-join-club-description {
    max-width: 600px;

    margin: 0;

    color: #D2D8E0;

    font-size: 15px;
    line-height: 1.8;
}


/* ==========================================================
   4. BOUTON D'ADHÉSION
   ========================================================== */

.gp-join-club-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 15px 24px;

    background-color: var(--gp-red);
    border: 1px solid var(--gp-red);
    border-radius: 8px;

    color: var(--gp-white);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;

    white-space: nowrap;

    transition:
        background-color 250ms ease,
        border-color 250ms ease,
        transform 250ms ease,
        box-shadow 250ms ease;
}

.gp-join-club-button:hover,
.gp-join-club-button:focus {
    background-color: var(--gp-red-hover);
    border-color: var(--gp-red-hover);

    color: var(--gp-white);
    text-decoration: none;

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(227, 6, 40, 0.25);
}

.gp-join-club-button:focus-visible {
    outline: 3px solid var(--gp-white);
    outline-offset: 4px;
}

/* ==========================================================
   ALIGNEMENT DE L'ICÔNE DU BOUTON D'ADHÉSION

   Bootstrap 3 applique un décalage vertical de 1px
   aux Glyphicons.

   Nous annulons ce décalage afin de centrer correctement
   l'icône par rapport au texte.

   L'animation horizontale au survol est conservée.
   ========================================================== */

.gp-join-club-button .glyphicon {
    position: relative;
    top: 0;

    flex-shrink: 0;

    font-size: 13px;
    line-height: 1;

    transition: transform 250ms ease;
}


.gp-join-club-button:hover .glyphicon {
    transform: translateX(4px);
}


/* ==========================================================
   5. RESPONSIVE — TABLETTE

   Largeur : jusqu'à 991px
   ========================================================== */

@media (max-width: 991px) {

    .gp-join-club {
        padding: 36px 32px;
    }

    .gp-join-club-content {
        gap: 24px;
    }

    .gp-join-club-title {
        font-size: 26px;
    }

    .gp-join-club-button {
        padding: 13px 18px;
        font-size: 14px;
    }

}


/* ==========================================================
   5.1. RESPONSIVE — MOBILE

   Largeur : jusqu'à 767px
   ========================================================== */

@media (max-width: 767px) {

    .gp-join-club {
        padding: 32px 24px;
        border-radius: 12px;
    }

    .gp-join-club-content {
        flex-direction: column;
        align-items: flex-start;

        gap: 24px;
    }

    .gp-join-club-title {
        font-size: 24px;
    }

    .gp-join-club-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .gp-join-club-action {
        width: 100%;
    }

    .gp-join-club-button {
        width: 100%;

        white-space: normal;
    }

}


/* ==========================================================
   6. ACCESSIBILITÉ

   Désactivation des animations pour les utilisateurs
   ayant demandé une réduction des mouvements.
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .gp-join-club-button,
    .gp-join-club-button .glyphicon {
        transition: none;
    }

    .gp-join-club-button:hover,
    .gp-join-club-button:hover .glyphicon {
        transform: none;
    }

}
