@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Jost:wght@200;300;400&display=swap');

:root {
  --ocean-deep:    #03112a;
  --ocean-dark:    #061e3e;
  --ocean-mid:     #0a3060;
  --ocean-blue:    #1155a0;
  --ocean-bright:  #1a7fd4;
  --ocean-light:   #5bb3f0;
  --ocean-foam:    #b8dff8;
  --ocean-mist:    #ddf0fc;
  --white:         #f5faff;
  --ink:           #e8f4fd;

  /* Glass tokens */
  --glass-bg:      rgba(255,255,255,0.10);
  --glass-border:  rgba(255,255,255,0.30);
  --glass-shine:   rgba(255,255,255,0.55);
  --glass-shadow:  rgba(3,17,42,0.45);
  --glass-blur:    blur(28px) saturate(180%);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  background: var(--ocean-deep);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
}


/* ══════════════════════════════════════════
   PAGE LOADER
══════════════════════════════════════════ */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ocean-deep);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1),
              transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

#page-loader.loader-done {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.loader-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 0.45em;
  color: var(--white);
  animation: loaderLogoPulse 1.8s ease-in-out infinite;
  text-shadow: 0 0 40px rgba(91,179,240,0.5);
}

@keyframes loaderLogoPulse {
  0%, 100% { opacity: 0.7; text-shadow: 0 0 40px rgba(91,179,240,0.3); }
  50%       { opacity: 1;   text-shadow: 0 0 60px rgba(91,179,240,0.7), 0 0 100px rgba(26,127,212,0.3); }
}

.loader-bar-wrap {
  width: 180px;
  height: 1px;
  background: rgba(91,179,240,0.18);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ocean-bright), var(--ocean-light), var(--ocean-foam));
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 8px rgba(91,179,240,0.8);
}

.loader-dots {
  display: flex;
  gap: 8px;
}

.loader-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ocean-light);
  animation: loaderDot 1.2s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderDot {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.2); }
}


/* ══════════════════════════════════════════
   BACKGROUND OCEAN
══════════════════════════════════════════ */
.page-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 20% 10%,  rgba(26,127,212,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%,  rgba(10,48,96,0.6)    0%, transparent 55%),
    radial-gradient(ellipse 40% 70% at 60% 30%,  rgba(91,179,240,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(17,85,160,0.4)   0%, transparent 50%),
    linear-gradient(180deg, #03112a 0%, #061e3e 40%, #0a2850 70%, #03112a 100%);
  animation: bgShift 12s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0%   { filter: hue-rotate(0deg)   brightness(1);    }
  100% { filter: hue-rotate(8deg)   brightness(1.05); }
}

.page-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.10;
  background-image:
    linear-gradient(rgba(91,179,240,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,179,240,0.5) 1px, transparent 1px);
  background-size: 80px 80px;
}

.page-grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px; opacity: 0.6;
}


/* ══════════════════════════════════════════
   GLASS MIXIN
══════════════════════════════════════════ */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 2px 0 var(--glass-shine),
    inset 0 -1px 0 rgba(91,179,240,0.15),
    0 8px 40px var(--glass-shadow),
    0 0 0 0.5px rgba(91,179,240,0.2);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.18) 50%, transparent 80%);
  opacity: 0.6; pointer-events: none; border-radius: inherit;
}


/* ══════════════════════════════════════════
   NAV — DESKTOP
══════════════════════════════════════════ */
nav#navbar {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 1000; display: flex; align-items: center; padding: 0 6px;
  border-radius: 50px; white-space: nowrap;
  transition: all 0.4s ease;

  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(91,179,240,0.10));
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.6),
    inset 0 -2px 0 rgba(26,127,212,0.2),
    0 8px 40px rgba(3,17,42,0.5),
    0 0 0 0.5px rgba(91,179,240,0.25);
}
nav#navbar::before {
  content: ''; position: absolute; inset: 0; border-radius: 50px;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.3) 50%, transparent 80%);
  opacity: 0.5; pointer-events: none;
}
nav#navbar.scrolled {
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(91,179,240,0.14));
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.7),
    inset 0 -2px 0 rgba(26,127,212,0.25),
    0 12px 56px rgba(3,17,42,0.6);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; font-weight: 300; letter-spacing: 0.28em;
  color: var(--white); padding: 12px 18px 12px 14px;
  text-decoration: none; opacity: 0.92;
  position: relative; z-index: 2;
}
.nav-divider {
  width: 1px; height: 16px;
  background: rgba(91,179,240,0.35);
  flex-shrink: 0;
}
.nav-links { display: flex; list-style: none; padding: 6px; }
.nav-links a {
  display: block; padding: 8px 16px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(232,244,253,0.75); text-decoration: none;
  border-radius: 40px; transition: all 0.25s ease; font-weight: 300;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 0 0 0.5px rgba(91,179,240,0.4);
}


/* ══════════════════════════════════════════
   BURGER BUTTON (masqué par défaut, affiché en mobile)
══════════════════════════════════════════ */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  margin-left: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: background 0.3s ease;
}
.nav-burger:hover {
  background: rgba(255,255,255,0.2);
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
              opacity   0.35s cubic-bezier(0.4,0,0.2,1),
              width     0.35s cubic-bezier(0.4,0,0.2,1);
  transform-origin: center;
}

/* Burger → Croix quand menu ouvert */
nav#navbar.menu-open .nav-burger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
nav#navbar.menu-open .nav-burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
nav#navbar.menu-open .nav-burger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Overlay de fond (mobile) */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(3,17,42,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.nav-mobile-overlay.visible {
  opacity: 1;
  pointer-events: all;
}


/* ══════════════════════════════════════════
   INTERIOR PAGES
══════════════════════════════════════════ */
.interior-page {
  padding: 120px 6vw 100px;
  max-width: 1280px; margin: 0 auto;
  position: relative; z-index: 1;
}

.page-hero-bar {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 64px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(91,179,240,0.25);
}
.page-index { font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--ocean-light); }
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300; color: var(--white); letter-spacing: 0.05em;
}


/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-label { font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--ocean-light); margin-bottom: 20px; display: block; }
.about-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px); font-weight: 300; line-height: 1.2;
  color: var(--white); margin-bottom: 28px;
}
.about-title em { font-style: italic; color: var(--ocean-light); }
.about-text { font-size: 15px; line-height: 1.9; color: var(--ocean-foam); font-weight: 300; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(26,127,212,0.08));
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(20px); padding: 32px 28px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 20px rgba(3,17,42,0.3);
}
.stat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(91,179,240,0.08), transparent 60%);
  pointer-events: none;
}
.stat-card:first-child  { border-radius: 20px 4px 4px 4px; }
.stat-card:nth-child(2) { border-radius: 4px 20px 4px 4px; }
.stat-card:nth-child(3) { border-radius: 4px 4px 4px 20px; }
.stat-card:last-child   { border-radius: 4px 4px 20px 4px; }
.stat-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.35); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 8px 32px rgba(3,17,42,0.45); }
.stat-num   { display: block; font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300; color: var(--white); line-height: 1; }
.stat-label { display: block; font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ocean-light); margin-top: 8px; }


/* ══════════════════════════════════════════
   PORTFOLIO GRIDS
══════════════════════════════════════════ */
.grid-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 12px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.item-wide { grid-column: span 2; }

.port-item {
  position: relative; overflow: hidden; border-radius: 16px; cursor: pointer;
  background: linear-gradient(160deg, var(--ocean-mid), var(--ocean-dark));
  box-shadow: 0 4px 24px rgba(3,17,42,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.4s cubic-bezier(0.25,0,0,1), box-shadow 0.4s ease;
}
.port-item.square { aspect-ratio: 1 / 1; }
.port-item:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(3,17,42,0.7), 0 0 0 1px rgba(91,179,240,0.3); }

.port-item-inner {
  position: absolute; inset: 0; border-radius: inherit;
  background: var(--ocean-dark);
  transition: transform 0.6s cubic-bezier(0.25,0,0,1);
}
.port-item:hover .port-item-inner { transform: scale(1.04); }
.port-item:hover .port-item-inner img { transform: scale(1.05); }

.port-item-overlay {
  position: absolute; inset: 0;
  background: rgba(3,17,42,0);
  display: flex; align-items: flex-end; padding: 24px;
  transition: background 0.4s ease; z-index: 2;
}
.port-item:hover .port-item-overlay { background: rgba(3,17,42,0.55); }
.port-item-info { opacity: 0; transform: translateY(8px); transition: all 0.4s ease; }
.port-item:hover .port-item-info { opacity: 1; transform: translateY(0); }
.port-item-info span  { display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(184,223,248,0.8); }
.port-item-info strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 300; color: var(--white); margin-top: 2px; }


/* ══════════════════════════════════════════
   VIDEO GRID
══════════════════════════════════════════ */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.video-item {
  position: relative; cursor: pointer; border-radius: 20px; overflow: hidden;
  background: var(--ocean-dark);
  box-shadow: 0 8px 32px rgba(3,17,42,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.video-item::before { content: ''; display: block; padding-bottom: 177.7%; }
.video-item:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(3,17,42,0.7), 0 0 0 1px rgba(91,179,240,0.3); }

.video-inner {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  background: linear-gradient(160deg, var(--ocean-mid) 0%, var(--ocean-dark) 100%);
  transition: transform 0.5s cubic-bezier(0.25,0,0,1);
}
.video-item:hover .video-inner { transform: scale(1.03); }

.video-play-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3,17,42,0.15);
  transition: background 0.3s ease;
}
.video-item.playing .video-play-overlay { background: transparent; }
.video-item.playing .video-play-overlay .video-play { opacity: 0; }

.video-play {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 20px rgba(3,17,42,0.4);
}
.video-item:hover .video-play { background: rgba(255,255,255,0.25); transform: scale(1.12); }
.video-play-icon { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent rgba(240,248,255,0.95); margin-left: 3px; }
.video-pause-icon { display: flex; gap: 4px; }
.video-pause-icon span { width: 3px; height: 14px; background: rgba(240,248,255,0.95); border-radius: 2px; }

.video-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 14px 14px;
  background: linear-gradient(to top, rgba(3,17,42,0.85), transparent); z-index: 4;
}
.video-title { font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--white); font-weight: 300; }
.video-dur   { font-size: 9px; letter-spacing: 0.2em; color: rgba(184,223,248,0.6); margin-top: 2px; }

.video-glass-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 50px; z-index: 4;
  background: linear-gradient(to bottom, rgba(3,17,42,0.3), transparent);
}


/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer { position: relative; z-index: 2; margin: 60px auto 0; max-width: 520px; padding: 0 24px 60px; text-align: center; }
.footer-glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(26,127,212,0.08));
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 28px; padding: 40px 48px;
  box-shadow:
    0 2px 40px rgba(3,17,42,0.5),
    0 0 0 0.5px rgba(91,179,240,0.2),
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(26,127,212,0.15);
  position: relative; overflow: hidden;
}
.footer-glass::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(91,179,240,0.06), transparent 55%);
  pointer-events: none; border-radius: 28px;
}
.footer-name     { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 300; letter-spacing: 0.3em; color: var(--white); margin-bottom: 8px; }
.footer-tagline  { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ocean-light); margin-bottom: 28px; }
.footer-links    { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 24px; list-style: none; margin-bottom: 28px; }
.footer-links a  { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ocean-foam); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy     { font-size: 10px; color: var(--ocean-light); letter-spacing: 0.1em; }


/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.85s cubic-bezier(0.25,0,0,1), transform 0.85s cubic-bezier(0.25,0,0,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.page-fade { animation: pageFadeIn 0.5s cubic-bezier(0.25,0,0,1) forwards; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.ocean-divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,179,240,0.6), transparent);
  margin: 0 auto 40px;
}
.rose-divider { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, rgba(91,179,240,0.55), transparent); margin: 0 auto 40px; }


/* ══════════════════════════════════════════
   CURSOR (desktop uniquement)
══════════════════════════════════════════ */
.cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--ocean-light); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: screen;
}
.cursor.expand { width: 36px; height: 36px; background: rgba(91,179,240,0.25); }
@media (pointer: coarse) { .cursor { display: none; } }


/* ══════════════════════════════════════════
   3D PAGE
══════════════════════════════════════════ */
#three-canvas {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}
.models-page { position: relative; z-index: 1; }
.model-labels { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.model-label {
  position: absolute; transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px; letter-spacing: 0.15em; color: rgba(255,255,255,0);
  transition: color 0.4s ease; pointer-events: none;
  text-shadow: 0 2px 8px rgba(3,17,42,0.8);
}
.model-label.visible { color: rgba(255,255,255,0.8); }


/* ══════════════════════════════════════════
   RESPONSIVE — TABLETTE (≤ 900px)
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid       { grid-template-columns: 1fr; gap: 40px; }
  .grid-masonry     { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .grid-masonry .item-wide { grid-column: span 1; }
  .grid-2           { grid-template-columns: repeat(2, 1fr); }
  .video-grid       { grid-template-columns: repeat(2, 1fr); }
}


/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 680px)
══════════════════════════════════════════ */
@media (max-width: 680px) {

  /* ── NAV : pill compacte logo + burger ── */
  nav#navbar {
    top: 14px;
    /* La nav prend une largeur auto autour de logo + burger */
    left: 50%;
    transform: translateX(-50%);
    padding: 0 6px 0 0;
    border-radius: 50px;
    /* On force overflow visible pour le menu déroulant */
    overflow: visible;
  }

  /* Masquer les éléments desktop */
  nav#navbar .nav-divider,
  nav#navbar .nav-links {
    display: none;
  }

  /* Afficher le burger */
  .nav-burger {
    display: flex;
  }

  /* Afficher l'overlay */
  .nav-mobile-overlay {
    display: block;
  }

  /* Menu déroulant mobile — s'ouvre sous la nav */
  nav#navbar .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: min(320px, 90vw);
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(6,30,62,0.95), rgba(3,17,42,0.98));
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow:
      0 20px 60px rgba(3,17,42,0.8),
      inset 0 1px 0 rgba(255,255,255,0.3),
      0 0 0 0.5px rgba(91,179,240,0.2);

    /* Animation d'apparition */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px) scale(0.96);
    transition:
      opacity 0.3s cubic-bezier(0.4,0,0.2,1),
      transform 0.3s cubic-bezier(0.4,0,0.2,1),
      visibility 0.3s;
    pointer-events: none;
    z-index: 999;
  }

  nav#navbar.menu-open .nav-links {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: all;
  }

  nav#navbar .nav-links li {
    width: 100%;
  }

  nav#navbar .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 12px;
    letter-spacing: 0.22em;
    border-radius: 12px;
    text-align: left;
    color: rgba(232,244,253,0.8);
    transition: background 0.2s, color 0.2s;
  }
  nav#navbar .nav-links a:hover,
  nav#navbar .nav-links a.active {
    background: rgba(255,255,255,0.12);
    color: var(--white);
  }

  /* ── Séparateurs entre liens ── */
  nav#navbar .nav-links li:not(:last-child) a {
    border-bottom: 1px solid rgba(91,179,240,0.1);
    border-radius: 12px 12px 0 0;
  }

  /* ── Pages intérieures ── */
  .interior-page {
    padding: 100px 5vw 80px;
  }

  .page-hero-bar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 20px;
  }

  /* ── Grilles ── */
  .grid-masonry     { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .grid-masonry .port-item { aspect-ratio: 4/3; }
  .grid-2           { grid-template-columns: 1fr 1fr; gap: 8px; }
  .grid-2 .port-item.square { aspect-ratio: 1/1; }

  /* ── Vidéos ── */
  .video-grid       { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* ── À propos ── */
  .about-stats      { grid-template-columns: 1fr 1fr; gap: 2px; }
  .stat-card        { padding: 24px 18px; }
  .stat-num         { font-size: 36px; }

  /* ── Footer ── */
  footer { padding: 0 16px 48px; }
  .footer-glass { padding: 28px 24px; }
  .footer-links { gap: 12px 16px; }
}


/* ══════════════════════════════════════════
   RESPONSIVE — PETIT MOBILE (≤ 400px)
══════════════════════════════════════════ */
@media (max-width: 400px) {
  .grid-2 { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
}