:root {
  --primary-color: #1e1e1e;
  --secondary-color: #d4af37;
  /* --accent-color: #3c3f58; */
  --accent-color: #28a745;
  --bg-color: #f7f8f9;
  --white: #ffffff;
  --gray: #888888;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #7f8c8d;
  --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--primary-color);
  line-height: 1.6;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
}


/* HERO */
.hero {
  height: 100vh;
  background: linear-gradient(to right, #1e1e1eaa, #1e1e1ecc), url('/img/contents/hero.jpg') center/cover no-repeat;
  color: var(--white);
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons .btn {
  margin: 0 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #b28f2d;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}


/* Section Images-sous-hero*/
/* Hero Images Section */
.hero-images {
    margin-top: -50px;
    position: relative;
    z-index: 5;
    padding-bottom: 30px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.image-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    height: 250px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.image-card:hover {
    transform: translateY(-10px);
}

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

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px;
    color: white;
}

.image-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-transparent {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-transparent:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.btn-transparent i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-transparent:hover i {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-images {
        margin-top: -30px;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .image-card {
        height: 200px;
    }
    
    .image-overlay {
        padding: 20px;
    }
    
    .image-overlay h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .image-card {
        height: 180px;
    }
    
    .image-overlay {
        padding: 15px;
    }
}

/* Section Titles */
.section-title {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 40px;
  font-size: 1.05rem;
}


/* Services Section */
.services {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.services-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); /* Cartes un peu plus grandes */
    gap: 40px; /* Plus d'espace entre les cartes */
    margin-top: 60px;
}

.service-category {
    background: linear-gradient(145deg, var(--white) 0%, var(--light-bg) 100%); /* Dégradé plus doux */
    padding: 50px 35px; /* Plus de padding */
    border-radius: 20px; /* Plus arrondi */
    box-shadow: var(--shadow-medium); /* Ombre plus prononcée */
    transition: var(--transition-medium);
    border: 1px solid rgba(0, 0, 0, 0.05); /* Bordure subtile */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrer le contenu */
}

.service-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px; /* Plus large */
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color)); /* Dégradé de bordure */
    transition: width 0.3s ease;
}

.service-category:hover {
    transform: translateY(-12px); /* Effet plus prononcé */
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15); /* Ombre plus grande */
}

.service-category:hover::before {
    width: 10px; /* Plus large au survol */
}

.category-icon {
    width: 80px; /* Plus grand */
    height: 80px; /* Plus grand */
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-color)); /* Dégradé pour l'icône */
    border-radius: 50%; /* Rond parfait */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px; /* Plus d'espace */
    color: var(--white);
    font-size: 2.5rem; /* Icône plus grande */
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.4); /* Ombre plus douce */
    position: relative;
    z-index: 1;
}

.service-category h3 {
    text-align: center;
    font-size: 2.2rem; /* Plus grand */
    margin-bottom: 25px; /* Plus d'espace */
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.service-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* Plus large */
    height: 4px; /* Plus épais */
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.service-category p {
    text-align: center;
    margin-bottom: 30px; /* Plus d'espace */
    color: var(--text-light);
    font-size: 1.1rem; /* Plus grand */
    flex-grow: 1; /* Permet aux paragraphes de prendre l'espace disponible */
}

.service-list {
    margin-top: 25px;
    width: 100%; /* S'étend sur toute la largeur */
}

.service-list li {
    margin-bottom: 15px; /* Plus d'espace */
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0; /* Bordure plus discrète */
    font-size: 1.05rem;
    color: var(--text-color);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list i {
    color: var(--accent-color); /* Vert pour les coches */
    margin-right: 15px;
    font-size: 1.3rem; /* Plus grand */
    margin-top: 2px;
}


/* Construction Section - Horizontal Card Slider */
.construction {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 50px; /* Plus d'espace */
    position: relative;
}

.construction-slider-container {
    position: relative;
    margin: 0 auto;
    padding: 0 25px; /* Plus de padding */
}

.construction-slider {
    display: flex;
    gap: 30px; /* Plus d'espace entre les cartes */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0 40px;
    margin: 0 -25px; /* Ajuste le margin pour le padding du container */
    scrollbar-width: none;
}

.construction-slider::-webkit-scrollbar {
    display: none;
}

.construction-card {
    flex: 0 0 calc(33.333% - 20px); /* Ajusté pour le nouveau gap */
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 18px; /* Plus arrondi */
    overflow: hidden;
    box-shadow: var(--shadow-light); /* Ombre plus douce */
    transition: var(--transition-medium);
    position: relative;
    min-width: 350px; /* Taille minimale plus grande */
    border-top: 5px solid var(--accent-color); /* Bordure supérieure distinctive */
}

.construction-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.card-badge {
    position: absolute;
    top: 20px; /* Plus de padding */
    right: 20px; /* Plus de padding */
    background: linear-gradient(45deg, var(--secondary-color), #ff8a7f); /* Dégradé plus doux */
    color: white;
    padding: 6px 14px; /* Plus grand */
    border-radius: 25px; /* Plus arrondi */
    font-size: 0.9rem; /* Plus grand */
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(231, 76, 60, 0.35);
}

.construction-image {
    height: 250px; /* Plus grand */
    overflow: hidden;
    position: relative;
}

.construction-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; /* Effet plus prononcé */
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.construction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1); /* Animation plus fluide */
}

.construction-card:hover .construction-image img {
    transform: scale(1.08); /* Moins agressif que 1.1 */
}

.construction-info {
    padding: 30px; /* Plus de padding */
    padding-bottom: 10px;
}

.card-category {
    display: inline-block;
    background-color: rgba(40, 167, 69, 0.15); /* Couleur accent-color avec opacité */
    color: var(--accent-color);
    padding: 6px 15px; /* Plus grand */
    border-radius: 20px;
    font-size: 0.85rem; /* Plus grand */
    font-weight: 700;
    margin-bottom: 12px;
}

.construction-info p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1rem; /* Légèrement plus grand */
    line-height: 1.7;
}

.card-stats {
    display: flex;
    gap: 15px; /* Plus d'espace */
}

.card-stats span {
    display: flex;
    align-items: center;
    font-size: 0.9rem; /* Plus grand */
    color: var(--text-light);
}

.card-stats i {
    margin-right: 6px;
    font-size: 0.8rem;
    color: var(--accent-color); /* Vert pour les icônes de stats */
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
    opacity: 0.7;
}

.slider-nav:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.slider-nav.prev {
    left: -50px;
}

.slider-nav.next {
    right: -50px;
}


@media (max-width: 992px) {
    .construction-card {
        flex: 0 0 calc(50% - 15px);
    }

    .slider-nav.prev {
        left: -20px;
    }

    .slider-nav.next {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .construction-slider-container {
        padding: 0 40px;
    }
    
    .construction-card {
        flex: 0 0 80%;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .construction-slider-container {
        padding: 0 30px;
    }
    
    .construction-card {
        flex: 0 0 90%;
    }
}

/* Equipment Section */
.equipment {
    background-color: var(--white);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.equipment-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.equipment-card:hover {
    transform: translateY(-10px);
}

.equipment-image {
    height: 250px;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.1);
}

.equipment-info {
    padding: 25px;
}

.equipment-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.equipment-specs {
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne */
    justify-content: space-between;
    margin: 25px 0; /* Plus d'espace */
    color: var(--text-color);
    font-size: 0.95rem;
    gap: 10px; /* Espacement entre les spans */
}

.equipment-specs span {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.equipment-specs i {
    margin-right: 8px;
    color: var(--accent-color); /* Vert pour les icônes de specs */
    font-size: 1.1rem;
}

