/* Reset de base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(to bottom, #ccffff 0%, #f3fbf9 100%);; /* Fond blanc cassé */
    color: #333;
    line-height: 1.6;
    position: relative; /* Pour que les éléments flottants se positionnent au-dessus des particules */
    overflow-x: hidden; /* Empêche le défilement horizontal */
}

/* Particles.js container (couvre tout le fond de la page) */
#particles-js {
    position: fixed; /* Fixe le fond des particules */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Couvre toute la hauteur de la fenêtre */
    z-index: -1; /* Place les particules en arrière-plan */
    pointer-events: none; /* Permet aux utilisateurs d'interagir avec le contenu par-dessus */
}

/* Header avec bas creusé en forme de vague */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(250, 236, 219, 0.9); /* fond semi-transparent */
    backdrop-filter: blur(8px);           /* flou d’arrière-plan */
    padding: 20px 10%;

    /* Découpe le bas en vague douce */
    -webkit-clip-path: polygon(
            0 0,
            100% 0,
            100% 85%,
            90% 82%,
            75% 90%,
            50% 85%,
            25% 90%,
            10% 80%,
            0 85%
    );
    clip-path: polygon(
            0 0,
            100% 0,
            100% 85%,
            90% 82%,
            75% 90%,
            50% 85%,
            25% 90%,
            10% 80%,
            0 85%
    );
}

/* Vague principale */
nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;            /* double largeur pour l'animation */
    height: 80px;           /* hauteur de la vague */
    background: linear-gradient(to bottom right, #a1fafa, #f3fbf9, #a1fafa);    /* couleur eau */
    border-bottom-left-radius: 100% 100%;
    border-bottom-right-radius: 100% 100%;
    transform: translateX(0);
}

/* Écume au sommet de la vague */
nav::after {
    content: "";
    position: absolute;
    top: 60px;              /* légèrement sous le sommet */
    left: 0;
    width: 200%;
    height: 20px;
    background: rgba(255,255,255,0.7); /* écume opaque */
    border-bottom-left-radius: 50% 100%;
    border-bottom-right-radius: 50% 100%;
    transform: translateX(0);
    animation: wave 6s linear infinite reverse;
    z-index: 0;
}

/* Contenu de la nav au-dessus */
nav ul {
    position: relative; /* au-dessus des vagues */
    z-index: 1;
    display: flex;
    list-style: none;
    margin-top: 0;
}

nav li {
    flex: 1;
    text-align: center;
}

nav a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    z-index: 1;
    transition: background 0.5s ease, color 0.3s ease;
}

/* Hover & active */
nav a:hover,
nav a.active {
    /* Dégradé de gauche (#fecb98) à droite (#fadab9) */
    background: linear-gradient(to right, #fecb98 0%, #fadab9 100%);
    color: #fff;
}
/* Cible les <li> avec la classe descent */
nav ul li.descent {
    /* Tes styles ici */
    padding-top: 45px;       /* exemple : espacement en haut */
    margin-bottom: 5px;      /* exemple : espacement en bas */
}

/* Exclusion du logo */
nav .logo:hover,
nav .logo.active {
    background: none;
    color: inherit;
}

nav .logo img {
    height: 110px;
}

/* Mobile Menu inchangé */
#menu-toggle { display: none; }
@media (max-width: 768px) {
    #menu-toggle { display: block; }
    nav ul { display: none; flex-direction: column; padding-top: 10px; }
    nav ul.open { display: flex; }
}


/* Main */
main {
    margin-top: 150px;
    padding: 40px 10%;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Section Hero (page d'accueil) */
.hero {
    margin-top: 50px;
}

.hero h1 {
    font-size: 3rem;
    color: #fecb98; /* Orange pour le titre */
    margin-bottom: 20px;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero .btn-cta {
    padding: 12px 30px;
    background-color: #fecb98;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 40px; /* Plus d'espace sous le bouton */
}

.hero .btn-cta:hover {
    background-color: #fadab9;
}

/* Filter Bar */
.filter-bar {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    display: inline-block;
    margin: 0 15px;
    padding: 10px 25px;
    border: 2px solid #fadab9;
    background: #ffffff;
    cursor: pointer;
    border-radius: 20px;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
.filter-btn.active, .filter-btn:hover {
    background: #fecb98;
    color: #fff;
    transform: translateY(-2px);
}

/* Portfolio Grid */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Augmenter l'espace entre les boîtes */
    justify-content: space-between;
    margin-bottom: 50px; /* Augmenter l'espace entre le portfolio et la section suivante */
}

.portfolio-item {
    flex: 1 1 calc(33.333% - 20px);
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s ease;
    z-index: 1; /* Assure que les items restent au-dessus du fond */
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.portfolio-item img, .portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.portfolio-item .content {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .content {
    opacity: 1;
}

.portfolio-item h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.portfolio-item p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.portfolio-item .project-link {
    display: block;
    color: #fff;
    text-decoration: none;
    background: #fadab9;
    padding: 10px 25px;
    text-align: center;
    border-radius: 4px;
    transition: background 0.3s;
}

.portfolio-item .project-link:hover {
    background: #fecb98;
}

/* Lightbox Modal */
#lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

#lightbox-modal.open {
    display: flex;
}

/* Lightbox Content (pour ajuster les vidéos et les images) */
.lightbox-content {
    position: relative;
    max-width: 800px; /* Limiter la largeur de la lightbox à 800px */
    width: 50%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Assurer que l'image/vidéo ne dépasse pas */
}

/* Lightbox Image */
#lightbox-img {
    width: 100%;
    height: auto;
    max-height: 80vh; /* Limiter la hauteur à 80% de la fenêtre */
    object-fit: contain; /* Conserver les proportions de l'image */
}

/* Lightbox Video */
.lightbox-content iframe {
    width: 100%;
    max-height: 80vh; /* Limiter la hauteur de l'iframe à 80% de la fenêtre */
    height: 500px;
    object-fit: contain; /* Garder les proportions de la vidéo */
    border: none; /* Supprimer les bordures de l'iframe */
}

#lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

footer {
    position: relative;
    background: rgba(250, 236, 219, 0.9); /* même fond que nav */
    backdrop-filter: blur(8px);
    padding: 60px 10% 20px;  /* plus d’espace en haut pour la vague */
    color: #333;
    text-align: center;
    overflow: hidden;
    z-index: 1;

    /* découpe inversée en haut */
    -webkit-clip-path: polygon(
            0 15%,
            10% 20%,
            25% 10%,
            50% 15%,
            75% 10%,
            90% 18%,
            100% 15%,
            100% 100%,
            0 100%
    );
    clip-path: polygon(
            0 15%,
            10% 20%,
            25% 10%,
            50% 15%,
            75% 10%,
            90% 18%,
            100% 15%,
            100% 100%,
            0 100%
    );
}

/* Conteneur interne pour aligner icône + texte */
footer .footer-content {
    position: relative; /* devant la vague */
    z-index: 2;
}

/* Style de l’icône LinkedIn */
footer .social.linkedin {
    display: inline-block;
    margin-bottom: 10px;
    transition: transform 0.3s, fill 0.3s;
}

footer .social.linkedin .icon {
    width: 32px;
    height: 32px;
    fill: #333; /* couleur initiale */
}

footer .social.linkedin:hover {
    transform: translateY(-3px);
}

footer .social.linkedin:hover .icon {
    fill: #0A66C2; /* bleu LinkedIn */
}

/* Texte du footer */
footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}
/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 50px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.contact-form-container h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
}

.contact-form-container .form-group {
    margin-bottom: 20px;
}

.contact-form-container label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #fadab9;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 5px;
    box-sizing: border-box;
}

.contact-form-container textarea {
    resize: vertical;
}

.contact-form-container button {
    background: #fecb98;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form-container button:hover {
    background: #fadab9;
}

/* Bouton "Voir le projet" */
.btn-cta {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #fecb98, #fadab9); /* Dégradé de pêche clair à beige doux */
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 25px;
    text-align: center;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s ease-in-out;
    border: 2px solid transparent; /* Bordure invisible pour un look plus fluide */
}

.btn-cta:hover {
    background: linear-gradient(45deg, #fadab9, #fecb98); /* Inverse le dégradé au survol */
    transform: translateY(-2px); /* Effet de "légère élévation" au survol */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Ombre douce pour mettre en valeur */
}

.btn-cta:active {
    transform: translateY(2px); /* Légère pression du bouton lorsqu'il est cliqué */
    box-shadow: none; /* Retirer l'ombre lors du clic */
}

.ytp-cued-thumbnail-overlay-image {
    background-size: cover;
    -moz-background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
}

.ripple {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.3); /* moins opaque */
    width: 20px;                         /* moitié de taille */
    height: 20px;
    transform: scale(0);
    opacity: 0.5;
    animation: ripple-effect 0.6s ease-out; /* plus court */
    z-index: 9999;
}

@keyframes ripple-effect {
    to {
        transform: scale(4); /* demi-échelle */
        opacity: 0;
    }
}


/* Cercle suiveur (optionnel) */
.cursor-follow {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(204,255,255,0.7);
    border-radius: 50%;
    background: rgba(204,255,255,0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
}
.side-deco {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 240px;
    pointer-events: none;
    opacity: 0.6;
    z-index: 500;
}

/* Forme abstraite gauche */
.side-deco.left {
    left: 0;
    background: linear-gradient(135deg, #fecb98, #fadab9);
    /* clip-path qui dessine une forme de feuille stylisée */
    clip-path: polygon(
            0% 10%,
            100% 0%,
            80% 100%,
            0% 90%
    );
}

/* Forme abstraite droite */
.side-deco.right {
    right: 0;
    background: linear-gradient(225deg, #fecb98, #fadab9);
    /* miroir horizontal de la forme gauche */
    clip-path: polygon(
            100% 10%,
            0% 0%,
            20% 100%,
            100% 90%
    );
}

body {
    /* dégradé animé de en haut à gauche vers en bas à droite */
    background: linear-gradient(to bottom right, #a1fafa, #f3fbf9, #a1fafa);
    background-size: 300% 300%;
    animation: bgGlow 15s ease infinite;
}

/* Animation pour déplacer le dégradé */
@keyframes bgGlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
