/* -----------------------------
   POLICES
----------------------------- */
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Black.ttf') format('truetype');
  font-weight: 900;
}

@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-SemiBold.ttf') format('truetype');
  font-weight: 600;
}

@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Regular.ttf') format('truetype');
  font-weight: 400;
}

/* -----------------------------
   VARIABLES GLOBALES
----------------------------- */
:root {
  
  /*--color-accent : #db6a8f;*/ /*Octobre Rose*/
  --color-accent : #003059;
  --color-secondary : #ff6600;
  
  /* Largeurs de base */
  --content-width: 70%;
  --content-width-tablette: 90%;
  --content-width-mobile: 90%;


  /* Espacements */
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-xl: 6rem;
  --menu-offset: 5rem; /* espace sous le menu fixe */

  /* Typos */
  --font-regular: 400;
  --font-semibold: 600;
  --font-black: 900;
}

/* -----------------------------
   BASE
----------------------------- */
body {
  font-family: 'Geist', sans-serif;
  margin: 0;
  padding: 0;
  color: #000;
}

/* Classe générique pour centrer et limiter la largeur */
.container {
  width: var(--content-width);
  margin: 0 auto;
}

.section-spacing {
  margin-bottom: var(--space-xl);
}

.project-title,
.project-infos h2,
.footer {
  transition: color 0.4s ease, background-color 0.4s ease;
}

@media (pointer: fine) {
  .gallery-arrow {
    display: none !important;
  }
}

/* -----------------------------
CURSEUR PERSONNALISÉ 
----------------------------- */

body, * {
  cursor: none !important;
}

.cursor__ball {
  position: fixed;
  top: 0;
  left: 0;
  width: 200;
  height: 200;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor__ball svg {
  width: 100%;
  height: 100%;
}

.cursor-shape {
  fill: var(--project-color);
  transform-origin: center;
  transition:
    d 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

a, button {
  cursor: none !important;
}

/* -----------------------------
   MENU
----------------------------- */
.menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem; /* petit espace entre le nom et les liens */
  background: transparent;
  padding: 1rem 2rem;
  z-index: 1000;
  white-space: nowrap; /* empêche le retour à la ligne */
}

/* Partie gauche (Benjamin Genet) */
.menu-left {
  display: flex;
  align-items: center;
}

.menu .title {
  font-weight: 900;
  font-size: 2.2rem;
  margin: 0;
}

.menu .title a {
  text-decoration: none;
  color: inherit;
}

/* Partie droite (Projets / Studio en colonne) */
.menu-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

/* Liens du menu */
.menu-link {
  font-weight: 400;
  text-decoration: none;
  font-size: 1rem;
  color: inherit;
  transition: font-weight 0.25s ease, opacity 0.25s ease;
}

/* Hover et page active : gras, mais sans décaler */
.menu-link:hover,
.menu-link.active {
  font-weight: 900;
}

/* Astuce pour éviter le “bougé” au hover */
.menu-right {
  min-width: 4.5rem; /* réserve un espace fixe pour les liens */
}



/* -----------------------------
   GALLERY (PAGE ACCUEIL)
----------------------------- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-m);
  padding-top: 8rem; /* espace blanc avant la galerie */
  padding-inline: clamp(2rem, 10%, 4rem);
}

.project {
  position: relative;
  flex-shrink: 0;
}

.gallery img {
  height: clamp(100px, 30vw, 400px);
  width: auto;
  object-fit: cover;
  border-radius: 8px;
}

.project .color {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project:hover .color {
  opacity: 1;
}

/* -----------------------------
   CONTACT (PAGE ACCUEIL)
----------------------------- */

.index .project-contact {
  width: 80%;              /* ou 60% si tu veux plus étroit */
  max-width: 500px;        /* limite la largeur */
  margin: 4rem auto 6rem;  /* espace au-dessus et en dessous */
  text-align: center;      /* centré */
  z-index: 1;              /* assure qu’il est au-dessus si nécessaire */
  position: relative;      /* pour ne pas être sous la galerie */
}

/* -----------------------------
   PAGE PROJET 
----------------------------- */
.project-page {
  padding-top: var(--menu-offset);
  display: flex;
  flex-direction: column;
  align-items: center; /* centre tout horizontalement */
}

/* Image principale */
.project-image {
  width: var(--content-width); /* 60% */
  max-width: 100%;             /* ne dépassera jamais la largeur de l’écran */
  margin-bottom: var(--space-s);
}

.project-image img {
  width: 100%;   /* prend 100% du conteneur */
  height: auto;  /* conserve le ratio */
  display: block;
  border-radius: 8px;
}

/* Titre */
.project-title {
  font-weight: var(--font-black);
  font-size: 3rem;
  width: var(--content-width);
  margin: 0 auto var(--space-s) auto;
}

/* Bloc infos + texte */
.project-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* ← important */
  width: var(--content-width);
  margin: 0 auto var(--space-xl) auto;
  gap: var(--space-l);
}

/* Tableau d’infos */
.project-infos {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.project-infos h2 {
  font-weight: var(--font-semibold);
  font-size: 1rem;
  margin: 0;
}

.project-infos p {
  font-weight: var(--font-regular);
  font-size: 1rem;
  margin: 0 0 var(--space-s) 0;
  line-height: 1.4;
}

.project-infos a {
  display: inline-block;
  min-width: max-content;
  color: inherit;
  text-decoration: none;
  font-weight: 400; /* Regular */
  transition: font-weight 0.2s ease;
}

.project-infos a:hover {
  color: var(--project-color-bis)
}

/* Texte de projet */
.project-text {
  flex: 2;
}

.project-infos h2,
.project-infos p,
.project-text p {
  margin-top: 0;
  margin-bottom: 0rem; /* ajuste selon ce que tu veux */
}

.project-text p {
  font-weight: var(--font-regular);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: var(--space-s);
}

/* Galerie d’images */
.project-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-m);
  width: var(--content-width);
  padding-inline: clamp(2rem, 10%, 4rem);
  margin: 0 auto var(--space-xl) auto;
}

.project-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.project-gallery .project img {
  height: clamp(100px, 30vw, 400px); /* 6 de haut si tu continues avec 6/20 = 30% */
  width: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* -----------------------------
   INFOS
----------------------------- */

.infos-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem; /* espace entre les deux colonnes */
  margin: 6rem auto 6rem auto;  
  font-size: 1.2rem;
  line-height: 1.5;
  width: var(--content-width);
}

/* Colonne gauche */
.infos-left h2 {
  font-family: var(--font-secondary);
  font-weight: 900;
  font-size: 1.2rem;
  margin-top: 2.5rem;
  margin-bottom: 0rem;
  color : var(--color-accent)
}

.infos-left ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.infos-left li {
  margin-bottom: 0rem;
}

.infos-left p {
  margin-bottom: 1rem;
  max-width: 100%;
}

.infos-left a {
  color: inherit;
  text-decoration: none;
  font-weight: 400;
}

/* Colonne droite */
.infos-right {
  width: 100%;
  margin-left: auto;
  margin-right: 0;
}

.infos-right h1 {
  font-family: var(--font-secondary);
  font-weight: 900;
  font-size: 2.4rem;
  margin-top: 0rem;
  margin-bottom: 0rem;
  color : var(--color-accent)
}

.infos-right h2 {
  font-family: var(--font-secondary);
  font-weight: 900;
  font-size: 1rem;
  margin-top: 2rem;
  line-height: 1.2;
  color : var(--color-accent)
}

.infos-right ul {
  list-style: none;
  padding-left: 0;
  margin-top: -0.8rem;
  margin-bottom: 0rem;
}

.infos-right li {
  font-size: 1rem;
  line-height: 1.2;
}

/* Hover : léger agrandissement et semi-bold sans décaler */
.infos-right a:hover {
  color: #ff6600;
}

/* Supprimer marges inutiles */
.infos-right p,
.infos-right a {
  margin: 0;
}

/* Lien vers la page contact (style sobre, sans bouton) */
.infos-right .infos-mail {
  font-weight: 400;
  text-decoration: none;
  color: inherit;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: font-weight 0.2s ease;
}

.infos-right .infos-mail:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

.partenaires-list a {
  text-decoration: none;
  color: inherit;
  transition: font-weight 0.2s ease;
  cursor: pointer;
}

.partenaires-list a:hover {
  color: var(--color-secondary);
  text-decoration: none;
  text-underline-offset: 3px;
}

.italic {
  display: inline-block;
  transform: skewX(-12deg); /* tu peux ajuster -12 à -15 pour plus d’effet */
  font-style: normal; /* pour éviter les conflits */
}

/* -----------------------------
Vignette comme sur YOUTUBE
----------------------------- */

/* conteneur projet */
.gallery .project {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

/* Desktop / par défaut : hauteur contrôlée (ton comportement actuel) */
.gallery img.bichro,
.gallery img.color {
  height: clamp(100px, 30vw, 400px);
  width: auto;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* superposition de l'image couleur */
.gallery img.color {
  position: absolute;
  inset: 0;                /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.45s ease-in-out;
  pointer-events: none;
}

/* hover desktop */
.gallery .project:hover img.color {
  opacity: 1;
}

/* --- Mobile : une image pleine largeur (passe à width:100%) --- */
@media (max-width: 900px) {
  .gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 90%;
    margin: 0 auto;
    padding-inline: 5%;
  }

  .gallery .project {
    width: 100%;
    max-width: 500px;
  }

  /* les miniatures deviennent responsive (prennent la largeur du conteneur) */
  .gallery img.bichro {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .gallery img.color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity 0.45s ease-in-out;
  }

  /* pour les devices tactiles où :hover n'existe pas, tu peux activer l'opacité via une classe JS */
  .gallery .project.touched img.color {
    opacity: 1;
  }
}

/* -----------------------------
   GALLERY SLIDER
----------------------------- */

.project-gallery-slider {
  position: relative;
  width: 100%;
  height: 85vh;
  margin-bottom: 4rem;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gallery-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  height: 100%;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 2rem;
}

.gallery-scroll .project {
  flex: 0 0 auto;
  height: 100%;
  scroll-snap-align: center;
}

.gallery-scroll .project img {
  height: 100%;
  width: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* Flèches au-dessus du scroll */
.gallery-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}

.gallery-arrow.left {
  left: 0;
  background: transparent;
}

.gallery-arrow.right {
  right: 0;
  background: transparent;
}

/* -----------------------------
   CONTACT (PAGE PROJET)
----------------------------- */

/* Conteneur contact projet */
.project-contact {
  width: 60%; /* aligné avec l'image et le contenu principal */
  margin: -4rem 0rem 0rem 0rem; /* espace vertical */
  text-align: center; /* centrer le contenu */
  color : var(--color-accent);
}

/* Titre coloré */
.project-contact-title {
  font-weight: 900; /* Black, comme le titre du projet */
  font-size: 2rem;
  color: var(--project-color); /* couleur du projet définie via variable CSS */
  margin-bottom: -0.5rem;
}

/* Texte descriptif */
.project-contact-text {
  font-weight: 400; /* regular */
  font-size: 1.2rem;
  color: #222; /* texte noir */
  margin-bottom: 1rem;
}

/* Bouton */
.project-contact-button {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-weight: 600; /* semi-bold */
  font-size: 1.2rem;
  text-decoration: none;
  border: 2px solid var(--project-color);
  color: var(--project-color,);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Effet hover */
.project-contact-button:hover {
  background-color: var(--project-color,);
  color: #fff;
}

/* Pour le bouton contact sur index (quand pas de data-color) */
body:not([data-color]) .project-contact {
  width: 80%;             /* occupe plus de place */
  max-width: 400px;       /* limite la largeur */
  margin: 2rem auto;      /* espace vertical et centré */
  text-align: center;     /* centre le contenu */
}

body:not([data-color]) .project-contact-button {
  border: 2px solid var(--color-accent); /* couleur par défaut */
  color: var(--color-accent);            /* couleur texte par défaut */
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

body:not([data-color]) .project-contact-button:hover {
  background-color: var(--color-accent); /* couleur par défaut au hover */
  color: #fff;
}

/* -----------------------------
   FOOTER
----------------------------- */

/* Footer avec largeur réduite et coins arrondis */
.footer {
  width: 95%;               /* largeur réduite */
  margin: 2rem auto;        /* centré, marge haut/bas */
  padding: 2rem;            /* espace intérieur */
  border-radius: 16px;      /* coins arrondis */
  background-color: var(--color-accent);   /* couleur du footer */
  color: white;
  box-sizing: border-box;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  margin-right: 4rem;
}

.footer-col {
  width: 10rem; /* ou 10rem, adapte selon ton design */
}

/* Colonne gauche */
.footer-left h2 {
  font-weight: 600; /* Black */
  font-size: 1rem;
  margin: 1rem;
  margin-left: 4rem;
}

.footer-left a {
  color: inherit;         /* reprend la couleur du texte environnant */
  text-decoration: none;  /* supprime le soulignement */
}

/* Colonnes droites */
.footer-right {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col h2 {
  font-weight: 600; /* SemiBold */
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col p {
  font-weight: 400; /* Regular */
  font-size: 1rem;
  margin: 0.3rem 0;
}

.footer-col a {
  color: white;
  text-decoration: none;
}

.footer-col a:hover {
  font-weight: 600;
  text-align: center;

}

/* Footer bottom */
.footer-bottom {
  text-align: left;
  font-size: 1rem;
  padding-top: 1rem;
}

/* -----------------------------
   FORMULAIRE DE CONTACT
----------------------------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 90%;
  max-width: 500px;
  margin-top: 2rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  font-family: 'Geist', sans-serif;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #000;
}

.contact-form button {
  align-self: flex-start;
  background-color: #fff;
  color: var(--color-accent);
  border: 2px solid var(--project-color);
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--color-accent);
  color: #fff;
  font-weight: 600;
}

.contact-page .infos-right {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.6rem; /* espace entre chaque lien */
}

.contact-page .infos-right h2 {
  font-size: 2rem;
  margin-bottom: 0rem;
  margin-top: 1rem;
}

.contact-page .infos-right a {
  text-decoration: none;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
}

.contact-page .infos-right a:hover {
  color: var(--color-secondary);
}
/* -----------------------------
   POPUP DE CONFIRMATION CONTACT
----------------------------- */
.thankyou-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thankyou-popup.active {
  display: flex;
  opacity: 1;
}

.popup-content {
  background: #fff;
  padding: 2rem 3rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  max-width: 400px;
  width: 90%;
  animation: popupFade 0.3s ease forwards;
}

@keyframes popupFade {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #222;
  line-height: 1.4;
}

.popup-button {
  background-color: #fff;
  color: var(--color-accent, #333);
  border: 2px solid var(--color-accent, #333);
  border-radius: 6px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.popup-button:hover {
  background-color: var(--color-accent, #333);
  color: #fff;
  transform: scale(1.05);
}

/* Effet d’apparition */
@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* -----------------------------
   RESPONSIVE GLOBAL (TABLETTE)
----------------------------- */
@media (max-width: 1500px) {

  /* --- Conteneurs principaux --- */
  .container,
  .project-image,
  .project-title,
  .project-details,
  .project-gallery {
    width: var(--content-width-tablette);
  }

  /* On garde la mise en page en deux colonnes */
  .project-details {
    display: flex;
    flex-direction: row; /* ✅ garde les infos et texte côte à côte */
    gap: var(--space-m);
  }

  .menu .title {
    font-size: clamp(1.6rem, 4vw, 1.8rem);
  }

  /* --- Projet page --- */
  .project-title {
    font-size: clamp(2rem, 4vw, 4rem);
  }

  .project-infos h2 {
    font-size: clamp(0.8rem, 2vw, 1rem);
  }

  .project-infos p {
    font-size: clamp(0.8rem, 2vw, 1rem);
    line-height: 1.5;
  }

  .project-text p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 1.5;
  }

  .project-gallery img {
    width: clamp(150px, 30vw, 400px);
    height: auto;
  }

  /* --- Infos page --- */
  .infos-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    width: var(--content-width-tablette);
    margin: 4rem auto;
    align-items: start;
    gap: 2rem;
  }

  .infos-left, .infos-right {
    width : auto;
  }

  .infos-left h2,
  .infos-left li,
  .infos-left p,
  .infos-right a {
    font-size: clamp(1rem, 2vw, 1.2rem);
  }

  .infos-right h2 {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .infos-right {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: static;
    top: 8rem;
    width: 100%;
    text-align: left;
    margin : 0;
  }

  /* --- Menu links --- */
  .menu-link {
    font-size: clamp(0.9rem, 2.2vw, 1rem);
  }
}


/* -----------------------------
   RESPONSIVE MOBILE (SOUS 900px)
----------------------------- */
@media (max-width: 900px) {
  .project-details {
    flex-direction: column-reverse; /* ✅ le tableau passe au-dessus du texte */
    gap: 2rem;
  }

  .infos-container {
    display: flex;
    flex-direction: column;
    width: var(--content-width-mobile);
    margin: 2rem auto;
  }

  .infos-left {
    order: 1;
    width: 100%;
    margin-top: 2rem;
  }

  .infos-right {
    order: 2;
    width: 100%;
    position: static;
    margin-top: 0rem;
    text-align: left;
    display: block;
  }

  .infos-right h2 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 1rem;
  }

  .infos-right a {
    font-size: clamp(1rem, 4vw, 1.2rem);
    display: block;
    margin-bottom: 0.5rem;
    text-align: left;
    line-height: 1.2;
  }

  .gallery {
    width: 100%;
    max-width: 900px; /* limite la largeur si nécessaire */
    padding: 0 1rem;  /* padding interne sans dépasser */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    box-sizing: border-box; /* important ! */
}

  .project {
    width: 100%;            /* chaque projet prend toute la largeur */
    max-width: 900px;       /* limite la largeur des gros téléphones */
    position: relative;     /* garde les images color/bichro bien superposées */
  }

  .gallery img.bichro,
  .gallery img.color {
  height: auto;
  width: clamp(100px, 100vw, 900px);
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

  .project img {
    width: 100%;   /* prend 100% du conteneur */
    max-width: 100%;
    height: auto;  /* ratio conservé */
    display: block;
    border-radius: 8px;
  }

  .project .color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;   /* forcer à ne jamais dépasser */
    height: 100%;  /* idem */
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .project:hover .color {
    opacity: 1;
  }

  /* Image principale */
  .project-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Galerie d’images */
  .project-gallery .project img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }

    /* Galerie d'images */
  .project-gallery {
    width: 100%;             /* occupe toute la largeur */
    max-width: 100%;         /* ne dépasse jamais */
    padding: 0 0.5rem;       /* très petit padding horizontal pour éviter que ça touche les bords */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-sizing: border-box;
  }

  .project-page {
    width: 100%;
    max-width: 100%;
    padding: var(--menu-offset) 1rem 0 1rem; /* garde le padding top et un petit padding horizontal */
    box-sizing: border-box;
  }

  .project-page,
  .gallery,
  .project-gallery,
  .project-contact {
    box-sizing: border-box;
  }

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    display: flex;
    justify-content: space-between; /* titre à gauche / liens à droite */
    align-items: center;
    padding: 2rem 2rem;
    background: transparent; /* ou transparent si tu préfères */
    box-sizing: border-box;
  }

  .menu-left {
    order: 1;
  }

  .menu .title {
    font-size: 1.6rem;
  }

  .menu-right {
    order: 2;
    flex-direction: row;      /* ✅ côte à côte */
    align-items: center;
    gap: 1.2rem;              /* petit espace entre Projets / Infos */
    line-height: 1;
    min-width: auto;          /* supprime la largeur forcée du desktop */
  }

  .menu-link {
    font-size: 1rem;
  }

  .footer {
    width: 95%;          /* occupe toute la largeur possible */
    max-width: 95%;      /* ne dépasse jamais */
    padding: 2rem 2rem; /* espace à gauche et droite */
    margin: 0 auto;       /* centré */
    margin-top: 2rem;
    box-sizing: border-box; /* inclut le padding dans la largeur */
    border-radius: 16px;  /* coins arrondis, reste ok */
  }

  .footer-main {
    flex-direction: column; /* empile les colonnes */
    gap: 1.5rem;            /* espace entre les blocs */
  }

  .footer-col {
    width: 100%;           /* chaque colonne prend toute la largeur disponible */
    text-align: left;
  }

   .project-page {
    width: 100%;
    max-width: 100%;
    padding: var(--menu-offset) 0.5rem 0.5rem 0.5rem; /* padding top pour le menu + petits padding horizontaux */
    box-sizing: border-box;
  }

  .project-gallery-slider {
    overflow-x: visible;   /* plus de scroll horizontal */
    overflow-y: visible;
    height: auto;          /* pas de hauteur fixe */
    width: 95%;
  }

  .gallery-scroll {
    display: flex;
    flex-direction: column; /* on empile les images */
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    height: auto;
    min-width: unset;       /* retire la largeur forcée du mode horizontal */
    overflow: visible;
    scroll-snap-type: none; /* désactive le snap horizontal */
    overflow-x: hidden;
    overflow-y: visible;
    padding: 0;
  }

  .gallery-scroll .project {
    flex: 0 0 auto;
    width: 98%;           /* chaque image prend toute la largeur de l’écran */
    height: auto;
  }

  .gallery-scroll .project img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }

  .gallery-arrow {
    display: none;
  }
  
}

/* Cache le curseur personnalisé sur mobile et tablette */
@media (hover: none), (pointer: coarse) {
  .cursor__ball {
    display: none !important;
  }

  body, * {
    cursor: auto !important; /* réactive le curseur par défaut */
  }
}

