/* Styles généraux */
:root {
    --primary-color: #1a365d;    /* Bleu marine */
    --secondary-color: #4a5568;  /* Gris foncé */
    --accent-color: #2b6cb0;     /* Bleu accent */
    --light-color: #f7fafc;      /* Blanc cassé */
    --dark-color: #2d3748;       /* Gris très foncé */
    --border-color: #e2e8f0;     /* Gris clair pour bordures */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}
h1 {
    margin-left: 50px; /* Déplace le texte vers la droite */
}

/* Décaler toute la navigation vers la gauche */
nav {
    margin-left: 4px; /* Ajustez cette valeur selon vos besoins */
}

/* Conserver vos styles existants pour les liens */
nav ul {
    display: flex;
    list-style: none;
    /* padding-left: 0;  Supprime le padding par défaut */
    /* margin: 0;  Supprime les marges par défaut */
}

nav ul li {
    margin-left: 20px; /* Espacement entre les éléments du menu */
}

nav ul li a {
    color: rgb(255, 255, 255);
    text-decoration: underline; /* Ajout du soulignement */
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #cbd5e0;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

/* Section intro */
#intro {
    background-color: white;
    text-align: center;
    padding: 80px 0;
}

#intro p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Grille de projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

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

.project-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.project-card p {
    padding: 0 20px 20px;
    color: var(--secondary-color);
}

/* Placeholder styles */
/* Styles pour les cartes de projet */
.project-card {
    position: relative;
    min-height: 200px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.project-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 15px;
}

.project-card p {
    padding: 0 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.project-card .skills {
    padding: 0 20px 20px;
}

.project-card .skills h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-card .skills ul {
    padding-left: 20px;
}

.project-card .skills li {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

/* Styles pour les modules de formation */
.training-module {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.training-module h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.training-module .skills {
    margin-top: 15px;
}

.training-module .skills h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.training-module .skills ul {
    padding-left: 20px;
}

.training-module .skills li {
    margin-bottom: 5px;
    color: var(--secondary-color);
}
/* Ajoutez cette règle à la fin de votre fichier CSS */
.hidden {
    display: none;
}

/* Pour réajuster l'espacement quand les prérequis sont masqués */
.excel-content:has(.hidden) {
    grid-template-columns: 1fr;
}

/* Styles pour les cartes de profession */
.profession-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.profession-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.profession-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.profession-card .description {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-style: italic;
}

.profession-card .applications h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.profession-card .applications ul {
    padding-left: 20px;
}

.profession-card .applications li {
    margin-bottom: 8px;
    color: var(--secondary-color);
}

/* Section Excel */
.excel-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.excel-info {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.excel-info h3 {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
}

/* Section Métiers */
.metiers-content {
    margin-top: 40px;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
/* Section Ateliers */
.ateliers-content {
    margin-top: 40px;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
/* Section stages */
.stages-content {
    margin-top: 40px;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);s
    border: 1px solid var(--border-color);
}
/* les logos */
.logo-gauche {
    position: absolute;
    top: 20px;
    left: 10px;
    width: 120px;
    z-index: 1000; /* Met l'image au premier plan */
}

.logo-droite {
    position: absolute;
    top: 20px;
    right: 10px;
    width: 50px;
    z-index: 1000; /* Met l'image au premier plan */
}


/* Pied de page */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .excel-content {
        grid-template-columns: 1fr;
    }
}
/* Nouveaux styles pour la section Excel */
.excel-flex-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.youtube-column {
    flex: 0 0 300px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.youtube-column h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.youtube-videos-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.youtube-video-item {
    background: var(--light-color);
    padding: 15px;
    border-radius: 6px;
    transition: transform 0.3s;
}

.youtube-video-item:hover {
    transform: translateY(-3px);
}

.youtube-video-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.youtube-video-item iframe {
    width: 100%;
    height: 160px;
    border: none;
    border-radius: 4px;
}

.excel-main-column {
    flex: 1;
}

/* Adaptation responsive */
@media (max-width: 992px) {
    .excel-flex-container {
        flex-direction: column;
    }
    
    .youtube-column {
        flex: 1;
        width: 100%;
        margin-bottom: 30px;
    }
}