/* Styles généraux */
/* Styles généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background: linear-gradient(to bottom, #0adf51, #5b8d44); /* Remplace #f9f9f9 */
    min-height: 100vh; /* Ajoute cela pour couvrir toute la hauteur de la page */
}
/* Uniformisation du header */
header {
    background: linear-gradient(135deg, #4CAF50, #0c2c0d);
    color: white;
    text-align: center;
    padding: 30px 20px; /* Padding fixe */
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-height: 120px; /* Hauteur minimale pour éviter les variations */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header h1 {
    font-size: 2.0em;
    margin: 0 0 10px 0; /* Marge fixe entre h1 et p */
    line-height: 1.0;
}

header p {
    font-size: 1.2em;
    margin: 0 0 5px 0; /* Marge fixe entre les paragraphes */
    line-height: 1.2;
}

header .tagline {
    font-size: 1.1em;
    margin-top: 5px;
    font-style: italic;
    opacity: 0.9;
}

nav {
    background-color: #444;
    padding: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

main {
    padding: 20px;
}

/* Styles pour le diaporama */
.diaporama-container {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
    overflow: hidden;
}

.diaporama {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    overflow: hidden;
    height: 500px;
}

.diaporama-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

/* Images du diaporama principal (grandes) */
/* Images du DIAPORAMA (grandes) */
.diaporama-img {
    width: 100% !important;    /* Prend toute la largeur */
    height: 500px !important; /* Hauteur fixe */
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

/* Miniatures (petites) */
.thumbnail-img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ddd;
    margin: 5px;
}
.fleches {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.fleche {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    transition: background-color 0.3s;
}

.fleche:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}
/* ===== RESPONSIVE DESIGN POUR TOUTES LES PAGES ===== */
@media (max-width: 768px) {
    /* Empêche le défilement horizontal sur tout le site */
    body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Header et nav */
    header {
        padding: 15px 10px;
    }

    nav {
        padding: 8px 0;
    }

    nav ul {
        flex-wrap: wrap; /* Permet aux éléments de passer à la ligne */
        justify-content: center;
        gap: 10px;
    }

    nav ul li {
        margin: 5px 10px;
    }

    /* Main (contenu principal) */
    main {
        padding: 10px;
    }

    /* Conteneurs génériques (pour CV, galerie, etc.) */
    .cv-container, .cv-banner, .fun-facts, .skills, .contact-section {
        width: 100%;
        box-sizing: border-box;
        padding: 15px;
        margin: 0 0 20px 0;
    }

    /* Timeline (pour cv.php) */
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-icon {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }

    .timeline-content {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid #4CAF50;
        padding-top: 10px;
    }

    /* Diaporama (pour galerie.php) */
    .diaporama-container {
        max-width: 100%;
        margin: 20px 0;
    }

    .diaporama {
        height: 300px; /* Réduit la hauteur sur mobile */
    }

    .diaporama-img {
        height: 300px !important;
    }

    .thumbnails {
        gap: 8px;
    }

    .thumbnail-img {
        width: 80px !important;
        height: 80px !important;
    }

    /* Section Contact */
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }

    /* Pied de page */
    footer {
        padding: 15px 10px;
    }
}