/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #858a8e;
    --accent-color: #c61522;
    --white: #ffffff;
    --dark-gray: #2c2c2c;
    --light-gray: #f5f5f5;
    --text-color: #333333;
    --shadow: 0 4px 20px rgba(133, 138, 142, 0.1);
    --shadow-hover: 0 8px 30px rgba(133, 138, 142, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary-color); /* gris comme le footer */
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 55px;
    width: auto;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* Ajout d'un media query pour doubler la taille du logo sur smartphone */
@media (max-width: 480px) {
  .footer-brand {
    justify-content: center !important;
    display: flex !important;
  }
  .footer-logo {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
  .footer-contact {
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .values-grid {
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    display: flex !important;
  }
  .hero-logo-img {
    height: 300px !important;
    width: 300px !important;
  }
  .hero {
    min-height: 100vh !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}
.nav-link {
    text-decoration: none;
    color: var(--white); /* texte blanc sur fond gris */
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color); /* accent rouge au hover */
}

.nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white); /* hamburger blanc sur fond gris */
    margin: 3px 0;
    transition: var(--transition);
}

.nav-phone {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(198, 21, 34, 0.3);
}

.nav-phone:hover {
    background: #d41729;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(198, 21, 34, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(198, 21, 34, 0.1)
    ),
    url('images/image_background_intro.jpg') center/cover no-repeat;
    filter: blur(2px); /* Flou léger pour faire ressortir le texte */
    z-index: 0;
}

.hero-background::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%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-logo-img {
    height: 450px;
    width: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
    transition: var(--transition);
}

.hero-logo-img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 15px 40px rgba(0,0,0,0.6));
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-slogan {
    font-family: 'Pacifico', 'Dancing Script', 'Brush Script MT', cursive, sans-serif;
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out 0.5s both;
    font-style: italic;
}

.slogan-highlight {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.hero-scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.hero-scroll:hover {
    background: var(--white);
    color: var(--accent-color);
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Presentation Section */
.presentation {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.presentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.presentation-content {
    max-width: 1200px;
    margin: 0 auto;
}

.presentation-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.presentation-title {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.presentation-title-bar {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin: 0 auto 2rem;
}

.presentation-intro-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 2rem auto 0;
    max-width: 700px;
    font-style: italic;
    opacity: 0.8;
}

.presentation-subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.9;
}

/* Services Title */
.services-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

/* Profile Card */
.profile-card {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    height: 432px; /* Hauteur totale des 4 cartes: 4*90px + 3*24px = 432px */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.profile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.artisan-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.badge-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.badge-text {
    font-size: 1rem;
}

.profile-info {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 3rem 2rem 2rem; /* Padding normal sans espace pour le badge */
    position: relative;
    z-index: 2;
    border-radius: 0 0 20px 20px;
}

.profile-info h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Services Grid */
.services-grid {
    display: grid;
    gap: 1.5rem;
    height: 100%;
}

.service-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow);
    height: 90px; /* Hauteur fixe pour alignement */
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.service-icon {
    background: var(--accent-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.service-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-content p {
    color: var(--text-color);
    line-height: 1.4;
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Commitment Section */
.presentation-commitment {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent-color);
}

.commitment-content {
    flex: 1;
}

.commitment-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.commitment-content p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.1rem;
    opacity: 0.9;
}

.presentation-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 220px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--accent-color), #a01219);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(198, 21, 34, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(198, 21, 34, 0.4);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Values Section */
.values {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #ececec 100%);
    position: relative;
}

.values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.values h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
}

.values h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.values-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 2rem auto 0;
    max-width: 600px;
    font-style: italic;
    opacity: 0.8;
}

.values .container {
    max-width: 1400px;
}

.values-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    overflow: hidden;
    padding: 0 1rem;
}

.value-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 220px;
    max-width: 250px;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.value-item i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
    transition: var(--transition);
    text-align: center;
    width: 100%;
}

.value-item:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

.value-item h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: linear-gradient(135deg, #f7f7f7 0%, #ededed 100%);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.gallery h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
}

.gallery h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.gallery-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 2rem auto 0;
    max-width: 700px;
    font-style: italic;
    opacity: 0.8;
}

.gallery .container {
    max-width: 1400px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 300px;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-images {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Inversion : l'image "après" est visible par défaut, l'image "avant" apparaît au hover */
.gallery-before,
.gallery-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease;
}

.gallery-after {
    opacity: 1;
    z-index: 1;
}

.gallery-before {
    opacity: 0;
    z-index: 2;
}

.gallery-item:hover .gallery-before {
    opacity: 1;
}

.gallery-item:hover .gallery-after {
    opacity: 0;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 3;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.gallery-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 4;
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* Cartes statiques (sans effet avant/après et non-cliquables) */
.gallery-item.gallery-static {
    cursor: default;
}

.gallery-item.gallery-static:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.gallery-single-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Spécifique pour la carte Béton ciré - centrer l'image vers le bas */
.gallery-item.beton-cire .gallery-before,
.gallery-item.beton-cire .gallery-after {
    object-position: center bottom;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: lightboxFadeIn 0.3s ease;
    z-index: 1;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    background: var(--light-gray);
}

.lightbox-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.lightbox-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.1);
    color: var(--accent-color);
}

.lightbox-images {
    display: flex;
    gap: 1rem;
    padding: 2rem;
}

.lightbox-image-container {
    position: relative;
    flex: 1;
    text-align: center;
}

.lightbox-image-container img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.image-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lightbox-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--light-gray);
    border-top: 1px solid #eee;
}

.lightbox-nav-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.lightbox-nav-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.lightbox-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

#lightbox-counter {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

/* Environment Section */
.environment {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.environment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.environment .container {
    max-width: 1200px;
}

.environment-header {
    text-align: center;
    margin-bottom: 4rem;
}

.environment h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
}

.environment-title-bar {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin: 0 auto 2rem;
}

.environment-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 2rem auto 0;
    max-width: 700px;
    font-style: italic;
    opacity: 0.8;
}

.environment-content {
    max-width: 1100px;
    margin: 0 auto;
}

.environment-statement {
    margin-bottom: 4rem;
}

.statement-card {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-gray));
    color: white;
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.statement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.statement-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.statement-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.statement-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.environment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Responsive pour environment-grid */
@media (max-width: 1200px) {
    .environment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .environment-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.env-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.env-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.env-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.env-icon {
    background: linear-gradient(135deg, var(--accent-color), #a01219);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
}

.env-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.env-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.env-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: auto;
    opacity: 0.9;
    flex: 1;
}

.env-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #a01219);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-top: 1rem;
}

.environment-commitment {
    text-align: center;
}

.commitment-box {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent-color);
}

.commitment-box i {
    font-size: 3rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.commitment-box h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.commitment-box p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.1rem;
    opacity: 0.9;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--light-gray);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.contact h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin: 1rem auto 0;
}

.contact .container {
    max-width: 1200px;
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 2rem auto 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-intro p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-intro strong {
    color: var(--accent-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-top: 0.2rem;
    width: 40px;
    display: flex;
    justify-content: center;
}

.contact-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-item p {
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
}

.map-container {
    margin-top: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    flex-grow: 1;
    min-height: 350px;
    border: 4px solid var(--white);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
}

.contact-form-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e8e8e8;
    border-radius: 15px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(198, 21, 34, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.submit-button {
    background: linear-gradient(135deg, var(--accent-color), #a01219);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem auto 0;
    min-width: 200px;
    justify-content: center;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    filter: brightness(1.05);
}

.submit-button i {
    font-size: 1rem;
}

/* Form Messages */
.form-message {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease-out;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.form-message span {
    flex: 1;
    line-height: 1.4;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Submit button loading state */
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.submit-button:disabled:hover {
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1); /* Rend le logo blanc */
    transition: var(--transition);
}

.footer-logo:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.footer-section ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: var(--accent-color);
    width: 20px;
}

.footer-contact .instagram-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact .instagram-link:hover {
    color: var(--white);
}

.footer-contact .instagram-link i {
    color: var(--accent-color);
    transition: var(--transition);
}

.footer-contact .instagram-link:hover i {
    color: #e4405f; /* Couleur Instagram */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Le header reste toujours gris, même au scroll */
.navbar {
    background: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color); /* fond gris sur mobile */
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
        transform: none; /* Réinitialise le transform du desktop */
        margin-left: 0; /* Réinitialise le margin-left du desktop */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-phone {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-logo {
        height: 45px;
    }

    .footer-logo {
        height: 42px;
    }

    .hero {
        min-height: 80vh;
        padding: 0;
    }

    .hero-logo-img {
        height: 120px;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .hero-slogan {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .hero-scroll {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .presentation {
        padding: 60px 0;
    }

    .presentation-title {
        font-size: 2.2rem;
    }
    
    .presentation-subtitle {
        font-size: 1.1rem;
    }
    
    .presentation-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .profile-card {
        margin: 0 auto;
        width: 100%;
        height: auto; /* Hauteur automatique sur mobile */
        min-height: 350px;
    }
    
    .profile-info {
        padding: 2rem 1.5rem 1.5rem; /* Padding normal sur mobile sans badge */
    }
    
    .profile-info h3 {
        font-size: 1.2rem;
    }
    
    .service-card {
        height: auto; /* Hauteur automatique sur mobile */
        min-height: 80px;
    }
    
    .presentation-commitment {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .presentation-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-button {
        justify-content: center;
        min-width: 200px;
        padding: 16px 30px;
        font-size: 1rem;
    }

    .values {
        padding: 80px 0;
    }

    .values h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .values-grid {
        gap: 1rem;
        padding: 0 0.5rem;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .value-item {
        min-width: 280px;
        max-width: 280px;
        width: 280px;
        padding: 2rem 1rem;
    }

    .value-item i {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    .value-item h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Lightbox responsive */
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .lightbox-images {
        flex-direction: column;
        padding: 1.5rem;
    }

    .lightbox-image-container img {
        max-height: 40vh;
    }

    .lightbox-header {
        padding: 1rem 1.5rem;
    }

    .lightbox-navigation {
        padding: 0.8rem 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form {
        padding: 2rem;
        order: 1;
    }

    .contact-info {
        order: 2;
    }

    .contact h2 {
        font-size: 2.5rem;
    }

    .contact-intro {
        max-width: 100%;
        margin: 2rem 0;
        padding: 0 1rem;
        font-size: 1.2rem;
    }

    .map-container {
        min-height: 250px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .statement-card {
        padding: 2rem;
        margin: 0 1rem;
    }

    .commitment-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .commitment-box i {
        margin-bottom: 1rem;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 0;
    }

    .hero-logo-img {
        height: 80px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-text {
        padding: 1.5rem;
        margin: 1.5rem 0;
        font-size: 1rem;
    }

    .hero-text p:last-child {
        font-size: 1.1rem;
        padding: 0.8rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
        letter-spacing: 0.3px;
    }

    .values h2,
    .gallery h2,
    .environment h2,
    .contact h2 {
        font-size: 2rem;
    }

    .nav-logo {
        height: 40px;
    }

    .footer-logo {
        height: 38px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 250px;
    }

    /* Lightbox mobile */
    .lightbox-content {
        max-width: 98vw;
        max-height: 98vh;
        border-radius: 10px;
    }

    .lightbox-images {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .lightbox-image-container img {
        max-height: 35vh;
    }

    .lightbox-header {
        padding: 1rem;
    }

    .lightbox-header h3 {
        font-size: 1.2rem;
    }

    .lightbox-navigation {
        padding: 0.8rem 1rem;
    }

    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .image-label {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact {
        padding: 60px 0;
    }

    .submit-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.value-item,
.gallery-item,
.env-point,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .value-item:nth-child(1) { animation-delay: 0.1s; }
    .value-item:nth-child(2) { animation-delay: 0.2s; }
    .value-item:nth-child(3) { animation-delay: 0.3s; }
    .value-item:nth-child(4) { animation-delay: 0.4s; }
    .value-item:nth-child(5) { animation-delay: 0.5s; }
}

/* Placeholder pour les images manquantes */
.gallery-item:not(:has(img)) {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    text-align: center;
}

.gallery-item:not(:has(img))::before {
    content: "Image à venir";
    font-weight: 500;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 1.5rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.cookie-text p:last-child {
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    min-width: 100px;
}

.cookie-btn.accept {
    background: var(--accent-color);
    color: var(--white);
}

.cookie-btn.accept:hover {
    background: #a01219;
    transform: translateY(-2px);
}

.cookie-btn.refuse {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-btn.refuse:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 120px;
    }
}
