/* --- Variables & Reset --- */
:root {
    --primary-blue: #0f0f9e;
    --accent-red: #da291c; /* Un rouge qui matche souvent avec ce bleu */
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Défilement fluide quand on clique sur le menu */
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- Header & Nav --- */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    backdrop-filter: blur(10px); /* Effet flou moderne */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px; /* Taille ajustée */
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    color: var(--primary-blue);
    position: relative;
}

.main-nav a:not(.btn-cta-nav)::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s;
}

.main-nav a:not(.btn-cta-nav):hover::after {
    width: 100%;
}

.btn-cta-nav {
    background-color: var(--primary-blue);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
}

.btn-cta-nav:hover {
    background-color: var(--accent-red);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-dark);
}

.contact-phone img {
    height: 24px;
}

.menu-mobile-icon {
    display: none;
    cursor: pointer;
}

#croix-menu {
    display: none;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(15, 15, 158, 0.8), rgba(15, 15, 158, 0.6)), url('Image/gobelet_3.webp'); /* Utilise une de tes images en fond */
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
}

.btn-primary:hover {
    background-color: #b01f14;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: #eee;
}

/* --- Sections Générales --- */
.section-padding {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-gray {
    background-color: var(--bg-light);
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* --- Carousel / Galerie --- */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 500px; /* Hauteur fixe pour éviter les sauts */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.carousel {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le cadre sans déformer */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev { left: 20px; }
.next { right: 20px; }

/* --- A Propos --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.text-block {
    flex: 1;
}

.image-block {
    flex: 1;
}

.rounded-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-blue);
    color: white;
    padding-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    background: white;
    padding: 10px;
    border-radius: 5px;
    width: 150px;
    margin-bottom: 20px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col a:hover {
    color: rgb(200, 200, 255);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1); /* Rend les icônes blanches */
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Caché par défaut */
        width: 100%;
        height: 100vh;
        background-color: var(--primary-blue);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        z-index: 2000;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav a {
        color: white;
        font-size: 1.5rem;
    }

    #croix-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        filter: brightness(0) invert(1); /* Croix blanche */
        cursor: pointer;
    }

    .menu-mobile-icon {
        display: block;
    }
    
    .menu-mobile-icon img {
        width: 35px;
    }

    .contact-phone span {
        display: none; /* Cache le numéro sur mobile pour gagner de la place */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .split-layout {
        flex-direction: column;
    }
    
    .header-container {
        padding: 0 15px;
    }
}

/* --- Page Mentions Légales --- */
.legal-content {
    max-width: 800px; /* Plus étroit pour faciliter la lecture */
    margin: 0 auto;
}

.legal-block {
    margin-bottom: 30px;
    text-align: left; /* Important pour lire du texte long */
}

.legal-block h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.legal-block ul {
    list-style: disc; /* Puces pour les listes */
    margin-left: 20px;
    margin-top: 10px;
}