/*NAVBAR*/

/* Général */
header {
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Ajuster la hauteur de la barre de navigation */
.navbar {
    min-height: 80px; /* Réduit la hauteur */
    padding: 10px 0; /* Ajuste l'espacement */
}

/* Logo */

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-height: 120px !important; /* Taille doublée */
    transition: transform 0.3s ease-in-out;
}

.navbar-brand img:hover {
    transform: scale(1.1);
}

/* Navbar */
.navbar-nav .nav-link {
    font-weight: bold;
    color: #007bff !important;
    transition: color 0.3s ease-in-out;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

/* Effet souligné sur hover */
.navbar-nav .nav-link::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    background: #ffc107;
    transition: width 0.3s;
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    font-weight: bold;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.dropdown-item:hover {
    background-color: #ffc107;
    color: white;
}

/* Bouton hamburger personnalisé */
.navbar-toggler {
    border: none;
    outline: none;
    padding: 10px;
}

.custom-toggler .toggler-icon {
    display: block;
    width: 30px;
    height: 3px;
    margin: 5px auto;
    background-color: #007bff;
    transition: all 0.3s ease-in-out;
}

/* Animation hamburger ouvert */
.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('./assets/images/accueil.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 5%;
    height: 80vh;
    display: flex;
}

/* Centrage mobile, alignement gauche desktop */
@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 60px 5%;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .hero .btn {
        font-size: 1rem;
        padding: 10px 15px;
    }
}

.hero-content {
    max-width: 50%; /* Limite la largeur du texte */
}

.hero h1 {
    font-size: 2.5rem; /* Titre plus grand */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.hero .btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    background-color: #ffd700;
    color: #0056b3;
    font-weight: bold;
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
    font-size: 1.2rem;
}

.hero .btn svg {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

.hero .btn:hover {
    background-color: #ffcc00;
    transform: scale(1.05);
}



/* ===== FEATURES SECTION ===== */
.features-section {
    background-color: white;
    padding: 60px 0;
    text-align: center;
}


.features-container {
    overflow: hidden;
    width: 80%;
    margin: auto;
    position: relative;
}

.carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.features-grid {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

button.prev, button.next {
    background: #ffd700;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

button.prev:hover, button.next:hover {
    background: #ffc107;
}

/* 📱 Mode mobile : affichage normal, pas de slider */
@media (max-width: 768px) {
    .features-container {
        width: 100%; /* Pleine largeur */
    }

    .features-grid {
        display: block; /* Plus de flexbox, les features seront en colonne */
    }

    .feature {
        width: 90%; /* Ajustement largeur */
        margin: auto;
        margin-bottom: 20px; /* Espacement entre les features */
    }

    /* Masquer les boutons sur mobile */
    .carousel-buttons {
        display: none;
    }
}
.feature {
    flex: 0 0 30%; /* 3 éléments visibles */
    padding: 20px;
    box-sizing: border-box;
    background: #f8f9fa; /* Fond gris clair pour mieux voir les cards */
    border-radius: 15px; /* Coins arrondis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Effet d'ombre */
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.feature img {
    width: 180px; /* Augmente la taille des images */
    height: 120px; /* Ajuste la hauteur */
    border-radius: 10px; /* Coins légèrement arrondis */
    border: 4px solid #ffd700; /* Bordure dorée */
    object-fit: cover; /* Remplissage propre */
    margin-bottom: 15px; /* Espacement sous l'image */
}

.feature h3 {
    font-size: 20px; /* Réduit la taille du titre */
    font-weight: bold;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px; /* Texte plus petit pour un meilleur équilibre */
    color: #555;
    line-height: 1.5;
}


/* ===== ABOUT SECTION ===== */
.about-section {
    background-color: #e0f0ff;
    padding: 60px 0;
}
.about-container h2 {
    color: #0056b3;
    font-size: 2rem;
    font-weight: bold;
}

/* ===== STATISTICS SECTION ===== */
.stats-section {
    margin: 0 auto; /* Centre la box */
    background-color: #0056b3;
    color: white;
    padding: 60px 0;
    text-align: center;
}
.stat-number {
    font-size: 42px;
    font-weight: bold;
    background: linear-gradient(to right, #ffd700, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* ===== TEAM SECTION ===== */
.team-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.team-member {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 280px;
    text-align: center;
}
.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #ffd700;
}
.stars {
    color: #ffd700;
    font-size: 20px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: #0056b3;
    border: none;
}
.btn-primary:hover {
    background-color: #003d80;
}


/*BLOG*/


.container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}
.title {
    font-size: 28px;
    font-weight: bold;
    color: #536daf;
}

.content2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-top: 30px;
text-align: left;
}

.block {
background: white;
padding: 20px;
border-radius: 10px;
display: flex;
align-items: flex-start;
gap: 15px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.icon {
    font-size: 40px;
}
.text {
    flex: 1;
}
.highlight {
background: #fbc02d;
color: #004aad;
padding: 15px;
border-radius: 50px;
font-size: 18px;
text-align: center;
width: 300px;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
margin: auto;
font-weight: bold;
}

.world-development {
text-align: center;
padding: 50px 20px;
}


.map-container {
position: relative;
}

.map-container img {
width: 100%;
max-width: 800px;
}

.page-title {
    font-weight: bold;
    color: #214158;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding: 20px;
}

.page-title::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 450px; /* Ajuste la largeur de l'image */
    height: 300px; /* Ajuste la hauteur de l'image */
    background: url('./assets/images/logovrai.png') no-repeat center center;
    background-size: contain;
    transform: translate(-50%, -50%);
    opacity: 0.3; /* Rend l'image plus visible tout en gardant le texte lisible */
    z-index: -1;
}
.world-stats, .france-stats {
display: flex;
justify-content: space-around;
margin: 20px 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin: 50px auto;
    max-width: 1200px;
}
.stat-block {
    flex: 1;
    padding: 20px;
}
.stat-block h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #214158;
    margin-bottom: 15px;
}
.stat-item h2 {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(to right, #009688, #4a5cc3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-item p {
    font-size: 1.2rem;
    color: #214158;
    margin-top: -10px;
}

.steps {
display: flex;
justify-content: space-around;
margin-top: 40px;
}

.step {
text-align: center;
}

.icon img {
width: 80px;
height: 80px;
background: #444;
padding: 10px;
border-radius: 50%;
}

.container2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.realisation-block {
    background: white;
    width: 320px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
}

.realisation-block img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.realisation-content {
    padding: 15px;
}

.realisation-block h2 {
    color: #004aad;
    font-size: 18px;
    margin: 10px 0;
}

.realisation-block p {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px; /* Réduire la taille du titre */
    }
    
    .stat-item h2 {
        font-size: 2rem; /* Réduire la taille des chiffres */
    }
    
    .realisation-block {
        width: 100%; /* Pour éviter des images trop petites */
    }
    
    .block {
        flex-direction: column; /* Adapter les blocs avec icônes */
        text-align: center;
    }
    
    .icon {
        font-size: 30px;
    }
}


.loi-aper {
background: #eef5f7;
padding: 50px 20px;
text-align: center;
}
.aper-content {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
gap: 20px;
margin-top: 30px;
}
.aper-block {
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
width: 30%;
min-width: 280px;
text-align: left;
}
.aper-block h3 {
color: #2d4d5a;
font-size: 20px;
margin-bottom: 10px;
}
.aper-block p, .aper-block ul {
font-size: 16px;
color: #555;
}
.aper-block ul {
list-style: none;
padding-left: 0;
}
.aper-block ul li::before {
content: "✔️";
margin-right: 10px;
color: #f37d41;
}
/*CONTENT*/

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../assets/images/ombrieres/ombriere-1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 15px;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.25rem;
}

/* Dégradé sur le texte */
.gradient-text {
    background: linear-gradient(90deg, #007BFF, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Images de fond spécifiques */
.hero-projet {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../assets/images/projet_sol/projetsol.jpg') no-repeat center center;
    background-size: cover;
}

.hero-agri {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../assets/images/agricole/defagri.jpg') no-repeat center center;
    background-size: cover;
}

.hero-tertiaire {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../assets/images/tertiaire/deftertiaire.jpg') no-repeat center center;
    background-size: cover;
}

/* Ajustements pour mobiles */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

.benefits-section {
    background: #f4f4f4;
    padding: 60px 20px;
    text-align: center;
}

.benefits-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.benefit {
    background: white;
    padding: 30px;
    width: 30%;
    margin: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.benefit:hover {
    transform: translateY(-5px);
}

.benefit img {
    width: 80px;
    height: 80px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.title {
    font-size: 28px;
    margin-bottom: 20px;
}

.subtitle {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
}

.content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 50px 0;
}

.text {
    flex: 1;
    text-align: left;
}

.image {
    flex: 1;
    text-align: right;
}

.image img {
    max-width: 100%;
    border-radius: 10px;
}

.grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    flex: 1;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #b6a12a;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-block;
    background: #2d4d5a;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
}

.btn:hover {
    background: #1a3a4a;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
        text-align: center;
    }

    .grid {
        flex-direction: column;
    }

    .benefits-grid {
        flex-direction: column;
    }

    .benefit {
        width: 100%;
    }
}

.toitures-section, .services-section {
    background: #f4f4f4;
    padding: 60px 20px;
    text-align: center;
}

.toitures-grid, .services-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.toiture, .service {
    background: white;
    padding: 30px;
    width: 23%;
    margin: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.toiture:hover, .service:hover {
    transform: translateY(-5px);
}

.toiture img, .service img {
    width: 100%;
    border-radius: 10px;
    height: 180px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .toitures-grid, .services-grid {
        flex-direction: column;
    }

    .toiture, .service {
        width: 100%;
    }
}


/* Bootstrap adjustments */
.container {
    max-width: 1200px;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.benefit {
    flex: 1 1 calc(33.333% - 20px);
    margin: 10px;
}

@media (max-width: 768px) {
    .benefit {
        flex: 1 1 100%;
    }
}

/*CONTACT*/

/* SECTION CONTACT AVEC VIDÉO EN FOND */
.contact-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: 20px;
}

/* Vidéo en arrière-plan */
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Overlay sombre pour lisibilité */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Assombrit la vidéo */
    z-index: -1;
}

/* Conteneur du formulaire */
.contact-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 100%;
}

/* Texte */
.contact-container h2 {
    font-size: 30px;
    margin-bottom: 15px;
    color: #fff;
}

.contact-container p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #ddd;
}

/* Formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Champs */
.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-form label {
    font-weight: bold;
    color: #fff;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    outline: none;
    transition: all 0.3s ease-in-out;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Bouton */
.contact-form button {
    padding: 12px;
    background: #ff7f50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background: #ff6347;
    transform: scale(1.05);
}

/* Style de la carte contenant le formulaire */
.container .card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.1);
}

/* Style pour le message de confirmation ou d'erreur */
#result p {
    font-size: 16px;
    font-weight: bold;
}

/* Overlay de chargement */
#loadingOverlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        width: 90%;
        padding: 20px;
    }
}


/*FOOTER*/

.footer {
    background: #222; /* Fond sombre */
    color: white;
    padding: 40px 0;
    font-size: 14px;
}

.footer h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Style du dropdown */
.footer .dropdown-menu {
    background-color: #333;
    border: none;
}

.footer .dropdown-item {
    color: white;
}

.footer .dropdown-item:hover {
    background-color: #444;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: 12px;
}

/* 📱 Responsive : affichage en colonne sur mobile */
@media (max-width: 768px) {
    .footer .row {
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .footer .col-md-6 {
        width: 100%;
    }
}
