/* --- 1. CONFIGURATION GÉNÉRALE --- */
:root {
    --primary: #0f172a;    /* Bleu nuit profond */
    --secondary: #3b82f6;  /* Bleu vif pour l'action */
    --text-dark: #334155;  /* Gris foncé */
    --text-light: #64748b; /* Gris clair */
    --bg-grey: #f8fafc;    /* Fond gris très pâle */
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08); /* Ombre douce */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Décale le scroll pour le menu */
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--primary); }
a { text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 6rem 0; }
.section-grey { background-color: var(--bg-grey); }

/* --- 2. NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.dot { color: var(--secondary); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: 0.3s; }
.nav-links a:hover { color: var(--secondary); }

.btn-nav {
    background-color: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    transition: 0.3s;
}
.btn-nav:hover { background-color: var(--secondary); }

/* --- 3. HERO SECTION (CORRIGÉE) --- */
.hero {
    /* Image de fond */
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), url('images/accueil.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    height: 85vh; /* Hauteur sur PC */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    /* IMPORTANT : Relative permet de contenir la vague */
    position: relative; 
    margin-bottom: 0; 
    padding-bottom: 50px; /* Petit espace pour ne pas que le texte touche la vague */
}

.hero h1 { 
    color: white; font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.subtitle { 
    color: #e2e8f0; font-size: 1.2rem; margin-bottom: 2.5rem; max-width: 700px; margin-left: auto; margin-right: auto; 
}

.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 15px 35px; border-radius: 50px; font-weight: 700; cursor: pointer; border: none; font-size: 1rem; transition: transform 0.2s; }
.btn-primary { background: var(--secondary); color: white; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }
.btn-primary:hover { transform: translateY(-3px); background: #2563eb; }
.btn-outline { background: transparent; border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--primary); }

/* --- VAGUE DE SÉPARATION (CORRIGÉE) --- */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: -1px; /* Colle la vague tout en bas (le -1px évite le trait blanc) */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 2; /* Passe au dessus du fond mais sous le texte Features */
}

.custom-shape-divider-bottom svg {
    position: relative; 
    display: block; 
    width: calc(100% + 1.3px); 
    height: 80px; /* Hauteur de la vague plus grande */
}

.custom-shape-divider-bottom .shape-fill { fill: #FFFFFF; }

/* --- 4. BARRE D'ATOUTS --- */
.features-bar {
    position: relative; 
    margin-top: -80px; /* On remonte un peu moins pour voir la vague */
    margin-bottom: 2rem; 
    z-index: 10;
}
.features-grid {
    background: white; border-radius: 15px; box-shadow: var(--shadow); padding: 2rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
}
.feature-item { display: flex; align-items: center; gap: 15px; padding: 10px; }
.feature-item i { font-size: 2rem; color: var(--secondary); }
.feature-item h3 { font-size: 1rem; margin-bottom: 2px; }
.feature-item p { font-size: 0.85rem; color: var(--text-light); }

/* --- 5. SERVICES --- */
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 {
    font-size: 2.5rem; margin-bottom: 20px; position: relative; display: inline-block; padding-bottom: 15px;
}
.section-title h2::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--secondary); margin: 0 auto;
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border-radius: 2px;
}
.section-title p { color: var(--text-light); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    background: white; padding: 2.5rem; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s; border-bottom: 4px solid transparent;
}
.service-card:hover { 
    transform: translateY(-5px); border-bottom: 4px solid var(--secondary); box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.icon-box {
    width: 60px; height: 60px; background: #eff6ff; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--secondary); font-size: 1.5rem; margin-bottom: 1.5rem;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; }

/* --- 6. TARIFS --- */
.pricing-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.price-card {
    background: white; padding: 2.5rem; border-radius: 15px; box-shadow: var(--shadow);
    text-align: center; flex: 1; min-width: 280px; max-width: 350px; position: relative; border: 1px solid #f1f5f9;
}
.highlight-card { border: 2px solid var(--secondary); transform: scale(1.05); }
.tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--secondary); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700;
}
.price { font-size: 1.8rem; color: var(--primary); margin: 1.5rem 0; font-weight: 400; }
.price strong { font-weight: 800; color: var(--secondary); }
.price-list li { margin-bottom: 10px; color: var(--text-dark); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.9rem; }
.price-list i { color: #10b981; }
.price-note { text-align: center; margin-top: 2rem; font-size: 0.85rem; color: var(--text-light); font-style: italic; }

/* --- 7. À PROPOS --- */
.about-wrapper { display: flex; align-items: center; gap: 4rem; flex-wrap: wrap; }
.about-content { flex: 1; min-width: 300px; }
.subtitle-text { color: var(--secondary); font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; }
.about-content h2 { font-size: 2.5rem; margin: 10px 0 20px 0; line-height: 1.2; }
.about-content p { margin-bottom: 1.2rem; color: var(--text-light); }
.about-image-box { flex: 1; min-width: 300px; position: relative; }
.about-image-box img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.experience-badge {
    position: absolute; bottom: 30px; right: -20px;
    background: white; padding: 15px 25px; border-radius: 12px;
    box-shadow: var(--shadow); font-weight: 700; color: var(--primary);
    display: flex; gap: 10px; align-items: center;
}
.experience-badge i { color: var(--secondary); font-size: 1.5rem; }

/* --- 8. CONTACT FOOTER --- */
.footer-contact { padding: 4rem 0; background: #0f172a; color: white; }
.contact-box { 
    display: flex; gap: 4rem; flex-wrap: wrap; background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
}
.contact-left { flex: 1; background: var(--secondary); padding: 3rem; color: white; min-width: 300px; }
.contact-left h2 { color: white; margin-bottom: 1rem; }
.contact-item { display: flex; gap: 15px; margin-top: 2rem; align-items: center; }
.contact-item i { font-size: 1.5rem; opacity: 0.8; }

.contact-right { flex: 1.5; padding: 3rem; min-width: 300px; }

/* Styles du Formulaire */
.synova-form { display: flex; flex-direction: column; gap: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary); font-size: 0.95rem; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper i { position: absolute; left: 15px; color: var(--text-light); font-size: 1rem; pointer-events: none; transition: 0.3s; }

.input-wrapper input, .input-wrapper textarea {
    width: 100%; padding: 12px 15px 12px 45px; border: 2px solid #e2e8f0; border-radius: 8px;
    background-color: #f8fafc; font-family: 'Open Sans', sans-serif; font-size: 1rem; color: var(--text-dark); transition: all 0.3s ease;
}
.input-wrapper input:focus, .input-wrapper textarea:focus {
    border-color: var(--secondary); background-color: white; outline: none; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.input-wrapper input:focus + i, .input-wrapper textarea:focus + i { color: var(--secondary); }
.textarea-wrapper { align-items: flex-start; }
.textarea-wrapper i { top: 15px; }
.textarea-wrapper textarea { resize: vertical; min-height: 100px; }

.btn-submit {
    background: var(--secondary); color: white; font-weight: 700; font-size: 1rem; padding: 15px;
    border: none; border-radius: 8px; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}
.btn-submit:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3); }

/* --- MESSAGE DE SUCCÈS --- */
#my-form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    border-radius: 5px;
    padding: 10px;
    display: none; /* Caché par défaut */
}
.status-success {
    display: block !important;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}
.status-error {
    display: block !important;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* --- 9. LOCALISATION --- */
.location-section { padding: 5rem 0; background: white; border-top: 1px solid #f1f5f9; }
.location-grid { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.location-text { flex: 1; min-width: 300px; }
.location-text h2 { font-size: 2rem; margin-bottom: 1rem; }
.city-list { margin: 2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.city-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-dark); }
.city-list i { color: var(--secondary); }
.map-wrapper {
    flex: 1; min-width: 300px; height: 350px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); position: relative;
}
.map-wrapper iframe {
    width: 100%; height: 100%; filter: grayscale(100%) invert(92%) contrast(83%); transition: filter 0.5s ease;
}
.map-wrapper:hover iframe { filter: grayscale(0%); }

/* --- 10. FOOTER --- */
footer {
    background: #0b1120; padding: 3rem 0; text-align: center; color: #94a3b8; border-top: 4px solid var(--secondary);
}
.siret, .legal { font-size: 0.85rem; opacity: 0.7; margin-top: 5px; }

/* --- MOBILE & RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    
    /* Correction du Hero sur Mobile */
    .hero { 
        height: auto; /* La hauteur s'adapte au contenu */
        min-height: 80vh; 
        padding-top: 60px; /* Evite que le texte soit sous le menu */
    }
    .hero h1 { font-size: 2rem; }

    /* Correction de la Vague sur Mobile */
    .custom-shape-divider-bottom svg {
        height: 50px; /* Vague moins haute sur mobile */
    }
    
    /* Correction de la Barre d'atouts qui cache la vague */
    .features-bar { margin-top: -50px; } /* On remonte moins la barre blanche */
    .features-grid { grid-template-columns: 1fr; }

    .about-wrapper, .contact-box { flex-direction: column; }
    .experience-badge { right: 0; }
    .location-grid { flex-direction: column-reverse; }
    .map-wrapper { height: 250px; width: 100%; }
}