/* =========================================================
   MONADE — Project Detail Page
   Feuille de style corrigée (accessibilité, responsive, cohérence)
   RESPONSIVE REFAIT : mobile (<810px) / tablette (768–1023px)
   ========================================================= */
/* Supprime radicalement la ligne sous les liens sur Firefox, peu importe leur état */
@supports (-moz-appearance: none) {
  a, a:link, a:visited, a:hover, a:active, a:focus {
    text-decoration: none !important;
    text-decoration-line: none !important; /* Précision pour les versions récentes de Firefox */
    border-bottom: none !important;        /* Supprime les fausses lignes parfois créées par des bordures */
    box-shadow: none !important;           /* Élimine les lignes créées par des ombres portées */
  }
}
/* Bloque le soulignement sur Firefox même si un script l'injecte dans le HTML */
@supports (-moz-appearance: none) {
  a[style*="text-decoration"], a {
    text-decoration: none !important;
    text-decoration-line: none !important;
  }
}
/* Supprime les lignes virtuelles créées avant ou après le lien */
@supports (-moz-appearance: none) {
  a::before, a::after {
    display: none !important;
    content: none !important;
    height: 0 !important;
    width: 0 !important;
  }
}

:root {
  --accent: #3d4ef0;
  --bg: #000000;
  --fg: #ffffff;
  box-shadow: none !important;
  text-shadow: none !important;
}
*:-webkit-scrollbar{
  scrollbar-width: none;
}
* {
  box-shadow: none !important;
  text-shadow: none !important;
  text-decoration: none !important;

}
a {
  text-decoration: none !important;
  color: var(--fg);
  box-shadow: none !important;
  text-shadow: none !important;
}
span {
  text-decoration: none !important;
  color: var(--fg);
  box-shadow: none !important;
  text-shadow: none !important;
}






@font-face {
  font-family: 'Virginia';
  src: url('ressources/typo/virginia/Virginia-6nzY.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Host Grotesk';
  src: url('ressources/typo/Host_Grotesk/static/HostGrotesk-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.7) transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Host Grotesk', Arial, sans-serif;

  overflow: hidden;
}

/* Uniformisation des marges par défaut */
h1,
h2,
h3,
p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.main {
  margin: 0;
  position: static;
  display: grid;
  grid-template-areas: "one two";
  width: 100%;
  height: 100vh;
  /*background: url('ressources/content/test-bg.jpg');*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: black;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow: hidden;
}

@media (min-width: 768px) {
  .main {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Navigation globale ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6vh;
  min-height: 48px;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Virginia', serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
  align-items: baseline;
}

.nav-links li a {
  font-family: 'Host Grotesk', sans-serif;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #fff;
  filter: blur(0);
}

.nav-links li a.active {
  border-bottom-color: var(--accent);
}

.nav-links:hover li a:not(:hover) {
  filter: blur(2px);
  opacity: 0.5;
}
.nav-links:hover li .side-nav-link:not(:hover) {
  filter: blur(2px);
  opacity: 0.0;
}
/* ===== Boutons PREV/NEXT projet ===== */
/* (voir .works-nav-group / .side-nav-link plus bas — désormais dans la nav) */

/* ===== Bloc "ABOUT" latéral ===== */
.nav-text {
  margin-top: 6vh;
  height: fit-content;
  color: var(--fg);
  border-bottom-right-radius: var(--radius-md);
  display: grid;
  grid-template-areas: "one two";
  position: absolute;
  transition: width 0.4s ease, max-height 0.4s ease, border-radius 0.4s ease;
  
  overflow-x: hidden;
  overflow-y: clip;
}

.nav-text:hover,
.nav-text.active,
.nav-text:focus-within {
  opacity: 1;
  border-top-right-radius: 0;
}

.text-content {
  text-wrap: wrap;
  word-wrap: break-word;
  scrollbar-width: thin;
  margin-top: 73vh;
  margin-left: -2vw;
}

.nav-text:hover #about,
.nav-text.active #about {
  background-color: rgba(150, 150, 150, 0.0);
}

#about {
  text-orientation: upright;
  writing-mode: vertical-lr;
  height: min-content;
  font-size: clamp(0.85rem, 2vh, 1.1rem);
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  margin-top: 16vh;
  position: relative;
  cursor: pointer;
  transition: background-color 0.4s ease;
  display: flex;
  padding: 0.5vw;
}

.text-zone {
  text-align: left;
  
  transition: max-height 0.4s ease;
  position: fixed;
  
  margin-left: 1vw;
  z-index: 0;
  scrollbar-width: thin;
  overflow-y: auto;
  padding-bottom: 0;
  white-space: wrap;
 
  width: fit-content;
  max-height: 0;
}
.title {
  z-index: 10;
  pointer-events: none;
  backdrop-filter: blur(20px);
  padding-right: 2vw;
  letter-spacing: 10px;
}
.title h1{
  font-family: 'Virginia', Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--fg);
  margin: 0;
  padding: 1vw;
  width: 100%;
  font-size: clamp(1.4rem, 6vw, 2rem);
}
.text {
  position: relative;
  
  min-height: fit-content;
  max-height: 48vw;
  min-width: 0vw;
  max-width: fit-content;
  overflow: hidden;
  transition: all 0.3s ease;
  font-family: 'Host Grotesk', Arial, sans-serif;
  backdrop-filter: blur(20px);
  padding: 0vw;
  margin-left: 0vw;
  max-width: 0vw;
  padding-right: 0vw !important;
}

.nav-text:hover .text {
  padding: 2vw;
  max-width: 80vw;
  margin-left: 0;
  padding-right: 2vw !important;
}

.zone:hover .text,
.zone.active .text,
.zone:focus-within .text {
  overflow: auto;
  min-height: fit-content;
  max-height: 100%;
  padding:3vw;
  margin-top: 6vh;
}

.text-content h1 {
  
  overflow-wrap: break-word;
  word-break: normal;
  transition: font-size 0.4s ease;
  backdrop-filter: blur(5.4px);
}

.nav-text:hover .text-zone,
.nav-text.active .text-zone {
 
  width: fit-content;
  max-height: 60vh;
}

.nav-text .text-zone {

  position: fixed;
  top: 13vh;
}

.text-content:hover .text-zone{
  height: fit-content;
}

.nav-text:hover .zone,
.nav-text.active .zone {
  margin-top: 0;
  transition: margin-top 0.4s ease;
}

.text-zone .zone h1 {
  font-family: 'Host Grotesk', Arial, sans-serif;
  font-weight: 300;
  font-size: medium;
  transition: color 0.3s ease;
  padding: 1.0vw;
  background-color: rgba(255, 255, 255, 0.2);
}

.text-zone .zone:hover h1,
.text-zone .zone.active h1 {
  display: none;
}

p {
  font-size: clamp(0.95rem, 1vw, 1.25rem);
  font-family: 'Host Grotesk', Arial, sans-serif;
  line-break: auto;
  white-space: collapse;
  white-space: wrap;
  min-width: 63vw;
  max-width: 63vw;
  padding: 2vw;
}

/* ===== Zone image / vidéo principale ===== */
.content {
  display: grid;
  grid-template-areas: "content";
  min-height: 100%;
  color: rgba(255, 255, 255, 0);
  background-color: rgba(0, 0, 0, 0);
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: hidden;
  min-width: 100vw;
  max-width: 100vw;
}

#aaah {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  min-height: 100%;
  width: 100%;
  height: 100%;
  color: var(--fg);
  background: transparent;
  scrollbar-width: none;
  scrollbar-color: var(--accent) transparent;
  -ms-overflow-style: none;
  border: 1px solid transparent;
  transition: all 0.5s ease-in-out;
  overflow-x: scroll;
  overflow-y: clip;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  -webkit-scrollbar: none !important;
  scroll-snap-align: start;
}
#aaah:-webkit-scrollbar{
  scrollbar-width: none;
}
#date{
  font-family: 'Host Grotesk', Arial, sans-serif;
  font-size: clamp(0.5rem, 0.7vw, 1.25rem);
}

.img {
  
  margin: 0;
  height: 100%;
  display: flex;
  color: var(--fg);
  background: transparent;
  scrollbar-width: auto;
  scrollbar-color: rgba(255, 255, 255, 0) transparent;
  flex-wrap: wrap;
  flex-direction: column;
  -ms-overflow-style: none;
  transition: all 0.5s ease-in-out;
  overflow-x: scroll;
  overflow-y: clip;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-snap-align: start;
}

.img-content {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.img #appear {
  margin: 0;
  padding: 0;
  border-left: 1px solid #000000;
  border-right: 1px solid #000000;
  min-width: 100%;
  min-height: 48.85vh;
  max-height: 100vh;
  object-fit: contain;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.img #videoappear {
  min-width: 50%;
  max-width: 100%;
  max-height: 90%;
  min-height: 10%;
  object-fit: contain;
  margin: 0;
}

#noappear {
  height: 0;
  width: 0;
  padding: 0;
  margin: 0;
  display: none;
}

.yt-video {
  margin: 10px;
  max-height: 100%;
  min-height: 50vh;
  width: 95vw;
  z-index: 20;
  border: 0;
}

.in {
  margin: 0;
  
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  scroll-snap-align: start;
  justify-content: center;
  justify-items: center;
  justify-self: center;
}

iframe {
  max-height: 100%;
  min-height: 100%;
  max-width: 100%;
  min-width: 100%;
}

/* ===== Titre + date du projet ===== */

.project_bandeau {
  display: flex;
  flex-direction: column;
}

.nav-text .name {
  line-height: normal;
  font-weight: normal;
  font-size: clamp(1.4rem, 6vw, 2rem);
}

h2 {
  font-family: 'Virginia', Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--fg);
  margin: 0;
  padding: 0;
}

/* ===== Zones de texte ===== */
.zone,
.spec {
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow: hidden;
  border-top: 1px solid var(--fg);

  z-index: 0;
  min-height: fit-content;
  max-height: 70vh;
  display: flex;

  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
  position: static;
  background-color: rgba(0, 0, 0, 0);

  margin-top: 1.1vh;
}

.spec:hover,
.zone:hover,
.spec.active,
.zone.active {

}
.title h1, .title .name {
	white-space: pre-line;
	writing-mode: horizontal-tb;
	word-break: normal;
	padding: 1.7vh;
	margin-left: 1vw;
	background-color: rgba(255,255,255, 0);
	letter-spacing: 10.7px;
  font-size: xxx-large;
  text-transform: uppercase;
}
.info {
  display: grid;
  grid-template-areas: "content content";
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: fit-content;
  max-height: 50vh;
  width: 90%;
}

.info .zone:hover,
.info .zone.active {
  border: none;
  margin-left: 1vw;
  min-height: fit-content;
  max-height: 100vh;
}

.info .spec .text {
  border: none;
  margin-left: 1vw;
  min-height: fit-content;
  max-height: fit-content;
}

.zone h2 {
  font-size: clamp(0.95rem, 1.5vw, 1.3rem);
  padding-left: 2vh;
  top: 0;
  font-family: 'Host Grotesk', Arial, "Helvetica Neue", Helvetica, sans-serif;
  z-index: 10;
  isolation: isolate;
  will-change: transform;
  margin: 0;
}

.spec h3 {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  margin: 0;
  padding: 1vh 1vw 0;
  font-family: 'Host Grotesk', Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--fg);
  z-index: 10;
  isolation: isolate;
}

.zone p {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  
  overflow: clip;
  height: auto;
  transition: all 0.6s ease-in-out;
  
  max-width: 0vw;
}

.zone:hover p,
.zone.active p {
  max-width: 54vw;
  margin-top: 0;
  overflow: clip;
}

.name-info {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  margin: 0;
  height: min-content;
  padding: 0;
  font-family: 'Virginia', Arial, "Helvetica Neue", Helvetica, sans-serif;
  backdrop-filter: blur(30px);
  position: -webkit-sticky;
  justify-content: baseline;
  color: var(--fg);
  z-index: 10;
  isolation: isolate;
  will-change: transform;
}

/* ===== Boutons PREV/NEXT image ===== */
.image-controls {
  position: fixed;
  bottom: 0;
  right: 15px;
  z-index: 10000;
  display: flex;
  
  pointer-events: auto;
  width: 100%;
  justify-content: center;
}

.img-nav-btn {
  font-family: 'Host Grotesk', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.0);
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.img-nav-btn:hover,
.img-nav-btn:focus-visible {
  background: rgba(255, 255, 255, 0.2);
 
  color: #fff;
}

/* ===== Mega-dropdown "WORKS" (nav principale) ===== */
.nav-item.has-mega {
  position: relative;
  list-style: none;
  /* Étire le <li> sur toute la hauteur du header : le survol reste continu
     jusqu'au bord bas du header, sans "trou" avant d'atteindre le panneau. */
  height: 6vh;
  min-height: 48px;
  display: flex;
  align-items: center;
}


.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 100002;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}



/* Le lien reste stylé comme les autres items de nav-links */
#works-mega-trigger {
  position: relative;
}

/* petit chevron pour signaler le sous-menu */
#works-mega-trigger::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-item.has-mega:hover #works-mega-trigger::after,
.nav-item.has-mega.active #works-mega-trigger::after,
.nav-item.has-mega:focus-within #works-mega-trigger::after {
  transform: translateY(0) rotate(225deg);
  opacity: 1;
}

/* ── PREV/NEXT project : flanquent "works", révélés au survol ──
   - previous : position absolue, tucked sous "works" (marge négative → positive),
     ne perturbe pas la mise en page (rien à décaler à gauche).
   - next : reste DANS le flux, pour que son apparition pousse
     "biography"/"contact" — mais seulement quand il s'affiche réellement
     (masqué en bout de liste via .is-hidden = display:none, donc aucune
     poussée dans ce cas). */
.works-nav-group {
  position: relative;
  display: flex;
  align-items: center;
}
#works-mega:hover #works-mega-trigger{

  filter: blur(0px);


}
.side-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-family: 'Host Grotesk', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: margin 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease, color 0.3s ease;
}

.side-nav-link:hover,
.side-nav-link:focus-visible {
  color: #fff;
}

.side-nav-arrow {
  font-size: 0.9rem;
  line-height: 1;
}



.nav-item.has-mega:hover .side-nav-link.prev,
.nav-item.has-mega.active .side-nav-link.prev,
.nav-item.has-mega:focus-within .side-nav-link.prev {
  margin-right: 14px;
  opacity: 1;
  pointer-events: auto;
}

/* next : dans le flux — sa largeur pousse biography/contact quand il apparaît */
.side-nav-link.next {
  overflow: hidden;
  max-width: 0;
  margin-left: 0;
}

.nav-item.has-mega:hover .side-nav-link.next,
.nav-item.has-mega.active .side-nav-link.next,
.nav-item.has-mega:focus-within .side-nav-link.next {
  max-width: 120px;
  margin-left: 14px;
  opacity: 1;
  pointer-events: auto;
}

/* Pas de projet précédent/suivant : le bouton ne doit jamais apparaître
   (ni pousser "biography"/"contact" dans le cas de next), l'utilisateur
   passe par "works" pour choisir un autre projet. */
.side-nav-link.is-hidden {
  display: none !important;
}

.mega-dropdown {
  display: none;
  position: fixed;
  /* left/top/min-width sont calculés et posés en inline-style par
     script-projet.js (alignés sur le lien "works"), car ce panneau est
     désormais un sibling de <nav>, plus un descendant. */
  top: 6vh;
  left: 4%;
  /* Environ la taille du lien "works" : un panneau compact, pas plein écran */
  width: max-content;
  
  max-width: 280px;
  background: transparent;
  
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  box-sizing: border-box;
  flex-direction: column;
  max-height: 70vh;
}

.mega-dropdown.is-open {
  display: flex;
}




/* ── Sélecteur BY : regroupement modulable (section/domain/type/tool/technique/mode) ── */
.mega-dropdown__by {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(30px);
  background-color: rgba(0, 0, 0, 0.6);
}

.mega-dropdown__by button {
  font-family: 'Host Grotesk', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  padding: 3px 7px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mega-dropdown__by button:hover,
.mega-dropdown__by button:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.mega-dropdown__by button.active {
  color: #000;
  background-color: var(--accent);
  border-color: var(--accent);
}

/* ── Liste verticale ── */
.mega-dropdown__list {
  overflow-y: auto;
  
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.mega-dropdown__list::-webkit-scrollbar {
  width: 4px;
}

.mega-dropdown__list::-webkit-scrollbar-track {
  background: transparent;
}

.mega-dropdown__list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
}

.mega-group {
  display: flex;
  flex-direction: column;
}

.mega-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px 4px;
  position: sticky;
  top: 0;
  background-color: rgba(0,0,0,0.4);
  backdrop-filter: blur(30px);
  z-index: 100000;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-group-name {
  font-family: 'Host Grotesk', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
}

.mega-group-meta {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.mega-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  border-left: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease, border-left-color 0.2s ease;
  background-color: rgba(0, 0, 0, 0.6);
}

.mega-link:hover,
.mega-link:focus-visible {
  background-color: rgba(0, 0, 0, 0.08);
  color: #fff;
  padding-left: 16px;
  border-left-color: var(--accent);
}

.mega-link.current {
  color: #fff;
  font-weight: bold;
  border-left-color: var(--accent);
  background-color: rgba(9, 35, 235, 0.4);
}

.mega-link-name {
  overflow-wrap: anywhere;
}

.mega-link-tag {
  flex-shrink: 0;
  font-size: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  padding: 1px 5px;
}

.mega-dropdown__empty {
  padding: 14px 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

@media screen and (max-width: 810px) {
  .mega-dropdown {
    position: fixed;
    top: 6vh;
    left: 0;
    width: 100%;
    max-width: none;
    max-height: 80dvh;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* ===== Éléments hérités (home / links / nav) ===== */
.links {
  display: grid;
  grid-template-areas: "content content";
  grid-template-columns: 50% 50%;
  text-align: center;
  color: #000;
  width: 100%;
  height: 100%;
  margin: 0;
  gap: 0.5vh;
  z-index: 10;
}

.home {
  display: grid;
  grid-template-areas: "content";
  background-color: rgba(255, 255, 255, 0);
  margin: 0;
  width: 100%;
  height: 100%;
  border-top-right-radius: var(--radius-md);
  color: #000000;
  transition: border-radius 0.6s ease;
  cursor: pointer;
  z-index: 1;
}

.home:hover {
  border-top-right-radius: 0;
}

.nav {
  position: fixed;
  bottom: 0;
  width: min-content;
  border-radius: 0;
  grid-template-areas: "content content content";
  height: fit-content;
  right: 0;
  margin-right: 6vw;
}


.blur{
  backdrop-filter: blur(10px);
}
/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ----- Mobile (< 810px) ----- */
@media screen and (max-width: 810px) {
  #about {
    height: 45vh;
    align-self: auto;
    backdrop-filter: blur(50px);
    margin-top: 0;
    padding-top: 40vh;
    background-color: rgba(0, 0, 0, 0.3);
  }

  .nav-text:hover #about, .nav-text.active #about {
  background-color: rgba(0, 0, 0, 0.2);
}

  .nav-text:hover #about, .nav-text:active #about, .nav-text:focus-within #about {
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.3);
  }
  /* Grille en colonne unique : la sidebar ABOUT est en overlay absolu */
  .main {
    grid-template-columns: 1fr;
    height: 100dvh;
    /* corrige le 100vh sous la barre d'adresse mobile */
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links li a {
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 8px 4px;
  }
  .nav-links {
    position: fixed;
    top: 6vh;
    left: 0;
    width: 100%;
    height: calc(100vh - 6vh);
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.5rem;
    padding: 10px 20px;
  }

  /* ----- PREV/NEXT à côté de "works" : compacts sur mobile ----- */
  .side-nav-link {
    font-size: 0.55rem;
  }

  .side-nav-link.prev {
    max-width: 22vw;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: -22vw;
  }

  .side-nav-link.next {
    max-width: 0;
    margin-left: 0;
  }

  .nav-item.has-mega:hover .side-nav-link.prev,
  .nav-item.has-mega.active .side-nav-link.prev,
  .nav-item.has-mega:focus-within .side-nav-link.prev {
    margin-right: 6px;
  }

  .nav-item.has-mega:hover .side-nav-link.next,
  .nav-item.has-mega.active .side-nav-link.next,
  .nav-item.has-mega:focus-within .side-nav-link.next {
    max-width: 22vw;
    margin-left: 6px;
  }

  /* ----- Sidebar ABOUT : rabat discrète, pleine largeur à l'ouverture ----- */
  .nav-text {
  

    border-radius: 0 0 var(--radius-md) 0;
    z-index: 5500;
  }

  /* Ouverture au tap (.active) comme au survol */
  .nav-text:hover,
  .nav-text.active,
  .nav-text:focus-within {
    width: min-content;
    height: 90dvh;
    border-radius: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* CORRECTION : la largeur s'applique uniquement à la sidebar ouverte,
     plus à .text-content en général (la règle fuyait sur toutes les pages) */
  .nav-text:hover .text-content,
  .nav-text.active .text-content,
  .nav-text:focus-within .text-content {
    width: 100%;

  margin-left: 0vw;

  
  }
.text-content {
    width: 100%;
    margin-top:0;
    margin-left: -100vw;
  }
  /* ----- Zone de texte : repliée par défaut, dépliée avec la sidebar ----- */
  .text-zone {
    max-width: 0vw;
    margin-left: 0;
    height: auto;
    min-height: 0;
    max-height: 0;
    border-left: none;
    border-bottom: none;
    padding-bottom: 0;
    overflow-y: auto;
    transition: max-height 0.5s ease-in-out;
    bottom: 0;
  }

  .nav-text:hover .text-zone,
  .nav-text.active .text-zone,
  .nav-text:focus-within .text-zone {
    max-width: 84.6vw;
    height: fit-content;
    right: 0;
    top: 20vh;
  }

  .nav-text:hover .text,
  .nav-text.active .text,
  .nav-text:focus-within .text {
    padding: 2vw;
    max-width: 76.6vw;
    margin-left: 0;
    padding-right: 2vw !important;
    padding-left: 2vw !important;
    
  background-color: rgba(0, 0, 0, 0.3);

  }

  .text {
    min-width: 0;
    
    max-height: min-content;
    padding: 2vw;
    
    margin-left: 0;
    padding-left: 0vw !important;
    padding-right: 0vw !important;
  }

  .text-content h1 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .title {
	z-index: 10;
	pointer-events: auto;
	backdrop-filter: blur(20px);
	padding-right: 2vw;
	letter-spacing: 10px;
	/* width: 0; */
  position: fixed;
  bottom: 0;
  left: 0;
}
.title h1, .title .name {
	white-space: pre-line;
	writing-mode: horizontal-tb;
	word-break: normal;
	padding: 1.7vh;
	margin-left: 1vw;
	background-color: rgba(255,255,255, 0);
	letter-spacing: 10.7px;
	font-size: x-large !important; 
}

#date{
  font-family: 'Host Grotesk', Arial, sans-serif;
  font-size: x-small !important; 
  padding-top: 0vh;
  font-weight: 100;
  font-size: 0.5vh;
}

  p {
    font-size: clamp(0.95rem, 3.6vw, 1.15rem);
    font-family: 'Host Grotesk', Arial, sans-serif;
  line-break: auto;
  white-space: collapse;
  white-space: wrap;
  min-width: 63vw;
  max-width: 63vw;
  padding: 2vw;
  }

  /* ----- Zones Contexte / Recherche / etc. ----- */
  .zone,
  .spec {
    margin-top: 0;
    max-height: none;
  }

  .zone h2 {
    font-size: clamp(1rem, 4.5vw, 1.3rem);
  }

  .spec h3 {
    font-size: clamp(0.9rem, 3.8vw, 1.1rem);
  }

  .zone p {
    font-size: clamp(0.95rem, 3.6vw, 1.15rem);
    width: 92%;
    max-width: none;
  }

  .zone:hover p,
  .zone.active p {
    max-width: none;
    margin: 2vw;
    margin-top: 0;
  }

  .name-info {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  /* ----- Images : hauteur confortable, snap au centre ----- */
  .in {
    scroll-snap-align: center;
    margin: 0 2vw;
  }

  .img #appear {
    min-height: 55vh;
    max-height: 100vh;
    max-width: 100vw;
  }

  .yt-video {
    min-height: 40vh;
    width: 92vw;
  }

  /* ----- Boutons PREV/NEXT image : au-dessus de la barre de contrôles ----- */
  .image-controls {
    display:none;
    position: absolute;
    right: 0px;
    padding: 0;
    pointer-events: auto;
    width: min-content;
    
  }

  .zone:hover .text,
  .zone.active .text,
  .zone:focus-within .text {

    overflow: auto;
    min-height: fit-content;
    max-height: 63vh;
    color: #000;
    margin: 2vw;
  }

  .img-nav-btn {
    padding: 8px 14px;
    font-size: 0.5rem;
    width: 100%;
  }

  .nav {
    margin-right: 6vw;
    left: 0;
  }

  .nav-links {
    position: fixed;
    top: 6vh;
    left: 0;
    width: 100%;
    height: calc(100vh - 6vh);
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  /* Nav responsive */
  .nav-toggle {
    display: block;

  }
}

/* ----- Tablette (768px – 1023px) ----- */
@media screen and (min-width: 768px) and (max-width: 1023px) {

  .main {
    grid-template-columns: 1fr;
    /* images pleine largeur, sidebar en overlay */
    height: 100dvh;
  }

  /* ----- Sidebar ABOUT : overlay ~45% de l'écran ----- */
  .nav-text {
    width: min-content;
    max-width: 45vw;
    height: min-content;
    max-height: 88vh;
    margin-top: 6vh;
    border-radius: 0 0 var(--radius-md) 0;
  }

  .nav-text:hover,
  .nav-text.active,
  .nav-text:focus-within {
    width: 45vw;
    height: auto;
    
    border-top-right-radius: 0;
    
    overflow-x: hidden;
  }

  .nav-text:hover .text-content,
  .nav-text.active .text-content,
  .nav-text:focus-within .text-content {
    width: 100%;
    height: auto;
  }

  .text-zone {
    width: 100%;
    margin-left: 0;
    height: auto;
    min-height: 0;
    max-height: 0;
    transition: max-height 0.5s ease-in-out;
  }

  .nav-text:hover .text-zone,
  .nav-text.active .text-zone,
  .nav-text:focus-within .text-zone {
    
    width: 100%;
    height: auto;
  }

  .text {
    min-width: 0;
    max-width: 100%;
  }

  /* ----- Zones de texte : pas de chevauchement négatif ----- */
  .zone,
  .spec {
    margin-top: 0;
  }

  .zone p {
    width: 92%;
    max-width: none;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
  }

  .zone:hover p,
  .zone.active p {
    max-width: none;
  }

  /* ----- Images / vidéos ----- */
  .img {
    height: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .img #appear {
    min-height: 55vh;
    max-height: 100vh;
    min-width: 100%;
    max-width: 100%;
  }

  .yt-video {
    min-height: 45vh;
    width: 90vw;
  }

  /* ----- Boutons image : reculés pour ne pas passer sous les contrôles ----- */
  .image-controls {
    bottom: 20px;
    right: 20px;
  }
}

/* ----- Desktop (≥ 1024px) ----- */
@media (min-width: 1024px) {
  .nav-text {
    height: min-content;
    border-bottom-right-radius: var(--radius-sm);
  }



  .content {
    min-width: 100vw;
    max-width: 100vw;
  }

  .text-zone {
    margin-left: 0;
  }

  .info {
    grid-template-areas: "content content";
    display: grid;
    max-height: 50vh;
    width: 95%;
  }
}

/* ----- Grand écran (≥ 1440px) ----- */
@media screen and (min-width: 1440px) {
  /* réservé aux ajustements futurs */
}

/* =========================================================
   Focus / lightbox
   ========================================================= */
#aaah img#appear,
#aaah video#videoappear {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__stage {
  width: 100%;
  height: 100%;
  padding: 4vh 4vw 12vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.lightbox__media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: 2vh;
  right: 2vw;
  z-index: 2;
  font-family: 'Host Grotesk', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  border: 0;
  color: var(--fg);
  padding: 10px 14px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  color: var(--accent);
}

.lightbox__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3vh;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--fg);
  font-family: 'Host Grotesk', Arial, sans-serif;
}

.lightbox__count {
  min-width: 4.5em;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.lightbox__bar .img-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}


/* WCAG & Custom Utilities */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ------------------------
   LOADER
-------------------------*/

#loader{
    position:fixed;
    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;

    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);

    background:rgba(12,18,28,.35);

    z-index:99999;

    overflow:hidden;

    transition:
    opacity .7s ease,
    visibility .7s ease;
}

/* ------------------------
   Gradient animé
-------------------------*/

.loader-background{

    position:absolute;
    width:200%;
    height:200%;

    background:
    radial-gradient(circle at 20% 20%,#0042ac 0%,transparent 25%),
    radial-gradient(circle at 80% 30%,#000000 0%,transparent 25%),
    radial-gradient(circle at 40% 80%,#f2f3f4 0%,transparent 25%);

    filter:blur(120px);

    animation:backgroundMove 12s linear infinite;
}

@keyframes backgroundMove{

    0%{
        transform:translate(0,0);
    }

    50%{
        transform:translate(-8%,-6%);
    }

    100%{
        transform:translate(0,0);
    }

}

/* ------------------------
   Contenu
-------------------------*/

.loader-content{

    position:relative;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

}

/* ------------------------
   Halo lumineux
-------------------------*/

.glow{

    position:absolute;

    width:180px;
    height:180px;

    border-radius:50%;

    background:#3B82F6;

    filter:blur(55px);

    opacity:.45;

    animation:glow 2.5s ease-in-out infinite;

}

@keyframes glow{

    0%,100%{

        transform:scale(.9);

        opacity:.35;

    }

    50%{

        transform:scale(1.2);

        opacity:.7;

    }

}

/* ------------------------
   Logo
-------------------------*/

.logo{

    position:relative;

    width:120px;

    animation:

    spin 3s linear infinite,

    float 3s ease-in-out infinite;

    filter:

    drop-shadow(0 10px 25px rgba(0,0,0,.35));

}
.nav-logo{
  align-items: center;
  display: flex;
  gap: 10px;
}
.nav-logo .nav-name {
  font-family: 'Host Grotesk', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
  
  
}

.nav-container .logo{

    position:absolute;
    left:50vw;
    width:20px;
rotate: 0deg;
    animation:none;


    filter: drop-shadow(0 10px 25px rgba(0,0,0,.35));

}
@keyframes spin{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }

}

@keyframes float{

    0%,100%{
        translate:0 0;
    }

    50%{
        translate:0 -12px;
    }

}

/* ------------------------
   Texte
-------------------------*/

.loading-text{

    margin-top:35px;

    color:white;

    font-family:Inter,sans-serif;

    letter-spacing:4px;

    font-size:.9rem;

    text-transform:uppercase;

    opacity:.8;

    animation:blink 1.5s ease infinite;

}

@keyframes blink{

    50%{
        opacity:.35;
    }

}

/* ------------------------
   Disparition
-------------------------*/

#loader.hide{

    opacity:0;

    visibility:hidden;

}
.logo{color: white; }







@media (prefers-reduced-motion: reduce) {
  .lightbox {
    transition: none;
  }
}

@media screen and (max-width: 767px) {
  .lightbox__stage {
    padding: 8vh 2vw 14vh;
  }
  .lightbox__bar {
    gap: 0.75rem;
  }
  .lightbox__bar .img-nav-btn {
    width: auto;
    font-size: 0.65rem;
    padding: 8px 12px;
  }
}



 
