/* ==========================================================================
   NERION ARCHITECTURE IT — COMPOSANTS DE CAPTURE CONTACT (_CONTACT.CSS)
   --------------------------------================================----------
   Destiné exclusivement à la page : contact.php
   Assainissement complet — Zéro important — Cascade lissée (2026)
   ========================================================================== */

/* --- 1. DÉPLOIEMENT DU CADRILLAGE LABO ET MARGE DE SÉCURITÉ HAUTE --- */
.contact-page-wrapper { 
    background-color: var(--bg-dark-lab); 
    padding: 60px 24px 80px 24px; /* Augmentation de la marge haute (110px) pour décoller du header */
    position: relative;
    box-sizing: border-box;
    width: 100%;
    background-image: 
        radial-gradient(circle at 50% 40%, rgba(112, 200, 193, 0.08) 0%, transparent 55%),
        linear-gradient(rgba(112, 200, 193, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112, 200, 193, 0.035) 1px, transparent 1px);
    background-size: cover, 40px 40px, 40px 40px;
    background-attachment: scroll;
}

/* Alignement structurel du bloc Hero d'en-tête */
.contact-page-wrapper .site-page-hero {
    text-align: center;
    max-width: var(--max-width-site);
    margin: 40px auto 60px auto; 
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 🛠️ CORRECTIF : Injection du liseré néon conducteur horizontal turquoise */
.contact-page-wrapper .site-page-hero h1::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-light);
    margin: 0 auto 25px auto; /* Centré au milieu et espacé du h1 */
    box-shadow: 0 0 10px rgba(112, 200, 193, 0.6);
}

.contact-page-wrapper .site-page-hero h1 {
    font-size: clamp(32px, 4.5vw, 46px);
    line-height: 1.25;
    font-weight: 300;
    margin-bottom: 25px;
    color: var(--text-white);
}

.contact-page-wrapper .site-page-hero h1 span {
    font-weight: 800;
    color: var(--accent-light);
}

.contact-page-wrapper .site-page-hero p {
    font-size: 16.5px;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-ecume);
}

/* --- 2. STRUCTURE GÉOMÉTRIQUE DOUBLE COLONNE ASYMÉTRIQUE --- */
.contact-grid-container { 
    display: grid; 
    grid-template-columns: 0.9fr 1.1fr;
    gap: 35px; 
    align-items: stretch; 
    max-width: var(--max-width-site); 
    margin: 0 auto; 
    box-sizing: border-box;
}

.contact-info-panel { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
    height: 100%;                       
    justify-content: stretch;
}

.contact-info-panel .site-bento-card { 
    background: var(--bg-card);
    border-radius: 4px;
    padding: 35px 26px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-top: 3px solid var(--accent-light);
    flex: 1 1 0%;                        
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-start; 
    text-align: left; 
}

.contact-info-panel .rack-badge {
    display: inline-block;
    background: rgba(112, 200, 193, 0.12);
    color: var(--accent-light);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.contact-info-panel h4 {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-info-panel p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-ecume);
}

/* 🛠️ CORRECTIF NUMÉRO DE TÉLÉPHONE : Calibrage et lissage typographique */
.contact-info-panel .phone-highlight { 
    font-size: 24px; /* Réduit de 28px à 24px pour s'intégrer harmonieusement */
    font-weight: 800; 
    color: var(--accent-light); 
    margin-bottom: 6px; 
    letter-spacing: 0.5px;
}

.contact-info-panel .address-text { 
    font-size: 15px; 
    line-height: 1.6; 
    margin-bottom: 6px; 
}

.contact-info-panel .sub-label { 
    font-size: 12px; 
    opacity: 0.6; 
    color: var(--text-ecume);
}

/* --- 3. PANNEAU DE FORMULAIRE ET COMPOSANTS DE SAISIE PRO --- */
.contact-form-panel { 
    background: var(--bg-card); 
    border-radius: 4px; 
    border: 1px solid rgba(255, 255, 255, 0.02); 
    border-top: 3px solid var(--corail); 
    padding: 45px 35px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    box-sizing: border-box;
    width: 100%;
}

.form-group-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}

.input-block { 
    display: flex; 
    flex-direction: column; 
    margin-bottom: 20px; 
    text-align: left; 
}

.contact-form-panel label { 
    font-size: 12px; 
    font-weight: 700; 
    color: var(--text-ecume); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 8px; 
}

/* Style général des champs de saisie */
.contact-form-panel input, 
.contact-form-panel textarea { 
    width: 100%; 
    background: #061318; 
    border: 1px solid rgba(112, 200, 193, 0.2); 
    border-radius: 4px; 
    padding: 12px 16px; 
    color: #F7FBFA; 
    font-size: 14px; 
    box-sizing: border-box; 
    font-family: var(--font-base);
    transition: var(--transition-fluid); 
}

/* 🛠️ CORRECTIF DU MENU DÉROULANT (SELECT) : Restauration complète du style console */
.contact-form-panel select {
    width: 100%;
    background: #061318;
    border: 1px solid rgba(112, 200, 193, 0.2);
    border-radius: 4px;
    padding: 12px 16px;
    color: #F7FBFA;
    font-size: 14px;
    box-sizing: border-box;
    font-family: var(--font-base);
    cursor: pointer;
    transition: var(--transition-fluid);
    appearance: none; /* Nettoie la flèche système par défaut */
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Injection d'une flèche technique épurée en SVG */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://w3.org/sv/2000' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2370C8C1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.contact-form-panel input:focus, 
.contact-form-panel textarea:focus, 
.contact-form-panel select:focus { 
    border-color: var(--accent-light); 
    background: #0B2530; 
    outline: none; 
}

/* Option interne du select */
.contact-form-panel select option {
    background: #061318;
    color: #F7FBFA;
}

/* --- 4. RESTAURATION DU BOUTON FORMAT COFFRET CORAIL --- */
.contact-form-panel .btn {
    display: table;                    
    width: max-content;
    max-width: 100%;
    margin: 30px auto 0 auto;          
    text-align: center;
    background-color: var(--corail);
    color: #061318;            
    padding: 16px 38px;
    border-radius: 4px;                  
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(216, 137, 114, 0.25);
    cursor: pointer;
    transition: var(--transition-fluid);
}

.contact-form-panel .btn:hover {
    background-color: var(--text-white);
    color: #061318;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(112, 200, 193, 0.35);
}

/* --- 5. INTERFACES DE VALIDATION (STATES BLINDÉS) --- */
.contact-form-panel input.is-invalid,
.contact-form-panel textarea.is-invalid,
.contact-form-panel select.is-invalid {
    border-color: var(--corail);
    background: rgba(216, 137, 114, 0.05);
}

.contact-form-panel input.is-valid,
.contact-form-panel textarea.is-valid,
.contact-form-panel select.is-valid {
    border-color: var(--accent-light);
    background: rgba(112, 200, 193, 0.04);
}

/* --- 6. CADRE DE LA CARTE GOOGLE MAPS EMBED --- */
.map-bento-wrapper { 
    max-width: var(--max-width-site); 
    margin: 35px auto 0 auto;
    height: 420px; 
    background: #061318; 
    border-radius: 4px; 
    border-top: 1px solid rgba(112, 200, 193, 0.15); 
    overflow: hidden; 
    position: relative; 
    z-index: 2; 
    box-sizing: border-box;
}

.map-bento-wrapper iframe { 
    width: 100%; 
    height: 100%; 
    filter: contrast(1.25) opacity(0.55); 
}

/* --- 7. STRUCTURE RESPONSIVE SMARTPHONE --- */
@media (max-width: 768px) {
    .contact-page-wrapper {
        padding: 80px 16px 60px 16px;
    }

    .contact-grid-container { 
        grid-template-columns: 1fr; 
        gap: 35px; 
        width: 100%; 
    }
    
    .form-group-row { 
        grid-template-columns: 1fr; 
        gap: 0; 
    }

    .contact-form-panel { 
        padding: 35px 20px; 
    }

    .contact-form-panel .btn { 
        width: 100%; 
        max-width: 100%; 
        margin: 25px 0 0 0; 
    }
}
