/* style.css */

* {
    margin: 0;
    padding: 0;
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f7f9fc;
    color: #333;
    line-height: 1.6;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
}

header {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    width: 100%;
    
    padding: 0.2rem 1rem;
}

.logo {
    height: 60px;
    object-fit: contain;
}

.logo-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 1rem;
}

.logo-links a {
    text-decoration: none;
    color: #01661f;
    font-size: 0.8rem;
    margin: 0.2rem 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 4rem;
}

nav ul li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: #01661f;
    font-weight: bold;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 150px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.login-btn {
    background: #fff;
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #003399;
}

.logout-btn {
    background: #fff;
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #01661f;
}

.login-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: rgb(0, 0, 0);
    font-size: 24px;
}

/* Bouton de connexion/déconnexion */
.auth-btn {
    display: block;
    font-size: 0.7rem;
    padding: 0.3rem 1rem;
    margin-right: 1.4rem;
}

.auth-btn a {
    color: #01661f;
    text-decoration: none;
    margin-right: 0px;
}

.mobile-auth {
    display: none;
}

.hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 6rem 10% 2rem;
    background: white;
}

.hero-text {
    max-width: 50%;
    margin-top: 2rem;
}

.hero-text h1 {
    color: #01661f;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.hero-text .paragraph {
    margin-bottom: 1rem;
    color: #444;
    margin-bottom: 3rem;
}

.hero-img {
    margin-top: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #01661f;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #003811;
    transform: scale(1.05);
}

.hero-img img {
    max-width: 500px;
    border-radius: 0;
    box-shadow: none;
    margin-left: auto;
    display: block;
}

.projects {
    text-align: center;
    padding: 8rem 2rem;
    background: linear-gradient(white, #f0f4ff);
}

.projects h2 {
    color: #01661f;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.project-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 380px;
    height: 450px;
    text-align: left;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.card a {
    color: #01661f;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: bold;
}

.btn-secondary {
    background: white;
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

footer {
    background: white;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.footer-column {
    flex: 1 1 300px;
    min-width: 250px;
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-content .logo {
    height: 50px;
    max-width: 100px;
    object-fit: contain;
}

.footer-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-content li a {
    text-decoration: none;
    color: #01661f;
    transition: color 0.2s;
}

.footer-content li a:hover {
    color: #014c16;
}

footer p {
    font-size: 0.85rem;
    color: #777;
    margin: 0.3rem 0;
}

/* Copyright centré en bas */
footer .copyright {
    margin-top: 2rem;
    text-align: center;
}

/* Style pour le conteneur des cartes de projets */
.projets-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Style pour chaque carte de projet */
.projet-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 350px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.projet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Style pour le titre du projet */
.projet-card h3 {
    color: #01661f;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Style pour les informations du projet */
.projet-card p {
    margin: 8px 0;
    color: #444;
}

/* Style pour la description du projet */
.projet-description {
    margin: 15px 0;
    color: #666;
    line-height: 1.6;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    max-height: 4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* Style pour les actions du projet */
.projet-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* Style pour les boutons de languafes */
.language-switcher {
    display: inline-block;
    position: relative;
}

.language-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.flag-icon {
    width: 30px;
    height: 20px;
    border: 1px solid #ccc;
}

@media screen and (max-width: 1370px) {
    .navbar{
        margin-left: auto;
    }
    
    .logo {
        width: 15%; /* Augmentez légèrement la largeur du logo sur les écrans plus petits */
    }

    nav ul {
        gap: 1vw; /* Réduisez l'espacement entre les éléments de navigation */
    }

    nav a {
        font-size: 1.2vw; /* Ajustez la taille de la police pour les écrans plus petits */
    }
    
}

/* Ajout de points d'arrêt supplémentaires */
@media screen and (max-width: 1200px) {
    .navbar {
        padding: 0 1rem;
    }
}

@media screen and (max-width: 992px) {
    .hero-text {
        max-width: 60%;
    }
}

/* Responsive mobile */
/* Responsive mobile */
@media screen and (max-width: 768px), (max-width: 768px) {

    .page-container {
        padding-top: 35%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .nav-links ul li {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        background-color: transparent;
        padding-left: 15px;
        display: none;
        width: 100%;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .logo-container {
        display: flex;
        align-items: center;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .logo-container .logo {
        height: 30px;
    }

    .logo {
        width: 20%;
    }

    .auth-btn {
        display: none;
    }

    .mobile-auth {
        display: block;
        margin: 10px 0;
    }

    .mobile-auth a {
        color: #01661f;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 2rem;
    }

    .footer-column {
        align-items: center;
        width: 100%;
    }

    .footer-column ul {
        padding: 0;
    }

    .footer-column ul li {
        margin: 5px 0;
    }

    .footer-column p {
        text-align: left;
        margin-left: 45px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    nav a {
        font-size: 2vw;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text,
    .hero-img {
        max-width: 100%;
    }

    .hero-img img {
        margin-left: 0;
        margin-top: 1rem;
    }

    .project-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        margin: 0.5rem 0;
    }

}

@media screen and (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }
    .hero-text .paragraph {
        font-size: 0.9rem;
    }
    .card {
        width: 100%;
    }
    .projet-card {
        width: 100%;
    }
}

@media screen and (max-width: 400px) {
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.2rem;
    }
}


