/* ════════════════════════════════════════════════
   ARTHUR FALLOU — PORTFOLIO AQUARIUM
   Ultra-realistic immersive CSS
   ════════════════════════════════════════════════ */

/* ── RESET & BASE ─────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --deep-blue:    #071220;
  --mid-blue:     #0d1b2a;
  --ocean-blue:   #1a3a52;
  --water-blue:   #2a5f8f;
  --light-blue:   #4a9eca;
  --aqua-teal:    #2cc4c4;
  --aqua-green:   #27c97e;
  --plant-green:  #2d8a4e;
  --dark-green:   #1a4a2e;
  --sand-beige:   #c8a96e;
  --light-sand:   #e8d5a3;
  --soft-white:   #f0ede5;
  --rock-brown:   #6b4c2a;
  --glass-white:  rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
  --glass-hover:  rgba(255,255,255,0.10);
  --font-title:   'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
  --font-ui:      'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--deep-blue);
  color: var(--soft-white);
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
strong { font-weight: 600; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* ── CUSTOM CURSOR ────────────────────────────── */
#cursor-dot {
  width: 8px; height: 8px;
  background: var(--aqua-teal);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s;
  box-shadow: 0 0 12px var(--aqua-teal);
}

#cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid rgba(44,196,196,0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.12s;
}

body:hover #cursor-ring { border-color: rgba(44,196,196,0.7); }
a:hover ~ #cursor-ring, button:hover ~ #cursor-ring {
  width: 50px; height: 50px;
}

/* ── PRELOADER ────────────────────────────────── */
#preloader {
  position: fixed; inset: 0;
  background: var(--deep-blue);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}
#preloader.done {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-tank {
  width: 160px;
  height: 100px;
  border: 3px solid rgba(44,196,196,0.4);
  border-radius: 8px;
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
  background: var(--mid-blue);
}

.preloader-water {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(180deg, rgba(42,95,143,0.6), rgba(7,18,32,0.9));
  animation: fillTank 2s ease-in-out forwards;
}

@keyframes fillTank {
  to { height: 100%; }
}

.preloader-fish {
  position: absolute;
  font-size: 1.5rem;
  top: 50%; left: -20%;
  transform: translateY(-50%);
  animation: fishSwim 2s ease-in-out forwards;
  z-index: 2;
}

@keyframes fishSwim {
  to { left: 110%; }
}

.preloader-bubbles {
  position: absolute;
  bottom: 5px; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  z-index: 3;
}

.preloader-bubbles span {
  width: 6px; height: 6px;
  background: rgba(44,196,196,0.6);
  border-radius: 50%;
  animation: preloadBubble 1.5s ease-in infinite;
}
.preloader-bubbles span:nth-child(2) { animation-delay: 0.2s; }
.preloader-bubbles span:nth-child(3) { animation-delay: 0.4s; }
.preloader-bubbles span:nth-child(4) { animation-delay: 0.6s; }
.preloader-bubbles span:nth-child(5) { animation-delay: 0.8s; }

@keyframes preloadBubble {
  0% { transform: translateY(0); opacity: 0.8; }
  100% { transform: translateY(-80px); opacity: 0; }
}

.preloader-text {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--aqua-teal);
  margin-bottom: 1rem;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--aqua-teal), var(--aqua-green));
  border-radius: 2px;
  animation: loadBar 2s ease-in-out forwards;
}

@keyframes loadBar {
  from { width: 0; }
  to { width: 100%; }
}

/* ── NAVIGATION ───────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

#navbar.scrolled {
  background: rgba(7,18,32,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(44,196,196,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--soft-white);
  transition: color 0.3s;
}
.nav-logo:hover { color: var(--aqua-teal); }
.logo-icon {
  font-size: 1.1rem;
  color: var(--aqua-teal);
  display: flex;
  align-items: center;
  transition: transform 0.4s ease;
}
.nav-logo:hover .logo-icon { transform: rotate(15deg) scale(1.15); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(240,237,229,0.8);
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--aqua-teal);
  transition: right 0.3s;
}
.nav-link:hover { color: var(--aqua-teal); }
.nav-link:hover::after { right: 0; }

.nav-cta {
  background: rgba(44,196,196,0.15);
  border: 1px solid rgba(44,196,196,0.4);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  color: var(--aqua-teal) !important;
  transition: background 0.3s, border-color 0.3s !important;
}
.nav-cta:hover {
  background: rgba(44,196,196,0.25);
  border-color: var(--aqua-teal);
}
.nav-cta::after { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--soft-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(80vw, 320px);
  height: 100vh;
  background: rgba(7,18,32,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid rgba(44,196,196,0.1);
}
.mobile-menu.open { right: 0; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.5rem; }
.mob-link {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--soft-white);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.3s;
}
.mob-link:hover { color: var(--aqua-teal); }

/* ── SECTION COMMONS ──────────────────────────── */
section {
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.zone-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--aqua-teal);
  border: 1px solid rgba(44,196,196,0.3);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--soft-white);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: rgba(240,237,229,0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── GLASS CARD ───────────────────────────────── */
.glass-card {
  background: var(--glass-white);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(44,196,196,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(44,196,196,0.05);
}

/* ── SECTION CANVAS (fond animé) ─────────────── */
.section-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* ── REVEAL ANIMATIONS ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ── WAVE SEPARATORS ──────────────────────────── */
.wave-separator {
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 3;
}
.wave-separator svg {
  width: 100%;
  display: block;
}

/* ════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding-bottom = hauteur barre contact (~60px) + marge sécurité */
  padding: 0 0 80px 0;
  position: relative;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/10141407/pexels-photo-10141407.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  transform: scale(1.05);
  transition: transform 0.1s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7,18,32,0.55) 0%,
    rgba(7,18,32,0.3) 40%,
    rgba(7,18,32,0.65) 100%
  );
  z-index: 1;
}

/* Vitre aquarium */
.hero-glass-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12px;
  background: linear-gradient(180deg, rgba(200,230,255,0.25), transparent);
  z-index: 5;
}
.hero-glass-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 12px;
  background: linear-gradient(0deg, rgba(200,230,255,0.2), transparent);
  z-index: 5;
}

/* Rayons lumineux */
.light-rays {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.ray {
  position: absolute;
  top: -10%;
  width: 80px;
  height: 130%;
  background: linear-gradient(180deg, rgba(180,220,255,0.15) 0%, transparent 100%);
  transform-origin: top center;
  animation: rayShimmer 8s ease-in-out infinite alternate;
  border-radius: 50px;
}

.ray-1 { left: 10%; transform: rotate(-8deg); animation-delay: 0s; }
.ray-2 { left: 25%; transform: rotate(-3deg); width: 60px; animation-delay: 1.2s; }
.ray-3 { left: 50%; transform: rotate(2deg); animation-delay: 2.5s; }
.ray-4 { left: 70%; transform: rotate(6deg); width: 50px; animation-delay: 0.7s; }
.ray-5 { left: 85%; transform: rotate(10deg); animation-delay: 3s; }

@keyframes rayShimmer {
  0%   { opacity: 0.3; transform: rotate(var(--r, 0deg)) scaleX(0.9); }
  50%  { opacity: 0.7; }
  100% { opacity: 0.2; transform: rotate(calc(var(--r, 0deg) + 3deg)) scaleX(1.1); }
}

/* (poissons supprimés, remplacés par canvas animé) */

/* Plants bottom */
.plants-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  pointer-events: none;
  height: 120px;
}

.plant {
  position: absolute;
  bottom: 0;
  width: 80px; height: 120px;
  background: radial-gradient(ellipse at bottom, rgba(39,201,126,0.25), transparent 70%);
}
.plant-left { left: 5%; }
.plant-right { right: 5%; }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 6;
  text-align: center;
  padding: 2rem 2rem 0;
  max-width: 860px;
  /* Décalage suffisant en dessous de la navbar */
  margin-top: clamp(3rem, 8vh, 6rem);
  margin-bottom: 0;
}

.hero-zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aqua-teal);
  border: 1px solid rgba(44,196,196,0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  background: rgba(44,196,196,0.08);
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease both;
}

.zone-dot {
  width: 7px; height: 7px;
  background: var(--aqua-teal);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1.2s ease 0.3s both;
}

.title-first, .title-last {
  display: block;
}
.title-first {
  color: var(--soft-white);
  font-style: italic;
}
.title-last {
  color: var(--aqua-teal);
  letter-spacing: 0.05em;
}

.hero-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240,237,229,0.7);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1.2s ease 0.5s both;
}

.subtitle-line {
  flex: 0 0 40px;
  height: 1px;
  background: rgba(44,196,196,0.4);
}

.hero-tagline {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--sand-beige);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1.2s ease 0.7s both;
}

.hero-intro {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(240,237,229,0.75);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 1.2s ease 0.9s both;
}

.hero-actions {
  margin-bottom: 0;
  animation: fadeInUp 1.2s ease 1.1s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, rgba(44,196,196,0.2), rgba(39,201,126,0.15));
  border: 1px solid rgba(44,196,196,0.5);
  border-radius: 50px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--soft-white);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,196,196,0.3), rgba(39,201,126,0.2));
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-primary:hover {
  border-color: var(--aqua-teal);
  box-shadow: 0 0 40px rgba(44,196,196,0.3);
  transform: translateY(-2px);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary i { transition: transform 0.3s; }
.btn-primary:hover i { transform: translateY(4px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(44,196,196,0.4);
  border-radius: 30px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--aqua-teal);
  transition: all 0.3s;
  margin-top: 1rem;
  cursor: pointer;
}
.btn-outline:hover {
  background: rgba(44,196,196,0.1);
  border-color: var(--aqua-teal);
}

/* ── Barre de contact fixe en bas du hero ──────── */
.hero-contact-bar {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  padding: 1.1rem 2rem;
  background: linear-gradient(0deg, rgba(7,18,32,0.82) 60%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeInUp 1.2s ease 1.3s both;
  border-top: 1px solid rgba(44,196,196,0.08);
}

.hero-contact-bar span,
.hero-contact-bar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(240,237,229,0.65);
  transition: color 0.3s;
  white-space: nowrap;
}
.hero-contact-bar a:hover { color: var(--aqua-teal); }
.hero-contact-bar i { color: var(--aqua-teal); font-size: 0.9rem; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════
   ABOUT SECTION — Le Récif
   ════════════════════════════════════════════════ */
.about-section {
  background: var(--mid-blue);
}

.about-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/3046638/pexels-photo-3046638.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center 60%;
  background-attachment: fixed;
  z-index: 0;
  opacity: 0.25;
}

.about-overlay {
  background: linear-gradient(180deg, var(--mid-blue) 0%, rgba(13,27,42,0.92) 50%, var(--mid-blue) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-card {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.about-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(240,237,229,0.8);
  margin-bottom: 1.2rem;
}
.about-card p:last-child { margin-bottom: 0; }

.about-card-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--soft-white);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(44,196,196,0.2);
}

.coral-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.15;
}
.coral-1 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--aqua-teal), transparent);
  top: -60px; right: -60px;
}
.coral-2 {
  width: 150px; height: 150px;
  background: radial-gradient(circle, var(--aqua-green), transparent);
  bottom: -40px; left: -40px;
}

/* Values */
.values-card {
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.values-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--soft-white);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(44,196,196,0.2);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.value-item {
  padding: 1.2rem;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  transition: all 0.3s;
}
.value-item:hover {
  border-color: rgba(44,196,196,0.2);
  background: rgba(44,196,196,0.06);
  transform: translateY(-3px);
}

.value-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

.value-item h4 {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--aqua-teal);
  margin-bottom: 0.3rem;
}

.value-item p {
  font-size: 0.8rem;
  color: rgba(240,237,229,0.5);
  line-height: 1.5;
}

/* About image */
.about-img-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 200px;
}

.about-real-img {
  width: 100%; height: 100%;
  background-image: url('images/aquascaping.jpg?v=2');
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.about-img-card:hover .about-real-img { transform: scale(1.05); }

.about-img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(0deg, rgba(7,18,32,0.9), transparent);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(240,237,229,0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.about-img-caption i { color: var(--aqua-teal); }

/* (particles CSS supprimées, gérées via canvas) */

/* ════════════════════════════════════════════════
   SKILLS SECTION — La Biodiversité
   ════════════════════════════════════════════════ */
.skills-section {
  background: var(--deep-blue);
}

.skills-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/8935832/pexels-photo-8935832.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  opacity: 0.18;
}

.skills-overlay {
  background: linear-gradient(135deg, rgba(7,18,32,0.95), rgba(13,27,42,0.88));
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.skills-card {
  padding: 2.5rem;
}

.skills-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(44,196,196,0.2);
}

.skills-icon-wrap {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(44,196,196,0.2), rgba(39,201,126,0.15));
  border: 1px solid rgba(44,196,196,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aqua-teal);
  font-size: 1.1rem;
}

.skills-card-header h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--soft-white);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-item { display: flex; flex-direction: column; gap: 0.5rem; }

.skill-name {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(240,237,229,0.8);
  display: flex;
  justify-content: space-between;
}

.skill-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--aqua-teal), var(--aqua-green));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Tools grid */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tool-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 calc(33% - 0.7rem);
  transition: transform 0.3s;
}
.tool-badge:hover { transform: translateY(-4px); }

.tool-circle {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, rgba(44,196,196,0.15), rgba(39,201,126,0.1));
  border: 1px solid rgba(44,196,196,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aqua-teal);
  font-size: 1.1rem;
  transition: all 0.3s;
}
.tool-badge:hover .tool-circle {
  background: linear-gradient(135deg, rgba(44,196,196,0.25), rgba(39,201,126,0.2));
  border-color: var(--aqua-teal);
  box-shadow: 0 0 20px rgba(44,196,196,0.2);
}

.tool-badge span {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-align: center;
  color: rgba(240,237,229,0.6);
}

/* Skills image */
.skills-img-col {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}

.skills-real-img {
  width: 100%; height: 100%;
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/10498915/pexels-photo-10498915.jpeg?auto=compress&cs=tinysrgb&w=800');
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.skills-img-col:hover .skills-real-img { transform: scale(1.04); }

.skills-stat-badge {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  background: rgba(7,18,32,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(44,196,196,0.2);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--aqua-teal);
  font-weight: 600;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(240,237,229,0.6);
}

/* ════════════════════════════════════════════════
   PROJECTS SECTION — Les Écosystèmes
   ════════════════════════════════════════════════ */
.projects-section {
  background: #071220;
}

.projects-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/10519079/pexels-photo-10519079.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  z-index: 0;
  opacity: 0.2;
}

.projects-overlay {
  background: linear-gradient(180deg, rgba(7,18,32,0.97) 0%, rgba(7,18,32,0.85) 50%, rgba(7,18,32,0.97) 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-6px) rotateX(1deg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 40px rgba(44,196,196,0.08);
}

.project-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  position: relative;
  overflow: hidden;
}
.project-card:hover .project-card-img { transform: scale(1.04); }

/* Images per project (unique aquatic images) */
.project-img-1 {
  background-image: url('https://images.pexels.com/photos/26626978/pexels-photo-26626978.jpeg?auto=compress&cs=tinysrgb&w=800');
  background-position: center;
}

/* Carte projet avec image statique (non coupée) */
.project-card-img.project-img-static {
  height: 200px;
  background-image: none !important;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.project-static-cover {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: contain;
  display: block;
  border-radius: 0;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img-static .project-static-cover {
  transform: scale(1.03);
}

/* Variante image large (format paysage) : pleine largeur, hauteur fixe 200px */
.project-card-img.project-img-wide {
  height: 200px;
  align-items: stretch;
}
.project-static-cover-wide {
  width: 100%;
  height: 200px;
  max-height: 200px;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.project-img-2 {
  background-image: url('https://images.pexels.com/photos/3046638/pexels-photo-3046638.jpeg?auto=compress&cs=tinysrgb&w=800');
  background-position: center 30%;
}
.project-img-3 {
  background-image: url('https://images.pexels.com/photos/8589519/pexels-photo-8589519.jpeg?auto=compress&cs=tinysrgb&w=800');
  background-position: center;
}
.project-img-4 {
  background-image: url('https://images.pexels.com/photos/18974176/pexels-photo-18974176.jpeg?auto=compress&cs=tinysrgb&w=800');
  background-position: center;
}
.project-img-5 {
  background-image: url('https://images.pexels.com/photos/10498915/pexels-photo-10498915.jpeg?auto=compress&cs=tinysrgb&w=800');
  background-position: center;
  height: 220px;
}

.project-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(44,196,196,0.06), transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 0;
}
.project-card:hover .project-card-glow { opacity: 1; }

.project-card-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.project-year {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(240,237,229,0.4);
}

.project-tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--aqua-teal);
  background: rgba(44,196,196,0.1);
  border: 1px solid rgba(44,196,196,0.25);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
}

.featured-tag {
  color: var(--sand-beige) !important;
  background: rgba(200,169,110,0.1) !important;
  border-color: rgba(200,169,110,0.25) !important;
}

.project-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--soft-white);
  line-height: 1.2;
}

.project-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(240,237,229,0.65);
  flex: 1;
}

.project-role, .project-result {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(240,237,229,0.6);
}
.project-role i, .project-result i {
  color: var(--aqua-teal);
  margin-top: 2px;
  flex-shrink: 0;
}

.project-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mini-tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  padding: 0.2rem 0.7rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 15px;
  color: rgba(240,237,229,0.6);
}

/* ── Carte TikTok 9:16 vertical (format portrait) ── */
.project-card-tiktok {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 380px;
  overflow: hidden;
}

/* Colonne gauche : vidéo en format PORTRAIT 9:16 */
.tiktok-video-col {
  flex: 0 0 auto;
  width: 220px;            /* largeur fixe → ratio 9:16 = 220×391px */
  position: relative;
  background: #000;
  overflow: hidden;
  border-radius: 15px 0 0 15px;
  flex-shrink: 0;
}

/* Ratio 9:16 = 177.77% */
.tiktok-video-ratio {
  position: relative;
  width: 100%;
  padding-top: 177.78%;    /* 16/9 * 100 */
}

.project-video-zone {
  position: absolute;
  inset: 0;
}

/* Le lecteur vidéo couvre toute la zone */
.project-video-zone .video-preview-wrap {
  display: block !important;
  position: absolute;
  inset: 0;
  background: #000;
}

.project-video-zone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Colonne droite : texte */
.tiktok-text-col {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  min-width: 0;
}


.project-stats {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

.pstat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.pstat-num {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--aqua-teal);
  font-weight: 600;
}
.pstat-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(240,237,229,0.5);
}

/* ════════════════════════════════════════════════
   EXPERIENCE SECTION — Le Courant
   ════════════════════════════════════════════════ */
.experience-section {
  background: var(--mid-blue);
}

.experience-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/15048060/pexels-photo-15048060.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  opacity: 0.15;
}

.experience-overlay {
  background: linear-gradient(180deg, var(--mid-blue) 0%, rgba(13,27,42,0.9) 50%, var(--mid-blue) 100%);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--aqua-teal), var(--plant-green), transparent);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -3rem;
  top: 1.5rem;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--aqua-teal), var(--plant-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 0 20px rgba(44,196,196,0.3);
  z-index: 2;
}

.timeline-card {
  padding: 2rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  gap: 1rem;
}

.timeline-period {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--aqua-teal);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.current-badge {
  background: rgba(44,196,196,0.1);
  border: 1px solid rgba(44,196,196,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
}

.timeline-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--soft-white);
  margin-bottom: 0.3rem;
}

.timeline-company {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(240,237,229,0.55);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.timeline-company i { color: var(--sand-beige); }

.timeline-status {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.timeline-status.current {
  background: rgba(39,201,126,0.15);
  border: 1px solid rgba(39,201,126,0.35);
  color: var(--aqua-green);
}

.timeline-missions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.timeline-missions li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: rgba(240,237,229,0.7);
  line-height: 1.5;
}
.timeline-missions li i {
  color: var(--aqua-teal);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.7rem;
}

/* ════════════════════════════════════════════════
   CONTACT SECTION — Sortie
   ════════════════════════════════════════════════ */
.contact-section {
  background: #0a1628;
  padding-bottom: 0;
}

.contact-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/10519079/pexels-photo-10519079.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  z-index: 0;
  opacity: 0.3;
  transform: scaleX(-1);
}

.contact-overlay {
  background: linear-gradient(180deg, #0a1628 0%, rgba(10,22,40,0.7) 50%, #0a1628 100%);
}

/* Contact rays */
.contact-rays {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.c-ray {
  position: absolute;
  bottom: -10%; left: 50%;
  width: 200px; height: 100%;
  background: linear-gradient(0deg, rgba(44,196,196,0.06), transparent);
  transform-origin: bottom center;
  border-radius: 50px;
  animation: contactRay 6s ease-in-out infinite alternate;
}
.c-ray-1 { transform: translateX(-50%) rotate(-20deg); animation-delay: 0s; }
.c-ray-2 { transform: translateX(-50%) rotate(0deg); width: 150px; animation-delay: 2s; }
.c-ray-3 { transform: translateX(-50%) rotate(20deg); animation-delay: 4s; }

@keyframes contactRay {
  0%   { opacity: 0.3; }
  50%  { opacity: 0.7; }
  100% { opacity: 0.2; }
}

.contact-title {
  background: linear-gradient(135deg, var(--soft-white), var(--aqua-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-intro {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(240,237,229,0.7);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 2rem;
  transition: all 0.3s;
}
a.contact-card:hover {
  border-color: rgba(44,196,196,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.contact-card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(44,196,196,0.15), rgba(39,201,126,0.1));
  border: 1px solid rgba(44,196,196,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aqua-teal);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.3s;
}
.tiktok-icon { color: #ff4d6d !important; border-color: rgba(255,77,109,0.25) !important; background: rgba(255,77,109,0.08) !important; }

a.contact-card:hover .contact-card-icon {
  background: linear-gradient(135deg, rgba(44,196,196,0.25), rgba(39,201,126,0.2));
  box-shadow: 0 0 20px rgba(44,196,196,0.2);
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.contact-card-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,237,229,0.4);
}
.contact-card-value {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(240,237,229,0.85);
}

/* ── FOOTER ───────────────────────────────────── */
.footer {
  background: var(--deep-blue);
  padding: 4rem 0 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(44,196,196,0.08);
}

.footer-inner {
  position: relative;
  z-index: 2;
}

.footer-fish {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--aqua-teal);
  opacity: 0.6;
  animation: starPulse 3s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.9; }
}

.footer-message {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(240,237,229,0.8);
  margin-bottom: 0.8rem;
}

.footer-credit {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(240,237,229,0.3);
  letter-spacing: 0.05em;
}

#footer-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ── SECTION OVERLAY (shared) ─────────────────── */
.section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .skills-img-col { grid-column: 1 / -1; min-height: 250px; }
  /* Carte TikTok : colonne sur tablette, vidéo portrait en haut, centrée */
  .project-card-tiktok { flex-direction: column; align-items: center; }
  .tiktok-video-col {
    width: 260px;        /* largeur portrait raisonnable sur tablette */
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
  }
  .tiktok-video-ratio { padding-top: 177.78%; }
  .tiktok-text-col { width: 100%; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  section { padding: 5rem 0; }

  .hero-title { font-size: clamp(3rem, 12vw, 5rem); }
  /* Hero content : décaler vers le bas sur mobile */
  .hero-content { margin-top: clamp(3rem, 10vh, 5rem); }

  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  /* Carte TikTok : vidéo portrait centrée en haut, texte dessous */
  .project-card-tiktok { flex-direction: column; align-items: center; }
  .tiktok-video-col { width: 200px; border-radius: 15px 15px 0 0; }
  .tiktok-video-ratio { padding-top: 177.78%; }
  .tiktok-text-col { padding: 1.5rem; width: 100%; }

  .contact-cards { grid-template-columns: 1fr; }

  .timeline { padding-left: 2rem; }
  .timeline::before { left: 10px; }
  .timeline-dot { left: -2rem; width: 28px; height: 28px; }

  .values-grid { grid-template-columns: 1fr 1fr; }

  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }

  /* Barre contact hero : 2 colonnes sur mobile */
  .hero-contact-bar {
    gap: 0.8rem 1.5rem;
    padding: 0.9rem 1rem;
    font-size: 0.75rem;
  }
  .hero-subtitle { flex-direction: column; gap: 0.5rem; }
  .subtitle-line { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .hero-content { padding: 1rem; margin-top: clamp(3rem, 12vh, 5rem); }
  .values-grid { grid-template-columns: 1fr; }
  .tools-grid { justify-content: flex-start; }
  .tool-badge { flex: 0 0 calc(50% - 0.5rem); }
  .project-stats { flex-direction: column; gap: 1rem; }
  .hero-contact-bar {
    gap: 0.6rem;
    font-size: 0.72rem;
    justify-content: flex-start;
    padding: 0.8rem 1rem;
  }
  .hero-contact-bar span, .hero-contact-bar a { font-size: 0.72rem; }
}

/* ════════════════════════════════════════════════
   DRAG & DROP — ZONES PROJETS
   ════════════════════════════════════════════════ */

/* Conteneur image projet — overflow géré en haut du bloc */

/* ── Drop zone commune ────────────────────────── */
.drop-zone {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  z-index: 4;
}

/* Quand aucune image : fond semi-transparent */
.drop-zone:not(.has-media) {
  background: linear-gradient(135deg, rgba(7,18,32,0.75), rgba(13,27,42,0.65));
  border: 2px dashed rgba(44,196,196,0.35);
}

.drop-zone:not(.has-media):hover,
.drop-zone.drag-over:not(.has-media) {
  background: rgba(44,196,196,0.08);
  border-color: rgba(44,196,196,0.7);
}

/* Quand des images sont chargées : masquer l'indice */
.drop-zone.has-media .drop-hint { display: none; }
.drop-zone.has-media { background: transparent; border: none; }
/* Petite icône d'édition visible au hover quand rempli */
.drop-zone.has-media::after {
  content: '\f304';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  background: rgba(7,18,32,0.7);
  color: var(--aqua-teal);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s;
  line-height: 28px;
  text-align: center;
}
.drop-zone.has-media:hover::after { opacity: 1; }

/* Input caché */
.drop-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
  width: 100%;
  height: 100%;
}

/* ── Indice visuel ────────────────────────────── */
.drop-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  user-select: none;
  padding: 1rem;
  text-align: center;
}

.drop-hint i {
  font-size: 1.6rem;
  color: var(--aqua-teal);
  opacity: 0.8;
  margin-bottom: 0.2rem;
}

.drop-hint span {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(240,237,229,0.85);
  letter-spacing: 0.02em;
}

.drop-hint em {
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: rgba(240,237,229,0.4);
}

/* ── Indice vidéo spécial ─────────────────────── */
.drop-hint-video i {
  color: #ff4d6d;
}

/* ── Grille de prévisualisation images ───────── */
.drop-preview-grid {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 2px;
  pointer-events: none;
  z-index: 3;
}

/* Adapte la grille selon le nombre d'images */
.drop-preview-grid.count-1 { grid-template-columns: 1fr; }
.drop-preview-grid.count-2 { grid-template-columns: 1fr 1fr; }
.drop-preview-grid.count-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.drop-preview-grid.count-3 .preview-thumb:first-child { grid-column: 1 / -1; }
.drop-preview-grid.count-4,
.drop-preview-grid.count-many { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

/* Badge "+n" si plus de 4 images */
.preview-more-badge {
  position: absolute;
  bottom: 0.5rem; right: 0.5rem;
  background: rgba(7,18,32,0.85);
  border: 1px solid rgba(44,196,196,0.3);
  color: var(--aqua-teal);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  pointer-events: none;
  z-index: 5;
}

/* Bouton supprimer une image (visible au hover) */
.preview-remove-btn {
  position: absolute;
  top: 0.4rem; right: 0.4rem;
  width: 26px; height: 26px;
  background: rgba(7,18,32,0.8);
  border: 1px solid rgba(255,80,80,0.4);
  color: #ff6b6b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  pointer-events: all;
  z-index: 6;
}
.drop-zone.has-media:hover .preview-remove-btn { opacity: 1; }
.preview-remove-btn:hover { background: rgba(255,80,80,0.3); }

/* ── Drag-over global highlight ──────────────── */
.drag-over {
  outline: 2px solid var(--aqua-teal) !important;
  outline-offset: -2px;
}

/* ── Zone vidéo TikTok ────────────────────────── */
.project-video-zone {
  background: linear-gradient(135deg, rgba(7,18,32,0.9), rgba(13,27,42,0.85));
}

.drop-zone-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: background 0.3s;
}

.drop-zone-video:not(.has-media) {
  border: 2px dashed rgba(255,77,109,0.4);
  background: linear-gradient(135deg, rgba(7,18,32,0.8), rgba(20,10,20,0.75));
}
.drop-zone-video:not(.has-media):hover,
.drop-zone-video.drag-over:not(.has-media) {
  background: rgba(255,77,109,0.07);
  border-color: rgba(255,77,109,0.7);
}
.drop-zone-video.has-media {
  border: none;
  background: #000;
}

/* Player vidéo dans la drop zone */
.video-preview-wrap {
  position: relative;
  width: 100%; height: 100%;
}

.video-preview-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Bouton supprimer vidéo */
.video-remove-btn {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  width: 32px; height: 32px;
  background: rgba(7,18,32,0.85);
  border: 1px solid rgba(255,80,80,0.5);
  color: #ff6b6b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.2s;
  z-index: 7;
  pointer-events: all;
}
.video-preview-wrap:hover .video-remove-btn { opacity: 1; }
.video-remove-btn:hover { background: rgba(255,80,80,0.35); }

/* Toast notification */
.drop-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(13,27,42,0.95);
  border: 1px solid rgba(44,196,196,0.3);
  border-radius: 30px;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--soft-white);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 9990;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.drop-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.drop-toast i { color: var(--aqua-teal); }
.drop-toast.error i { color: #ff6b6b; }
.drop-toast.error { border-color: rgba(255,107,107,0.3); }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9980;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 768px) {
  .drop-hint span { font-size: 0.75rem; }
  .drop-hint i { font-size: 1.3rem; }
}

/* ════════════════════════════════════════════════
   PLAN DE L'AQUARIUM — Sommaire visuel
   ════════════════════════════════════════════════ */
.map-section {
  background: var(--mid-blue);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.map-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/8935832/pexels-photo-8935832.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}

.map-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.map-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--soft-white);
  margin-bottom: 0.4rem;
}

.map-subtitle {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,237,229,0.45);
}

.aquarium-plan {
  position: relative;
  z-index: 2;
}

/* SVG plan */
.plan-svg {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 30px rgba(44,196,196,0.08));
}

/* Salles cliquables */
.plan-room-link {
  text-decoration: none;
  cursor: pointer;
}

.plan-room .room-rect {
  transition: fill 0.35s, stroke 0.35s;
}
.plan-room:hover .room-rect {
  fill: rgba(44,196,196,0.14) !important;
  stroke: rgba(44,196,196,0.75) !important;
}
.plan-room .room-dot {
  transition: fill 0.35s, r 0.35s;
}
.plan-room:hover .room-dot {
  fill: rgba(44,196,196,0.8) !important;
}

/* Poissons déco SVG — animation douce */
.plan-fish-deco {
  animation: planFish1 14s ease-in-out infinite;
  transform-origin: center;
}
.plan-fish-deco-2 {
  animation: planFish2 18s ease-in-out infinite;
  transform-origin: center;
}
@keyframes planFish1 {
  0%,100% { transform: translateX(0) translateY(0); }
  40%     { transform: translateX(60px) translateY(-12px); }
  70%     { transform: translateX(30px) translateY(8px); }
}
@keyframes planFish2 {
  0%,100% { transform: translateX(0) translateY(0); }
  50%     { transform: translateX(-50px) translateY(10px); }
}

/* Légende */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(240,237,229,0.55);
}

.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .plan-svg { max-width: 100%; }
  .map-section { padding: 4rem 0 3rem; }
}

/* ════════════════════════════════════════════════
   HINT "Voir le projet" sur les cartes
   ════════════════════════════════════════════════ */
.project-card {
  cursor: pointer;
}

.project-open-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--aqua-teal);
  background: rgba(7,18,32,0.75);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(44,196,196,0.2);
  border-radius: 0 0 15px 15px;
  padding: 0.55rem 1rem;
  opacity: 1;
  transition: background 0.3s ease, color 0.3s ease;
  pointer-events: none;
  z-index: 10;
}
.project-open-hint i {
  font-size: 0.9rem;
  color: var(--aqua-teal);
}

.project-card:hover .project-open-hint {
  background: rgba(44,196,196,0.18);
  color: #fff;
  opacity: 1;
}

/* Hint sur la carte TikTok — positionné en bas */
.project-card-tiktok .project-open-hint {
  display: flex;
  inset: auto;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(7,18,32,0.75);
  border-radius: 0 0 15px 15px;
  border-top: 1px solid rgba(44,196,196,0.2);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  backdrop-filter: blur(6px);
  opacity: 1;
  pointer-events: none;
  z-index: 15;
  transition: background 0.3s ease, color 0.3s ease;
}
.project-card-tiktok:hover .project-open-hint {
  background: rgba(44,196,196,0.18);
  color: #fff;
  opacity: 1;
}

/* ════════════════════════════════════════════════
   POPUP PROJET
   ════════════════════════════════════════════════ */
.project-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,10,20,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 8000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              visibility 0.4s;
  scrollbar-width: thin;
  scrollbar-color: rgba(44,196,196,0.3) transparent;
}
.project-popup-overlay::-webkit-scrollbar { width: 5px; }
.project-popup-overlay::-webkit-scrollbar-thumb { background: rgba(44,196,196,0.3); border-radius: 4px; }
.project-popup-overlay.open {
  opacity: 1;
  visibility: visible;
}

.project-popup-panel {
  width: 100%;
  max-width: 940px;
  height: auto;
  overflow-y: visible;
  border-radius: 20px;
  background: rgba(13,27,42,0.97) !important;
  border: 1px solid rgba(44,196,196,0.2) !important;
  box-shadow: 0 0 80px rgba(44,196,196,0.1), 0 30px 100px rgba(0,0,0,0.7);
  position: relative;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  margin: auto;
  align-self: flex-start;
  padding-top: 0;
}
.project-popup-overlay.open .project-popup-panel {
  transform: scale(1) translateY(0);
}

.project-popup-panel::-webkit-scrollbar { width: 4px; }
.project-popup-panel::-webkit-scrollbar-thumb { background: rgba(44,196,196,0.3); border-radius: 4px; }

/* Bouton fermer */
.popup-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(240,237,229,0.8);
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 9010;
  flex-shrink: 0;
}
.popup-close:hover {
  background: rgba(255,80,80,0.2);
  border-color: rgba(255,80,80,0.4);
  color: #ff6b6b;
  transform: rotate(90deg);
}

/* Layout intérieur */
.popup-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  clear: both;
}

/* Galerie en haut */
.popup-gallery {
  padding: 3rem 2rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popup-gallery-main {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(44,196,196,0.15);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.popup-gallery-main img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}
.popup-gallery-main video {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

/* Placeholder quand pas d'image */
.popup-gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: rgba(240,237,229,0.3);
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
.popup-gallery-placeholder i { font-size: 2rem; color: rgba(44,196,196,0.25); }

.popup-gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.popup-thumb {
  width: 60px; height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  opacity: 0.7;
}
.popup-thumb:hover { opacity: 1; transform: scale(1.06); }
.popup-thumb.active {
  border-color: var(--aqua-teal);
  opacity: 1;
}

/* Texte en bas */
.popup-content {
  padding: 1.5rem 2rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(44,196,196,0.1);
}

.popup-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aqua-teal);
  background: rgba(44,196,196,0.1);
  border: 1px solid rgba(44,196,196,0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  width: fit-content;
}

.popup-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--soft-white);
  line-height: 1.2;
}

.popup-year {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(240,237,229,0.4);
  letter-spacing: 0.1em;
}

.popup-desc {
  font-family: var(--font-body);
  font-size: 0.93rem;
  line-height: 1.8;
  color: rgba(240,237,229,0.75);
}

.popup-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.87rem;
  color: rgba(240,237,229,0.65);
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.popup-detail-row i {
  color: var(--aqua-teal);
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}
.popup-detail-row strong {
  color: rgba(240,237,229,0.85);
  margin-right: 0.3rem;
}

.popup-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.popup-mini-tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 15px;
  color: rgba(240,237,229,0.55);
}

.popup-stats {
  display: flex;
  gap: 2rem;
  padding: 1rem;
  background: rgba(44,196,196,0.05);
  border: 1px solid rgba(44,196,196,0.1);
  border-radius: 12px;
  margin-top: 0.5rem;
}

.popup-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.popup-stat-num {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--aqua-teal);
  font-weight: 600;
  line-height: 1;
}
.popup-stat-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(240,237,229,0.45);
}

/* Popup galerie vidéo portrait (TikTok 9:16) */
.popup-gallery-main.is-video {
  aspect-ratio: 9/16;
  max-height: 520px;
  width: auto;
  max-width: 300px;
  margin: 0 auto;
  background: #000;
  min-height: unset;
}
.popup-gallery-main.is-video video {
  object-fit: contain;
}

/* Upload zone dans popup */
.popup-upload-zone {
  border: 1.5px dashed rgba(44,196,196,0.3);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
}
.popup-upload-zone:hover {
  border-color: rgba(44,196,196,0.6);
  background: rgba(44,196,196,0.04);
}
.popup-upload-input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.popup-upload-label {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: rgba(240,237,229,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  pointer-events: none;
}
.popup-upload-label i { color: var(--aqua-teal); }

/* Bouton PDF dans popup */
.popup-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
  color: var(--sand-beige);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(200,169,110,0.4);
  padding: 0.55rem 1.3rem;
  border-radius: 20px;
  background: rgba(200,169,110,0.08);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  width: fit-content;
}
.popup-pdf-btn i {
  font-size: 1rem;
  color: #e05c5c;
}
.popup-pdf-btn:hover {
  border-color: rgba(200,169,110,0.7);
  color: var(--light-sand);
}

/* ── Flèches de navigation galerie popup ── */
.popup-gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.3rem;
}

.popup-nav-btn {
  width: 40px; height: 40px;
  background: rgba(44,196,196,0.1);
  border: 1px solid rgba(44,196,196,0.3);
  border-radius: 50%;
  color: var(--aqua-teal);
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.popup-nav-btn:hover {
  background: rgba(44,196,196,0.25);
  border-color: var(--aqua-teal);
  transform: scale(1.08);
}
.popup-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
}

.popup-nav-counter {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(240,237,229,0.45);
  min-width: 50px;
  text-align: center;
  letter-spacing: 0.05em;
}

/* Responsive popup */
@media (max-width: 768px) {
  .popup-inner {
    flex-direction: column;
  }
  .popup-content {
    border-top: 1px solid rgba(44,196,196,0.1);
    border-left: none;
    padding: 1.5rem;
  }
  .popup-gallery { padding: 3rem 1.5rem 0.5rem; }
  .project-popup-panel { border-radius: 16px; }
  .project-popup-overlay { padding: 1rem 0.5rem 2rem; }
  .popup-gallery-main.is-video { max-height: 340px; }
  .popup-gallery-main img { max-height: 55vh; }
}

/* Carte TikTok : la vidéo ne doit pas bloquer les clics vers le popup */
.project-card-tiktok .tiktok-video-col video {
  pointer-events: none;
}
.project-card-tiktok:hover .tiktok-video-col video {
  pointer-events: auto;
}

/* Curseur pointer sur toutes les cartes projet */
.project-card[data-project-id] {
  cursor: pointer;
}
.project-card[data-project-id] .drop-zone,
.project-card[data-project-id] input,
.project-card[data-project-id] a,
.project-card[data-project-id] button {
  cursor: default;
}
.project-card[data-project-id] .drop-zone { cursor: pointer; }
.project-card[data-project-id] a { cursor: pointer; }

