/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background: burlywood;
    color: black;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
    text-align: center;
}
header {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}
button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}
section {
    padding: 2rem;
    min-height: 100vh;
    width: 100vw;
}
footer {
    text-align: center;
    padding: 1rem;
    background: #333;
    color: white;
}

img {
    border-radius: 10px;
}

.hide-text {
    color: #000;
}

.about-texte {
    color: #000;
}

/* Centrer le contenu de la balise <p> */
.centered {
    display: flex; /* Utilise Flexbox */
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    gap: 10px; /* Ajoute un espacement entre les éléments */
    text-align: center; /* Centrage du texte */
}

/* Ajuster les SVG pour être alignés avec le texte */
.centered svg {
    width: 24px; /* Ajuste la taille des icônes */
    height: 24px;
    vertical-align: middle; /* Aligne verticalement */
}


/* Section #home */
#home {
    display: flex;
    align-items: center; /* Centre verticalement le contenu */
    justify-content: center; /* Centre horizontalement le contenu */
    height: 100vh; /* La section occupe toute la hauteur de la fenêtre */
    padding: 0; /* Supprime les marges internes */
    margin: 0; /* Supprime les marges externes */
}

/* Conteneur principal */
.corps-home {
    display: flex; /* Flexbox pour aligner les enfants côte à côte */
    width: 100%; /* Prend toute la largeur disponible */
    height: auto; /* S'ajuste automatiquement à la taille du contenu */
}

/* Texte à gauche */
.corps-texte {
    flex: 1; /* Prend une part égale de l'espace disponible */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement le texte */
    align-items: center; /* Centre horizontalement le texte */
    padding: 2rem; /* Espace autour du contenu */
}

.corps-texte p {
    font-size: 1.5rem;
}

/* Photo à droite */
.corps-photo {
    flex: 1; /* Prend une part égale de l'espace disponible */
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    overflow: hidden; /* Masque les débordements d'image */
}

.corps-photo img {
    width: 75%; /* L'image remplit toute la largeur de la div */
    height: 75%; /* L'image remplit toute la hauteur de la div */
    object-fit: cover; /* Ajuste l'image pour qu'elle remplisse son conteneur sans déformation */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.about-seg {
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    margin-top: 1rem;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.2s ease, height 0.2s ease;
}
.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
}
/* Dark Theme */
body.dark-theme {
    background: black;
    color: white;
}
body.dark-theme header {
    background: #555;
}
/* Particles */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float 10s linear infinite;
}
@keyframes float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100vh);
    }
}
/* Project Section */
.project {
    margin: 1rem;
    display: inline-block;
    width: 30%;
    cursor: pointer;
}
.project img {
    width: 100%;
    transition: transform 0.3s ease;
}
.project img:hover {
    transform: scale(1.05);
}
/* Project Details */
.project-details {
    display: none;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
.project-details h3 {
    margin-bottom: 1rem;
}
.project-details button {
    padding: 0.5rem 1rem;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    border-radius: 5px;
}
.project-details button:hover {
    background: #444;
}

/* Contenu des onglets */
.tab-content {
    display: none;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    position: relative;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}
.tab-content.active {
    display: block;
}
.close-tab {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#theme-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.3s ease;
    color: white;
}
body.dark-theme #theme-switcher {
    border-color: #fff;
}
#theme-switcher svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}
#theme-switcher:hover svg {
    transform: scale(1.2);
}


