/* --- Variables CSS Globales (Harmonisées) --- */

:root {
    /* Couleurs */
    --color-primary: #B5B205;           /* Jaune/Vert principal */
    --color-primary-dark: #8a8704;      /* Variante foncée pour hover */
    --color-text: #333;                 /* Texte principal (sombre) */
    --color-text-alt: #444;             /* Texte alternatif/titres secondaires */
    --color-text-light: #555;           /* Texte plus clair / intro */
    --color-background: #ffffff;        /* Fond principal (blanc) */
    --color-background-alt: #f9f9f9;    /* Fond alternatif léger (Contact/Hero) */
    --color-background-dark: #333;      /* Fond sombre (Footer) */
    --color-border: #ccc;               /* Bordures générales */
    --color-white: #ffffff;
    --color-dark: #333;                 /* Harmonisé avec --color-text */

    /* Typographie */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto Flex', sans-serif;

    /* Espacement et Structure */
    --nav-height: 80px;
    --spacing-unit: 1rem;               /* Unité d'espacement (ex: 16px) */
    --container-max-width: 1200px;
    --breakpoint-mobile: 768px;
    --breakpoint-tablet: 1024px;
}

/* --- 1. Reset & Styles de Base --- */
/* (Minimal) */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* (Base HTML) */
html {
    font-size: 100%;
    scroll-padding-top: var(--nav-height);
    scroll-behavior: smooth;
    /* Supprime le débordement horizontal */
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    padding-top: var(--nav-height);
    /* Supprime le débordement horizontal */
    max-width: 100vw;
    overflow-x: hidden;
}

/* (Éléments communs) */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, p, a {
    /* Empêche le débordement de mot si trop long */
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* --- 2. Boutons & Éléments Génériques --- */

/* Style de base pour les boutons de soumission ou d'action (btn-submit et .btn-cta) */
.btn-base {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

/* Bouton principal (Formulaires, etc.) */
.btn-submit {
    /* Styles hérités de .btn-base */
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-submit:hover {
    background-color: var(--color-primary-dark); /* Utilisation de la variable */
    transform: translateY(-2px);
}

/* Bouton secondaire (CTA) */
.btn-cta {
    /* Styles hérités de .btn-base */
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-cta:hover {
    background-color: #f0f0f0;
    color: var(--color-primary-dark);
}

/* Bouton Service (sombre) */
.btn-service {
    /* Styles hérités de .btn-base */
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 10px 20px; /* Ajustement pour les cartes */
    font-size: 1em; /* Ajustement */
}

.btn-service:hover {
    background-color: var(--color-primary);
    transform: none; /* Annule l'effet de soulèvement si présent */
}

/* Bouton de retour (sombre) */
.btn-retour {
    background-color: var(--color-text-alt); /* #444 */
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
}

/* --- 3. Structure Générale --- */

/* Conteneur de contenu principal */


.site-content {
    min-height: calc(100vh - var(--nav-height) - 50px); /* Hauteur min */
    padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
}

/* Styles pour toutes les sections (pour éviter les doublons de padding/box-sizing/width) */
section {
    width: 100%;
    box-sizing: border-box;
    padding: 40px 1rem; /* Base padding */
    text-align: center;
}

section h2, .services-list h2, .cta-section h2 {
    margin-bottom: 20px;
    color: var(--color-text);
}


/* --- 4. Header & Navigation --- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--color-background);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 1.5);
    height: 100%;
}

.nav-icon {
    display: flex;
    align-items: center;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-icon img {
    height: calc(var(--nav-height) * 0.65);
    margin-right: calc(var(--spacing-unit) * 0.5);
}

.main-navlinks,
.navlinks-container {
    display: flex;
    align-items: center;
}

.nav-link {
    display: block;
    padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
    margin: 0 calc(var(--spacing-unit) * 0.25);
    color: var(--color-text);
    font-weight: 500;
    white-space: nowrap;
}

/* Style Actif/Hover harmonisé */
.nav-link:hover,
.nav-link.active,
header nav ul li a.active { /* Combinaison des sélecteurs 'active' */
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline; /* Ajouté pour l'état actif, si souhaité */
}

/* Hamburger (Desktop) */
.hamburger {
    display: none;
    padding: var(--spacing-unit);
    margin-left: var(--spacing-unit);
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- 5. Footer --- */

.site-footer-bottom {
    background-color: var(--color-background-dark);
    color: var(--color-white);
    text-align: center;
    padding: calc(var(--spacing-unit) * 1.5) var(--spacing-unit);
    font-size: 0.9rem;
}

.site-footer-bottom p {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.site-footer-bottom a {
    color: var(--color-primary);
}

.site-footer-bottom a:hover {
    color: var(--color-white);
}


/* --- 6. Styles Spécifiques aux Pages/Composants --- */

/* --- 6.1. Accueil / A Propos (Combiné) --- */

.a-propos {
    padding: 2rem 1rem;
}

.a-propos p {
    max-width: 800px;
    margin: 0 auto 20px;
}

.a-propos .button {
    display: inline-block;
    margin-top: 1rem;
}


/* --- 6.2. Page Contact --- */

.contact-section {
    padding: 40px 20px;
    max-width: 1100px;
    margin: 40px auto;
    background-color: var(--color-background-alt); /* #f9f9f9 */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--color-text);
}

.contact-section .intro-text {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Titres de colonnes (Contact et Formulaire) */
.contact-info h3,
.contact-form h3 {
    margin-bottom: 20px;
    color: var(--color-text-alt); /* #444 */
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
    display: inline-block;
}

.contact-info {
    flex: 1;
    min-width: 280px;
    line-height: 1.7;
}

.contact-info p {
    margin-bottom: 15px;

    color: var(--color-text);
}

.contact-info strong {
    color: #111; /* Laisser #111 ou utiliser var(--color-dark) si approprié */
}

.map-container {
    margin-top: 25px;
    border-radius: 5px;
    overflow: hidden;
}

.contact-form {
    flex: 1.5;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: bold;
}

/* Champs de Formulaire (Combiné) */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 5px rgba(181, 178, 5, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#form-status {
    margin-top: 15px;
    font-weight: bold;
}

#form-status.success {
    color: green;
}

#form-status.error {
    color: red;
}


/* --- 6.3. Page Services (Combiné et optimisé) --- */

/* Hero Section (Services) */
.services-hero {
    background-color: #f4f4f4; /* Gardé car légèrement différent de --color-background-alt */
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.services-hero h1 {
    color: var(--color-text);
    margin-bottom: 15px;
    font-size: 2.5em;
}

.services-hero .intro {
    color: var(--color-text-light);
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-list {
    padding: 40px 0;
}

/* Grille Services (Remplaçant .service-grid / services) */
.services-grid {
    display: grid;
    /* Comportement flexible par défaut pour l'accueil */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem; /* Harmonisation avec l'unité d'espacement */
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Style de chaque carte de service */
.service-item {
    background-color: var(--color-background);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ddd; /* Ajouté depuis l'ancien .service-item */
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-item img {
    width: 100%;
    height: 200px; /* Hauteur fixe pour l'homogénéité */
    object-fit: cover;
    display: block;
}

.service-item h3 {
    color: var(--color-primary);
    margin: 20px 15px 10px 15px;
    font-size: 1.4em;
    margin-bottom: 0.5rem; /* Ajustement pour être plus compact */
}

.service-item p {
    color: var(--color-text-light);
    font-size: 0.95em;
    line-height: 1.5;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Section Call to Action (CTA) */
.cta-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 50px 20px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h2 {
    color: var(--color-white); /* Assurez-vous que le titre reste blanc */
    margin-bottom: 15px;
    font-size: 2em;
}

.cta-section p {
    margin-bottom: 25px;
    font-size: 1.1em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* --- 6.4. Page Réalisations (Flip Card) --- */

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem; /* Harmonisation */
    padding: 0;
    margin: 0 auto;
    max-width: var(--container-max-width);
}

.flip-card {
    width: 100%;
    height: 300px;
    perspective: 1000px;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    position: relative;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    border-radius: 6px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
}

.flip-card-front {
    background-color: var(--color-white);
    z-index: 1;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.flip-card-front h3 {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255,255,255,0.85);
    padding: 8px 12px;
    border-radius: 2px;
    font-size: 1.1rem;
    font-weight: bold;
}

.flip-card-back {
    background-color: var(--color-primary);
    transform: rotateY(180deg);
    z-index: 2;
    color: var(--color-white);
}

.flip-card-back a {
    margin-top: 10px;
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.flip-card-back a:hover {
    background-color: var(--color-text); /* Couleur foncée au survol */
}


/* --- 6.5. Page Détail Projet (Harmonisé) --- */

/* Carousel full-width centré (Combiné) */
.projet-visuel {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    padding: 0;
    margin: 0 auto;
    max-width: 100vw;
}

.projet-swiper {
    width: 100%;
    height: 500px;
}

.swiper-slide {
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s ease;
}

.swiper-slide:hover img {
    transform: scale(1.03);
}

/* Contenu principal centré */
.projet-detail-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 2rem;
}

.projet-detail h1 {
    text-align: center;
    margin: 0 auto 2rem;
    max-width: 100%;
}

.projet-intro,
.projet-content-grid,
.projet-navigation {
    margin-top: 2rem;
}

.projet-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Chronologie (Harmonisé) */
.chronologie-projet {
    position: relative;
    padding-left: 2rem;
    margin-left: 0.5rem;
}

.chronologie-projet ul,
.description-technique ul { /* Combiné */
    padding-left: 1rem;
    list-style: none;
    position: relative;
}

.chronologie-projet ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-primary);
}

.chronologie-projet li {
    position: relative;
    margin-bottom: 1.5rem;
}

.chronologie-projet li::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0.6rem;
    width: 12px;
    height: 12px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.projet-navigation {
    text-align: center;
}


/* --- 7. Media Queries (Responsive) --- */

/* --- Mobile / max-width: 768px --- */
@media (max-width: var(--breakpoint-mobile)) {
    /* Navigation */
    .hamburger {
        display: block;
    }

    .main-navigation {
        padding: 0 var(--spacing-unit);
    }

    .navlinks-container {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--color-background);
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: var(--spacing-unit) 0;
        border-top: 1px solid var(--color-border);
    }

    .navlinks-container.active {
        display: flex;
    }

    .nav-link {
        margin: 0;
        padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.5);
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    .nav-link:last-child {
        border-bottom: none;
    }

    /* Animation Hamburger */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Contact */
    .contact-section {
        margin: 20px auto;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-info, .contact-form {
        flex: none;
        width: 100%;
    }

    /* Services & A Propos */
    section {
        padding: 20px 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-hero h1,
    .services-list h2,
    .cta-section h2 {
        font-size: 2em;
    }

    /* Réalisations (Flip Card) */
    .flip-card {
        height: 250px;
    }

    .flip-card-front h3 {
        font-size: 1rem;
        padding: 6px 10px;
    }

    /* Détail Projet */
    .projet-content-grid {
        display: block;
    }

    .description-technique,
    .chronologie-projet {
        margin-bottom: 2rem;
    }

    .projet-swiper {
        height: 250px;
    }

    .projet-detail-container,
    .slide-content { /* Combiné */
        padding: 1rem;
    }

    .slide-content {
        width: 90%;
    }
	.slide-content h2 {
    /* Utilisation de la variable CSS pour la couleur primaire (qui devrait être verte) */
    color: var(--color-primary); 
		}

    .slider-prev, .slider-next {
        padding: 8px 12px;
        font-size: 16px;
    }
}

/* --- Tablette / min-width: 769px AND max-width: 1024px --- */
@media (min-width: calc(var(--breakpoint-mobile) + 1px)) and (max-width: var(--breakpoint-tablet)) {
    /* Services: Force 2 colonnes */
    .services-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

/* --- Desktop / min-width: 1025px --- */
@media (min-width: calc(var(--breakpoint-tablet) + 1px)) {
    /* Services: Force 3 colonnes */
    .services-grid {
        grid-template-columns: repeat(3, minmax(300px, 1fr));
    }
}

/* --- Styles pour le Dropdown (Menu Déroulant) --- */

.dropdown {
    position: relative; /* Conteneur de référence pour positionner le contenu */
    display: inline-block; /* Pour qu'il s'aligne dans la barre de navigation */
}

/* Le bouton qui déclenche le menu déroulant */
.dropbtn {
    /* Hérite des styles nav-link, mais supprime le soulignement par défaut des boutons */
    border: none;
    background: none;
    cursor: pointer;
    padding: var(--spacing-unit); /* Utiliser une variable d'espacement si définie */
    /* Assurez-vous qu'il ressemble au nav-link */
    color: var(--color-text);
    font-weight: 500;
}

/* Le contenu réel du menu déroulant (masqué par défaut) */
.dropdown-content {
    /* 1. Masque le contenu */
    display: none;
    /* 2. Positionne le menu */
    position: absolute;
    top: 100%; /* Place le contenu juste sous le bouton */
    left: 0;
    /* 3. Style visuel */
    background-color: var(--color-background); /* Blanc ou fond de la navbar */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;z-index: 100; /* Assure qu'il est au-dessus du reste du contenu */
    border-top: 2px solid var(--color-primary); /* Ligne de séparation visuelle */
    border-radius: 0 0 4px 4px;
}
/* 2. Afficher si la classe 'show' est présente */
.dropdown-content.show {
    display: block !important; /* !!! Le !important peut être nécessaire si votre CSS est trop spécifique ailleurs */
}

/* 3. Assurez-vous que le parent est relatif pour le positionnement */
.dropdown {
    position: relative;
}

/* Styles pour les liens à l'intérieur du dropdown (ils DOIVENT être display: block) */
.dropdown-content a {
    color: var(--color-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block; /* Très important pour qu'ils prennent toute la largeur */
    white-space: nowrap; /* Évite les coupures de texte */
    margin: 0; /* Suppression des marges du nav-link */
}

.dropdown-content a:hover {
    background-color: var(--color-background-alt); /* Fond léger au survol */
    color: var(--color-primary);
    text-decoration: none; /* Supprime le soulignement des liens actifs/hover de la nav principale */
}

/* Affiche le contenu déroulant au survol du conteneur principal (.dropdown) sur desktop */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Ajustement pour l'icône de flèche (pour ne pas la souligner sur desktop) */
.dropbtn .arrow {
    transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn .arrow {
    transform: rotate(180deg);
}

/* --- Media Query pour mobile : Supprimer l'affichage du menu déroulant en ligne --- */

@media (max-width: 768px) {
    /* Important : Sur mobile, le conteneur des liens est en colonne. 
       Le dropdown ne doit PAS être inline-block. */
    .dropdown {
        display: block; /* Prend toute la largeur de la colonne */
        width: 100%;
        position: static; /* Retire le positionnement absolu pour ne pas flotter */
    }

    /* Le contenu déroulant doit être par défaut invisible, mais ne doit plus être positionné absolument */
    .dropdown-content {
        position: static;
        box-shadow: none; /* Retire l'ombre portée pour un look mobile plus propre */
        border: none;
        border-radius: 0;
        /* Sur mobile, le display doit être contrôlé par JS. Il est caché par défaut dans la règle ci-dessus. */
    }

    /* Le lien du dropdown doit prendre la même apparence qu'un nav-link mobile */
    .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
        padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.5); /* Correspond au nav-link mobile */
        /* Si vous utilisez un séparateur : */
        border-bottom: 1px solid #eee;
    }

    /* Ajustement de l'alignement pour l'icône de flèche sur mobile */
    .dropbtn {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Les liens à l'intérieur du dropdown content */
    .dropdown-content a {
        padding-left: calc(var(--spacing-unit) * 2.5); /* Légère indentation pour les sous-liens */
        font-size: 0.95em;
        background-color: #f4f4f4; /* Fond plus clair pour les sous-menus */
        border-top: 1px solid #fff; /* Séparateur léger */
    }
}
/* --- Variables CSS Globales --- */

:root {

    --color-primary: #B5B205;       /* Couleur principale (jaune/vert) */

    --color-primary-dark: #8a8704;  /* Variante foncée pour hover */

    --color-text: #333;            /* Texte principal */

    --color-text-light: #555;      /* Texte plus clair */

    --color-background: #ffffff;   /* Fond principal */

    --color-background-alt: #f8f8f8;/* Fond alternatif léger */

    --color-border: #ccc;          /* Bordures générales */

    --color-white: #ffffff;

    --color-dark: #333;



    --font-primary: 'Montserrat', sans-serif;

    --font-secondary: 'Roboto Flex', sans-serif;



    --nav-height: 80px;             /* Hauteur de la barre de navigation */

    --nav-height-mobile: 70px;     /* Hauteur optionnelle pour mobile si différente */

    --breakpoint-mobile: 768px;     /* Point de bascule pour le menu hamburger */



    --container-max-width: 1200px;  /* Largeur maximale du contenu */

    --spacing-unit: 1rem;           /* Unité d'espacement (ex: 16px) */

}



/* --- Reset CSS Minimal --- */

*,

*::before,

*::after {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}



html {

    font-size: 100%; /* Base pour les unités rem (généralement 16px) */

    scroll-padding-top: var(--nav-height); /* Compense la nav fixe pour les ancres internes */

    scroll-behavior: smooth; /* Défilement doux pour les ancres */

}



body {

    font-family: var(--font-primary);

    color: var(--color-text);

    background-color: var(--color-background);

    line-height: 1.6;

    /* Compensation pour la nav fixe (s'assure que le contenu n'est pas caché dessous) */

    padding-top: var(--nav-height);

}



img {

    max-width: 100%;

    height: auto;

    display: block; /* Supprime l'espace sous les images */

}



a {

    color: var(--color-primary);

    text-decoration: none;

    transition: color 0.3s ease;

}



a:hover {

    color: var(--color-primary-dark);

}



button {

    font-family: inherit;

    cursor: pointer;

    border: none;

    background: none;

}

.btn-submit {

    display: inline-block;

    background-color: #b5b205; /* Couleur bouton (adaptez) */

    color: white;

    padding: 12px 25px;

    border: none;

    border-radius: 4px;

    cursor: pointer;

    font-size: 1.1em;

    font-weight: bold;

    transition: background-color 0.3s ease, transform 0.2s ease;

}



.btn-submit:hover {

    background-color: #333; /* Couleur au survol */

    transform: translateY(-2px); /* Léger effet de soulèvement */

}



/* --- Conteneur Principal --- */

.site-content {

    min-height: calc(100vh - var(--nav-height) - 50px); /* Hauteur min: viewport - nav - footer (ajuster hauteur footer si besoin) */

    padding: calc(var(--spacing-unit) * 2) var(--spacing-unit); /* Espacement haut/bas et côtés */

}



/* --- Header & Navigation --- */

.site-header {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: var(--nav-height);

    background-color: var(--color-background);

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    z-index: 1000;

    display: flex; /* Pour centrer verticalement la nav */

    align-items: center; /* Pour centrer verticalement la nav */

}



.main-navigation {

    display: flex;

    justify-content: space-between;

    align-items: center;

    width: 100%;

    max-width: var(--container-max-width); /* Limite largeur nav */

    margin: 0 auto; /* Centre la nav */

    padding: 0 calc(var(--spacing-unit) * 1.5); /* Padding horizontal nav */

    height: 100%; /* Prend toute la hauteur du header */

}



/* Logo */

.nav-icon {

    display: flex;

    align-items: center;

    color: var(--color-text);

    font-weight: 600;

    font-size: 1.25rem; /* Utilisation de rem */

}



.nav-icon img {

    height: calc(var(--nav-height) * 0.65); /* Logo proportionnel à la hauteur nav */

    width: auto;

    margin-right: calc(var(--spacing-unit) * 0.5);

}



/* Conteneur liens + hamburger */

.main-navlinks {

    display: flex;

    align-items: center;

}



/* Conteneur des liens */

.navlinks-container {

    display: flex; /* Affiché en ligne par défaut */

}



.nav-link {

    display: block;

    padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit); /* Espacement interne */

    margin: 0 calc(var(--spacing-unit) * 0.25); /* Léger espace externe */

    color: var(--color-text);

    font-weight: 500;

    white-space: nowrap; /* Empêche les retours à la ligne */

}



.nav-link:hover,

.nav-link.active {

    color: var(--color-primary);

}

.nav-link.active {

    font-weight: 700; /* Met en gras le lien actif */

    /* ou text-decoration: underline; */

}



/* Authentification (optionnel) */

.nav-authentication {

    /* Styles si nécessaire */

    display: none; /* Caché pour cet exemple */

}



/* --- Bouton Hamburger & Styles Mobile --- */

.hamburger {

    display: none; /* Caché par défaut sur desktop */

    padding: var(--spacing-unit);

    margin-left: var(--spacing-unit);

    z-index: 1010; /* Au-dessus du menu */

}



.hamburger span {

    display: block;

    width: 25px;

    height: 3px;

    background-color: var(--color-dark);

    margin: 5px 0;

    transition: transform 0.3s ease, opacity 0.3s ease;

}



/* Media Query pour le mobile */

@media (max-width: 768px) { /* Utilisation de la variable possible ici aussi si support navigateur ok */

    /* Ajuster hauteur nav et padding body sur mobile si besoin */

    /* :root { --nav-height: var(--nav-height-mobile); } */

    /* body { padding-top: var(--nav-height-mobile); } */



    .hamburger {

        display: block; /* Afficher le hamburger */

    }



    .main-navigation {

        padding: 0 var(--spacing-unit); /* Moins de padding horizontal sur mobile */

    }



    .navlinks-container {

        display: none; /* Caché par défaut */

        position: absolute;

        top: var(--nav-height); /* Se positionne sous la nav */

        left: 0;

        width: 100%;

        background-color: var(--color-background);

        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);

        flex-direction: column; /* Liens en colonne */

        padding: var(--spacing-unit) 0;

        border-top: 1px solid var(--color-border); /* Ligne de séparation */

    }



    /* Quand le menu est ouvert (classe 'active' ajoutée par JS) */

    .navlinks-container.active {

        display: flex;

    }



    .nav-link {

        margin: 0;

        padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.5);

        width: 100%;

        border-bottom: 1px solid #eee; /* Séparateur */

    }

    .nav-link:last-child {

        border-bottom: none;

    }



    /* Animation du hamburger en 'X' */

    .hamburger.active span:nth-child(1) {

        transform: translateY(8px) rotate(45deg);

    }

    .hamburger.active span:nth-child(2) {

        opacity: 0;

    }

    .hamburger.active span:nth-child(3) {

        transform: translateY(-8px) rotate(-45deg);

    }

}

.slide-content h2 {
  color: var(--color-primary); 
}


/* --- Footer --- */

.site-footer-bottom {

    background-color: var(--color-dark);

    color: var(--color-white);

    text-align: center;

    padding: calc(var(--spacing-unit) * 1.5) var(--spacing-unit);

    font-size: 0.9rem;

}



.site-footer-bottom p {

    margin-bottom: calc(var(--spacing-unit) * 0.5);

}

.site-footer-bottom a {

    color: var(--color-primary);

}

.site-footer-bottom a:hover {

    color: var(--color-white);

}



/* Sections */

section {

  padding: 40px;

  text-align: center;

}



section h2 {

  margin-bottom: 20px;

}



/* A Propos */

.a-propos p {

  max-width: 800px;

  margin: 0 auto 20px;

}

/* Services */

.service-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));

  gap: 20px;

  margin-top: 20px;

}



.service-item {

  border: 1px solid #ddd;

  padding: 20px;

  border-radius: 5px;

}



.service-item img {

  max-width: 100%;

  height: auto;

  margin-bottom: 10px;

}
/* Slider Container */

.slider-container {

  position: relative;

  overflow: hidden;

  width: 100%; /* Ajustez selon vos besoins */

  height: 500px; /* Hauteur fixe du slider */

}



/* Slider */

.slider {

  display: flex;

  transition: transform 0.5s ease-in-out; /* Animation de transition */

  height: 100%;

}



/* Slide */

.slide {

  min-width: 100%; /* Chaque slide occupe toute la largeur */

  height: 100%;

  position: relative;

}



.slide img {

  width: 100%;

  height: 100%;

  object-fit: cover; /* L'image remplit l'espace sans dÃ©formation (remplissage avec rognage) */

}



.slide-content {

  position: absolute;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  color: white;

  text-align: center;

  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */

  padding: 20px;

  border-radius: 5px;

  width: 80%;

  max-width: 600px;

}



.slide-content h2 {

  margin-bottom: 10px;

}


/* Navigation Buttons */

.slider-prev,

.slider-next {

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  background-color: rgba(0, 0, 0, 0.5);

  color: white;

  border: none;

  padding: 10px 20px;

  cursor: pointer;

  font-size: 20px;

  transition: background-color 0.3s ease;

}



.slider-prev:hover,

.slider-next:hover {

  background-color: rgba(0, 0, 0, 0.8);

}



.slider-prev {

  left: 10px;

}



.slider-next {

  right: 10px;

}



/* Navigation Dots */

.slider-dots {

  position: absolute;

  bottom: 10px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

}



.slider-dots span {

  display: block;

  width: 10px;

  height: 10px;

  border-radius: 50%;

  background-color: rgba(255, 255, 255, 0.5);

  margin: 0 5px;

  cursor: pointer;

  transition: background-color 0.3s ease;

}



.slider-dots span.active {

  background-color: white;

}

//* Section Services - Responsive & propre */

.services {

  padding: 2rem 1rem;

  text-align: center;

}



.service-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Pour un comportement flexible par défaut */

  gap: 1.5rem;

}



.service-item h3 {

  font-size: 1.2rem;

  margin-bottom: 0.5rem;

}



/* ðŸ”§ Fix spécifique mobile pour les cartes services */

@media (max-width: 768px) {

  .service-grid {

    grid-template-columns: 1fr; /* Une seule colonne sur mobile */

  }



  .service-item {

    width: 100%;

    padding: 1rem;

    box-sizing: border-box;

  }



  .service-item img {

    width: 100%;

    height: auto;

    object-fit: cover;

  }



  .service-item h3,

  .service-item p {

    font-size: 1rem;

    word-break: break-word;

  }

}



/* ðŸ”§ Adaptation pour les tablettes (entre 769px et 1024px) */

@media (min-width: 769px) and (max-width: 1024px) {

  .service-grid {

    grid-template-columns: repeat(2, minmax(300px, 1fr)); /* Force 2 colonnes sur tablette */

  }

}



/* ðŸ”§ Adaptation pour les écrans plus larges (PC) */

@media (min-width: 1025px) {

  .service-grid {

    grid-template-columns: repeat(3, minmax(300px, 1fr)); /* Force 3 colonnes sur PC */

  }

}



/* Bouton centré et responsive */

.btn-submit {

  display: block;

  margin: 2rem auto 0;

  text-align: center;

  padding: 0.75rem 1.5rem;

  max-width: 200px;

  word-wrap: break-word;

}



body {

  max-width: 100vw;

  overflow-x: hidden; /* Bloque le scroll horizontal */

}



section,

.slider-container,

.services,

.a-propos {

  width: 100%;

  box-sizing: border-box;

  padding-left: 1rem;

  padding-right: 1rem;

}



/* Empêcher les textes ou boutons trop larges */

p, h1, h2, h3, a.button, .btn-submit {

  word-wrap: break-word;

  overflow-wrap: break-word;

}



/* Corriger la section .a-propos */

.a-propos {

  padding: 2rem 1rem;

  text-align: center;

}



.a-propos .button {

  display: inline-block;

  margin-top: 1rem;

}



/* Slide content responsive */

@media (max-width: 768px) {

  .slide-content {

    width: 90%;

    padding: 10px;

  }



  .slide-content h2 {

    font-size: 1.2rem;

  }



  .slide-content p {

    font-size: 1rem;

  }



  .slider-prev,

  .slider-next {

    padding: 8px 12px;

    font-size: 16px;

  }

}

html, body {

  margin: 0;

  padding: 0;

  overflow-x: hidden;

}