
@import url(https://fonts.google.com/specimen/Montserrat?query=monts);
@import url(https://fonts.google.com/specimen/Abril+Fatface?query=abril&sidebar.open&selection.family=Abril+Fatface
);
*{
    font-family: 'Montserrat';
}


body{
    margin: 0 auto;
} 


header.header{ 
    display: flex;
 background-color: black;
} 


header.header img { width: 80vh}
section.top-page{
background: url(../images/Noussa.jpg);
background-size: cover;
height: 80vh;
padding: 25px;
}
 
/*page de bienvenue*/
.big-title{
    font-size: 35px;
    font-family: 'Abril Fatface', cursive;
    font-weight: 10px;
    padding: 20px 50px;
}

/*mmenu de navigation*/
nav.nav{
    justify-content: space-between;
    display: flex;
    list-style: none;
    background-color: black;
    width: auto;
    margin-left: 100px;
}



    nav.nav li{
        color: white;
    }
.about-section {
    padding: 60px 20px;
    background-color: #f9f9f9; /* Ou la couleur de votre choix */
    color: #333;
    line-height: 1.6; /* Améliore la lisibilité */
}

.container {
    max-width: 800px; /* Évite que les lignes de texte soient trop longues */
    margin: 0 auto;   /* Centre le contenu */
}

.about-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.about-section h3 {
    margin-top: 30px;
    color: #34495e;
}

.about-section ul {
    list-style-type: square;
    padding-left: 20px;
}

.contact-section {
    padding: 50px 20px;
    background-color: #ffffff;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px; /* Espace entre l'email et le téléphone */
    margin-top: 20px;
    flex-wrap: wrap; /* Pour que ça s'empile bien sur mobile */
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 280px;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px); /* Petit effet de levier */
}

.contact-card i {
    font-size: 2.5rem;
    color: #2c3e50; /* Couleur sombre pro */
    margin-bottom: 15px;
}

.contact-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-card a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.projects-section {
    padding: 80px 20px;
    background-color: #f4f7f6;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #2c3e50;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-bottom: 4px solid #007bff; /* Petite barre bleue en bas */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.project-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
}

.project-card h3 {
    margin-bottom: 15px;
    color: #34495e;
}

.tech-tag {
    display: inline-block;
    background: #e1ecf4;
    color: #39739d;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 15px;
    font-weight: bold;
}
/* --- ADAPTATION POUR MOBILE (Écrans de moins de 768px) --- */
@media screen and (max-width: 768px) {
    
    /* On réduit la taille du titre principal */
    .big-title {
        font-size: 1.5rem;
        text-align: center;
    }

    /* Le menu passe en vertical pour être plus facile à cliquer */
    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Les cartes de projets prennent toute la largeur */
    .projects-grid {
        grid-template-columns: 1fr; 
        padding: 0 10px;
    }

    /* On ajuste la section contact pour qu'elle ne soit pas trop large */
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
}
/* Style par défaut du header */
.header {
    width: 100%;
    transition: all 0.3s ease;
    z-index: 1000;
    position: relative;
}

/* Style quand on scrolle (activé par le JS) */
.header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95); /* Fond légèrement transparent */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}