/* =========================================
   STYLE CONTACT - VERSION PREMIUM & RESPONSIVE
   ========================================= */

/* --- 0. VARIABLES & CONFIG --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800;900&family=Open+Sans:wght@400;600&display=swap');

:root {
    --it-orange: #f36f2b;
    --it-blue: #007cc2;
    --it-dark: #002b45;
    --it-grey-light: #f4f7f9;
    --it-yellow-hero-start: #ffb347;
    --it-yellow-hero-end: #ffcc33;
}

/* RESET GLOBAL POUR ÉVITER LES DÉCALAGES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    color: #444;
    line-height: 1.6;
    overflow-x: hidden; /* Empêche le scroll horizontal */
    width: 100%;
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; }
img { max-width: 100%; height: auto; display: block; }

/* Utils */
.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.bg-light { background-color: var(--it-grey-light); }
.bg-white { background-color: #fff; }


/* =========================================
   1. HERO BANNER (Jaune/Orange Gradient)
   ========================================= */
.contact-hero {
    background: linear-gradient(135deg, var(--it-yellow-hero-start) 0%, var(--it-yellow-hero-end) 100%);
    padding: 100px 0 0 0; /* Padding haut pour header */
    position: relative;
    overflow: hidden;
    /* Hauteur flexible pour éviter les coupures */
    min-height: 500px;
    display: flex;
    align-items: center;
}

.relative-container { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }

/* Icones Bulles (Flottantes) */
.top-hero-icons {
    position: absolute;
    top: -50px; right: 0;
    display: flex; gap: 15px;
    z-index: 10;
}
.icon-bubble {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem;
    transition: transform 0.3s;
}
.icon-bubble:hover { transform: scale(1.1); background: rgba(255,255,255,0.2); }

/* Row Content */
.contact-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Important pour responsive */
    width: 100%;
}

.hero-txt {
    flex: 1;
    min-width: 300px; /* Ne rétrécit pas trop */
    padding-bottom: 60px;
    z-index: 2;
}

.hero-txt h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--it-dark);
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-txt p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--it-dark);
    margin-bottom: 35px;
    line-height: 1.5;
}

.btn-blue-pill {
    background-color: var(--it-blue);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
}
.btn-blue-pill:hover { 
    background-color: var(--it-dark); 
    transform: translateY(-3px);
}

/* Image Main (Positionnée en bas à droite) */
.hero-img-hand {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-self: flex-end;
    min-width: 300px;
    margin-bottom: -5px; /* Colle au bas */
}

.hero-img-hand img {
    max-width: 120%; 
    filter: drop-shadow(-10px 10px 20px rgba(0,0,0,0.15));
}


/* =========================================
   2. INTRO
   ========================================= */
.contact-intro-section { padding: 80px 0; }

.split-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.col-image { flex: 1; min-width: 300px; }
.col-image img.rounded-shadow-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.col-text { flex: 1; min-width: 300px; }

.orange-title {
    color: var(--it-orange);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.intro-bold { font-weight: 700; color: var(--it-dark); font-size: 1.1rem; margin-bottom: 15px; }
.col-text p { margin-bottom: 15px; text-align: justify; line-height: 1.7; }

.intro-instruction {
    font-weight: 700;
    color: var(--it-blue);
    margin-top: 25px;
    border-left: 4px solid var(--it-blue);
    padding-left: 15px;
}


/* =========================================
   3-6. FORMULAIRES (DESIGN PREMIUM)
   ========================================= */
.form-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.form-header {
    display: flex;
    flex-wrap: wrap; /* Responsive */
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 20px;
}

.form-titles { flex: 1; min-width: 300px; }

.orange-subtitle {
    color: var(--it-orange);
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.small-desc {
    font-size: 0.95rem;
    color: #666;
    margin-top: 10px;
    max-width: 800px;
    line-height: 1.5;
}

.form-icon {
    font-size: 3.5rem;
    color: var(--it-blue);
    opacity: 0.2;
    transition: opacity 0.3s;
}
.form-section:hover .form-icon { opacity: 1; }

/* Champs (Grid Responsive) */
.clean-form { width: 100%; }

.form-grid {
    display: grid;
    /* Auto: 2 colonnes sur grand écran, 1 colonne sur petit */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.form-grid input {
    width: 100%;
    padding: 15px 25px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    outline: none;
    transition: all 0.3s;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.02);
}

.form-grid input:focus {
    border-color: var(--it-blue);
    box-shadow: 0 0 0 4px rgba(0, 124, 194, 0.1);
}

.btn-blue-block {
    width: 100%;
    max-width: 400px; /* Pas trop large sur grand écran */
    background-color: var(--it-blue);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 124, 194, 0.2);
    display: block;
}

.form-btn-wrapper { display: flex; justify-content: flex-start; } /* Aligné gauche sur Desktop */

.btn-blue-block:hover {
    background-color: var(--it-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 124, 194, 0.3);
}


/* =========================================
   7. GENERAL CONTACT
   ========================================= */
.general-contact-section { padding: 80px 0; background: #fff; }

.rounded-img-contact {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.contact-details {
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item { margin-bottom: 30px; }
.contact-item .label { font-size: 0.9rem; color: var(--it-blue); font-weight: 800; text-transform: uppercase; margin-bottom: 5px; }
.contact-item .val { font-size: 1.1rem; color: #333; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.contact-item .val i { color: var(--it-orange); }

.social-icons-row { margin-top: 20px; display: flex; gap: 15px; }
.social-icons-row a {
    width: 45px; height: 45px;
    border-radius: 50%;
    background-color: var(--it-blue);
    color: white;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.social-icons-row a:hover { transform: translateY(-3px); background-color: var(--it-orange); }


/* =========================================
   8. FOOTER BANNER
   ========================================= */
.bottom-orange-banner {
    background-color: var(--it-orange);
    padding: 60px 0;
    color: white;
    margin-top: 0;
}

.banner-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.banner-logo .logo-white-bg {
    background: white;
    padding: 20px;
    border-radius: 15px;
    width: 160px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.banner-logo img { width: 100%; }

.banner-text { flex: 1; min-width: 300px; }
.banner-text h2 {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.2;
}
.banner-text p { font-size: 1.1rem; margin-bottom: 5px; font-weight: 600; }
.small-tag { 
    font-size: 0.9rem; font-style: italic; opacity: 0.9; 
    display: inline-block; margin-top: 10px; border-bottom: 1px solid rgba(255,255,255,0.5); 
}


/* =========================================
   MEDIA QUERIES (RESPONSIVE FIX)
   ========================================= */

/* Tablette et Mobile Large */
@media (max-width: 1024px) {
    .contact-details { padding-left: 0; margin-top: 40px; }
}

/* Mobile Standard */
@media (max-width: 900px) {
    /* Hero */
    .contact-hero { padding-top: 120px; min-height: auto; padding-bottom: 60px; text-align: center; }
    .hero-txt h1 { font-size: 2rem; }
    .contact-hero-row { flex-direction: column; }
    
    /* On cache la main sur mobile car elle gêne souvent le texte */
    .hero-img-hand { display: none; } 
    
    .top-hero-icons { 
        position: relative; 
        top: auto; right: auto; 
        justify-content: center; 
        margin-bottom: 30px; 
    }

    /* Intro */
    .split-row { flex-direction: column; }
    .col-image, .col-text { width: 100%; min-width: 100%; }
    
    /* Formulaires */
    .form-header { flex-direction: column; align-items: center; text-align: center; }
    .form-icon { margin-top: 10px; margin-bottom: 20px; }
    .form-btn-wrapper { justify-content: center; } /* Bouton centré sur mobile */
    .btn-blue-block { max-width: 100%; }

    /* Footer Banner */
    .banner-content { flex-direction: column; text-align: center; }
}