/* --- RESET & VARIABLES --- */
:root {
    /* --- NOUVELLE PALETTE : BLEU GRIS & ORANGE --- */
    
    /* L'Orange pour l'ACTION (Boutons, CTA, Prix) */
    --primary: #FF6600; 
    
    /* Le Bleu Gris pour la STRUCTURE (Fond menu, Textes, Footer) */
    --dark: #262e34; 
    
    /* Variantes pour les survols et nuances */
    --primary-dark: #E65C00; 
    --grey-blue-light: #CFD8DC; /* Pour les bordures ou fonds légers */
    
    --light: #f8f9fa;
    --white: #ffffff;
    --spacing: 2rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    color: var(--dark); /* Le texte est maintenant en Bleu Gris foncé, très lisible */
    background-color: var(--light);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--white); }
h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--dark); border-bottom: 3px solid var(--primary); display: inline-block; padding-bottom: 5px; }

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover { 
    background: var(--white); 
    color: var(--primary); 
    transform: translateY(-2px);
}
.btn-outline { background: transparent; border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }

/* --- HEADER --- */
header {
    background: var(--dark); /* Le menu est maintenant Bleu Gris */
    color: var(--white);
    padding: 1rem 0;
    position: sticky; 
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-bottom: 4px solid var(--primary); /* Ligne orange qui souligne le menu */
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
/* Style pour l'image du logo dans le header */
.header-logo-img {
    height: 60px; 
    width: auto;
    display: block;
    object-fit: contain;
}
.logo-text { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--white); 
    letter-spacing: -1px; 
}
.logo-accent { 
    color: var(--primary); 
}

.phone-desktop { 
    font-weight: bold; 
    display: inline-block;
    white-space: nowrap;
    font-size: 1.2rem;
} 

/* --- HERO SECTION --- */
.hero {
    /* J'ai ajouté un overlay bleu gris très léger sur la photo pour harmoniser */
    background: linear-gradient(rgba(55, 71, 79, 0.7), rgba(55, 71, 79, 0.7)), url('images/fond.png');
    background-size: cover;
    background-position: center;
    height: 80vh; 
    display: flex;
    align-items: center;
    text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero p { color: #ECEFF1; font-size: 1.2rem; margin-bottom: 2rem; font-weight: 500;}

/* --- SERVICES (Grille) --- */
.services { padding: 4rem 0; background: var(--white); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.service-card h3 {
    transition: color 0.3s ease;
    margin-bottom: 1rem;
}
.service-card p {
    transition: color 0.3s ease;
}

/* Animations au survol - uniquement sur PC (avec souris) */
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        background: var(--white);
        border-color: var(--primary);
    }
    .service-card:hover h3 {
        color: var(--primary);
    }
    .service-card:hover p {
        color: var(--dark);
    }
}

/* --- CAROUSEL SECTION --- */
.carousel-section {
    padding: 4rem 0;
    background: var(--light);
    overflow: hidden;
}
.carousel-swiper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 4rem;
    position: relative;
    overflow: hidden;
}
.carousel-swiper .swiper-wrapper {
    align-items: center;
}
.carousel-swiper .swiper-slide {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.5;
    transform: scale(0.85);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
.carousel-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.carousel-swiper .swiper-slide-prev,
.carousel-swiper .swiper-slide-next {
    opacity: 0.7;
    transform: scale(0.9);
}
.carousel-swiper .swiper-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}
/* Boutons de navigation Swiper */
.carousel-swiper .swiper-button-next,
.carousel-swiper .swiper-button-prev {
    background: rgba(255, 102, 0, 0.9);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.carousel-swiper .swiper-button-next:after,
.carousel-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}
.carousel-swiper .swiper-button-next:hover,
.carousel-swiper .swiper-button-prev:hover {
    background: var(--primary);
    transform: scale(1.1);
}
/* Pagination Swiper */
.carousel-swiper .swiper-pagination {
    bottom: 0 !important;
}
.carousel-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}
.carousel-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

/* --- CONTACT SECTION --- */
.contact {
    padding: 4rem 0;
    background: var(--white);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}
.contact-info {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
}
.contact-info ul {
    list-style: none;
    padding: 0;
}
.contact-info li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.contact-info li strong {
    color: var(--dark);
    display: block;
    margin-bottom: 0.5rem;
}
.contact-info a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}
.contact-info a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* --- CONTACT FORM --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--grey-blue-light);
    border-radius: 4px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: var(--white);
    color: var(--dark);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form button {
    align-self: flex-start;
}

/* Message de statut du formulaire */
.form-status {
    padding: 1rem;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 1rem;
    display: none;
}
.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- MOBILE CTA --- */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
}

/* --- FOOTER --- */
footer {
    background: var(--dark);
    color: #B0BEC5;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 4px solid var(--primary);
    position: relative;
    z-index: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .phone-desktop {
        display: none;
    }
    .mobile-cta {
        display: block;
    }
    body {
        padding-bottom: 0;
    }
    footer {
        padding: 1.5rem 0 5.5rem 0 !important;
        margin-bottom: 0;
        font-size: 0.85rem;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .carousel-section {
        padding: 2rem 0;
    }
    .carousel-section .container {
        padding: 0 0.5rem;
    }
    .carousel-swiper {
        padding: 1.5rem 0 3rem;
        overflow: hidden;
    }
    .carousel-swiper .swiper-slide {
        /* Laisser Swiper gérer la largeur automatiquement */
    }
    .carousel-swiper .swiper-slide img {
        height: 300px;
    }
    .carousel-swiper .swiper-button-next,
    .carousel-swiper .swiper-button-prev {
        display: none;
    }
}