/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Style */
body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #121212;
    color: #FFFFF0;
    display: flex;
    height: 100vh;
    flex-direction: column;
}

/* Barre du haut */
.top-bar {
    background-color: #FFFFF0;
    color: #0e0e0e;
    padding: 5px 10px;
    display: flex;
    justify-content:space-between;
    align-items: center;
    left: 0;
    right: 0;
    position: fixed;
    z-index: 30;
}

/* Transparence lorsque scroll */
.top-bar.scrolled {
    background-color: rgba(14, 14, 14, 0.8); /* Transparence de 20% */
    color: #FFFFF0;
}

.top-lang {
    margin-left: 1%;
    margin-right: 2%;
}

/* Bar de navigation */
.top-nav {
    margin-right: 1%;
    margin-left: auto;
}

.top-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.top-nav a {
    color: #0e0e0e;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.top-nav.scrolled {
    color: #FFFFF0;
}

.top-nav.scrolled a{
    color: #FFFFF0;
}

.top-nav a:hover {
    color: #c0c0c0;
}

/* Contact button */
.contact-button {
    background-color: #121212;
    color: #FFFFF0;
    font-family: 'Courier New', Courier, monospace;
    border: 2px solid #FFFFF0;
    border-radius: 1px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.contact-button:hover {
    background-color: #FFFFF0;
    color: #121212;
}

/* Bouton de toggle de la sidebar */
.toggle-sidebar {
    background: none;
    border: none;
    color: #0e0e0ead;
    font-size: 2rem;
    cursor: pointer;
}

/* Bouton de toggle de la sidebar */
.toggle-sidebar.scrolled {
    color: #FFFFF0;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: rgba(14, 14, 14, 0.8);
    color: #FFFFF0;
    padding: 40px 20px; /* Augmente le padding pour décaler les éléments */
    text-align: center;
    height: 100vh;
    position: fixed;
    left: -250px;
    top: 52px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

/* Masquer la sidebar */
.sidebar-hidden {
    transform: translateX(250px); /* Décale la sidebar à gauche */
}

/* Sidebar Navigation */
.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin: 15px 0;
}

.sidebar-nav a {
    color: #FFFFF0;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.sidebar-nav a:hover {
    color: #c0c0c0;
}

/* Main Content */
.main-content {
    flex: 1;
    text-align: center;
}

.main-content-hidden {
    transform: translateX(250px); /* Décale la sidebar à gauche */
}   

/* Sections */
section {
    padding: 8rem;
}

/* Profile Picture */
.profile-picture {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center bottom;
    border: 3px solid #FFFFF0;
    margin-bottom: 20px;
    overflow: hidden;
}

.main-profile{
    width: 300px;
    height: 300px;
    object-position: center top;
    flex: 1;
}

/* Blocs de sections sur la page d'acceuil */
.home {
    background-color: #FFFFF0;
    color: #121212;

}

/* Image de fond section edu Accueil */
#education {
    background-color: rgba(0, 0, 0, 0.5); /* Ombre pour améliorer la lisibilité */
    background-image: url('images/background_education.jpg');
    background-size: cover;
    background-position: 0% 25%;
}

/* Image de fond section proj Accueil */
#projects {
    background-color: rgba(0, 0, 0, 0.5); /* Ombre pour améliorer la lisibilité */
    background-image: url('images/background_projects.jpg');
    background-size: cover;
    background-position: 0% 25%;
}

/* Image de fond section exp Accueil */
#experiences {
    background-image: url('images/background_experiences_1.jpg');
    background-size: cover;
    background-position: center;
}

/* Image de fond section perso Accueil */
#personal {
    background-image: url('images/background_perso.png'); /* Transférer dans HTML ?? */
    background-size: cover;
    background-position: 0% 25%;
}

/* Footer Style */
.site-footer {
    background-color: #0e0e0e;
    color: #FFFFF0;
    padding: 20px 20px;
    text-align: left;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    padding: 20px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #FFFFF0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #c0c0c0;
}

.footer-message {
    text-align: center;
    font-size: 14px;
}

.header-image {
    width: 100%;
    /*height: 200px;*/
    object-fit: cover;
}

/* En-tête de la page */
.page-header {
    height: 300px;
    position: relative;
    margin: 0; 
}

/* Titre de l'en-tête */
.page-title {
    color: #FFFFF0;
    font-size: 2.5rem;
    margin-top: 150px;
    margin-bottom: auto; /* Enlève la marge en dessous */
    font-weight: bold;
}

/* Description Block */
.description-block {
    padding: 2rem;
    background-color: #FFFFF0;
    color: #121212;
    text-align: center;
}

/* Bande contenant les images des sections */
.images-banner {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Styles de base pour les images du bandeau */
.banner-image {
    position: relative;
    width: 100%;
    height: 300px;
    max-width: 300px;
    border-radius: 5px;
    overflow: hidden; 
    transition: transform 0.3s ease-in-out;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Effet zoom sur survol */
.banner-image:hover img {
    transform: scale(1.05);
}

/* Overlay sur survol */
.banner-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

/* Titre sur l'overlay */
.banner-image:hover::before {
    opacity: 1;
}

.banner-image::after {
    content: attr(data-title); 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease-in-out;
    width: 95%;           /* Assure que le texte occupe toute la largeur */
    padding-left: 10px;    /* Si nécessaire, ajuster les marges internes */
    padding-right: 10px;   /* Si nécessaire, ajuster les marges internes */
}

.banner-image:hover::after {
    opacity: 1;
}

/* Bandeau d'en-tête pleine largeur */
.full-width-banner {
    width: 100%;
    background-size: cover;
}

.banner-exp {
    background-image: url('images/background_experiences.jpg'); /* A transférer dans le HTML ? */
    background-position: 0% 15%;
}

.banner-proj {
    background-image: url('images/background_projects.jpg');  /* A transférer dans le HTML ? */
    background-position: 0% 35%;
}

.banner-ed {
    background-image: url('images/background_education.jpg');  /* A transférer dans le HTML ? */
}

/* Overlay et titre dans le bandeau */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.5); 
}

/* Blocks des pages != Acceuil */
.experience-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;            /* Permet le retour à la ligne */
}

/* Bloc impair : fond ivoire */
.experience-block:nth-child(even) {
    background-color: #FFFFF0; 
    color: #121212;
}

/* Bloc pair : fond noir */
.experience-block:nth-child(odd) {
    background-color: #121212; 
    color: #FFFFF0; 
}

.exp-image {
    height: 500px;
    overflow: hidden;
    object-fit: cover;
    border-radius: 10px;
    margin: 40px;
    flex-shrink: 0;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
}

.left {
    margin-right: 20px;
}

.right {
    margin-left: 20px;
    order: 2;
}

.exp-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.5;
}

.exp-text p {
    font-family: "Arial", sans-serif; 
    font-size: 14px; 
    line-height: 1.6; 
}

/* Animation Scroll */
html {
    scroll-behavior: smooth;
}

.section-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0; /* Empêche l'image de se redimensionner */
}

.left {
    margin-right: 40px; /* Gestion des marges pour alternance G/D*/
}

.right {
    margin-left: 40px; /* Gestion des marges pour alternance G/D*/
    order: 2;
}

/* Style des sections classiques*/
.section {
    position: relative;
    cursor: pointer;
    padding: 10rem;
    color: #121212;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Overlay */
.section-overlay {
    position: relative;
    z-index: 2;
    color: #FFFFF0; 
}

.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1; /* Derrière le contenu */
    transition: background-color 0.3s ease-in-out;
}


.section:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Style du carrousel */
.carousel {
    position: relative;
    width: 300px;
    height: 300px; /* Même hauteur que l'image */
    overflow: hidden;
    object-fit: cover;
    border-radius: 10px;
    margin: 40px;
    flex-shrink: 0; /* Empêche l'image de se redimensionner */
}

.exp{
    width: 500px;
    height: 500px;
}

.carousel-images {
    display: flex;
    width: 100%; /* Utilise la même taille que l'image */
    height: 100%; /* Même hauteur que l'image */
    transition: transform 0.5s ease-in-out;
    margin-right: 20px;
}

.carousel-images img {
    width: 100%;            
    height: 100%;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #FFFFF0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

/* Indicateurs */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.carousel-indicators .dot {
    width: 10px;
    height: 10px;
    background-color: #FFFFF0;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
}

.carousel-indicators .dot.active {
    opacity: 1;
}


/* Bullet points */
.indented-list{
    margin-left: 20px; /* Ajuste l'indentation */
    padding-left: 0; /* Supprime le padding par défaut si nécessaire */
    list-style-position: outside;
    font-family: "Arial", sans-serif; 
    font-size: 14px; /* Ajuste la taille du texte */
    line-height: 1.6; /* Ajoute un espacement pour améliorer la lisibilité */

}

.indented-list li {
    text-indent: 10px; /* Indentation supplémentaire pour chaque ligne de texte */
}

.home-list{
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
}


/* Conteneur principal */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 20px; 
    padding: 20px 0;
}

/* Style des liens */
.social-icon {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Style des images */
.social-icon img {
    width: 40px; 
    height: 40px;
    object-fit: cover;
    border-radius: 50%; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
}

/* Effet au survol */
.social-icon:hover {
    transform: scale(1.1); 
    opacity: 0.8;
}

/* Resetting some properties for mobile devices */
@media screen and (max-width: 768px) {
    /* Body and general layout adjustments */
    body {
        font-size: 14px;
    }

    /* Barre du haut */
    .top-bar {
        font-size: 10px;
    }

    /* Bar de navigation */
    .top-nav {
        font-size: 10px;
        margin-right: 35px;
        margin-left: auto;
    }

    .top-nav ul {
        list-style: none;
        gap: 3%;
    }

    .top-nav a {
        text-decoration: none;
        font-size: 10px;
    }

    /* Contact button */
    .contact-button {
        border: 2px solid #FFFFF0;
        border-radius: 1px;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 8px;
    }

    /* Bouton de toggle de la sidebar */
    .toggle-sidebar {
        font-size: 1rem;
        cursor: pointer;
        margin-left: 1px;
    }

    /* Sidebar */
    .sidebar {
        width: 100%;
        left: -100%;
        top: 60px;
    }

    .sidebar-hidden {
        transform: translateX(100%);
    }

    .main-content {
        transform: translateX(0);
    }

    /* Profile Picture */
    .profile-picture {
        width: 150px;
        height: 150px;
    }

    /* Sidebar Navigation */
    .sidebar-nav a {
        font-size: 1rem;
    }

    /* Footer */
    .footer-container {
        align-items: center;
    }

    .footer-column {
        font-size: 10px;
        margin-bottom: 20px;
    }

    .footer-column h3 {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .footer-message {
        font-size: 10px;
    }

    .section {
        padding: 5rem;
        font-size: 14px;
    }

    .section h1{
        font-size: 20px;
    }

    .description-block {
        padding: 1rem;
    }

    /* Experience blocks */
    .experience-block {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .exp-image {
        width: 100%;
        height: auto;
        margin: 20px 0;
    }

    .exp-text {
        font-size: 1rem;
        text-align: start;
    }

    .section-image {
        width: 100%;
        height: auto;
    }

    /* Carrousel */
    .carousel {
        width: 100%;
        height: auto;
    }

    .carousel-images {
        display: block;  /* Empêche les images d'être côte à côte */
    }

    .carousel-images img {
        width: 100%;
    }

    .carousel-indicators {
        bottom: 20px;  /* Espace plus large pour les petits écrans */
    }

    .carousel-arrow {
        font-size: 20px;  /* Réduit la taille des flèches sur mobile */
        padding: 8px;
    }

    /* Banner images */
    .banner-image {
        max-height: 200px;
        width: 200px;
    }

    .banner-image::after {
        font-size: 0.7rem;
    }
}

/* For smaller mobile devices (up to 480px) */
@media screen and (max-width: 480px) {
    body {
        font-size: 12px;
    }

    /* Barre du haut */
    .top-bar {
        padding: 5px 2% 2%;
        font-size: 8px;
        position: fixed;
        display: flex;
        justify-content: space-between;
        top: 0;
        left: 0;
        right: 0;
    }

    .top-lang {
        margin-left: 5px;
        margin-right: 5px;
    }

    /* Bar de navigation */
    .top-nav {
        font-size: 8px;
        margin-right: 5px;
        margin-left: 5px;
    }

    .top-nav ul {
        list-style: none;
        gap: 10px;
    }

    .top-nav a {
        text-decoration: none;
        font-size: 8px;
    }

    .sidebar-nav a {
        font-size: 0.9rem;
    }

    .sidebar {
        padding: 20px;
    }

    .profile-picture {
        width: 120px;
        height: 120px;
    }

    #education-title{
        margin-top: auto;
        margin-bottom: auto;
    }

    /* Footer */
    .footer-column {
        margin-bottom: 10px;
    }

    .section {
        padding: 3rem;
        font-size: 10px;
    }

    .section h1{
        font-size: 16px;
    }

    .experience-block {
        padding: 1rem;
    }

    .exp-image {
        width: 80%;
        height: auto;
        margin: 10px 0;
    }

    .exp-text {
        font-size: 0.9rem;
        text-align: start;     /* Centre le texte pour plus de lisibilité */
    }

    /* Carrousel */
    .carousel {
        width: 100%;
        height: auto;
    }

    .carousel-images img {
        height: auto;  /* Permet aux images de s'ajuster verticalement si nécessaire */
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
    }

    .carousel-indicators .dot {
        width: 8px;
        height: 8px;
    }
}

/* Style général du carrousel */
.carousel {
    position: relative;
    width: 100%;                /* Prend toute la largeur disponible */
    max-width: 500px;           /* Limite la largeur maximale */
    aspect-ratio: 1 / 1;        /* Assure un ratio carré */
    overflow: hidden;
    border-radius: 10px;
    margin: 0 auto;             /* Centre le carousel */
    flex-shrink: 0;             /* Empêche le redimensionnement */
}

.carousel-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    width: 100%; /* Image prend la largeur du carousel */
    height: auto; /* Conserve les proportions */
    flex-shrink: 0; /* Empêche le rétrécissement */
}

/* Flèches de navigation */
.carousel-arrow {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #FFFFF0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

/* Indicateurs */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.carousel-indicators .dot {
    width: 10px;
    height: 10px;
    background-color: #FFFFF0;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
}

.carousel-indicators .dot.active {
    opacity: 1;
}

/* --- Responsive Design --- */

/* Pour les tablettes */
@media (max-width: 768px) {
    .carousel {
        width: 100%;            /* Le carousel prend la largeur du conteneur */
        aspect-ratio: 16 / 9;   /* Ratio légèrement plus rectangulaire */
    }
}

/* Pour les mobiles */
@media (max-width: 480px) {
    .carousel {
        width: 100%;            /* Pleine largeur sur mobile */
        aspect-ratio: 4 / 3;    /* Ratio adapté aux écrans mobiles */
    }
}

/* Gestion du carrousel */
.carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: auto;
    overflow: hidden;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-images img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.section-text {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    text-align: justify;
    font-size: 1rem;
    line-height: 1.5;
    margin: 40px;
    width: 50%;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .section-content {
        flex-direction: column; /* Empile carrousel et texte */
        text-align: center;
    }

    .section-text {
        width: 100%; /* Largeur en petit écran */
        margin: 0;
    }

    .section-text h2{
        font-size: 20px;
    }

    .carousel {
        width: 100%; /* Carrousel prend toute la largeur */
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 458px) {
    .section-content {
        padding: 10px; /* Moins de padding */
    }

    .section-text {
        font-size: 0.9rem; /* Réduit légèrement la taille du texte */
    }

    .section-text h2{
        font-size: 14px;
    }

    .section-text ul {
        padding-left: 0; /* Supprime le retrait de la liste */
        text-align: left; /* Texte aligné à gauche */
    }

    .section-text ul li {
        font-size: 0.85rem; /* Ajuste la taille des éléments */
        margin-bottom: 0.5rem;
    }

    .section-text a {
        display: block;
        margin-top: 10px;
        font-size: 0.85rem;
    }

    .carousel {
        max-width: 100%; /* Prend toute la largeur de l'écran */
    }
}

/* Sections dépliables */
.section-content {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    color: #0e0e0e;
    background-color: #FFFFF0;
    transition: max-height 0.4s ease, padding 0.4s ease, margin 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    text-align: center;
    flex-wrap: wrap;
}

/* Pour s'assurer qu'on prenne la hauteur complète selon le contenu */
.section-content.active {
    max-height: none;
    overflow: visible;
    padding: 20px;
}

/* Carrousel */
.carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
}

/* Images du carrousel */
.carousel-images img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .carousel {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

