/* ============================================================
   SYNAPTIC VIDÉO PRODUCTION — style.css
   Styles partagés entre index.html, galerie.html, legacy.html
   ============================================================ */

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

:root {
  --bg:       #2b303a;
  --bg-dark:  #222730;
  --bg-light: #333845;
  --red:      #ee4024;
  --red-dark: #c93318;
  --white:    #ffffff;
  --off:      #f0f0ee;
  --muted:    #9aa0ad;
  --light-bg: #f5f4f0;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--white);
  font-family: 'Outfit', sans-serif; font-weight: 300;
  overflow-x: hidden; cursor: none;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CURSOR ── */
#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
}
#cursor-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; transition: transform .15s; }
#cursor-ring { width: 34px; height: 34px; border: 2px solid var(--red); border-radius: 50%; opacity: .5; transition: width .25s, height .25s, opacity .25s; }
body.cur-hover #cursor-dot  { transform: translate(-50%,-50%) scale(1.6); }
body.cur-hover #cursor-ring { width: 54px; height: 54px; opacity: .8; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 60px; transition: background .4s, box-shadow .4s;
}
nav.scrolled { background: rgba(34,39,48,.96); backdrop-filter: blur(10px); box-shadow: 0 2px 30px rgba(0,0,0,.3); }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-name { font-size: 17px; font-weight: 700; color: var(--white); letter-spacing: .03em; line-height: 1.1; }
.nav-name small { display: block; font-size: 10px; font-weight: 300; letter-spacing: .15em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 400; letter-spacing: .08em; transition: color .25s; position:relative;}
.nav-links a::after{
content:'';
position:absolute;
left:0;
bottom:-6px;
width:0;
height:2px;
background:var(--red);
transition:.3s;
}
.nav-links a:hover::after{
width:100%;
}
.nav-links a:hover { color: var(--red); }
.nav-links a.active { color: var(--white); }
.nav-cta { padding: 10px 24px; background: var(--red); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; border-radius: 30px; transition: background .25s, transform .2s; }
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ── HAMBURGER ── */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MENU MOBILE ── */
.nav-mobile {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99;
  background: rgba(34,39,48,.98); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.nav-mobile.open { opacity: 1; pointer-events: all; }
.nav-mobile ul { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.nav-mobile ul a { font-size: 32px; font-weight: 700; color: var(--white); text-decoration: none; padding: 12px 32px; display: block; transition: color .25s; }
.nav-mobile ul a:hover { color: var(--red); }
.mobile-cta { background: var(--red) !important; border-radius: 30px; color: #fff !important; font-size: 18px !important; margin-top: 16px; }

@media (max-width: 960px) {
  .nav-burger { display: flex; }
  body.cursor: auto; /* désactive le curseur custom */
}

/* ── PETITS MOBILES ── */
@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .hero-script { font-size: 20px; }
  .hero-btns { flex-direction: column; }
  .btn-main, .btn-outline { text-align: center; }
  .testi-grid { grid-template-columns: 1fr; }
}

/* ── PAGE HERO (pages secondaires) ── */
#page-hero { background: var(--bg-dark); padding: 160px 60px 80px; position: relative; overflow: hidden; }
.page-hero-blob { position: absolute; top: -20%; right: -5%; width: 40vw; height: 60vh; background: var(--red); border-radius: 50%; opacity: .06; pointer-events: none; }
.page-hero-inner { margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.breadcrumb a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { font-size: 13px; color: rgba(255,255,255,.25); }
.breadcrumb strong { font-size: 13px; color: var(--white); font-weight: 400; }
.page-hero-inner h1 { font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 16px; }
.page-hero-inner h1 .accent { color: var(--red); }
.page-hero-inner p { color: var(--muted); line-height: 1.8; }

/* ── GALLERY ── */
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.filter-btn { padding: 8px 20px; border-radius: 30px; border: 1.5px solid rgba(255,255,255,.12); background: transparent; color: var(--muted); font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 400; cursor: pointer; transition: all .25s; }
.filter-btn.active, .filter-btn:hover { border-color: var(--red); color: var(--white); background: rgba(238,64,36,.12); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 240px; gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 16px; background: var(--bg-light); cursor: pointer; transition: opacity .35s, transform .25s; }
.gallery-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; filter: brightness(.75); }
.gallery-item:hover .gallery-thumb { transform: scale(1.06); filter: brightness(.5); }
.gallery-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,var(--bg-light),var(--bg-dark)); transition: filter .3s; }
.gallery-item:hover .gallery-placeholder { filter: brightness(.7); }
.gp-num { font-size: 52px; font-weight: 800; color: rgba(238,64,36,.15); user-select: none; letter-spacing: -.04em; }
.gallery-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; background: linear-gradient(to top,rgba(30,34,42,.92) 0%,transparent 55%); opacity: 0; transition: opacity .3s; }
.gallery-overlay::after {
  content:'';
  width:0;
  height:2px;
  background:var(--red);
  display:block;
  margin-top:8px;
  transition:width .4s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay::after{
  width:60px;
}
.ov-cat { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.ov-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.ov-client { font-size: 12px; color: rgba(255,255,255,.5); }
.gallery-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.6); width: 56px; height: 56px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s, transform .3s; box-shadow: 0 6px 24px rgba(238,64,36,.5); }
.gallery-item:hover .gallery-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.gallery-play svg { margin-left: 3px; }
.gallery-count { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.gallery-count strong { color: var(--white); }

/* ── LIGHTBOX ── */
#lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,24,30,.97); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
#lightbox.open { opacity: 1; pointer-events: all; }
.lb-wrap { position: relative; width: 90vw; max-width: 1100px; aspect-ratio: 16/9; }
.lb-top { position: absolute; top: -50px; right: 0; display: flex; align-items: center; gap: 12px; }
.lb-meta-title { font-size: 14px; color: rgba(255,255,255,.6); }
.lb-close-btn { background: var(--red); border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .25s; }
.lb-close-btn:hover { background: var(--red-dark); }
.lb-close-btn svg { width: 14px; height: 14px; }
#lb-iframe { width: 100%; height: 100%; border: none; border-radius: 12px; }

/* ── FOOTER ── */
footer {
  background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 60px;
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
}
.footer-left { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.footer-brand { font-size: 17px; font-weight: 800; color: var(--white); }
.footer-brand small { display: block; font-size: 11px; font-weight: 300; color: var(--muted); letter-spacing: .1em; }

.footer-tagline { flex: 1; text-align: center; }
.footer-tagline strong { display: block; font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.footer-tagline p { font-size: 13px; color: var(--muted); line-height: 1.6; font-family: 'Caveat', cursive; font-size: 18px; }

.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 12px; color: var(--muted); text-decoration: none; transition: color .25s; }
.footer-links a:hover { color: var(--red); }

@media (max-width: 960px) {
  footer { flex-direction: column; text-align: center; padding: 32px 24px; gap: 24px; }
  .footer-right { align-items: center; }
}

/* ── RGPD ── */
#rgpd-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 500; background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,.08); padding: 24px 60px; display: flex; align-items: center; justify-content: space-between; gap: 32px; box-shadow: 0 -8px 40px rgba(0,0,0,.4); transform: translateY(100%); transition: transform .5s cubic-bezier(.22,1,.36,1); }
#rgpd-banner.visible { transform: translateY(0); }
.rgpd-text { flex: 1; max-width: 680px; }
.rgpd-text p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 0; }
.rgpd-text a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.rgpd-text strong { color: var(--white); font-weight: 600; }
.rgpd-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.rgpd-btn-accept { padding: 11px 28px; background: var(--red); color: #fff; border: none; border-radius: 30px; font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .25s; white-space: nowrap; }
.rgpd-btn-accept:hover { background: var(--red-dark); }
.rgpd-btn-refuse { padding: 11px 28px; background: transparent; color: var(--muted); border: 1.5px solid rgba(255,255,255,.12); border-radius: 30px; font-family: 'Outfit', sans-serif; font-size: 13px; cursor: pointer; transition: border-color .25s, color .25s; white-space: nowrap; }
.rgpd-btn-refuse:hover { border-color: rgba(255,255,255,.3); color: var(--white); }
.rgpd-btn-params { padding: 11px 20px; background: transparent; color: var(--muted); border: none; border-radius: 30px; font-family: 'Outfit', sans-serif; font-size: 13px; cursor: pointer; text-decoration: underline; white-space: nowrap; transition: color .25s; }
.rgpd-btn-params:hover { color: var(--white); }
#rgpd-badge { position: fixed; bottom: 20px; left: 20px; z-index: 400; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-dark); border: 1px solid rgba(255,255,255,.1); display: none; align-items: center; justify-content: center; cursor: pointer; transition: border-color .25s; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
#rgpd-badge:hover { border-color: var(--red); }
#rgpd-badge svg { width: 18px; height: 18px; }
#rgpd-badge.show { display: flex; }
#rgpd-modal { position: fixed; inset: 0; z-index: 600; background: rgba(20,24,30,.97); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
#rgpd-modal.open { opacity: 1; pointer-events: all; }
.rgpd-modal-box { background: var(--bg-dark); border: 1px solid rgba(255,255,255,.08); border-radius: 24px; padding: 48px; max-width: 560px; width: 90%; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.rgpd-modal-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.rgpd-modal-box > p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
.rgpd-toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.06); gap: 24px; }
.rgpd-toggle-row:last-of-type { border-bottom: none; }
.rgpd-toggle-label strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.rgpd-toggle-label span { font-size: 13px; color: var(--muted); }
.rgpd-switch { position: relative; width: 48px; height: 26px; flex-shrink: 0; }
.rgpd-switch input { opacity: 0; width: 0; height: 0; }
.rgpd-slider { position: absolute; inset: 0; background: rgba(255,255,255,.1); border-radius: 30px; cursor: pointer; transition: background .3s; }
.rgpd-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; bottom: 3px; background: var(--white); border-radius: 50%; transition: transform .3s; }
.rgpd-switch input:checked + .rgpd-slider { background: var(--red); }
.rgpd-switch input:checked + .rgpd-slider::before { transform: translateX(22px); }
.rgpd-switch input:disabled + .rgpd-slider { opacity: .5; cursor: not-allowed; }
.rgpd-modal-actions { display: flex; gap: 12px; margin-top: 32px; }
.rgpd-modal-save { padding: 12px 28px; background: var(--red); color: #fff; border: none; border-radius: 30px; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .25s; }
.rgpd-modal-save:hover { background: var(--red-dark); }
.rgpd-modal-close { padding: 12px 20px; background: transparent; color: var(--muted); border: 1.5px solid rgba(255,255,255,.12); border-radius: 30px; font-family: 'Outfit', sans-serif; font-size: 14px; cursor: pointer; transition: border-color .25s, color .25s; }
.rgpd-modal-close:hover { border-color: rgba(255,255,255,.3); color: var(--white); }

/* ── ANIMATIONS ── */
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(.7); } }
.reveal       { opacity:0; transform:translateY(28px);  transition: opacity .7s ease, transform .7s ease; }
.reveal-left  { opacity:0; transform:translateX(-30px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right { opacity:0; transform:translateX(30px);  transition: opacity .7s ease, transform .7s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity:1; transform:none; }

/* ── RESPONSIVE COMMUN ── */
@media (max-width: 960px) {
  nav { padding: 16px 24px; }
  .nav-links, .nav-cta { display: none; }
  #page-hero { padding: 120px 24px 60px; }
  footer { flex-direction: column; text-align: center; padding: 32px 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  #rgpd-banner { flex-direction: column; padding: 24px; align-items: flex-start; }
  .rgpd-actions { width: 100%; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
