/* --- CONFIGURATION & VARIABLES --- */
:root {
    --dark-blue: #0d1b2a;
    --light-blue: #5dade2;
    --white: #ffffff;
    --gray-bg: #f8f9fa;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease-in-out;
}

/* --- RESET & PERFORMANCE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-font-smoothing: antialiased; /* Rendu des polices plus net */
}

body { 
    font-family: 'Montserrat', sans-serif; 
    line-height: 1.6; 
    color: #333; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    overflow-x: hidden; /* Empêche le scroll horizontal accidentel */
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* --- HEADER --- */
header { 
    background: var(--dark-blue); 
    padding: 10px 0; 
    border-bottom: 3px solid var(--light-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo-area { display: flex; align-items: center; gap: 15px; }

.nav-logo { 
    height: 60px; 
    border-radius: 4px; 
    user-select: none; /* Sécurité : empêche de "glisser" le logo par erreur */
}

.logo-text { 
    font-family: 'Dancing Script', cursive; 
    color: white; 
    font-size: 1.8rem; 
}

nav ul { display: flex; list-style: none; gap: 25px; }

nav a { 
    color: white; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 0.9rem; 
    transition: var(--transition);
}

nav a:hover { color: var(--light-blue); }

.btn-nav { 
    border: 2px solid var(--light-blue); 
    padding: 8px 18px; 
    border-radius: 50px; 
}

.btn-nav:hover { background: var(--light-blue); color: var(--dark-blue); }

/* --- HERO --- */
.hero {
    background-image: url('hero-bg.jpg') !important; 
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 { font-size: 2.8rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

/* --- SECTIONS COMMUNES --- */
.presentation, .services { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2.2rem; color: var(--dark-blue); }
.center-text { text-align: center; }

/* --- SERVICES --- */
.services { background: var(--gray-bg); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.card { 
    background: white; 
    padding: 40px; 
    border-radius: 20px; 
    text-align: center; 
    box-shadow: var(--shadow); 
    transition: var(--transition);
}

.card:hover { transform: translateY(-10px); } /* Animation fluide au survol */

.card-featured { border: 2px solid var(--light-blue); position: relative; }

.card-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; }

.badge { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: var(--light-blue); 
    color: var(--dark-blue);
    font-size: 0.75rem; 
    padding: 5px 12px; 
    border-radius: 20px; 
    font-weight: 800; 
}

/* --- PAGE CONTACT (VERTICALE & LARGE) --- */
.contact-vertical, .contact-wide { padding: 60px 0; flex: 1; }

.contact-section { margin-bottom: 50px; }

.form-full { 
    background: white; 
    padding: 50px; 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
    border-top: 6px solid var(--light-blue);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 20px; }

.map-box { 
    width: 100%; 
    height: 500px; 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: var(--shadow); 
}

.info-full { background: var(--dark-blue); color: white; padding: 50px; border-radius: 20px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; text-align: center; }

.info-item-center .icon { font-size: 2.5rem; margin-bottom: 15px; display: block; }

/* --- FORMULAIRE & BOUTONS --- */
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--light-blue);
}

.btn-submit {
    min-width: 250px;
    padding: 18px 45px;
    font-size: 1.1rem;
    border: none;
    background: var(--light-blue);
    color: var(--dark-blue);
    cursor: pointer;
    border-radius: 50px;
    font-weight: 800;
    transition: var(--transition);
}

.btn-submit:hover { 
    background: var(--white); 
    box-shadow: 0 5px 15px rgba(93, 173, 226, 0.4);
    transform: scale(1.05);
}

/* --- FOOTER --- */
footer { 
    background: var(--dark-blue); 
    color: white; 
    text-align: center; 
    padding: 40px 0; 
    margin-top: auto; 
}

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    .form-row { grid-template-columns: 1fr; }
    .nav-wrapper { flex-direction: column; gap: 15px; }
    .hero-content h1 { font-size: 2rem; }
    .info-grid { grid-template-columns: 1fr; }
}
/* --- STYLE GLOBAL PAGE CONTACT --- */
.contact-page-bg { 
    background-color: #f8f9fa; 
    padding: 60px 0; 
    flex: 1; 
}

.expanded-container { 
    max-width: 1200px; /* Largeur maximale souhaitée */
    margin: 0 auto;
}

.contact-section { margin-bottom: 50px; width: 100%; }

/* --- CARDS & BLOCS --- */
.card-style {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.form-main-card {
    background: white;
    padding: 60px;
    border-top: 8px solid var(--light-blue);
}

.form-main-card h3 { 
    margin-bottom: 30px; 
    color: var(--dark-blue); 
    font-size: 1.8rem; 
}

/* --- FORMULAIRE --- */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.field-group { display: flex; flex-direction: column; margin-bottom: 25px; }

.field-group label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.field-group input, .field-group textarea {
    padding: 18px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.field-group input:focus, .field-group textarea:focus {
    outline: none;
    border-color: var(--light-blue);
    background: #fff;
}

.form-footer { text-align: center; margin-top: 20px; }

.btn-submit-pro {
    background: var(--light-blue);
    color: var(--dark-blue);
    border: none;
    padding: 20px 60px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 300px;
}

.btn-submit-pro:hover {
    background: var(--dark-blue);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 27, 42, 0.2);
}

/* --- MAPS --- */
.map-wrapper-large {
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* --- INFOS --- */
.info-dark-card {
    background: var(--dark-blue);
    color: white;
    padding: 60px;
}

.info-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    text-align: center;
}

.info-icon { font-size: 2.5rem; display: block; margin-bottom: 15px; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .form-grid-2, .info-grid-3 { grid-template-columns: 1fr; }
    .form-main-card, .info-dark-card { padding: 30px; }
    .btn-submit-pro { width: 100%; }
    .nav-wrapper { flex-direction: column; gap: 15px; }
    .hero-content h1 { font-size: 2rem; }
}

/* --- SECTION HERO (CORRIGÉE) --- */
.hero {
    background-image: url('hero-bg.jpg') !important; 
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.55); /* Voile sombre pour la lisibilité */
    width: 100%;
    height: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-content {
    color: white;
    z-index: 5;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
/* Style des icônes de services */
.card-icon i {
    font-size: 3.5rem;
    color: #5dade2; /* Ton bleu clair */
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.card:hover .card-icon i {
    transform: scale(1.15) rotate(5deg);
    color: #0d1b2a; /* Change de couleur au survol pour un effet pro */
}

/* Correction du logo link */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}