/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: 0px solid red;
    /* Visualiser les débordements */
}

body {
    line-height: 1.6;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    /* Titles */
    margin: 0;
}

p {
    font-family: 'Montserrat', sans-serif;
    /* Body text */
    margin: 0;
}


/* Header */
header.overlay-header {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.0) 40%), 
                url('images/3d/1-hero-the-den-samui-2k.webp') no-repeat center center/cover;
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column; /* Empile les blocs */
}

/* Header Container (Logo et Menu) */
.header-container {
    display: flex;
    flex-direction: column; /* Empile le logo et le menu */
    align-items: center;
    text-align: center;
    z-index: 10; /* Toujours au-dessus du contenu héroïque */
    padding: 1rem 0;
}

.logo img {
    width: 274px; /* Définit la largeur fixe à 50% de la taille réelle */
    max-width: 100%; /* Garantit un comportement responsive */
    height: auto; /* Conserve le ratio d'aspect */
    display: block; /* Évite les problèmes d'alignement inline */
    margin: 0 auto; /* Centre le logo dans son conteneur */
}

/* Centered Navigation */
.centered-nav {
    display: flex;
    flex-direction: column;
    /* Arrange items vertically */
    align-items: center;
    /* Center items horizontally */
    justify-content: center;
    /* Center the block vertically (optional if needed) */
    text-align: center;
    /* Ensure text alignment */
    margin: 0 auto;
    /* Center the entire block horizontally */
    padding: 1rem 0;
    /* Add spacing around the navigation */
    width: 100%;
    /* Ensure the navigation block spans the entire width */
}

.centered-nav .logo img {
    max-height: 80px;
    /* Adjust logo size as needed */
    margin-bottom: 1rem;
    /* Add spacing below the logo */
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ab8557;
}

/* Contenu Héroïque */
.hero-content {
    text-align: center;
    z-index: 5;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem; /* Ajoute de l'espace au-dessus et en-dessous */
    margin-top:50px;
}

.hero-content h1 {
    font-size: 5rem; /* Taille originale */
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem; /* Taille originale */
    margin-bottom: 2rem;
    color: #fff;
}

/* Bouton */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-size: 14px; /* Taille originale */
}

.btn-primary:hover {
    background: #ab8557;
    color: #fff;
}

/* Style pour le sélecteur de langue simplifié */
.language-links {
    margin-top: 1.5rem; /* Augmente l'espace au-dessus */
    font-family: 'Montserrat', sans-serif;
    font-size: 12px !important; /* Annule l'héritage et force la taille de la police */
    color: #fff;
    text-transform: uppercase;
}

.language-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem; /* Espacement entre les liens */
    transition: color 0.3s ease;
}

.language-links a:hover {
    color: #ab8557; /* Couleur au survol */
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .logo img {
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    header.overlay-header {
        justify-content: flex-start; /* Tout est empilé verticalement */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .hero-content {
        margin-top:0px;
    }

    .btn-primary {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .header-container {
        flex-direction: column;
        /* Empile les éléments pour éviter les débordements */
        align-items: center;
        /* Centre les éléments */
        gap: 0rem;
        /* Ajoute de l'espace entre les éléments */
    }

    .logo img {
        width: 200px; /* Réduit légèrement la taille sur les petits écrans */
        max-height: 40px;
        /* Réduction pour mobile */
    }
}

@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .btn-primary {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .nav-links {
        font-size: 0.8rem;
    }
    .logo img {
        max-height: 30px;
    }
}

/* Section Project Overview */
.project-overview {
    background: #fff;
    padding: 1rem 0rem;
    text-align: center;
    border-bottom: 1px solid #ddd; /* Ligne discrète pour séparation */
}

/* Disposition Flexbox */
.overview-flex {
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si nécessaire */
    justify-content: center; /* Centre les éléments */
    gap: 1rem; /* Espacement entre les blocs */
}

/* Style des Blocs */
.overview-item {
    flex: 1 1 calc(25% - 1rem); /* Chaque bloc occupe 25% de la largeur avec espace */
    max-width: 300px; /* Largeur maximale pour éviter trop de larges blocs */
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.overview-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ab8557;
}

.overview-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #555;
    margin: 0;
}

/* Responsive Ajusté */
@media (max-width: 768px) {
    .overview-item {
        flex: 1 1 calc(50% - 1rem); /* Passe à 2 colonnes sur les tablettes */
    }
}

@media (max-width: 480px) {
    .overview-item {
        flex: 1 1 100%; /* Passe à 1 colonne sur mobile */
    }
}

/* Section Project Introduction */
.project-introduction {
    background: #f9f9f9;
    padding: 3rem 0rem;
}

.project-introduction .container {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes égales */
    gap: 2rem; /* Espacement entre les colonnes */
    align-items: center; /* Aligne verticalement les contenus */
}

.intro-image img {
    width: 100%; /* Image pleine largeur de son conteneur */
    height: auto; /* Conserve les proportions */
    border-radius: 8px; /* Coins arrondis */
}

.intro-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 100;
    color: #333;
    margin-bottom: 1rem;
}

.intro-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.intro-text ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.intro-text ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.intro-text ul li strong {
    color: #333; /* Accentuation des titres */
}

/* Responsive pour project-introduction */
@media (max-width: 1194px) {
    .intro-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
    }

    .intro-image {
        order: 2; /* Place l'image en dessous */
        text-align: center; /* Centre l'image */
    }

    .intro-text {
        order: 1; /* Place le texte au-dessus */
    }
}


/* Section 3D Presentation */
.project-3d-presentation {
    background: #fff; /* Fond blanc */
    padding: 3rem 0rem;
}

.presentation-content {
    display: flex;
    flex-wrap: nowrap; /* Restreint le passage en colonne avant les seuils responsives */
    gap: 2rem; /* Espacement entre texte et image */
    align-items: center; /* Aligne verticalement */
}

.presentation-text {
    flex: 1 1 50%; /* Prend 50% de la largeur */
    font-family: 'Montserrat', sans-serif;
}

.presentation-text h2 {
    font-size: 2rem;
    font-weight: 100;
    color: #333;
    margin-bottom: 1rem;
}

.presentation-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.presentation-text ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.presentation-text ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.presentation-text ul li strong {
    color: #333; /* Accentue les titres des points */
}

.presentation-image {
    flex: 1 1 50%; /* Prend 50% de la largeur */
    display: flex;
    justify-content: center; /* Centre l'image horizontalement */
    align-items: center; /* Centre l'image verticalement */
}

.presentation-image img {
    width: 100%; /* S'adapte au conteneur */
    height: auto; /* Conserve les proportions */
    border-radius: 8px; /* Coins arrondis */
}

/* Responsive pour écrans ≤ 1194px */
@media (max-width: 1194px) {
    .presentation-content {
        flex-direction: column; /* Passe en une seule colonne */
    }

    .presentation-image,
    .presentation-text {
        flex: 1 1 100%; /* Occupe toute la largeur */
    }
}

/* Responsive pour écrans ≤ 400px */
@media (max-width: 400px) {
    .presentation-image img {
        width: 100%; /* L'image occupe toute la largeur */
        height: auto;
    }

    .presentation-text h2 {
        font-size: 1.8rem; /* Réduit légèrement le titre */
    }

    .presentation-text p {
        font-size: 0.9rem; /* Réduit légèrement le texte */
    }
}


/* Gallery Section */
.gallery {
    background: #f9f9f9; /* Fond clair */
    padding: 4rem 0rem;
    text-align: center;
}

.gallery h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Colonnes flexibles */
    gap: 1rem; /* Espacement entre les images */
    margin-bottom: 2rem;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Dedicated Button for Gallery */
.btn-gallery {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #ab8557; /* Beige pour correspondre à la charte */
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-gallery:hover {
    background: #8a6a47;
}

@media (max-width: 280px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Forcer une seule colonne */
    }

    .gallery-grid img {
        width: 100%; /* Force les images à s'adapter au conteneur */
        height: auto; /* Conserve les proportions */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Features Section */
.features {
    background: #fff;
    padding: 3rem 0rem;
    text-align: center;
}

.features h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100; /* Plus épais pour le titre principal */
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Réduit minmax pour petits écrans */
    gap: 2rem; /* Espace entre les items */
    padding: 0;
    width: 100%; /* Assure que la grille s'adapte au conteneur */
    box-sizing: border-box; /* Inclut les padding et bordures dans la largeur */
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; /* Légèrement gras pour le titre */
    font-size: 1.5rem; /* Taille agrandie */
    color: #333; /* Couleur sombre pour le texte */
    margin-bottom: 0.5rem;
}

.feature-item h3 span {
    font-weight: 700; /* Mots spécifiques en gras */
    color: #ab8557; /* Beige pour souligner certains mots */
}

.feature-item p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300; /* Texte léger */
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive Ajusté */
@media (max-width: 839px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* Affiche deux colonnes */
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr; /* Passe à une seule colonne sur les petits écrans */
    }
}

/* Location Section */
.location {
    background: #fff;
    padding: 3rem 0rem;
    padding-top:0rem;
}

.location-container {
    display: flex;
    flex-wrap: nowrap; /* Reste en deux colonnes par défaut */
    gap: 2rem; /* Espace entre les colonnes */
    align-items: center; /* Centre les éléments verticalement */
}

.location-image {
    flex: 1 1 50%; /* Occupe 50% de l'espace */
    display: flex;
    justify-content: center;
    align-items: center;
}

.location-image img {
    width: 60%; /* Image responsive */
    height: auto; /* Conserve les proportions */
    border-radius: 8px; /* Coins arrondis */
}

.location-text {
    flex: 1 1 50%; /* Occupe 50% de l'espace */
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

.location-text h2 {
    font-weight: 100;
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.location-text p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
}

.location-text ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem; /* Indentation pour les listes */
    font-weight: 300;
    color: #555;
}

.location-text ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Responsive pour écrans ≤ 1194px */
@media (max-width: 1194px) {
    .location-container {
        flex-direction: column-reverse; /* Texte au-dessus, image en dessous */
    }

    .location-image,
    .location-text {
        flex: 1 1 100%; /* Occupe toute la largeur */
    }
}

/* Correction pour écrans ≤ 400px */
@media (max-width: 400px) {
    .location-image img {
        width: 100%; /* Image pleine largeur */
        margin: 0 auto; /* Centre l'image */
        height: auto; /* Conserve les proportions */
    }
}


/* Section Key Features */
.key-features {
    background: #f9f9f9;
    padding: 2rem 0rem;
    text-align: center;
}

.key-features h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}
.key-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Quatre colonnes par défaut */
    gap: 3rem; /* Espacement entre les items */
    width: 100%; /* Empêche tout débordement */
    box-sizing: border-box; /* Inclut les marges dans la largeur */
}

/* Responsive pour les écrans inférieurs à 1335px */
@media (max-width: 1335px) {
    .key-features-grid {
        grid-template-columns: repeat(2, 1fr); /* Deux colonnes */
    }
}

/* Responsive pour les écrans inférieurs à 342px */
@media (max-width: 342px) {
    .key-features-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
    }

    .key-features-item {
        margin: 0 auto; /* Centre les items */
        width: 100%; /* S'assure que les items respectent la largeur du conteneur */
        box-sizing: border-box;
    }
}

@media (max-width: 451px) {
    .key-features-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
    }

    .key-features-item {
        margin: 0 auto; /* Centre les items */
        width: 100%; /* Occupe toute la largeur disponible */
    }
}

.key-features-item {
    text-align: center;
}

.key-features-title {
    font-size: 20px;
    font-weight: 300;
    color: #ab8557; /* Beige élégant */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.key-features-value {
    margin: 0 auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    color: #333;
    box-sizing: border-box; /* Assure que la bordure est incluse */
}

.key-value-large {
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
    color: #333;
}

.key-value-small {
    font-size: 14px;
    font-weight: 300;
    margin-top: 4px;
    text-transform: lowercase;
    color: #555;
}

/* Master Plans Section */
.master-plans {
    background: #fff; /* Fond blanc */
    padding: 3rem 0rem;
    text-align: center;
}

.master-plans h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
}

.master-plans p {
    font-family: 'Montserrat', sans-serif; /* Conserver la cohérence des polices */
    font-weight: 300; /* Texte léger pour un ton professionnel */
    font-size: 1rem; /* Taille adaptée pour une lecture agréable */
    color: #555; /* Couleur gris doux pour ne pas dominer visuellement */
    line-height: 1.6; /* Espacement entre les lignes pour un texte aéré */
    margin-bottom: 2rem; /* Espacement supplémentaire avant le carrousel */
}


.carousel {
    display: flex; /* Flexbox pour les écrans larges */
    overflow-x: scroll;
    gap: 1rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Cacher la barre de défilement sur Firefox */
}

.carousel::-webkit-scrollbar {
    display: none; /* Cacher la barre de défilement sur Chrome/Safari */
}

.carousel-item {
    flex: 0 0 calc((100% - 2rem) / 3); /* Diviser la largeur en 3 pour desktop */
    scroll-snap-align: center; /* Aligner les images au centre */
    box-sizing: border-box;
}

.carousel-image {
    width: 100%; /* Image en pleine largeur de son conteneur */
    height: auto;
    border-radius: 8px; /* Coins arrondis */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-image:hover {
    transform: scale(1.05); /* Zoom léger au survol */
}

/* Responsive : Empilement sur Mobile */
@media (max-width: 768px) {
    .carousel {
        display: block; /* Empilement vertical */
        overflow: visible; /* Pas de défilement horizontal */
    }

    .carousel-item {
        flex: none; /* Suppression de la flexibilité */
        width: 100%; /* Chaque image occupe toute la largeur */
        margin-bottom: 1rem; /* Espacement vertical entre les images */
    }
}

/* Lightbox */
.lightbox {
    display: none; /* Masquer par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex; /* Afficher quand active */
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* Lightbox Navigation Buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    z-index: 1001;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox img {
    max-width: 100%; /* L'image ne dépassera jamais la largeur de l'écran */
    max-height: 100%; /* L'image ne dépassera jamais la hauteur de l'écran */
    object-fit: contain; /* Maintient les proportions de l'image */
    border-radius: 8px; /* Optionnel : ajoute un style arrondi */
    transition: transform 0.3s ease; /* Ajoute une animation fluide */
}


/* Section Key Details */
.key-details {
    background: #f9f9f9; /* Fond gris clair */
    padding: 3rem 0rem;
    text-align: center;
}

.key-details h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.key-details p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.details-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: left;
}

.details-columns ul {
    list-style: none; /* Supprime les puces */
    padding: 0;
    margin: 0;
}

.details-columns ul li {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    padding: 0.5rem 0; /* Espacement entre les éléments */
    border-bottom: 1px solid #ddd; /* Ligne subtile pour séparer */
}

.details-columns ul li strong {
    font-weight: 600; /* Met en valeur les éléments importants */
    color: #000; /* Contraste pour les titres */
}

/* Responsive pour écrans ≤ 480px */
@media (max-width: 480px) {
    .details-columns {
        grid-template-columns: 1fr; /* Une seule colonne */
    }

    .key-details h2 {
        font-size: 2rem;
    }
}

.noble-materials {
    background: #fff;
    padding: 3rem 0rem;
    text-align: center;
}

.noble-materials h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 100;
    color: #333;
    margin-bottom: 1rem;
}

.noble-materials p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.material-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.material-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.material-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.material-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}


/* ROI Section */
.roi {
    background: #f9f9f9; /* Fond gris clair */
    padding: 3rem 0rem;
    text-align: center;
}

.roi h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
}

.roi p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Table */
.roi-table {
    overflow-x: auto; /* Pour mobile */
    margin-bottom: 2rem;
}

.roi-table table {
    width: 100%;
    border-collapse: collapse;
}

.roi-table th, .roi-table td {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    text-align: left;
    padding: 1rem;
    border: 1px solid #ddd;
}

.roi-table th {
    background: #ab8557; /* Fond beige */
    color: #fff; /* Texte blanc */
}

.roi-table td {
    color: #333;
}

.roi-table .total td {
    font-weight: 700;
    color: #000;
}


/* Résumé des revenus */
.roi-summary h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.roi-summary p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.roi-summary ul {
    list-style: none;
    padding: 0;
}

.roi-summary ul li {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    text-align: left; /* Alignement à gauche pour les listes */
}

/* Réduction des titres pour petits écrans */
@media (max-width: 340px) {
    .roi h2 {
        font-size: 1.8rem; /* Taille réduite pour le titre h2 */
    }

    .roi-summary h3 {
        font-size: 1.2rem; /* Taille réduite pour le titre h3 */
    }
}

/* Construction Timeline Section */
.construction-timeline {
    background: #fff;
    padding: 3rem 0rem;
    text-align: center;
}

.construction-timeline h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
}

/* Responsive pour écrans ≤ 369px */
@media (max-width: 369px) {
    .construction-timeline h2 {
        font-size: 1.5rem; /* Taille réduite pour le h2 */
    }
}


.construction-timeline p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Colonne adaptative */
    gap: 2rem; /* Espacement entre les blocs */
    width: 100%; /* Empêche tout débordement */
    box-sizing: border-box; /* Inclut les marges et bordures */
}

/* Responsive pour écrans ≤ 400px */
@media (max-width: 400px) {
    .timeline {
        grid-template-columns: 1fr; /* Une seule colonne */
    }

    .timeline-item {
        width: 100%; /* Force les items à occuper toute la largeur disponible */
        margin: 0 auto; /* Centre les items si nécessaire */
        box-sizing: border-box;
    }
}

.timeline-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ab8557;
    border-radius: 4px;
}

.timeline-stage {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.timeline-percentage {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #ab8557;
    margin-bottom: 0.5rem;
}

.timeline-details {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* About Us Section */
.about-us {
    background: #f9f9f9; /* Fond gris clair */
    padding: 4rem 0rem;
    text-align: center;
}

.about-us h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Colonnes adaptatives */
    gap: 2rem; /* Espacement entre les blocs */
    width: 100%; /* Assure que la grille s'adapte au conteneur */
    box-sizing: border-box; /* Empêche les débordements liés aux bordures */
}

.profile {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem auto; /* Centrer l'image et ajouter un espacement */
    border-radius: 50%; /* Rendre l'image ronde */
    overflow: hidden; /* Assure le rognage des images */
    border: 3px solid #ab8557; /* Bordure beige pour les photos */
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure un ajustement parfait */
}

.profile h3 {
    font-weight: 500;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.profile p {
    font-weight: 300;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive pour écrans ≤ 400px */
@media (max-width: 400px) {
    .about-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
    }

    .profile {
        margin: 0 auto; /* Centre les items */
        width: 100%; /* Assure que les items respectent la largeur du conteneur */
    }

    .profile-image {
        width: 150px; /* Réduit la taille de l'image pour les petits écrans */
        height: 150px;
    }

    .profile h3 {
        font-size: 1.2rem; /* Réduit la taille des titres */
    }

    .profile p {
        font-size: 0.9rem; /* Réduit la taille du texte */
    }
}

/* Contact Us Section */
.contact-us {
    background: #ab8557; /* Beige pour attirer l'attention */
    color: #fff; /* Texte blanc pour contraste */
    text-align: center;
    padding: 4rem 0rem;
}

.contact-us h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-us p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    max-width: 300px;
    width: 100%;
}

.contact-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight:100;
}

.contact-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-item img {
    width: 24px;
    height: 24px;
    margin-right: 4px;
    vertical-align: middle;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 300;
}

.contact-item a:hover {
    text-decoration: underline;
}

.flag-icon {
    font-size: 1.5rem; /* Taille des drapeaux */
    margin-right: 0.5rem; /* Espacement entre les drapeaux */
    vertical-align: middle; /* Aligner les drapeaux avec le texte */
}
/* Social Icons Container */
.contact-item .social-icons {
    display: flex; /* Aligne les icônes horizontalement */
    justify-content: center; /* Centre les icônes horizontalement */
    gap: 1rem; /* Espacement entre les icônes */
    margin-top: 1rem; /* Ajoute de l'espace au-dessus des icônes */
}

/* Social Icon Links */
.contact-item .social-link {
    text-decoration: none;
    color: #fff; /* Couleur blanche par défaut */
    font-size: 1.5rem; /* Taille des icônes */
    transition: color 0.3s ease; /* Transition pour le survol */
}

.contact-item .social-link:hover {
    color: #333; /* Couleur sombre au survol sur fond beige */
}

.contact-item i {
    margin-right: 8px;
    color: #fff; /* Assurez une couleur appropriée pour le contraste */
}


/* Footer */
footer {
    background: #fff;
    color: #333;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-container p {
    font-family: 'Montserrat', sans-serif;
}

/* Footer language links */
.footer-container .language-links {
    text-align: center; /* Centre les liens horizontalement */
    margin: 0; /* Supprime les marges en haut et en bas */
    font-size: 0.9rem; /* Ajuste la taille de la police */
    color: #333; /* Définit une couleur sombre pour une bonne lisibilité */
}

.footer-container .language-links a {
    text-decoration: none; /* Supprime le soulignement des liens */
    color: #333; /* Couleur des liens */
    transition: color 0.3s ease; /* Ajoute une transition douce pour le survol */
}

.footer-container .language-links a:hover {
    color: #ab8557; /* Change la couleur au survol (par exemple, beige doré) */
}