
:root {
    /* 🎨 Couleurs principales */
    --primary-color: #42cd17;
    --secondary-color: #77c4ef;
    --accent-color: #4856ea;

    /* 🎨 Couleurs du texte */
    --text-color: #333;
    --text-light: #f5f5f5;

    /* 🌗 Mode sombre */
    --bg-light: #ffffff;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;

    /* ✍️ Polices */
    --font-titre:  'Climate Crisis', sans-serif;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

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

/* Mise en place de la structure de la page */
html, body {
    position: relative;
    height: 100%;
    width: 100%;
}

/* La section contenant les pages horizontales */
.container-index {
    position: absolute; /* Assure que le contenu est bien positionné */
    top: 0;
    min-height: 100vh; 
    display: flex;
    flex-direction: row;
    width: fit-content;
    align-items: center !important;
    height: 100vh !important;
    overflow-x: auto; /* Permet le défilement horizontal */
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    background: linear-gradient(270deg, #77c4ef, #4856ea);
    padding-top: 60px;
}

/* Chaque section prend toute la largeur de l'écran */
.section {
    width: 100vw; /* Chaque section occupe toute la largeur de l'écran */
    height: fit-content; /* Chaque section occupe une hauteur d'écran */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    background: transparent;
    color: #fff;
    scroll-snap-align: start; /* Assure un défilement fluide entre les sections */
}

.img-realisations{
    object-fit: contain !important;
}

/* Mode mobile */
@media (max-width: 768px) {
    html, body {
        overflow: auto !important; /* Réactive le scroll vertical */
        background: linear-gradient(0deg, #77c4ef, #4856ea);
    }

    .container-index {
        flex-direction: column; /* Change en colonne */
        width: 100%; /* Prend toute la largeur */
        height: auto; /* Ajuste la hauteur */
        min-width: unset;
        overflow-x: hidden !important; /* Désactive le scroll horizontal */
        overflow-y: auto !important; /* Active le scroll vertical */
        background: none;
    }

    .section {
        width: 100%; /* Chaque section prend toute la largeur */
        height: 100vh; /* Garde une hauteur d'écran */
        display: flex;
        flex-direction: column; /* Évite l’écrasement */
        justify-content: center;
        align-items: center;
        text-align: center;
        margin: 50px auto;
    }
    .row-accueil{
        display: flex;
        flex-direction: column;
    }
    .section {
        width: auto; /* La section prend toute la largeur de l'écran */
        height: fit-content;
        margin: 30px 0;
    }
    .accueil{
        margin-bottom: 0 !important;
        margin-top: 30px;
    }
    .col-left h1{
        font-size: 54px !important;
    }
    .col-left h3{
        font-size: 28px !important;
    }
    .header{
        padding: 0 20px !important;
        height: 80px;
    }
    .header .container{
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 90% !important;
    }
    #logo{
        width: 80px !important;
    }
    .a-propos{
        padding: 80px 0;
    }
    .contact{
        padding: 0 20px !important;
    }
    .row-contact{
       width: 95%;
       margin: auto;
    }
    .contact h1{
        font-size: 36px !important;
    }
    .contact-left{
        padding:20px 0 !important;
    }
    .contact-form{
        padding: 0 !important;
    }
}

/* HEADER FIXE */
.header {
    position: fixed; /* Reste en place */
    top: 0;
    left: 0;
    width: 100%;
    height: 90px; /* Hauteur du header */
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 100px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* NAVIGATION */
.navbar-nav{
    gap: 20px;
}
.navbar-nav .nav-link {
    color: white !important;
    font-weight: bold;
    transition: color 0.3s;
    font-size: 18px;
}

.navbar-toggler {
    border: none; /* Supprime le contour du bouton */
}

/* Pour s'assurer que le menu burger soit bien visible */
@media (max-width: 992px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.7);
        padding: 10px;
        border-radius: 10px;
    }
}


/* AJOUTER UN MARGIN-TOP POUR LE CONTENU */
body {
    padding-top: 60px; /* Décale le contenu pour éviter qu'il soit caché sous le header */
}

.container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
}
.container-login{
    width: 90%;
    margin: auto;
}

.col-left {
    flex: 1; /* Prend 50% de l'espace */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.col-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.col-right img, .shape {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* Pour un effet arrondi */
    background-color: var(--bg-light);
    height: 500px;
    width: 400px;
    border-radius: 36% 64% 40% 60% / 82% 36% 64% 18% ;
    object-fit: contain;
}

.col-left h1{
    font-family: var(--font-titre);
    font-size: 108px;
    color:var(--text-light);
    text-align: left;
}
.col-left h3{
    font-family: var(--font-titre);
    font-size: 42px;
    color:var(--text-light);
    text-align: left;
}

.col-left a, .a-propos a, .realisations a:not(.no-style){
    color: var(--text-light);
    background-color: var(--primary-color) ;
    font-family: var(--font-titre);
    font-weight: 300;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 18px;
    max-width: 270px;
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}
.no-style{
    text-decoration: none;
}

.realisations a{
    max-width: 350px;
    margin-top: -20px;
}
/* 📱 Responsive : Affichage en colonne en mobile */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .col-left, .col-right {
        width: 90%;
        padding: 0;
        margin: auto;
    }

    .col-right {
        margin-top: 20px; /* Espacement entre texte et image */
    }
}
.accueil{
    margin-bottom: 80px;
}

.a-propos{
    font-family: var(--font-titre);
    font-size: 64px;
    min-height: 80vh;
    text-align: left;
    display: flex;
    align-items: center;
}
.a-propos p{
    font-size: 20px;
    font-family: var(--font-primary);
    margin-top: 30px;
}
.a-propos a{
    max-width: 350px !important;
}

.realisations{
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
}
.realisations .row{
    display: flex;
    justify-content: left;
    width: 100%;
}

.realisation-card {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.realisation-card img {
    width: 100%;
    height: 250px; /* Ajuste la hauteur */

    object-fit: cover; /* Coupe l'image pour qu'elle s'adapte */
    border-radius: 10px;
}

.realisation-card h3 {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
}

.text-real{
    text-align: left;
    display: flex;
    justify-content: left;
    font-family: var(--font-titre);
    font-size: 72px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form label {
    font-size: 16px;
    font-weight: 600;
    display: block;
    color: #fff;
    font-family: var(--font-primary);
    margin-bottom: 8px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{
    color: #fff;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 3px solid #fff;
    border-radius: 15px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: transparent;
    color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .submit-btn {
    padding: 14px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    font-family: var(--font-titre);
}

.contact-form .submit-btn:hover {
    background-color: #4856ea;
}

.contact h1{
    font-family: var(--font-titre);
    font-size: 54px;
    text-align: left;
}
.contact p, .contact li{
    font-size: 16px;
    font-family: var(--font-primary);
    text-align: left;
}
.contact-left{
    padding: 20px 30px;
}
.contact{
    padding: 0 50px;
}
.card{
    border-radius: 15px;
}