@font-face {
  font-family: "ABC Maxi Round";
  src: url("fonts/ABCMaxiRound-Bold.otf") format("opentype");
  font-weight: bold;
}
@font-face {
  font-family: "ABC Maxi Round";
  src: url("fonts/ABCMaxiRound-Regular.otf") format("opentype");
  font-weight: normal;
}
@font-face {
  font-family: "ABC Maxi Round";
  src: url("fonts/ABCMaxiRound-Light.otf") format("opentype");
  font-weight: 300;
}
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Lato:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  color: #000;
  background: linear-gradient(to bottom, #f9f6ee 0%, #fff8db 100%);
}

/* Mobile */
@media (max-width: 768px) {
  html, body {
    overflow-y: auto;
  }
}

/* Tablette (optionnel si tu veux élargir) */
@media (max-width: 1024px) {
  html, body {
    overflow-y: auto;
  }
}

/* Canvas background (CableGL) */
#glcanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* UI Overlay */
.ui-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  padding: 40px 60px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

#bioBtn {
  margin-left: 20px;
}

.logo {
  font-family: "ABC Maxi Round", sans-serif;
  font-weight: regular;
  font-size: 25px;
  background: #ffd700;
  padding: 8px 16px;
  border-radius: 24px;
  cursor: pointer;
  text-decoration: none; 
  color: inherit; 
}

.lang-btn {
  display: inline-block;
  padding: 6px 14px;
  backdrop-filter: blur(6px);
  border: 1px solid #ffffff33;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #000000;
  text-decoration: none;
  transition: 0.25s ease;
}

.lang-btn:hover {
  transform: translateY(-2px);
}

.time {
  margin-right: 1200px;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

#radioWrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

#radioWrapper:hover .volume-wrapper {
  opacity: 1;
  pointer-events: auto;
}

#playBtn {
    width: 70px; 
    margin-right : 1100px;
    cursor: pointer;
}

#volumeSlider {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    width: 80px;
}

#playBtn:hover + #volumeSlider {
    display: block;
}

.volume-wrapper {
  position: absolute;
  left: 80px;      /* ajuste */
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

#playBtn:hover + .volume-wrapper {
  opacity: 1;
  pointer-events: auto;
}

#volumeSlider {
  width: 120px;
  cursor: pointer;
}

.shakeDiv {
  display: inline-block;
  transition: transform 0.05s linear;
}


.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #00ff00;
  border-radius: 50%;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
  }
}

/* Main content */
.main-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Home view and project view containers */
.home-view {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.project-view {
  width: 100%;
  height: calc(100vh - 180px); /* header + footer estimés */
  overflow: hidden; /* rien ne dépasse */
  padding-left: 0;
  padding-right: 120px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  display: none;
  position: relative;
}

.project-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column; /* si besoin */
}

/* Scroll central pour les images */
.project-content .info-center .center-scroll {
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Scroll droite pour texte */
.project-content .info-right .right-scroll {
  height: 100%;
  scroll-behavior: smooth;
}

.left-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.brand-name {
  font-family: "ABC Maxi Round", sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: bold;
  line-height: 1;
}

.role {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  margin-bottom: 12px;
}

.projects-btn {
    display: inline-block;
 width: fit-content;
  background-color: #ffee00;
  border-radius: 24px;
  box-shadow: rgb(255, 251, 0) 0 -25px 18px -14px inset,
              rgb(255, 251, 0) 0 1px 2px,
              rgb(255, 238, 0) 0 2px 4px,
              rgb(255, 251, 0) 0 4px 8px;
  color: #000;
  cursor: pointer;
  padding: 12px 24px;
  text-align: center;
  text-decoration: none;
  border: 0;
  font-size: 14px;
  letter-spacing: 0.5px;
  font-weight: bold; /* déjà bold, ne change pas */
  transition: box-shadow 0.3s ease, transform 0.3s ease; /* pas "all" */
}

.projects-btn:hover {
  box-shadow: rgb(255, 217, 0) 0 -25px 18px -14px inset,rgb(251, 255, 0) 0 1px 2px,rgb(255, 217, 0) 0 2px 4px,rgb(255, 251, 0) 0 4px 8px;
  transform: scale(1.05);
}

.center-section {
  flex: 1;
  text-align: left;
  margin-top: 50px;
}
.tagline {
  font-family: "lato", sans-serif;
  font-weight: 500;
  font-size: clamp(10px, 3vw, 24px);
  line-height: 1.4;
}


/* =========================
   BASE RESPONSIVE FIX
========================= */

.bio-view {
  width: 100%;
  min-height: calc(100vh - 180px);
  padding: 40px 60px;
  box-sizing: border-box;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* container flexible */
.bio-container {
  display: grid;
  grid-template-columns: 1fr 700px;
  gap: 60px;

  width: 100%;
  max-width: 1400px;

  align-items: stretch;
}


/* image responsive */
.bio-right {
  width: 100%;
  height: 100%;
}

.bio-right img {
  width: 100%;
  height: 100%;
  max-height: 900px;

  object-fit: cover;
  border-radius: 16px;
}

#bioBtn {
  transition: all 0.4s ease;
}


/* liquid glass responsive */
.bio-left {
  padding: clamp(30px, 4vw, 80px);

  border-radius: 24px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.15);

  box-shadow:
    0 8px 32px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(255,255,255,0.05);

  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* typo responsive */
.bio-left h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.bio-left p {
  font-size: clamp(16px, 1.4vw, 20px);
}

@media (max-width: 1100px) {

  .bio-container {
    grid-template-columns: 1fr 400px;
    gap: 40px;
  }

}

@media (max-width: 900px) {

  .bio-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .bio-right {
    order: -1;
  }

  .bio-right img {
    max-height: 500px;
  }

  .bio-view {
    padding: 40px 30px;
  }

}

@media (max-width: 600px) {

  .bio-view {
    padding: 20px;
  }

  .bio-left {
    padding: 25px;
  }

  .bio-right img {
    max-height: 350px;
  }

  .bio-home-btn {
    width: 100%;
    text-align: center;
  }

}


.hidden-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 24px;
}
.social-links a {
  text-decoration: none;
  color: #000;
  transition: opacity 0.3s ease;
}
.social-links a:hover {
  opacity: 0.6;
}

.cv-link a {
  background: #ffd700;
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  transition: background 0.3s ease;
}
.cv-link a:hover {
  background: #e6c200;
}

/* ---------- FULLSCREEN CENTERED BUBBLES ---------- */
.bubbles-container {
  position: fixed;
  top: 60%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 3;
  pointer-events: none;
}

.bubbles-container.active {
  opacity: 1;
}

/* Bulles interactives */
.bubble {
  position: absolute;
  visibility: visible;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: scale(0);
  animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
  cursor: pointer;
  transition: visibility 0s linear 0.6s;
}

.bubbles-container.active .bubble {
  visibility: visible;
  pointer-events: auto;
}

.bubble.inactive {
  visibility: hidden;
  pointer-events: none;
}

/* Positions par défaut (>900px) */
.bubble:nth-child(1) { top: calc(50% - 180px); left: calc(50% - 70px); }
.bubble:nth-child(2) { top: calc(50% - 60px);  left: calc(50% + 160px); }
.bubble:nth-child(3) { top: calc(50% + 150px); left: calc(50% - 250px); }
.bubble:nth-child(4) { top: calc(50% + 140px); left: calc(50% + 120px); }
.bubble:nth-child(5) { top: calc(50% - 60px);  left: calc(50% - 300px); }

.bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bubble:hover img {
  transform: scale(1.1);
}

/* ---------- ALIGNEMENT POUR PETITS ÉCRANS (<=900px) ---------- */
/* ---------- ALIGNEMENT POUR PETITS ÉCRANS (<=900px) ---------- */
@media (max-width: 900px) {
  .bubbles-container {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    top: 50%;
    transform: translateY(-80%);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    scroll-snap-type: x mandatory;
  }

  .bubbles-container {
    margin-left: -200px;
  }

  .bubbles-container .bubble {
    position: static;
    margin: 0 25px; /* espacement horizontal */
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  /* Masquer scrollbars */
  .bubbles-container::-webkit-scrollbar { display: none; }
  .bubbles-container { -ms-overflow-style: none; scrollbar-width: none; }
}



@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

/* smooth text transitions */
.fade-out {
  opacity: 0 !important;
  transform: translateY(10px) !important;
  transition: all 0.6s ease;
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.6s ease;
}

.brand-name.shrink {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: bold;
  line-height: 1.1;
}

.brand-name {
  transition: all 0.6s ease;
}

/* Modified info-overlay positioning: centered on page, no background, no overlay effect */
.info-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
}

.info-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.info-content {
  background: linear-gradient(180deg, #fffef8 0%, #fff 100%);
  border-radius: 12px;
  padding: 28px;
  max-width: 1200px;
  width: calc(100% - 80px);
  box-shadow: 0 18px 60px rgba(20,20,20,0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
}

.info-overlay.active .info-content {
  transform: translateY(0);
  opacity: 1;
}

/* Bouton fermer */
.close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-bottom: 12px;
}

.close-btn:hover {
  transform: scale(1.2);
}

/* Titres et paragraphes */
.info-content h2 {
  font-family: "ABC Maxi Round", sans-serif;
  font-size: 28px;
  margin-bottom: 8px;
}

.info-content p,
.info-content ul {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.lastP {
  margin-bottom: 50px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid principal */
.info-grid {
display: grid;
  grid-template-columns: 320px 1fr 280px;
  gap: 40px;
  height: 100%;
}


/* GAUCHE */
.info-left {
  font-family: "Lato", sans-serif;
  width: 350px; 
   max-height: 100%; /* ou height: 100%; selon ton layout */
  overflow-y: auto;  /* active le scroll vertical */
  padding-right: 1rem; /* pour éviter que le texte touche le bord */
  padding-bottom: 50px;
}
.project-title {
  font-family: "ABC Maxi Round", sans-serif;
  font-size: 36px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.project-title span { color: #000; }

.subheading {
  font-family: "ABC Maxi Round", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  margin-top: 14px;
  margin-bottom: 8px;
  color: #111;
}
.info-left p {
  font-size: 20px;
  line-height: 1.6;
  color: #222;
}


.info-left,
.info-right {

  padding: 40px;
  border-radius: 24px;

  background: rgba(255,255,255,0.08);

  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  border: 1px solid rgba(255,255,255,0.15);

  box-shadow:
    0 8px 32px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(255,255,255,0.05);

  transition: all 0.3s ease;
}

/* CENTRE - image */
.info-center {
  margin: 0 auto; 
  display: flex;
  align-items: flex-start;
  height: 100%;
  overflow: hidden; /* rien ne dépasse */
}

.center-scroll {
  height: 100%;
  overflow-y: auto; /* scroll interne */
  padding-right: 10px;
}

.center-card {
  width: 100%;
  max-width: 580px; /* tu agrandis ici chef */
  margin-bottom: 30px;
  border-radius: 16px;
}

.center-card {
  width: 100%;
  max-width: 800px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  background: #ffffff;
   height: auto;
}
.center-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.center-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}


/* DROITE */
.info-right {
  font-family: "Lato", sans-serif;
  margin-left: -125px;
  max-height: 100%;
  height: 100%;
  overflow-y: auto;
  padding-right: 10px;
}


.meta-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.counter { font-size: 20px; color: #111; }
.meta-item { font-size: 13px; color: #333; }

.phase-list {
  margin-top: 8px;
  margin-bottom: 14px;
  padding-left: 18px;
  list-style: disc;
  font-size: 14px;
  line-height: 1.5;
  color: #222;
}

.project-header {
  display: flex;
  align-items: center; /* chiffres et infos sur la même ligne */
  gap: 30px; /* espace entre nombres et infos */
  flex-direction: column;
  place-items: flex-start;
}

a.figma-btn {
    display: inline-flex;
}

.figma-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.figma-icon {
  width: 33px;
  height: 33px;
  filter: invert(1);
  flex-shrink: 0;
  opacity: 1 !important;
  visibility: visible !important;
}



.figma-btn {
  background-color: #000; /* bouton noir */
  color: #fff;             /* texte blanc */
  border: none;
  padding: 10px 16px;
  font-size: 18px;         /* même taille pour les deux */
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;            /* même hauteur pour les deux */
  line-height: 1;          /* alignement vertical précis */
  text-decoration: none;   /* supprime le soulignement pour le lien */
}


.nextProjectBtn {
  text-align : left;
  background-color: #000;
  color: #fff;    
  border: none;
  padding: 10px 16px;
  font-size: 18px; 
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;     
  line-height: 1;         
  text-decoration: none; 
}

.nextProjectBtn:hover,
.figma-btn:hover {
  background-color: #333;
  transform: translateX(4px); 
}

.nextProjectBtn:active,
.figma-btn:active {
  transform: translateX(2px) scale(0.97); 
}

.figma-btn {
  gap: 8px;
  font-weight: bold; 
}

.figma-logo {
  width: 28px; 
  height: 28px;
}


.numbers {
  display: flex;
  align-items: center;
  gap: 10px; 
}

.numbers p {
  margin: 0;
  font-size: 36px;
  line-height: 1;
}

.numbers button {
  padding: 4px 10px;
  font-size: 18px;
  cursor: pointer;
}

.info p {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.info .role,
.info .organisation,
.info .annee {
  font-weight: bold;
}

.project-header p strong {
  font-weight: bold;
}

/* pour les blocs Role / Organisation / Année */
.project-header p.role,
.project-header p.organisation,
.project-header p.annee {
  font-weight: bold;
  font-size: 16px; /* un peu plus petit que les chiffres */
}

/* Responsive */
@media (max-width: 900px) {

  .ui-container {
    padding: 0;
  }

  .home-view {
  align-items: center;
  margin-top: 300px;
  }

.status-dot {
  width: 20px;
  }

.tagline {
  font-weight: 800;
  text-align: center;
  font-size: 16px;
  margin-top: -40px;
  } 

.social-links {
  padding-bottom : 10px;
  }

.main-content {
    position: static;
    transform: none;
    align-items: center;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .left-section {
    align-items: center;
  }

  .logo {
    margin-right: 20px;
  }

  #time {
    margin-right: 10px;
  }

  .left-section {
    align-items: center;
  }
  .footer {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-content {
    width: calc(100% - 40px);
    padding: 20px;
  }

  .project-view {
    width: calc(100% - 40px);
    padding: 20px;
  }
}

@media (max-width: 1500px) {

.time{
margin-right: 0px;
}

}



@media (max-width: 1810px) {
 .center-scroll {
  padding-right: 150px;
  }

  .center-scroll {
  overflow-x: auto;
  -ms-overflow-style: none; /* IE + Edge */
  scrollbar-width: none; /* Firefox */
}

.center-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.info-right {
  overflow-x: auto;
  -ms-overflow-style: none; /* IE + Edge */
  scrollbar-width: none; /* Firefox */
}

.info-right::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

}


/* ================================
   AFFICHAGE DESKTOP / MOBILE
   ================================ */

/* Par défaut (DESKTOP) - Cache le mobile, affiche desktop */
.project-mobile {
  display: none;
}

.project-content {
  display: block;
}


@media (max-width: 1300px) and (min-width: 800px) {
  .pm-info {
    padding-right: 80px; /* ce que tu veux */
  }
}

@media (max-width: 1300px) and (min-width: 900px) {
  .info-center .center-card video {
    display: block !important; /* force l'affichage */
    max-width: 100%;
    height: auto;
  }
}


/* MOBILE (max-width: 900px) - Cache desktop, affiche mobile */
@media (max-width: 1300px) {
  
  .header {
    padding-top: 30px;
    padding-left: 40px;
}
  .project-view {
    padding: 1px;
  }

  .project-content {
    display: none !important;
  }

  .blockInfoTop {
    display: flex;
    flex-direction: row;
  }

  .project-mobile {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    justify-content: center;
  }

  /* TOP SECTION - Titre + Résumé + Close */
  .pm-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    max-width: 220px;
    margin-right: 20px;
  }

  .pm-top {
  padding: clamp(3px, 4vw, 20px);
  padding-right: 5;
  border-radius: 24px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.15);

  box-shadow:
    0 8px 32px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(255,255,255,0.05);

  display: flex;
  flex-direction: column;
  justify-content: center;
}

  .pm-left {
    text-align: left;
    flex: 1;
    margin-right: 20px;
  }

  .pm-title {
    font-family: "ABC Maxi Round", sans-serif;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.1;
  }

  .pm-title span {
    color: #000;
  }

  .pm-summary {
    font-weight: bold;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
    opacity: 0.85;
  }

  .pm-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* INFO SECTION - Compteur + Meta */
  .pm-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    font-weight: bold;
  }

    .pm-info {
  padding: clamp(3px, 4vw, 20px);
  padding-right: 5;
  border-radius: 24px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.15);

  box-shadow:
    0 8px 32px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(255,255,255,0.05);

  display: flex;
  flex-direction: column;
  justify-content: center;
}

  .pm-counter {
    font-family: "ABC Maxi Round", sans-serif;
    font-size: 24px;
    font-weight: bold;
  }

  .pm-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
  }

  .pm-meta p {
    font-family: "Lato", sans-serif;
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
  }

  .pm-meta strong {
    font-weight: 600;
  }

  /* SCROLL IMAGES HORIZONTAL */
  .pm-images-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
  }

  .pm-images-scroll img {
    height: auto;
    border-radius: 12px;
    scroll-snap-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  /* Masquer la scrollbar */
  .pm-images-scroll::-webkit-scrollbar {
    display: none;
  }

  .pm-images-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* BOTTOM SECTION */
  .pm-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.1);
  }

  .pm-desktop-msg {
    font-family: "Lato", sans-serif;
    font-size: 16px;
    color: #000000;
    max-width: 60%;
    line-height: 1.4;
    font-weight: bold;
    text-align: left;
    margin-right: 30px;
  }

  .pm-next {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
  }

  .pm-next:active {
    transform: scale(0.95);
  }
}

@media (min-width: 375px) {

  .pm-info {
    padding-bottom: 0;
  }

.pm-bottom {
  padding-top: 0;
}
}

@media (max-width: 725px) and (min-width: 376px) {

.pm-images-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
}

.pm-images-scroll img,
.pm-images-scroll video {
  flex: 0 0 auto; /* ne pas se redimensionner avec le parent */
  width: auto;
  height: 200px; /* ou max-height souhaitée */
  object-fit: contain; /* conserve le ratio de l’image */
}

}

/* Responsive projets */
@media (max-width: 900px) {

  .project-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
  }

  /* GRID -> devient colonne */
  .info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* ----------------------------- */
  /*        HEADER MOBILE          */
  /* ----------------------------- */

  .info-left {
    text-align: left;
    order: 1;
  }

  .info-left h1 {
    font-size: 28px;
    margin-bottom: 5px;
  }

  /* Croix alignée au titre */
  #closeProject {
    position: static;

    float: left;
  }

  .info-left .subheading {
    display: none; /* on supprime "Description" */
  }

  .info-left p {
    font-size: 14px;
    max-width: 90%;
    opacity: .8;
  }

  /* ----------------------------- */
  /*   COMPTEUR + INFOS À DROITE   */
  /* ----------------------------- */

  .info-right {
    order: 2;
  }

  .project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .numbers {
    font-size: 18px;
  }

  .info p {
    font-size: 14px !important;
  }

  /* Masquer tout le texte long */
  .phase-list,
  .info-right .subheading:nth-of-type(n+2),
  .info-right p strong:not(:first-child),
  .info-right br {
    display: none !important;
  }

  /* ----------------------------- */
  /*   IMAGES EN SCROLL HORIZONTAL */
  /* ----------------------------- */

  .info-center {
    order: 3;
    width: 100%;
  }

  .center-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .center-card {
    min-width: 85%;
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
  }

  .center-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* ----------------------------- */
  /*            FOOTER             */
  /* ----------------------------- */

  .mobile-footer-project {
    order: 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
  }

  .mobile-footer-project p {
    font-size: 12px;
    opacity: .7;
    max-width: 60%;
  }

  .nextProjectBtn {
    font-size: 14px;
    border: none;
    background: #000;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
  }
}


.hugi-loader-system {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    pointer-events: none;
}

.hugi-curtain {
    position: absolute;
    inset: 0;
    background-color: #ffee00;
    z-index: 1;
}

.hugi-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Le cadre invisible pour l'apparition initiale uniquement */
.hugi-mask {
    overflow: hidden; 
    padding: 20px; /* Évite de couper le rebond élastique */
}

.hugi-title {
    font-family: "ABC Maxi Round", sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: bold;
    color: #000;
    margin: 0;
    display: flex;
    letter-spacing: -0.02em;
}

.hugi-char {
    display: inline-block;
    will-change: transform, opacity;
    /* On commence en bas pour l'effet juicy */
    transform: translateY(150%);
}


.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* ratio 16:9 */
}

.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}



/* conteneur */
/* Container liquid glass */
.dropdown {
  border-radius: 16px;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.05rem 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 600px;
  margin: 1rem auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* + icon avant chaque summary */
.dropdown summary {
  position: relative;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #000000;
  list-style: none;
  padding-left: 1.5rem;
}

/* Remove default marker */
.dropdown summary::-webkit-details-marker {
  display: none;
}

/* Liquid glass hover effect */
.dropdown:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.02);
}



/* icône + */
.dropdown summary::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: #000000;
  line-height: 1.2rem;
}

/* tourne quand ouvert */
.dropdown[open] summary::before {
  transform: rotate(45deg);
}