/* Style anti-sursaut pour éviter le CLS (Cumulative Layout Shift) */
html {
    font-display: swap;
    font-size: 16px; /* Définir explicitement la taille de police de base */
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
    /* Préserver la hauteur de mise en page */
    min-height: 100vh;
}

/* Font-face avec font-display: swap pour éviter le sursaut */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Raleway'), url(https://fonts.gstatic.com/s/raleway/v28/1Ptug8zYS_SKggPNyC0ITw.woff2) format('woff2');
}

@font-face {
    font-family: 'Teko';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Teko'), url(https://fonts.gstatic.com/s/teko/v15/LYjNdG7kmE0gfaN9pQ.woff2) format('woff2');
}

/* Variables de couleurs */
:root {
    --primary-color: #E67E22; /* Orange terracotta pour évoquer la terre */
    --secondary-color: #34495E; /* Bleu-gris foncé pour rappeler le professionnalisme */
    --accent-color: #F39C12; /* Orange doré pour les accents */
    --dark-color: #2C3E50; /* Gris très foncé presque noir */
    --light-color: #ECF0F1; /* Blanc cassé */    --text-color: #333; /* Noir pour le texte */
    --text-light: #777; /* Gris pour le texte secondaire */
    --overlay-color: rgba(44, 62, 80, 0.85); /* Fond semi-transparent pour les overlays */
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07); /* Ombre standard réduite */
}

/* Reset et styles de base - correction overflow */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* Reset et styles de base */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Teko', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Correction conteneur responsive */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
}

.btn:hover:before {
    left: 100%;
}

/* Styles d'accessibilité */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 2000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Amélioration du focus pour l'accessibilité clavier */
a:focus, button:focus, input:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Amélioration des contrastes pour la lisibilité */
.value-item p {
    color: var(--dark-color);
}

.contact-card .small {
    color: var(--dark-color);
}

.overlay-content h3 {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.overlay-content p {
    color: #FFFFFF;
    font-weight: 600;
}

/* Modification des transitions pour les utilisateurs préférant les animations réduites */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.001s !important;
        animation-duration: 0.001s !important;
    }
}

/* Header et Navigation avec corrections responsive */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(44, 62, 80, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    padding: 10px 0;
    background-color: var(--dark-color);
}

.logo-container {
    padding: 0 20px;
}

.logo-container h1 {
    font-family: 'Teko', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    margin: 0;
}

.logo-container h1 span {
    color: var(--primary-color);
}

.logo-container .tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1.5px;
    margin-top: -5px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-right: 30px;
}

nav ul li:last-child {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: #e67e22;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 20px;
    position: relative;
    z-index: 1002; /* Z-index supérieur à celui de la navigation pour rester visible */
    padding: 0;
}

/* Nous assurons que l'icône reste visible même quand le menu est ouvert */
.menu-toggle .fa-xmark,
.menu-toggle .fa-bars {
    color: #e67e22;
    text-shadow: none;
    box-shadow: none;
}

.menu-toggle:focus {
    outline: none;
    box-shadow: none;
}

.menu-toggle:hover,
.menu-toggle:active,
.menu-toggle:focus {
    background: transparent;
    outline: none;
    box-shadow: none;
    border: none;
}

/* Amélioration spécifique pour les navigateurs qui appliquent des styles d'outline par défaut */
.menu-toggle::-moz-focus-inner {
    border: 0;
}

.menu-toggle:focus-visible {
    outline: none;
}

/* Section Hero avec corrections et effet parallaxe */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: none; /* Suppression du background existant */
}

/* Création de l'effet parallaxe */
.hero::before {
    content: '';
    position: fixed; /* Position fixée pour créer l'effet parallaxe */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(48, 63, 82, 0.3), rgba(48, 63, 82, 0.3)), url('images/pelleteuse-header.png') no-repeat center center;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Fixation de l'image pour l'effet parallaxe */
    z-index: -2;
}

/* Ajout d'un overlay radial supplémentaire */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease forwards; /* Animation pour l'apparition du contenu */
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Adaptation pour les appareils mobiles */
@media (max-width: 768px) {
    .hero::before {
        background-attachment: scroll; /* Sur mobile, le fixed ne fonctionne pas bien */
    }
}

/* Section générique */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--dark-color);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.separator {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    position: relative;
}

.separator:before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Section Présentation */
.presentation {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.presentation:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-color: var(--light-color);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

.presentation-content {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.presentation-text {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.presentation-text p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.values {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.value-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 25px 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.presentation-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 2;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    height: 100%;
    min-height: 400px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* Section Réalisations */
.realisations {
    background-color: var(--light-color);
    position: relative;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay-content {
    padding: 20px;
    width: 100%;
}

.overlay-content h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.overlay-content p {
    color: var(--primary-color);
    font-size: 0.95rem;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}

.gallery-item:hover .overlay-content h3,
.gallery-item:hover .overlay-content p {
    transform: translateY(0);
    opacity: 1;
}

/* Styles pour la galerie cliquable */
.gallery-image {
    position: relative;
}

.image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* Styles pour la modale */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2001;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);    width: 90%;    max-width: 1200px;
    max-height: 90vh;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    z-index: 2002;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease forwards;
}

.modal-header {
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    background-color: var(--dark-color);
    color: white;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

.modal-header p {
    color: var(--primary-color);
    margin-bottom: 0;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-content {
    padding: 20px;
    max-height: calc(90vh - 100px);
    overflow: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.modal-description-container {
    flex: 0 0 35%;
    padding: 15px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-description-container p {
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-color);
}

.modal-image-container {
    flex: 0 0 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: calc(90vh - 140px);
    object-fit: contain;
}

/* Animation pour l'ouverture de la modale */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Ajustement responsive pour la modale */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
    }
    
    .modal-header {
        padding: 10px 15px;
    }
    
    .modal-content {
        flex-direction: column-reverse;
    }
    
    .modal-description-container {
        flex: 1;
        width: 100%;
        max-height: none;
        padding: 15px 10px;
    }
    
    .modal-image-container {
        flex: 1;
        width: 100%;
    }
    
    .modal-content img {
        max-height: calc(50vh - 100px);
    }
}

/* Section Contact */
.contact {
    background: linear-gradient(to right, #fff 50%, var(--light-color) 50%);
    position: relative;
}

.contact-content {
    position: relative;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.contact-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-card:hover .contact-icon::before {
    transform: translateX(100%);
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-card .small {
    font-size: 0.85rem;
    color: var(--text-light);
}
.social-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.social-links li a {
    color: white; /* ou une autre couleur selon ton fond */
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links li a:hover {
    color: var(--primary-color); /* ou une couleur que tu veux au survol */
}


/* Footer */
footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-logo h2 {
    font-family: 'Teko', sans-serif;
    color: white;
    font-size: 2rem;
}

.footer-logo h2 span {
    color: var(--primary-color);
}

.footer-logo p {
    margin-top: 5px;
    font-size: 0.9rem;
}

.footer-links {
    margin-right: 30px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

/* Styles pour le nouveau footer-info */
.footer-info {
    width: 100%;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    text-align: center;
}

.footer-info p {
    margin-bottom: 8px;
}

.footer-info a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: white;
}

.footer-legal {
    width: 100%;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animations appliquées */
.section-header,
.presentation-text,
.presentation-image,
.value-item,
.gallery-item,
.contact-card {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-header.animated {
    animation: fadeInUp 0.8s ease forwards;
}

.presentation-text.animated {
    animation: fadeInRight 0.8s ease forwards;
}

.presentation-image.animated {
    animation: fadeInLeft 0.8s ease forwards;
}

.value-item.animated,
.gallery-item.animated,
.contact-card.animated {
    animation: fadeInUp 0.8s ease forwards;
}

.value-item:nth-child(2).animated {
    animation-delay: 0.2s;
}

.value-item:nth-child(3).animated {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(1).animated { animation-delay: 0.1s; }
.gallery-item:nth-child(2).animated { animation-delay: 0.2s; }
.gallery-item:nth-child(3).animated { animation-delay: 0.3s; }
.gallery-item:nth-child(4).animated { animation-delay: 0.4s; }
.gallery-item:nth-child(5).animated { animation-delay: 0.5s; }
.gallery-item:nth-child(6).animated { animation-delay: 0.6s; }
.gallery-item:nth-child(7).animated { animation-delay: 0.7s; }
.gallery-item:nth-child(8).animated { animation-delay: 0.8s; }
.gallery-item:nth-child(9).animated { animation-delay: 0.9s; }
.gallery-item:nth-child(10).animated { animation-delay: 1s; }

.contact-card:nth-child(1).animated { animation-delay: 0.1s; }
.contact-card:nth-child(2).animated { animation-delay: 0.3s; }
.contact-card:nth-child(3).animated { animation-delay: 0.5s; }

/* Amélioration de l'effet de survol */
.btn, .value-item, .gallery-item, .contact-card {
    transition: all 0.3s ease;
}

.btn:hover, .value-item:hover, .gallery-item:hover, .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .hero-content h3 {
        font-size: 1.75rem;
    }
    
    .presentation:before {
        width: 100%;
        clip-path: none;
        height: 50%;
        bottom: 0;
        top: auto;
        opacity: 0.3;
    }
    
    .presentation-content {
        flex-direction: column;
        padding: 0;
        width: 100%;
    }
    
    .presentation-text {
        padding-right: 0;
        margin-bottom: 40px;
        width: 100%;
    }
    
    .image-container {
        min-height: 300px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    header {
        padding: 15px 0;
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .logo-container {
        padding: 0 15px;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--dark-color);
        z-index: 1001;
        transition: right 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
        width: 100%;
    }
    
    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
    }
      .menu-toggle {
        display: block;
        margin-right: 15px;
        padding: 0;
        background: transparent;
        border: none;
        outline: none;
        box-shadow: none;
    }
    
    section {
        padding: 60px 0;
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 15px;
    }
    
    .values {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .value-item {
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .contact {
        background: #fff;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .contact-card {
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
    }
      .gallery {
        width: 100%;
        margin: 0;
    }
    
    .gallery-item {
        margin: 0 0 20px 0;
    }
      /* Afficher l'overlay et son contenu en version mobile */
    .overlay {
        opacity: 1;
        background: rgba(44, 62, 80, 0.85);
        height: auto;
        min-height: 60px;
        bottom: 0;
        top: auto;
        position: absolute;
        display: block;
    }
    
    .overlay-content h3,
    .overlay-content p {
        transform: translateY(0);
        opacity: 1;
        font-size: 0.9rem;
    }
    
    .overlay-content h3 {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .overlay-content {
        padding: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .footer-links {
        margin: 20px 0;
        width: 100%;
    }
    
    .footer-links ul {
        align-items: center;
    }
    
    .footer-info {
        padding: 15px 0;
        font-size: 0.8rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-container h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content h3 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 25px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
      .gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        width: 100%;
    }
    
    .overlay-content h3 {
        font-size: 1rem;
    }
    
    .overlay-content p {
        font-size: 0.8rem;
    }
    
    .overlay-content {
        padding: 8px;
    }
    
    .contact-card {
        padding: 25px 15px;
    }
}

/* Styles pour la bannière de consentement des cookies */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: white;
    z-index: 1990;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.cookie-text {
    flex: 1 1 65%;
    padding-right: 20px;
}

.cookie-text p {
    margin-bottom: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-details {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-details a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-details a:hover {
    color: var(--accent-color);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    border: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.cookie-btn.accept {
    background-color: var(--primary-color);
    color: white;
}

.cookie-btn.accept:hover {
    background-color: var(--accent-color);
}

.cookie-btn.refuse {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.cookie-btn.refuse:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive pour la bannière de cookies */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-text {
        padding-right: 0;
        margin-bottom: 15px;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}
