/* =========================
   Base + Thèmes modernes
   ========================= */
:root {
  --bg: #0a111e;
  --bg-soft: #0f172a;
  --surface: rgba(17, 24, 39, 0.6);
  --text: #e5e7eb;
  --muted: #94a3b8;

  --brand: #60a5fa;        /* primaire */
  --brand-2: #a78bfa;      /* secondaire */
  --accent: #22d3ee;       /* accent doux */
  --danger: #ff4d4d;

  --border: rgba(255,255,255,.08);
  --ring: 0 0 0 3px rgba(96,165,250,0.35);
  --shadow: 0 8px 30px rgba(0,0,0,.25);
  --shadow-sm: 0 6px 18px rgba(0,0,0,.18);
  --radius: 16px;

  --nav-background: rgba(15, 23, 42, 0.72);
}



/* Reset moderne */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  background:
   var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utilitaires */
.container { max-width: 1200px; margin: 0 auto; padding: 1.2rem; }
.section-pad { padding: clamp(4rem, 6vw, 6rem) 0; }
.title-xxl { font-size: clamp(1.8rem, 6vw + 0.5rem, 4rem); letter-spacing: -0.02em; }
.title-lg { font-size: clamp(1.1rem, 1.8vw + 0.7rem, 1.8rem); color: var(--accent); }

.link { color: var(--brand); text-decoration: none; border-bottom: 1px dashed transparent; transition: border-color .25s; }
.link:hover { border-color: var(--brand); }

/* Verre / glassmorphism */
.glass {
  background: var(--surface);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
}

/* Header / Nav */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: transform .3s ease;
  background: var(--nav-background);
  backdrop-filter: blur(10px) saturate(120%);
}
nav {
  max-width: 1200px; margin: 0 auto;
  padding: .6rem .9rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .8rem;
  align-items: center;
}
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.logo img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; }

.nav-actions { display: flex; gap: .5rem; align-items: center; }

.icon-btn, .menu-toggle {
  appearance: none; border: 1px solid var(--border); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: color-mix(in oklab, var(--bg-soft) 80%, transparent);
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease;
  touch-action: manipulation;
}
.icon-btn:hover, .menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.menu-toggle { display: none; flex-direction: column; gap: 4px; }
.menu-toggle .bar { height: 2px; width: 22px; background: currentColor; border-radius: 2px; }

.menu { display: flex; list-style: none; gap: 1.4rem; margin: 0; padding: 0; }
.menu a {
  position: relative; text-decoration: none; color: var(--text); font-weight: 600; letter-spacing: .2px;
  padding: .3rem 0;
}
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.menu a:hover::after { transform: scaleX(1); }

/* Drawer mobile */
.drawer { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 1200; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; right: 0; top: 0; height: 100%; width: min(88vw, 420px); padding: 1rem 1rem 2rem; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 1rem; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-close { align-self: flex-end; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; background: color-mix(in oklab, var(--bg-soft) 80%, transparent); color: var(--text); }
.drawer-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.drawer-menu a { display: block; padding: .9rem 1rem; border-radius: 12px; text-decoration: none; color: var(--text); font-size: 1.05rem; font-weight: 700; border: 1px solid transparent; }
.drawer-menu a:hover { background: color-mix(in oklab, var(--bg-soft) 92%, transparent); border-color: var(--border); }
.drawer-social { display: flex; gap: .6rem; margin-top: auto; }

.no-scroll { overflow: hidden; }

/* =========================
   HERO (mêmes couleurs en clair/sombre)
   ========================= */
.hero {
  /* Palette figée pour le hero */
  --hero-text: #ffffff;
  --hero-muted: rgba(235, 240, 255, 0.85);
  --hero-border: rgba(255,255,255,0.22);
  --hero-ghost: rgba(255,255,255,0.12);

  min-height: 100vh; position: relative; display: grid; place-items: center; text-align: center; overflow: hidden; align-content: center;
}


.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('public/fond88.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Contenu par-dessus */
.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

/* --- Mobile : plein écran sans bandes noires --- */
@media (max-width: 768px) {
  .hero {
    height: 100dvh; /* hauteur réelle du viewport mobile */
  }

  .hero-bg {
    width: 100vw;
    height: 100dvh;
    object-fit: cover;
    object-position: center;
    transform: none;
  }
}

.hero-content { position: relative; z-index: 1; padding: 1.6rem; animation: fadeIn .8s ease-out both; }
.logo-hero { width: 70px; height: 70px; margin-right: .5rem; vertical-align: middle; border-radius: 50%; }

/* Titres/texte figés en blanc */
.hero .title-xxl,
.hero .title-lg { color: var(--hero-text) !important; }
.hero p { max-width: 640px; margin: .7rem auto 1.6rem; color: var(--hero-muted); font-size: clamp(.98rem, 1.2vw + .8rem, 1.05rem); }

/* CTA Hero (toujours identiques) */
.hero-buttons { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero .cta-button {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.2rem; border-radius: 999px; font-weight: 800;
  text-decoration: none; letter-spacing: .3px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid var(--hero-border);
}
.hero .cta-button i { font-size: 1.05rem; }
.hero .cta-button.primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(99,102,241,.35);
}
.hero .cta-button.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(99,102,241,.45); }
.hero .cta-button.secondary {
  background: var(--hero-ghost);
  color: var(--hero-text);
}
.hero .cta-button.secondary:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; color: #cbd5e1; }
.mouse { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 24px; margin: 0 auto .4rem; position: relative; }
.mouse::before { content: ""; position: absolute; width: 4px; height: 8px; background: rgba(255,255,255,.85); left: 50%; transform: translateX(-50%); top: 8px; border-radius: 2px; animation: scroll 2s infinite; }

/* Sections */
.section-title { text-align: center; margin: 0 0 2rem; font-size: clamp(1.4rem, 1.2vw + 1rem, 2.1rem); color: var(--text); position: relative; padding-bottom: .9rem; font-weight: 900; }
.section-title i { color: var(--accent); margin-right: .5rem; }
.section-title::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 96px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); opacity: .9; }

/* Trailer Section */
#trailer {
  text-align: center;
  margin-bottom: 0px;
}

.trailer-video-wrapper {
  position: relative;
  max-width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.trailer-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

/* ✅ Ajustement spécifique mobile */
@media (max-width: 768px) {
  .trailer-video-wrapper {
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }

  .trailer-video-wrapper video {
    object-fit: contain; /* pour éviter le zoom sur certaines vidéos mobiles */
  }
}

.yt-button-wrapper {
  text-align: center;
  margin-top: 1rem;
}

.yt-simple-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  transition: all 0.25s ease;
}

.yt-simple-btn:hover {
  background: rgba(255, 0, 0, 0.25);
  border-color: rgba(255, 0, 0, 0.4);
  transform: scale(1.05);
}

.yt-simple-btn i {
  color: #ff0000;
  font-size: 1.2rem;
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.service-card { padding: 1.6rem; text-align: center; min-height: 280px; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; border: 1px solid var(--border); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card i { font-size: 2rem; color: var(--accent); margin-bottom: .8rem; }
.service-card h3 { margin: .2rem 0 .7rem; }
.service-card p { color: var(--muted); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }
.gallery-item { position: relative; height: clamp(180px, 26vw, 250px); border-radius: 14px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-sm); transition: transform .35s ease, box-shadow .35s ease; }
.gallery-item:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow); }
.gallery-item img, .gallery-item video, .gallery-item canvas { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-in-out; }
.gallery-item:hover img, .gallery-item:hover video, .gallery-item:hover canvas { transform: scale(1.06); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, color-mix(in oklab, #000 32%, transparent)); }
.play-icon { position: absolute; inset: auto auto 10px 10px; font-size: 1.4rem; color: #fff; opacity: .9; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 1100; justify-content: center; align-items: center; padding: 1rem; }
.lightbox-content { max-width: 95%; max-height: 90vh; position: relative; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; }
.close, .prev, .next { position: absolute; color: #fff; cursor: pointer; font-size: 1.2rem; padding: .7rem .9rem; transition: transform .2s ease, color .2s ease; background: rgba(255,255,255,.06); border-radius: 10px; border: 1px solid rgba(255,255,255,.1); }
.close { top: .7rem; right: .7rem; }
.prev { left: .7rem; top: 50%; transform: translateY(-50%); }
.next { right: .7rem; top: 50%; transform: translateY(-50%); }
.close:hover, .prev:hover, .next:hover { color: var(--accent); transform: translateY(-2px); }

#lightbox-caption-image, #lightbox-caption-video { color: #fff; text-align: center; padding: .8rem; font-size: 1rem; }

/* Contact */
.contact-info { padding: 1.8rem; text-align: center; width: 100%; max-width: 840px; margin: 0 auto; }
.contact-info h3 { text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 1.1rem; }
.info-item { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: .7rem; justify-content: center; margin: .7rem auto; }
.info-item i { font-size: 1.1rem; color: var(--accent); }
.info-item p { margin: 0; font-size: 1.02rem; }

/* Social */
.social-links { display: flex; gap: .6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.social-link { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: color-mix(in oklab, var(--bg-soft) 92%, transparent); color: var(--text); text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; border: 1px solid var(--border); }
.social-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* Footer */
footer { background: linear-gradient(180deg, var(--bg-soft), color-mix(in oklab, var(--bg) 85%, #000 15%)); color: color-mix(in oklab, var(--text) 92%, #fff 8%); padding: 2.2rem 0 2rem; margin-top: 2rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.footer-section h3 { color: var(--accent); margin-bottom: .6rem; }
.footer-section ul { list-style: none; margin: 0; padding: 0; }
.footer-section li { margin: .4rem 0; }
.footer-section a { color: inherit; text-decoration: none; }
.footer-section a:hover { color: var(--brand); }
.footer-bottom { text-align: center; padding-top: 1.2rem; border-top: 1px solid var(--border); color: var(--muted); }

/* Masquer vidéos invisibles */
#hidden-video-1, #hidden-video-2, #hidden-video-3 { display: none; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%,20%,50%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
@keyframes scroll { 0% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, 10px); opacity: 0; } }

/* Accessibilité focus */
:where(a, button, .cta-button):focus-visible { outline: none; box-shadow: var(--ring); }

/* Responsive */
@media (max-width: 1024px) { .menu { display: none; } .menu-toggle { display: inline-flex; } }
@media (max-width: 640px) { .gallery-item { height: clamp(160px, 42vw, 220px); } }

/* Réduction des animations si demandé */
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* --- Désactivation des animations lightbox sur mobile --- */
@media (max-width: 768px) {
  .lightbox .prev,
  .lightbox .next,
  .lightbox .close {
    transition: none !important;
    transform: none !important;
    z-index: 10; /* passe au-dessus de l'image/vidéo */
    position: fixed; /* reste visible même si le contenu bouge */
  }

  .lightbox .prev:hover,
  .lightbox .next:hover,
  .lightbox .close:hover {
    transform: none !important;
  }


}