/* ============ STYLE GÉNÉRAL ============ */
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #111;
    background-color: #f9f9f9;
    background-image: url('./assets/grain-texture.png');
    /* Texture granuleuse */
    background-size: cover;
    background-repeat: no-repeat;
    line-height: 1.6;
    overflow-x: hidden;
    /* Empêche le défilement horizontal */
}

body p{
    size:1.2rem;
    text-align: justify;
}

.logo_accueil {
    width: 10%;
}

/* ============ HEADER & NAVIGATION ============ */
header {
    text-align: center;
    padding: 2.5rem 1rem;
    background: #fff;
    border-bottom: 2px solid #111;
}

header h1 {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: #111;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid #111;
    border-radius: 50px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: #111;
    color: #fff;
}

/* ============ SECTION ACCUEIL (HERO) ============ */
.hero {
    text-align: center;
    padding: 5rem 1rem;
    background: linear-gradient(to bottom, #222, #111);
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.5rem;
    margin-top: 1rem;
    color: #bbb;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section À propos */
#a-propos {
    text-align: center;
    padding: 3rem 1rem;
}

#a-propos h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

#a-propos p {
    font-size: 1.3rem;
    max-width: 1000px;
    margin: 0 auto;
    color: #555;
    text-align: justify;
}

/* Section Projets */
#mes-projets {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border-top: 2px solid #111;
    border-bottom: 2px solid #111;
}

#mes-projets h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
  }

.project-categories {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cv-buttons-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.project-link {
    text-decoration: none;
    width: 100%;
    max-width: 700px;
}

.project-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-image:hover {
    transform: scale(1.04);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #111;
    padding: 1rem 0;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.project-overlay span {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Responsive pour mobile */
@media (max-width: 600px) {
    .project-overlay span {
        font-size: 1.1rem;
    }
}

.cv-button {
    display: inline-block;
    margin-top: 3rem;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    background: #111;
    color: #fff;
    border: 2px solid #111;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cv-button:hover {
    background: #fff;
    color: #111;
}


/*#projets {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border-top: 2px solid #111;
    border-bottom: 2px solid #111;
  }
  
  #projets h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
  }
  
  .project-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  
  .project-categories .categorie {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
  }
  
  .project-categories .categorie:hover {
    background: #555;
    color: #fff;
  }*/
  

/* ============ GALERIE (PAGE D'ACCUEIL) ============ */
#galerie {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    
    border-bottom: 2px solid #111;
}

#galerie h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Grille des images - Maximum 3 par ligne */
.photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 images par ligne */
    gap: 1.5rem;
    padding: 2rem 1rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Images de la galerie */
.photos img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

/* Effet au survol */
.photos img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive : 2 images par ligne sur tablette */
@media (max-width: 1024px) {
    .photos {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

/* Responsive : 2 image par ligne sur mobile */
@media (max-width: 600px) {
    .photos {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

/* ============ Section Contact ============ */
#contact {
    text-align: center;
    padding: 3rem 1rem;
}

#contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

#contact form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

#contact form label {
    font-size: 1rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

#contact form input,
#contact form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 2px solid #111;
    border-radius: 5px;
    font-size: 1rem;
}

#contact form button {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#contact form button:hover {
    background: #555;
}


/* Styles pour les réseaux sociaux */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    /* Espacement entre les icônes */
    margin-bottom: 2rem;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Taille des icônes agrandie */
.social-links img {
    width: 60px;
    /* Augmenté de 40px à 60px */
    height: auto;
    border-radius: 50%;
    /* Rendre les icônes arrondies */
}

/* Effet au survol */
.social-links a:hover {
    transform: scale(1.3);
    /* Effet d'agrandissement plus visible */
}




/* ============ Section générale ============ */
section {
    padding: 3rem 1rem;
}

/* Section Projets */
.project-page h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
}

.project-page p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    color: #555;
}

/* Grille des projets - Max 3 par ligne */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Par défaut, 3 colonnes */
    gap: 2rem;
    /* Espacement entre les projets */
    padding: 2rem 1rem;
    justify-content: center;
}

/* Si la page contient seulement 2 projets, ils prennent toute la largeur */
.projects-grid:has(:nth-child(2):nth-last-child(1)) {
    grid-template-columns: repeat(2, 1fr);
    /* 2 projets sur toute la largeur */
}

/* Si un seul projet est présent, il prend toute la largeur */
.projects-grid:has(:only-child) {
    grid-template-columns: 1fr;
    /* 1 projet = toute la ligne */
}

/* Tablettes : 2 projets max par ligne */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Toujours 2 colonnes max */
    }

    /* Si 1 seul projet, il prend toute la largeur */
    .projects-grid:has(:only-child) {
        grid-template-columns: 1fr;
    }
}

/* Mobiles : 1 projet par ligne */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
        /* 1 projet par ligne sur mobile */
    }
}

/* ============ PROJETS (IMAGES & VIDÉOS) ============ */
/*
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Par défaut : 3 colonnes 
    gap: 2rem;
    padding: 2rem 1rem;
    justify-content: center;
}

/* Responsive Tablette 
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Mobile 
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Style des cartes projet 
.project-card {
    position: relative;
    background: #fff;
    border: 2px solid #111;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    cursor: pointer;
    padding: 1rem;
}

/* Effet au survol 
.project-card:hover {
    transform: scale(1.05);
}

/* Images des projets
.project-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Conteneur des vidéos YouTube 
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 pour YouTube 
}

/* Style des iframes 
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}*/

/* ======= GRID POUR LES PROJETS AUDIOVISUELS ======= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 1rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grands écrans (≥ 1200px) : 3 projets max par ligne */
@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Écrans intermédiaires (≤ 1024px) : 2 projets par ligne */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobiles (≤ 600px) : 1 projet par ligne */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}


/* ================== PROJETS (IMAGES & VIDÉOS) ================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Par défaut : 3 colonnes */
    gap: 2rem;
    padding: 2rem 1rem;
    justify-content: center;
}

/* Responsive Tablette */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Mobile */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Style des cartes projet */
.project-card,
.project-card video {
    position: relative;
    background: #fff;
    border: 2px solid #111;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    cursor: pointer;
    padding: 1rem;
}

/* Effet au survol */
.project-card:hover {
    transform: scale(1.05);
}

/* Images des projets */
.project-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Conteneur des vidéos YouTube */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* Ratio 16:9 pour YouTube */
}

/* Style des iframes */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Effet plein écran des projets */
.project-card.fullscreen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    height: auto;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: white;
}

/* Empêcher la mise en page de bouger quand le projet est en plein écran */
.project-card.fullscreen img {
    max-width: 100%;
    height: auto;
}

/* Ajustement des vidéos en mode plein écran */
.project-card.fullscreen .video-container {
    padding-top: 56.25%;
}

/* Empêcher les autres éléments d'être cliquables */
.fullscreen~* {
    pointer-events: none;
}

/* Bouton de fermeture */
.project-card .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #111;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 1000;
}

.project-card .modal-close:hover {
    background: #ff5555;
}



/* ============  Cartes projets ============ */
.project-card {
    position: relative;
    background: #fff;
    border: 2px solid #111;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-card img {
    width: 100%;
    height: auto;
    display: block;
}

.project-card h3 {
    margin: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
}

.project-card p {
    margin: 1rem;
    font-size: 1rem;
    color: #555;
}

/* ========= MINIATURES CARROUSEL (AUTOMATIQUE) ========= */
.carousel {
    position: relative;
    width: 100%;
    height: 200px;
    /* Ajuste la hauteur selon tes besoins */
    overflow: hidden;
}

.carousel img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel img.active {
    opacity: 1;
}

/* ========= MODE PLEIN ÉCRAN (MANUEL) ========= */
/* Mode plein écran automatique */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal {
    background: #fff;
    padding: 1.5rem;
    text-align: center;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
}

.modal img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    transition: opacity 1s ease-in-out;
}

/* Bouton de fermeture */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-close:hover {
    color: red;
}



/* ============ GRILLE DES PROJETS RESPONSIVE ============ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 1rem;
    justify-content: center;
}

/* Si une page a seulement 2 projets, ils prennent chacun 50% de la largeur */
.projects-grid:has(:nth-child(2):nth-last-child(1)) {
    grid-template-columns: repeat(2, 1fr);
}

/* Si un seul projet, il prend toute la largeur */
.projects-grid:has(:only-child) {
    grid-template-columns: 1fr;
}


/* ============ Fenêtre modale ============ */
.modal-overlay {
    display: none;
    /* Masqué par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Ombre semi-transparente */
    z-index: 999;
    /* Derrière la fenêtre modale */
}

.modal {
    display: none;
    /* Masqué par défaut */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    z-index: 1000;
    width: 80%;
    max-width: 800px;
    overflow: hidden;
    text-align: left;
}

.modal img {
    width: 100%;
    display: block;
    border-bottom: 2px solid #111;
}

.modal-content {
    padding: 1.5rem;
}

.modal-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #111;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: #555;
}

/* ============ Navigation flèches ============ */
.project-navigation {
    position: fixed;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 1000;
    padding: 0 2rem;
    /* Ajoute un espace pour éviter que les flèches touchent le bord */
    box-sizing: border-box;
}

/* Suppression du soulignement sous les flèches */
.nav-arrow {
    text-decoration: none;
    /* Supprime tout soulignement */
    background: #111;
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    position: relative;
}

/* Supprime toute décoration des liens dans le projet */
a {
    text-decoration: none;
    /* Supprime le soulignement globalement */
}

.nav-arrow:hover {
    background: #555;
    transform: scale(1.2);
}

/* Texte d'aperçu aligné horizontalement */
.nav-arrow::after {
    content: attr(data-hover-text);
    position: absolute;
    font-size: 1rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    white-space: nowrap;
    max-width: 200px;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Position horizontale du texte */
/* Pour la flèche gauche, place le texte à droite */
.nav-arrow.left::after {
    left: 60px;
    /* Espace entre la flèche et le texte */
    top: 50%;
    transform: translateY(-50%);
}

/* Pour la flèche droite, place le texte à gauche */
.nav-arrow.right::after {
    right: 60px;
    /* Espace entre la flèche et le texte */
    top: 50%;
    transform: translateY(-50%);
}

/* Effet au survol */
.nav-arrow:hover::after {
    opacity: 1;
}


/* Limites pour éviter que les flèches soient coupées */
.nav-arrow:first-of-type {
    margin-left: 10px;
    /* Assure que la flèche gauche ne touche pas le bord gauche */
}

.nav-arrow:last-of-type {
    margin-right: 10px;
    /* Assure que la flèche droite ne touche pas le bord droit */
}

.project-card img {
    width: 100%;
    /* Garde l'image adaptative */
    height: 300px;
    /* Augmente la hauteur */
    object-fit: contain;
    /* Empêche le rognage de l'image */
    background-color: #f0f0f0;
    /* Fond clair pour les images qui ne remplissent pas toute la zone */
    border-bottom: 2px solid #111;
}

.modal img {
    width: 90%;
    /* Au lieu de 100%, pour éviter que ça touche les bords */
    max-height: 500px;
    /* Augmente la hauteur */
    object-fit: contain;
    /* Toujours afficher l'image entière */
    display: block;
    margin: 0 auto;
}

/* ============ FENÊTRE MODALE (PROJET EN PLEIN ÉCRAN) ============ */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    z-index: 1000;
    width: 90%;
    max-width: 800px;
    overflow: hidden;
}

/* ======== MODALE POUR LES IMAGES EN PLEIN ÉCRAN ======== */
.image-modal {
    display: none;
    /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Fond semi-transparent */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Bouton de fermeture (croix) */
.image-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.image-modal .close-btn:hover {
    color: #ff5555;
}


/* ===== FOOTER ===== */
footer {
    background-color: #111;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    border-top: 2px solid #fff;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo du footer */
.footer-logo img {
    width: 100px;
    /* Ajuste la taille du logo */
    height: auto;
}

/* Liens de navigation */
.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.footer-nav a:hover {
    color: #ff5555;
    /* Couleur au survol */
}

/* Icônes des réseaux sociaux */
.social-icons a img {
    width: 40px;
    height: 40px;
    margin: 0 0.5rem;
    transition: transform 0.3s ease;
    border-radius: 50%;
    /* Rend l'icône ronde */
    padding: 5px;
    /* Ajuste l'espacement à l'intérieur du cercle */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Légère ombre pour un effet de relief */
}

/* Effet de zoom au survol */
.social-icons a img:hover {
    transform: scale(1.2);
    transition: 0.3s ease;
}

/* Texte de bas de page */
.footer-text {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #bbb;
}

/* Responsive */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-nav a {
        font-size: 1rem;
    }
}



/* ===== Gestion responsive pour les très petits écrans ===== */
@media (max-width: 600px) {
    .logo_accueil {
        width: 20%;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .nav-arrow::after {
        font-size: 0.8rem;
        /* Réduit la taille du texte d'aperçu */
        max-width: 150px;
        /* Réduit la largeur maximale du texte */
    }
}


/* ============ RESPONSIVE TABLETTES (≤ 768px) ============ */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    header h1 {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.3rem;
    }
}


/* ============ RESPONSIVE MOBILES (≤ 600px) ============ */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* ======== Bouton "En savoir plus" ======== */
.btn-info {
    background-color: white;
    color: #111;
}

.btn-info:hover {
    background-color: #111;
    color: white;
}

/* Bouton "Voir le site" */
.btn-site {
    background-color: #f4b400; /* Couleur inspirée de ta DA */
    color: #111;
}

.btn-site:hover {
    background-color: #111;
    color: #f4b400;
}

/* Responsive : Boutons en colonne sur petits écrans */
@media (max-width: 600px) {
    .project-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-custom {
        width: 80%;
    }
}



.cv-section {
    padding: 4rem 2rem;
    text-align: center;
    background: #fff;
    min-height: 100vh;
  }
  
  .cv-image {
    width: 90%;
    max-width: 900px;
    height: auto;
    border: 2px solid #111;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-bottom: 2rem;
  }
  
  .cv-image:hover {
    transform: scale(1.02);
  }
  
  /* Boutons CV */
  .btn-dark {
    text-transform: uppercase;
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    border: 2px solid #111;
    transition: all 0.3s ease;
  }
  
  .btn-dark:hover {
    background: #fff;
    color: #111;
  }

  .cv-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .cv-button-wrapper {
    margin-top: 1rem;
    text-align: center;
  }
  
  

  .logo_accueil:hover{
    transition: transform 0.3s ease;
    transform: scale(1.1);
  }

  .footer-logo:hover{
    transition: transform 0.3s ease;
    transform: scale(1.1);
  }


  .glitch-effect {
    position: relative;
    overflow: hidden;
  }
  
  .glitch-effect::before,
  .glitch-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -5%;
    width: 110%;
    height: 100%;
    background: rgba(255, 255, 255, 0.04);
    mix-blend-mode: overlay;
    animation: scanlines 3s infinite linear;
    pointer-events: none;
    z-index: 2;
  }
  
  @keyframes scanlines {
    0% {
      transform: translateY(-100%);
    }
    100% {
      transform: translateY(100%);
    }
  }
  
  
  #outils {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #fff;
    border-top: 2px solid #111;
  }
  
  #outils h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
  }
  
  .outils-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
  }
  
  .outils-logos img {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
  }
  
  .outils-logos img:hover {
    transform: scale(1.2);
    filter: grayscale(0%);
  }
  