
/* ==========================================================
   GRENOBLE POKER PONTOIS
   BANDEAU CONTACT — MAQUETTE
   ========================================================== */

.gp-contact {
    position: relative;
    width: 100%;
    background: #101419;
    color: #ffffff;
    overflow: hidden;
    font-family: var(--gp-font-primary);
}

/* Contenu au-dessus du décor */

.gp-contact-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 0.75fr);
    gap: 45px;
    padding-top: 65px;
    padding-bottom: 65px;
}

/* Neutraliser le clearfix Bootstrap 3 dans notre grille */

.gp-contact-container::before,
.gp-contact-container::after {
    display: none;
}

/* Titres */

.gp-contact h2 {
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 25px;
}

.gp-contact-info h2::after,
.gp-contact-form-container h2::after,
.gp-contact-social h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 12px;
    background: var(--gp-red);
}

/* ==========================================================
   COORDONNÉES
   ========================================================== */

.gp-contact-intro {
    color: #bfc5cd;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.gp-contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    color: #dce0e5;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.gp-contact-detail .glyphicon {
    color: var(--gp-red);
    font-size: 17px;
    margin-top: 3px;
    flex-shrink: 0;
}

.gp-contact-detail a {
    color: #dce0e5;
    text-decoration: none;
}

.gp-contact-detail a:hover {
    color: #ff405b;
}

/* ==========================================================
   FORMULAIRE
   ========================================================== */

.gp-contact-form-container {
    min-width: 0;
}

.gp-contact-form {
    width: 100%;
}

.gp-contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gp-contact-field {
    margin-bottom: 18px;
    min-width: 0;
}

.gp-contact-field label {
    display: block;
    margin-bottom: 8px;
    color: #e4e7eb;
    font-size: 13px;
    font-weight: 600;
}

.gp-contact-field .gp-contact-input {
    width: 100%;
    min-height: 44px;
    background: #20262d;
    color: #ffffff;
    border: 1px solid #3b444e;
    border-radius: 5px;
    padding: 11px 14px;
    box-shadow: none;
    font-size: 14px;
}

.gp-contact-field textarea.gp-contact-input {
    min-height: 115px;
    resize: vertical;
}

.gp-contact-field .gp-contact-input::placeholder {
    color: #9da5ae;
}

.gp-contact-field .gp-contact-input:focus {
    border-color: var(--gp-red);
    box-shadow: 0 0 0 2px rgba(227, 6, 40, 0.15);
}

/* Captcha et bouton */

.gp-contact-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.gp-contact-captcha {
    width: 304px;
    max-width: 100%;
    min-height: 78px;
}

.gp-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--gp-red);
    color: #ffffff;
    border: 0;
    border-radius: 5px;
    padding: 13px 28px;
    min-height: 46px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.gp-contact-submit:hover,
.gp-contact-submit:focus {
    background: #bd0521;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Erreurs de validation Symfony */

.gp-contact-field .help-block,
.gp-contact-field .form-error-message,
.gp-contact-field ul {
    color: #ff8798;
}

/* ==========================================================
   RÉSEAUX SOCIAUX
   ========================================================== */

.gp-contact-social-links {
    display: grid;
    grid-template-columns: repeat(3, 43px);
    gap: 12px;
}

.gp-contact-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    padding: 10px;
    background: #252b32;
    border: 1px solid #3b444e;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.gp-contact-social-links a:hover,
.gp-contact-social-links a:focus {
    background: var(--gp-red);
    transform: translateY(-3px);
}

.gp-contact-social-links img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* ==========================================================
   MESSAGES DU FORMULAIRE

   Styles propres à Grenoble Poker Pontois.
   Aucune dépendance aux alertes Bootstrap.

   - Succès : confirmation de l'envoi.
   - Erreur : échec de l'envoi.
   ========================================================== */

.gp-contact-alert {
    padding: 14px 18px;
    margin-bottom: 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

/* Message de succès */

.gp-contact-alert-success {
    color: #c5f0d5;
    background-color: #173a2b;
    border-color: #286547;
}

/* Message d'erreur */

.gp-contact-alert-error {
    color: #ffd4da;
    background-color: #401d26;
    border-color: var(--gp-red);
}

/* ==========================================================
   TABLETTE : coordonnées + réseaux à gauche,
              formulaire à droite
   ========================================================== */

@media (min-width: 768px) and (max-width: 1199px) {

    .gp-contact-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
        column-gap: 35px;
        row-gap: 0;
        padding-top: 45px;
        padding-bottom: 45px;
        align-items: start;
    }

    /* Coordonnées : première colonne */
    .gp-contact-info {
        grid-column: 1;
        grid-row: 1;
    }

    /* Formulaire : deuxième colonne */
    .gp-contact-form-container {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    /* Réseaux sociaux : sous les coordonnées */
    .gp-contact-social {
        grid-column: 1;
        grid-row: 2;
        margin-top: 5px;
    }

    /* Trois icônes par ligne */
    .gp-contact-social-links {
        grid-template-columns: repeat(3, 43px);
        justify-content: start;
    }

    /* Champs du formulaire empilés */
    .gp-contact-fields {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .gp-contact-container {
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .gp-contact h2 {
        font-size: 19px;
        margin-bottom: 20px;
    }

    .gp-contact-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .gp-contact-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .gp-contact-submit {
        width: 100%;
    }

     .gp-contact-social {
        display: none;
    }

}
