/* ===================== */
/*  POLICE (QUICKSAND)   */
/* ===================== */
@font-face {
    font-family: 'Quicksand';
    src: url('fonts/Quicksand.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===================== */
/*  RESET, BODY & BASICS */
/* ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

body {
    background-color: #121815;
    color: #fff;
    display: flex;
    min-height: 100vh;
    margin: 0;
}

/* ===================== */
/*  BOUTON BURGER        */
/* ===================== */
.burger-menu {
    /* Masqué par défaut sur grand écran */
    display: none; 
    position: fixed;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    z-index: 30; /* Au-dessus du nav et de l'overlay */
    cursor: pointer;
}

/* ===================== */
/*  OVERLAY (fond gris)  */
/* ===================== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10; /* Juste derrière le nav */
}
.overlay.active {
    display: block;
}

/* ===================== */
/*  NAV (MENU LATÉRAL)   */
/* ===================== */
nav {
    position: fixed;
    top: 0;
    left: -100%; /* Caché par défaut (slide-in quand .active) */
    width: 250px;
    height: 100vh; /* Force la hauteur à la taille de l'écran */
    background-color: #0e1311;
    overflow-y: auto; /* Permet le scroll vertical sur petit écran */
    -webkit-overflow-scrolling: touch; /* Scroll iOS fluide */
    transition: left 0.3s ease;
    z-index: 20; /* Devant l'overlay, derrière le burger */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-right: none;
}

nav.active {
    left: 0; /* Slide in */
}

nav .logo img {
    display: block;
    margin: 10px auto;
    width: 100px;
    height: auto;
}

nav ul {
    text-align: center;
    list-style: none;
    width: 100%;
}

nav ul li {
    position: relative;
    list-style: none;
    margin: 15px 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #687871;
}

/* Effet souligné sur les items de menu au survol */
nav ul li::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #687871;
    transition: width 0.3s ease;
}
nav ul li:hover::after {
    width: 100%;
}

/* ========================== */
/*  MAIN (CONTENU PRINCIPAL)  */
/* ========================== */
main {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 20px;
    background-color: #121815;    /* Sur la page Contact, vous pouvez si besoin changer la couleur :
       background-color: #1e2220; 
       Mais vous pouvez laisser le fond du body si souhaité. */
}

/* ========================== */
/*  TOP MENU (CATÉGORIES)     */
/* ========================== */
.top-menu {
    position: fixed;
    top: 10px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    z-index: 15;
}
.top-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s;
}
.top-menu a:hover {
    color: rgba(104, 120, 113, 0.8);
}


@media screen and (max-width: 768px) {
    .top-menu {
        position: fixed;
        top: 10px; /* Ajustez selon vos besoins */
        left: 50%;
        margin-right: -170px;
        transform: translateX(-50%);
        display: inline-flex;
        flex-wrap: nowrap;            /* Empêche le passage à la ligne */
        justify-content: center;
        padding: 5px;
        background-color: rgba(0, 0, 0, 0.8);
        border-radius: 8px;
        width: auto;
        max-width: 100%;             /* Ne dépasse pas la largeur du viewport */
        box-sizing: border-box;
        overflow: hidden;            /* Pas de défilement */
      }

    .top-menu a {
        white-space: nowrap;         /* Le texte reste sur une seule ligne */
        text-align: center;
        flex-shrink: 1;              /* Permet aux liens de se rétrécir si nécessaire */
        font-size: 0.75rem;          /* Réduit la taille de police pour que tout tienne */
      }
  }
/* ========================== */
/*  PROJET CONTAINER (GRID)   */
/* ========================== */
.projet-container {
    display: grid;  
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
}

.projet {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #121815;
    display: block;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.projet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 10px;
}

.projet:hover img {
    transform: scale(1.1);
    filter: brightness(0.5);
}

.projet .description {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.projet:hover .description {
    opacity: 1;
}

/* ================= */
/*  FOOTER FIXÉ EN BAS */
/* ================= */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0e1311;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
}

/* ========================= */
/*  FORMATS (PORTRAIT, ETC.)*/
/* ========================= */
.projet.portrait {
    grid-row: span 2;
    height: 600px;
}
.projet.landscape {
    grid-row: span 1;
    height: 290px;
}
.projet.square {
    grid-row: span 1;
    height: 290px;
}
.projet.portrait img {
    height: 600px;
}
.projet.landscape img {
    height: 290px;
}
.projet.square img {
    height: 290px;
}

/* ====================== */
/*  MEDIA QUERIES         */
/* ====================== */

/* 
   - Sur grand écran (>= 1281px) : menu ouvert en permanence (left: 0), pas de burger.
   - En-dessous (<= 1280px) : burger + nav caché par défaut + overlay. 
*/
@media screen and (min-width: 1601px) {
    nav {
        left: 0; /* Sur grand écran, le menu est fixé à gauche */
    }
    .burger-menu {
        display: none; /* Pas besoin de burger */
    }
    /* Pour la page "À propos" qui utilise #fullpage */
    #fullpage {
        margin-left: 0;
        width: 100%;
    }

}

@media screen and (max-width: 1600px) {
    .burger-menu {
        display: block; /* Le burger apparaît */
    }

    nav {
        left: -100%; /* caché par défaut */
    }

    nav .logo img:last-child
    {
      display: none;
    }    
    .detail-container {
        margin: 0 auto;     /* Si vous voulez centrer horizontalement */
        height: auto;       /* Au lieu de calc(100vh - 100px) si besoin */
    }

     /* On supprime la marge de 250px sur tous les éléments */
     main,
     .detail-container,
     #fullpage {
        margin-left: 0 !important; 
        width: 100% !important;
     }


      /* On veut que les boutons soient tout en bas, bord à bord */
    .navigation-buttons {
        position: static;
        bottom: 60px; 
        left: 0; 
        right: 0;
        z-index: 999;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .arc {
        display: none;
      }
}

/* 2 colonnes en-dessous de 1024px */
@media screen and (max-width: 1024px) {
    .projet-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-container {
        flex-direction: column;
        margin-left: 0 !important;
        width: 100% !important;
        padding: 10px;
      }
      /* Le conteneur d'image prend toute la largeur */
      .image-container {
        width: 100%;
        margin: 0 auto;
        padding: 0;
      }
      /* Le slider occupe toute la largeur et est limité à la largeur du viewport */
      #slider {
        position: relative;
        width: 100%;
        max-width: 100vw;
        height: auto; /* Laisser la hauteur s'adapter au contenu */
        margin-bottom: 0; /* Pour que le thumbnail soit directement collé */
      }
      /* Les thumbnails se placent juste en dessous du slider, sans décalage vertical */
      #thumbnails {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 10px; /* 10px d'espace en dessous si besoin */
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
      }
      /* Le bloc texte occupe toute la largeur et est centré horizontalement */
      .detail-content {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
      }
    /* On rend les boutons fixes, en bas de l’écran */
    .navigation-buttons {
        position: fixed;
        bottom: 60px;   /* Ajustez selon la hauteur de votre footer */
        left: 0;
        right: 0;
        z-index: 999;   /* Pour passer au-dessus du contenu */
        
        /* On répartit l’espace entre le bloc de gauche et celui de droite */
        display: flex;
        justify-content: space-between;
        align-items: center;

        /* Pour éviter que les blocs soient collés au bord */
        padding: 0 20px;  /* marge interne horizontale */
        box-sizing: border-box;
    }

    /* Si besoin, on ajuste le style interne */
    .navigation-buttons div {
        text-align: center;
        margin: 0; /* Retirez si vous aviez des marges */
    }


}

/* 1 colonne en-dessous de 768px (Mobile) */
@media screen and (max-width: 768px) {
    /* Main : pleine largeur sans marge latérale */
    main {
        padding: 0;
        margin-left: 0;
        width: 100%;
    }

    .projet-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
    .image-container img {
        max-height: 60vh;
    }

    /* Container de détail (page projet_detail) en colonne */
    .detail-container {
        flex-direction: column;
        margin: 0;
        width: 100%;
        padding: 0;
        background-color: #121815;
        padding-bottom: 80px; /* Ajustez cette valeur selon vos besoins */
    }
    /* Image container : occuper toute la largeur */
    .image-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    /* Slider : bord à bord sans border-radius */
    #slider {
        position: relative;
        width: 100%;
        max-width: 100vw;
        height: auto;
        margin: 0;
        border-radius: 0;
    }
    /* Pour les images affichées dans le slider */
    #slider img {
        width: 100%;
        border-radius: 0;
        object-fit: cover;
    }
    /* Thumbnails sous le slider */
    #thumbnails {
        width: 100%;
        margin-top: 10px;
        display: flex;
        justify-content: center;
        gap: 5px;
    }
    /* Bloc description : pleine largeur et centré */
    .detail-content {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        text-align: center;
        margin: 0 auto;
        margin-bottom: 40px;
    }
    /* Navigation boutons en flux normal pour éviter la position fixe */
    .navigation-buttons {
        position: static;
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 20px;
        box-sizing: border-box;
    }
    /* Ajustement des miniatures au besoin */
    .navigation-buttons a {
        margin-bottom: 10px;
    }
}


/* ===================== */
/*  A PROPOS (PAGE À PROPOS)  */
/* ===================== */

/* #fullpage occupe l’espace hors menu latéral */
#fullpage {
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* Sections en pleine hauteur, centrées */
.section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

/* SECTION 1 : Photo + Texte */
#section1 {
    background-color: #1e2220;
}
.profile-section {
    display: flex;
    align-items: center;
    gap: 6rem;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    margin-left: 150px;
}
.profil-photo {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2; /* Au-dessus des bulles */
}
.info-wrapper h2 {
    font-size: 2.5rem;
    margin: 0;
    color: #fff;
}
.info-wrapper p {
    font-size: 1.4rem;
    margin: 0;
    text-align: left;
}

/* SECTION 2 : Contenu "À propos" */
#section2 {
    background-color: #121815;
}
.apropos-description {
    max-width: 1500px;
    margin-top: -300px; /* Ajustez si besoin pour l'affichage */
    padding: 20px;
    text-align: justify;
    line-height: 1.6;
}

/* Lignes verticales */
.vertical-lines {
    position: absolute;
    left: 46.1%;
    transform: translateX(-50%);
    gap: 10rem;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1px;
}
.line {
    width: 1px;
    background-color: #7a9088;
}
.top-line {
    flex: 1;
}
.bottom-line {
    flex: 1;
}

/* MEDIA QUERIES pour la page "À propos" */
@media screen and (max-width: 1280px) {
    .profile-section {
        flex-direction: column; /* passe en colonne pour que la photo soit au-dessus */
        align-items: center;    /* Centre horizontalement tous les éléments */
        gap: 0.5rem;
        margin-left: 80px;
    }
    .profil-photo {
        margin-top: 60px;
        width: 350px;
        height: 350px;
        margin: 20px auto; /* Centre la photo avec margin auto */
    }
    .info-wrapper h2 {
        font-size: 2rem;
    }
    .info-wrapper p {
        font-size: 1.2rem;
    }
    .vertical-lines {
        left: 45%;
        gap: 5rem;
        display: none;
    }
    #fullpage {
        margin-left: 0;
        width: 100%;
    }
}
@media screen and (max-width: 768px) {
    .profile-section {
        flex-direction: column; /* passe en colonne pour que la photo soit au-dessus */
        margin-left: 0;
        text-align: center;
        gap: 0.5rem;
        margin-left: 80px;
        margin-top : 40px;
    }
    .profil-photo {
        
        width: 250px;
        height: 250px;
    }
    .info-wrapper{

        text-align : left;
        margin-left : -80px;
        margin-top : -200px;
        margin-bottom: 40px;

    }

    .info-wrapper p{

        margin-left : 60px;

    }
    .apropos-description{

        margin-top: 70px;

    }
    .info-wrapper h2 {
        font-size: 1.8rem;
    }
    .info-wrapper p {
        font-size: 1rem;
    }
    .vertical-lines {
        display: none;
    }
    #fullpage {
        margin-left: 0;
        width: 100%;
    }

}

/* ===================== */
/*  PAGE SERVICES        */
/* ===================== */

/* Liste des services */
.services-list {
    display: flex;
    flex-direction: column; 
    height: 100vh;      /* La liste occupe 100% de la hauteur de la fenêtre */
    margin: 0;
    padding: 0;
    margin-right : -20px;
  }
  
  /* Chaque service occupe 50% de la hauteur du parent => 2 services visibles,
     et le 3e est accessible en scrollant */
  .service-item {
    flex: 0 0 50%;          /* Chaque item prend 50% de .services-list */
    display: flex;          /* Mettez en ligne l’icône et le texte */
    flex-direction: row;
    align-items: center;    /* Aligne verticalement l’icône et le texte */
    box-sizing: border-box;
    margin: 0;
    margin-left : -130px;
  }

.service-item h3 {

    color: #687871 !important;

}

/* L’icône reste à gauche, le texte à droite */
.service-item img {
    max-width: 130px;
    width: 100%;
    height: auto;

    margin-right: -170px;     /* Espace entre l’image et le texte */
  }
  
  /* Le bloc texte */
  .service-text {
    display: flex;
    flex: 1;
    flex-direction: column; /* Empile titre + paragraphe */
    justify-content: center;
    /* Vous pouvez ajouter un margin-right si vous souhaitez un espace latéral supplémentaire */
    margin-left : 200px; 
    margin-right : 700px; 
    font-size : 1.2rem; 
    text-align: justify;
  }

  .service-text h3 {
    text-transform: uppercase;
    color: #687871;
  }

  .service-text p {
    color: #fff;
    line-height: 1.4;
  }

  @media screen and (max-width: 1600px) {
    /* Pour les services, passage en colonne et réajustement des marges inline */
    .services-list .service-item {
      flex-direction: column !important;
      align-items: center !important;
      padding: 10px !important;
      margin-left : -20px;
    }
    /* L'icône se redimensionne et ses marges sont réinitialisées */
    .services-list .service-item img {
      margin-left: 0 !important;
      margin-right: 0 !important;
      max-width: 100px !important;
      margin-top: 40px !important;
    }
    /* Le bloc texte reprend toute la largeur, les marges inline sont supprimées */
    .services-list .service-item div {
        margin: 0 auto !important; /* Centre le conteneur du texte */
        width: 100% !important;
        font-size: 1rem !important;
        text-align: center !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
        box-sizing: border-box;
        padding: 0 10px;
    }
    .fleche, .fleche2 {
        display: none !important;
      }
  }
  

  
/* Bouton plus grand */
.big-button {
    background-color: #687871; 
    color: #fff;
    font-size: 1.2rem; /* texte plus grand */
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.big-button:hover {
    background-color: rgba(104, 120, 113, 0.8);
}

/* ===================== */
/*  PAGE CONTACT         */
/* ===================== */
/* Centrage vertical/horizontal du formulaire */
.contact-form-container {
    position: static;          /* plus d'absolu */
    margin: 100px auto;         /* marge verticale, auto horizontal */
    max-width: 600px;          /* restez sur votre largeur max */
    width: 90%;                /* ou 100% si vous voulez */
    margin-bottom: 250px;
    box-sizing: border-box;
    padding: 20px;
    background-color: #0e1311;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.contact-form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}
.contact-form-container form {
    display: flex;
    flex-direction: column;
}
.contact-form-container label {
    margin-bottom: 5px;
    font-weight: 400;
}
.contact-form-container input,
.contact-form-container textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 14px;
    background-color: #222;
    color: #fff;
}
.contact-form-container input:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: #687871;
}
.contact-form-container button {
    padding: 10px;
    background-color: #687871;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.contact-form-container button:hover {
    background-color: rgba(104, 120, 113, 0.8);
    color: #fff;
}

/* ===================== */
/*  ADMIN (TUILES, ETC.) */
/* ===================== */
.admin-tiles {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}
.admin-tile {
    background-color: #222;
    color: #fff;
    text-decoration: none;
    width: 200px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    font-size: 1.2em;
    font-weight: bold;
}
.admin-tile:hover {
    background-color: #f39c12;
    color: #111;
    transform: translateY(-5px);
}

/* Menu Haut Portfolio */
.top-menu {
    position: fixed;
    top: 10px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    z-index: 15;
}
.top-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s;
}
.top-menu a:hover {
    color: rgba(104, 120, 113, 0.8);
}
.admin-content {
    text-align: center;
    margin: 50px auto;
    max-width: 800px;
}

/* Upload */
.upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -200px;
    gap: 20px;
}
.upload-form {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}
.upload-form img {
    max-width: 300px;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: none; /* Caché par défaut */
}
.upload-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
input[type="file"],
input[type="text"],
select,
button {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
}
button {
    background-color: #f39c12;
    color: #000;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}
button:hover {
    background-color: #fff;
    color: #111;
}
h2 {
    font-size: 2em;
    margin-bottom: 10px;
}
textarea {
    padding: 10px;
    max-width: 100%;
    line-height: 1.5;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: none;
    background-color: #222;
    color: #fff;
}

/* edit projets */
table {
    width: 90%;
    margin: 50px auto;
    border-collapse: collapse;
    background: #222;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #333;
}
th {
    background: #f39c12;
    color: #111;
}
tr:nth-child(even) {
    background-color: #333;
}
img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}
a.button {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f39c12;
    color: #111;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}
a.button:hover {
    background: #fff;
    color: #111;
}

/* edit single projet */
.edit-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    text-align: center;
}
.edit-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #f39c12;
}
label {
    display: block;
    margin-top: 10px;
    font-size: 1em;
}
input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #444;
    color: #fff;
}
button {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: #f39c12;
    color: #111;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
}
button:hover {
    background: #fff;
    color: #111;
}
input[type="file"],
input[type="text"],
select,
button {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
}

/* login */
.login-container {
    background-color: #111;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.login-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}
.login-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
}

.login-container button {
    padding: 10px;
    background-color: #f39c12;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
}

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

/* detail content */
.detail-container {
    margin-left: 250px; /* reste nécessaire pour décaler du menu latéral */
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: calc(100% - 250px);

    /* On enlève le padding à gauche et le gap pour "coller" l’image au menu */
    padding: 20px 20px 20px 0;
    gap: 0;

    position: relative;
    background-color: #121815;
}


.image-container.image-only {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1; /* Pour qu'il soit derrière #thumbnails */
    /* On enlève les marges auto qui centrent ou décalent l’image */
    margin: 0;
    height: auto;
    margin-left: 30px;
    margin-bottom: 30px;
    width: fit-content;
}


/* Pour les vidéos : le conteneur occupe toute la largeur */
.image-container.video-only {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1; /* Pour qu'il soit derrière #thumbnails */
    /* On enlève les marges auto qui centrent ou décalent l’image */
    margin: 0;
    height: auto;
    margin-left: 30px;
    margin-bottom: 30px;
}
  
.image-container img {
    display: block;
    width: auto;
    height: auto; 
    max-width: 100%;
    max-height: 80vh; /* ou 600px, selon ta préférence */
    border-radius: 10px;
    object-fit: contain;
}
.detail-content {
    margin: 0;
    margin-left: 10px;
    position: relative;
    flex: 1;
    color: #fff;
    padding: 10px; /* vous pouvez mettre 0 si vous voulez coller encore plus */
    border-radius: 5px;
    font-size: 1em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: nowrap;
}


.detail-content h2 {
    color: rgba(104, 120, 113);
}
.detail-container .description {
    flex: 1;
    text-align: left;
    font-size: 1.2em;
}
.navigation-buttons {
    position: fixed;
    bottom: 50px;
    left: 270px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
}
.navigation-buttons div {
    text-align: center;
}
.navigation-buttons a {
    text-decoration: none;
    color: rgba(104, 120, 113);
    transition: color 0.3s;
    font-size: 1em;
}
.navigation-buttons a:hover {
    color: rgba(135, 154, 146);
}
.navigation-buttons p {
    margin: 5px 0 0 0;
    color: #fff;
}

/* Pour le logo SVG */
svg {
    width: 100px;
    height: auto;
    stroke: black;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}
path {
    stroke-dasharray: 500;  
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 2s ease;
}
svg:hover path {
    stroke-dashoffset: 0;
}

/* Bloc des réseaux sociaux */
.social-links {
    margin-top: auto;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    padding-top: 20px;
}
.social-links a img {
    width: 25px;
    height: auto;
    display: block;
}



#thumbnails {
    position: fixed;
    top: calc(87vh + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    max-width: 50%; /* ou une valeur spécifique si besoin, par exemple max-width: 1200px; */
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 1000;
    pointer-events: auto;
  }
  
  #thumbnails img {
    width: 80px;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: opacity 0.3s, border 0.3s;
  }
  
  #thumbnails img:hover {
    opacity: 1;
    border: 2px solid #f39c12;
  }


.fleche {
  position: fixed;
  bottom: 50px; /* distance du bas */
  right: 20px;  /* distance de la droite */
  width: 30px;  /* ajustez selon vos besoins */
  height: auto;
  animation: bounce 2s infinite;
}

.fleche2 {
    position: fixed;
    bottom: 50px; /* distance du bas */
    right: 170px;  /* distance de la droite */
    width: 30px !important;  /* ajustez selon vos besoins */
    height: auto;
    animation: bounce 2s infinite;
  }

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}


.photo-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto; /* Centrer si besoin */
    margin-left : -50px;
    margin-right: 30px;
  }

/* Styles communs pour les arcs */
.arc {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%; /* Légèrement plus grand que la photo */
    height: 120%;
    transform: translate(-50%, -50%);
    z-index: 1;   
  }
  
  /* Arc 1 : rotation horaire */
  .arc1 {
    animation: rotateCW 20s linear infinite;
  }
  
  /* Arc 2 : rotation anti-horaire */
  .arc2 {
    animation: rotateCCW 20s linear infinite;
  }
  
  /* Rotation dans le sens horaire */
  @keyframes rotateCW {
    0% {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }
  
  /* Rotation dans le sens anti-horaire */
  @keyframes rotateCCW {
    0% {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
      transform: translate(-50%, -50%) rotate(-360deg);
    }
  }


/* ================================ */
/*     SCROLLBAR PERSONNALISÉE      */
/* ================================ */

/* Pour Chrome, Safari, Edge (Blink), Opera */
body::-webkit-scrollbar {
    width: 0px;              /* scrollbar cachée par défaut */
    transition: width 0.3s;
}

/* Quand la classe .scrolling est présente, on agrandit la scrollbar */
body.scrolling::-webkit-scrollbar {
    width: 12px; 
}

/* Style de la barre (thumb) */
body::-webkit-scrollbar-thumb {
    background-color: #7a9088;  
    border-radius: 20px;
    border: 3px solid #121815; 
    opacity: 0;  /* thumb invisible par défaut */
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quand le body a la classe .scrolling, on rend le thumb visible */
body.scrolling::-webkit-scrollbar-thumb {
    opacity: 1;
}

/* ======================================= */
/*  GESTION DE LA SCROLLBAR SUR FIREFOX    */
/* ======================================= */

/* Firefox ne gère pas ::-webkit-scrollbar ;
   on utilise scrollbar-width et scrollbar-color. */

/* Par défaut : scrollbar masquée */
html {
    scrollbar-width: none;        /* aucune scrollbar visible */
}

/* Quand la classe .scrolling est présente, on l'affiche en "thin" */
html.scrolling {
    scrollbar-width: thin;        /* barre fine */
    scrollbar-color: #7a9088 #121815; /* pouce + arrière-plan */
}



.fleche-motion {
    position: absolute;
    bottom: 20px;  /* Ajustez la distance du bas */
    right: 20px;   /* Ajustez la distance de la droite */
    width: 30px;   /* Ajustez la taille si besoin */
    height: auto;
    z-index: 10;   /* S'assurer qu'elle se superpose au contenu */
    transition: opacity 0.5s ease-in-out; /* Optionnel : pour un éventuel fade in/out */
  }

  .play-button {
    width: 50px;       /* Taille totale du bouton */
    height: 50px;
    display: inline-block;
    position: relative;
  }
  
  /* Le SVG occupe tout l’espace du conteneur */
  .play-button svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  
  /* Styles de base pour les arcs */
  .arcPlay {
    fill: none;
    stroke: #8bc34a;            /* Couleur verte */
    stroke-width: 2;            /* Épaisseur du trait */
    stroke-dasharray: 283;      /* ~ 2π * r, ici r=45 => 2 * π * 45 ≈ 283 */
    stroke-dashoffset: 70;      /* On laisse une portion non tracée pour l’effet "arc" */
    transform-origin: 50% 50%;  /* Centre du SVG */
  }
  
  /* Arc 1 : tourne dans le sens horaire */
  .arcPlay1 {
    stroke-dashoffset: 70;
    animation: spinCW 2.5s linear infinite;
  }
  
  /* Arc 2 : tourne dans le sens anti-horaire, 
     et on modifie un peu le dashoffset pour un effet différent */
  .arcPlay2 {
    stroke-dashoffset: 140;
    animation: spinCCW 2.5s linear infinite;
  }
  
  /* Icône "Play" au centre */
  .play-icon {
    fill: none;         /* pas de remplissage, juste le contour */
    stroke: #7a9088;    /* même couleur que les arcs */
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  
  /* Animations de rotation */
  @keyframes spinCW {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  @keyframes spinCCW {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
  }
  

/* Conteneur principal du slider : hauteur fixée à 87vh */
#slider {
    margin-bottom: 20px;
    position: relative;
}

#slider .video-js {
    width: 100% !important;
    height: 100% !important;
}


@media screen and (max-width: 1600px) {
    /* Forcer les images du slider à s'adapter à la largeur du conteneur */
    #slider img {
      width: 100% !important;
      height: auto !important;
      object-fit: contain;
    }

      /* Fixer le conteneur du bouton "Projet Précédent" en bas à gauche */
  .navigation-buttons > div:first-child {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 50% !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 10px !important;
    z-index: 100 !important;
    margin-bottom : 40px !important;
  }
  /* Fixer le conteneur du bouton "Projet Suivant" en bas à droite */
  .navigation-buttons > div:last-child {
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 50% !important;
    text-align: right !important;
    margin: 0 !important;
    padding: 10px !important;
    z-index: 100 !important;
    margin-bottom : 40px !important;
  }
  }



.arrow {
    font-size: 2rem;
    animation: bounce 2s infinite;
  }
  
  /* Animation de rebond */
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateX(-50%) translateY(0);
    }
    40% {
      transform: translateX(-50%) translateY(-10px);
    }
    60% {
      transform: translateX(-50%) translateY(-5px);
    }
  }



  /* ===================== */
/*  MEDIA QUERIES MOBILE (max-width: 768px)  */
/* ===================== */
/* Pour la page détail et en général sur mobile : disposition en colonne, images bord à bord et navigation statique */
@media screen and (max-width: 768px) {
    main {
        padding: 0;
        margin-left: 0;
        width: 100%;
    }
    .detail-container {
        flex-direction: column;
        margin: 0;
        width: 100%;
        padding: 0;
        background-color: #121815;
        padding-bottom: 80px; /* Ajustez cette valeur selon vos besoins */
    }
    .image-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #slider {
        position: relative;
        width: 100%;
        height: auto !important;
        max-width: 100vw;
        height: auto;
        margin: 0;
        border-radius: 0;
    }

    #slider video,
    #slider .plyr__video-embed
    {
        width: 100%;
        height: auto !important;
        object-fit: cover;
    }

    #slider img {
        display: block;
        width: 100% !important;
        height: auto;
    }
    #thumbnails {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        display: flex;
        justify-content: center;
        gap: 5px;
        flex-wrap: wrap;
        pointer-events: auto;
    }
    .detail-content {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        text-align: left;
        margin: 0 auto;
        margin-bottom: 40px;
    }
    .navigation-buttons {
        position: static;
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .navigation-buttons a {
        margin-bottom: 10px;
    }
}