/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style général */
body {
    cursor: crosshair;

    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-weight: 400; /* ou une autre valeur selon vos besoins */
    font-style: normal;
}

/* En-tête */
header {
    color: #000000;
    padding-top: 90px ;
    padding-bottom: 100px;
    text-align: left;
    padding-left: 90px ;

}

header h1 {
    margin-bottom: 0px;
    font-weight: 700;
    font-style: normal;
    font-size: 75px;


}
h3 {
    margin-bottom: 10px; 
    font-weight: 200; /* ou une autre valeur selon vos besoins */

}

h4 {
    font-family: "helvetica-neue-lt-pro", sans-serif;
    margin-bottom: 0px;
    font-weight: 700;
    font-style: normal;
    font-size: 50px;
    margin-right: 100px; 
}

h5 {
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-weight: 600; /* ou une autre valeur selon vos besoins */
    font-style: normal;
    margin: 5px;   /* Pour centrer le contenu sur la page */  
    margin-top: 15px; 
}
h6 {
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-weight: 400; /* ou une autre valeur selon vos besoins */
    font-style: normal;
    font-size: 26px;
    margin-top: 0px;
    margin-bottom: 30px;

}


.title::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: rgb(0, 0, 0);
    border-radius: 50%;
    margin-left: 8px;
    animation: blink 1s infinite;
  }
  
  /* Animation */
  @keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
  }

.intro {
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 800px;

}   
.project {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.project.visible {
    opacity: 1;
    transform: translateY(0);
}
a {
    text-decoration: none; /* Supprime le soulignement par défaut des liens */
    font-weight: normal;    /* Assure que le texte dans les liens n'est pas en gras */
    color: inherit;         /* Assure que la couleur du texte des liens est héritée */
    font-size: 15px;

}


p {
    padding: 0px;    /* Ajoutez un padding pour l'espace autour du texte */
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 16px;

    
}
.medium {
    font-weight: 500; /* Essayez des valeurs entre 400 et 500 */
}

.column.column-1 {
margin-left: -25px;
}

.column:nth-child(2) {
    max-width: 40ch;
}

h6 + p {
    margin-top: 15px; /* espace entre titre et première ligne */
  }
  
  h6:not(:first-of-type) {
    margin-top: 70px;
  }


  .column-1 p {
    margin-bottom: 16px;
  }

.column-2 p {
    margin-bottom: 16px;
  }

nav.menu {
    padding: 10px 20px; /* top/bottom 10px, left/right 20px */
    position: -webkit-sticky; /* Pour les anciens navigateurs */
    position: sticky;
    top: 0;
    background-color: #fff; /* Assurez-vous que l'arrière-plan est défini pour éviter les transparences */
    z-index: 1000; /* Pour que le menu soit au-dessus d'autres contenus */
}

nav.menu ul {
    list-style: none;
    display: flex;
}

nav.menu ul li {
    margin-left: 10px; /* Espacement entre les éléments du menu */
}

nav.menu ul li:first-child {
    margin-left: 0; /* Supprimer l'espacement à gauche du premier élément */
    margin-right: 86%;
}

nav.menu ul li:last-child {
    margin-right: 0; /* Supprimer l'espacement à droite du dernier élément */
}

nav.menu ul li:nth-child(2),
nav.menu ul li:nth-child(3) {
    margin-left: 10px; /* Aligner À propos et Contact à droite */
}

nav.menu ul li a {
    color: #000000;
    text-decoration: none;
}

nav.menu ul li a:hover {
    text-decoration: underline;
}

/* Media queries pour les petits écrans */
/* Media queries pour les petits écrans */
@media (max-width: 1500px) {
    nav.menu ul {
        justify-content: space-between; /* Répartir les éléments du menu également */
    }

    nav.menu ul li {
        margin-left: 5px; /* Réduire l'espacement entre les éléments du menu */
        margin-right: 5px; /* Ajouter un espacement à droite également */
    }

    nav.menu ul li:first-child {
        margin-right: auto; /* Pousser les autres éléments vers la droite */
    }
}
.second-menu {
    padding-top: 110px;
    display: flex;
    justify-content: center;
    gap: 100px; /* Espacement modéré entre les images */
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne suivante si nécessaire */
    padding-bottom: 0;
}

.second-menu .menu-item {
    flex: 1 1 30%; /* Chaque item prendra environ 30% de la largeur disponible */
    max-width: 180px; /* Limite la largeur maximale des éléments */
    margin: 10px; /* Espace entre les éléments */
    text-align: center; /* Centre le contenu */
}

.second-menu .menu-item a {
    display: flex;
    align-items: center; /* Centre verticalement l'image à l'intérieur du conteneur */
    justify-content: center;
    height: 150px; /* Ajuste la hauteur en fonction de vos besoins */
}

.second-menu img {
    width: auto;
    height: 130px;
}

.second-menu img:hover {
    transform: rotate(15deg); /* Ajuste la valeur pour la rotation désirée */
}

/* Media query pour les écrans de moins de 800px de large */
@media (max-width: 800px) {
    .second-menu {
        gap: 50px; /* Réduit l'espacement entre les éléments pour les écrans moyens */
    }

    .second-menu .menu-item {
        flex: 1 1 45%; /* Chaque item prendra environ 45% de la largeur disponible */
        max-width: 200px; /* Ajuste la limite de largeur maximale */
    }
}

/* Media query pour les écrans de moins de 600px de large */
@media (max-width: 600px) {
    .second-menu {
        gap: 20px; /* Réduit l'espacement entre les éléments pour les petits écrans */
    }

    .second-menu .menu-item {
        flex: 1 1 100%; /* Chaque item prendra 100% de la largeur disponible */
        max-width: none; /* Retire la limite de largeur maximale */
    }
}

.second-menu p {
    margin-top: 10px; /* Ajoute un espacement entre l'image et le texte */
    font-family: "aktiv-grotesk", sans-serif;
    font-weight: 400;
    font-style: normal;
} 

.reveal {
    opacity: 0;
    transition: opacity 0.7s ease;
  }
  
  .reveal.visible {
    opacity: 1;
  }
  
/* ========================= */
/*         GALERIE           */
/* ========================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px; /* un peu plus respirant */
    padding: 10px;
}

.project {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;

}

.project.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Lien image */
.project a {
    display: block;
    position: relative; 
}

.project img,
.project video {
    width: 100%;
    height: auto;
    display: block;
}


/* Image */
.project img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease-in-out;
}

/* Hover image alternative */
.project a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Hover images (IMPORTANT : .project maintenant) */


.gallery .project:nth-child(1) a::before {
    background-image: url('Couverture home.jpg');
}

.gallery .project:nth-child(2) a::before {
    background-image: url('Mirazur\ 5.jpg');
}

.gallery .project:nth-child(3) a::before {
    background-image: url('IMG_7771.jpg');
}

.gallery .project:nth-child(5) a::before {
    background-image: url('Scan\ 22bis.jpg');
}

.gallery .project:nth-child(7) a::before {
    background-image: url('20260120160812_00004.jpg');
}


.project a:hover::before {
    opacity: 1;
}


/* ========================= */
/*     TEXTE SOUS IMAGE      */
/* ========================= */

.project-info {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

/* Titre */
.project-title {
    font-size: 14px;
    font-weight: 400;
    opacity: 1;
    margin: 1px 0 0 0;
}

/* Sujet */
.project-subject {
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    opacity: 1;
    margin: 0;
}

/* Date */
.subject-page {
    margin-top: 40px;
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    opacity: 1;
  
}

/* Menu hamburger */
.menu-toggle {
    position: fixed;
    bottom: -10px;
    right: -10px;
    z-index: 1001;
}

.menu-toggle .bar { /* Taille de la barre de texte*/
    width: 200px;
    height: 70px;
    background-color: #d5c3ea;

    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 10px;

    transition: transform 0.3s ease-in-out;
}
.menu-toggle .bar .fleche {
    color: black;
    margin: 0; /* IMPORTANT */
}
.menu-toggle .bar .fleche:hover {
    color: #f1f1f1;
  
}

.menu-toggle .bar:first-child {
    margin-top: 10px;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

@keyframes wiggleRotate {
    0%   { transform: rotate(0deg); }
    20%  { transform: rotate(2deg); }
    40%  { transform: rotate(-2deg); }
    60%  { transform: rotate(1.5deg); }
    80%  { transform: rotate(-1.5deg); }
    100% { transform: rotate(0deg); }
  }

  .menu-toggle:hover .bar {
    animation: wiggleRotate 0.6s ease-in-out 1;
  }

/* Styles pour le menu latéral */
.sidenav {
    height: 50px;
    width: 0px;

    position: fixed; /* reste collé à l’écran */
    bottom: 0px;    /* distance du bas */
    right: 0px;     /* 👈 clé pour le mettre à droite */

    background-color: #d5c3ea;
    overflow-x: hidden;
    transition: 0.5s;

    padding: 10px;
    z-index: 1000; /* au-dessus du contenu */

}


.sidenav a:hover {
    color: #f1f1f1;
}

.sidenav .closeBtn {
    position: absolute;
    right: 5%;
    text-decoration: none;
    color: #000000;
    display: block;
    transition: 0.3s;
    position:absolute;
    font-size: 23px;
  
}

.sidenav.active {
    width: 500px; /* Largeur du menu lorsque ouvert */
    height: 40%; /* Full-height */
    z-index: 2000; /* Au-dessus des autres éléments */


}
.date-projet {
    margin: 5px; 
} 

.link {
    padding : 0;
    padding-bottom : 0;
    padding-left : 0;
    padding-right : 0;
    padding-top : 0;
    text-decoration: none;
    font-size: 16px;
    color: #000000;
    display: block;
    transition: 0.3s;
}

/* Styles pour le menu mobile (initiallement caché) */
.menu-mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent noir */
    display: none; /* Caché par défaut */
    z-index: 999; /* Assure que le menu est au-dessus de tout le contenu */
}

.menu-mobile.active {
    display: block; /* Affiche le menu lorsque .active est appliqué */
}

.menu-items {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.menu-items ul {
    list-style: none;
}

.menu-items ul li {
    margin-bottom: 10px;
}

.menu-items ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    display: block;
    padding: 15px 20px;
    background-color: #333;
    border-radius: 5px;

}

.menu-items ul li a:hover {
    background-color: #555;
}

.about-container {
    display: grid;
    grid-template-columns: 6fr 4fr; /* Définit des colonnes de largeurs différentes */
    gap: 20px; /* Espace entre les colonnes */
    padding: 20px;
    margin-left: 90px;
}

.about-container p {
    max-width: 570px;
}

.column {
    padding: 20px;
}
/* Media query pour rendre la mise en page responsive */
@media (max-width: 800px) {
    .about-container {
        grid-template-columns: 1fr; /* Change à une seule colonne sur petits écrans */
    }
}

.column-column-2 {
    padding-right: 60px;
}
/* Styles pour les boutons de navigation */
.navigation-buttons {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    margin-top: 150px;
    margin-bottom: 100px;

  
  }

.button {
    padding: 10px 20px;
    background-color: #ffffff; /* Couleur de fond du bouton */
    color: rgb(0, 0, 0); /* Couleur du texte */
    text-decoration: none;
    border-radius: 5px; /* Bordures arrondies */

    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-size: 100px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;

}

.button:hover {
    background-color: #ffffff; /* Couleur de fond du bouton au survol */
    text-decoration: underline;

}

#back-to-top {
    position: absolute;
    display: none;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    border-radius: 5px;
    text-decoration: none;
    z-index: 1000; /* Pour s'assurer qu'il est au-dessus des autres éléments */
  }
  
  #back-to-top:hover {
    color: #d5c3ea;;
  }


  
/* Sections */
section {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}
/* Reset CSS pour éviter tout conflit */
.editorial-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style général pour la page éditoriale */
.editorial-page {
    font-family: "aktiv-grotesk", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding: 20px;
}

.editorial-title {
    font-weight: 500;
    font-style: normal;
    margin-bottom: 20px;
    font-size: 36px;
}

.editorial-summary {
    font-size: 18px;
    margin-bottom: 40px;
}

.editorial-content {
    display: flex;
    justify-content: space-between;
}

.editorial-column {
    width: 48%;
}

.editorial-list {
    list-style-type: none;
}

.editorial-list li {
    margin-bottom: 20px;
}

.editorial-list a {
    font-size: 18px;
    color: #000;
    text-decoration: none;
    font-weight: 400;
}
.editorial-list a:hover {
    text-decoration-line:underline;

}
.editorial-list p {
    font-size: 18px;
    color: #000;
    margin-top: 0px;
    margin-bottom: 30px;
    font-weight: 400;
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding-right: 10px;
    padding-left: 10px;
  }
  
.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Image standard */
.item {
    grid-column: span 2;
    aspect-ratio: 1 / 1;
  }
  
  /* Grande image carrée */
  .item.large {
    grid-column: span 3 ;
    grid-row: span 1;
  }
  
  /* Image large horizontale */
  .item.wide {
    grid-column: span 3;
    aspect-ratio: 15 / 9;
    
  }

  .item.big {
    grid-column: span 6;
    aspect-ratio: 16 / 9;
}

  .item.wide.large {
    grid-column: span 4;
    aspect-ratio: 16 / 9;
    
  }
  .item.portrait {
    grid-column: span 2;
    aspect-ratio: 9 / 13;
  }
  
  .empty {
    background: transparent; /* ou une couleur si tu veux tester */
  }

  .item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  #page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transition: opacity 0.6s ease, backdrop-filter 0.6s ease;
  }
  
  #page-transition.hidden {
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: opacity 0.3s ease, visibility 0s linear 0.6s, backdrop-filter 0.6s ease;
  }
  footer {
    width: 100%;
    padding: 210px 90px 90px 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background-color: #ffffff;
}

footer p,
footer a {
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    margin: 0;
}

.footer-left {
    white-space: nowrap;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-right a:hover {
    text-decoration: underline;
}

.footer-sep {
    color: rgba(0, 0, 0, 0.35);
    font-size: 14px;
}

/* ========================= */
/*        RESPONSIVE         */
/* ========================= */

@media (max-width: 600px) {
    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        gap: 16px;
    }

    .footer-right {
        justify-content: flex-start;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    footer {
        padding: 28px 40px;
    }
}

/* 2 colonnes pour tablette / petite fenêtre */
@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================= */
/*   RESPONSIVE MOBILE       */
/*   (max-width: 480px)      */
/* ========================= */

@media (max-width: 480px) and (max-width: 768px)  {

    /* --- En-tête --- */
    header {
        padding-top: 40px;
        padding-bottom: 50px;
        padding-left: 20px;
    }

    header h1 {
        font-size: 36px;
    }

    h4 {
        font-size: 28px;
        margin-right: 20px;
    }

    h6 {
        font-size: 18px;
    }

    .intro {
        max-width: 100%;
        padding-right: 20px;
    }

    /* --- Navigation principale --- */
    nav.menu {
        padding: 8px 12px;
    }

    nav.menu ul {
        justify-content: space-between;
        align-items: center;
    }

    nav.menu ul li:first-child {
        margin-right: auto;
    }

    nav.menu ul li:nth-child(2),
    nav.menu ul li:nth-child(3) {
        margin-left: 14px;
    }

    nav.menu ul li a {
        font-size: 13px;
        white-space: nowrap;
    }
    /* --- Second menu --- */
    .second-menu {
        padding-top: 40px;
        gap: 20px;
    }

    /* --- Galerie --- */


        .gallery {
            grid-template-columns: 1fr !important;
            gap: 20px;
        }
    
        .gallery .project {
            width: 100% !important;
        }
    
        .grid {
            grid-template-columns: 1fr !important;
        }
    

        .empty {
            display: none;
        }
  

    /* --- Page éditoriale --- */
    .editorial-content {
        flex-direction: column;
    }

    .editorial-column {
        width: 100%;
    }

    .editorial-title {
        font-size: 24px;
    }

    .item,
    .item.large,
    .item.wide,
    .item.big,
    .item.wide.large,
    .item.portrait {
        grid-column: span 1 !important;
        aspect-ratio: unset;
    }
    /* --- À propos --- */
    .about-container {
        margin-left: 20px;
        padding: 10px;
    }

    .column.column-1 {
        margin-left: 0;
    }

    /* --- Menu latéral --- */
    .sidenav.active {
        width: 100%;
        height: 50%;
    }

    /* --- Boutons de navigation --- */
    .navigation-buttons {
        margin-top: 60px;
        margin-bottom: 50px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .button {
        font-size: 40px;
    }

    /* --- Footer --- */
    footer {
        padding: 80px 20px 40px 20px;
    }
}