/*
Theme Name: MAD.VISION
Theme URI: https://madvision.fr
Author: MAD.VISION
Description: Thème officiel MAD.VISION — Production Exécutive Paris
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: madvision
*/

/* =============================================
   VARIABLES
   ============================================= */
:root {
  --black:   #000000;
  --white:   #FFFFFF;
  --red:     #FF0000;
  --gray:    #555555;
  --gray-lt: #999999;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --nav-h: 80px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   LOADER
   ============================================= */
#loader {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--white);
  overflow: hidden;
}
.loader-logo span {
  display: inline-block;
  transform: translateY(100%);
  animation: loaderReveal 0.8s var(--ease) forwards;
}
.loader-logo span:nth-child(2) { animation-delay: 0.05s; }
.loader-logo span:nth-child(3) { animation-delay: 0.10s; }
.loader-logo span:nth-child(4) { animation-delay: 0.15s; }
.loader-logo span:nth-child(5) { animation-delay: 0.20s; }
.loader-logo span:nth-child(6) { animation-delay: 0.25s; }
.loader-logo span:nth-child(7) { animation-delay: 0.30s; }
.loader-logo span:nth-child(8) { animation-delay: 0.35s; }

.loader-bar {
  width: 120px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--red);
  animation: loaderBar 1s 0.5s var(--ease) forwards;
}
@keyframes loaderReveal { to { transform: translateY(0); } }
@keyframes loaderBar { to { left: 0; } }

/* =============================================
   CURSEUR
   ============================================= */
.cursor {
  position: fixed;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  margin-left: -4.5px;
  margin-top: -4.5px;
  transition: opacity 0.2s;
  /* Sphère sombre — rouge profond, peu de brillance */
  background: radial-gradient(
    circle at 34% 30%,
    #cc1111 0%,
    #990000 40%,
    #660000 70%,
    #3a0000 100%
  );
  box-shadow: 0 1px 5px rgba(180, 0, 0, 0.35);
  animation: cursorRecPulse 1.8s ease-in-out infinite;
}

/* Micro-reflet très discret */
.cursor::before {
  content: '';
  position: absolute;
  top: 22%; left: 24%;
  width: 26%; height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse,
    rgba(255,255,255,0.18) 0%,
    transparent 100%
  );
  transform: rotate(-15deg);
  pointer-events: none;
}

/* Halo REC — bien visible, rythme de caméra */
.cursor::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(220, 0, 0, 0.55);
  transform: translate(-50%, -50%) scale(1);
  animation: cursorRecHalo 1.8s ease-out infinite;
  pointer-events: none;
}

@keyframes cursorRecPulse {
  0%, 100% { box-shadow: 0 1px 5px rgba(180,0,0,0.3); }
  50%       { box-shadow: 0 0 12px rgba(200,0,0,0.6), 0 0 3px rgba(180,0,0,0.4); }
}

@keyframes cursorRecHalo {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: 0.7; }
  100% { transform: translate(-50%,-50%) scale(3.2); opacity: 0;   }
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background 0.4s;
}
.site-header.scrolled {
  background: rgba(0,0,0,0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Logo */
.site-branding { display: flex; align-items: center; flex-shrink: 0; }
.site-branding a {
  display: flex;
  align-items: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-branding img {
  height: 100px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
}

/* Nav */
.main-navigation ul { display: flex; list-style: none; gap: 48px; }
.main-navigation a {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
  position: relative;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a { color: var(--white); }
.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}
.main-navigation a:hover::after { width: 100%; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--white);
  transition: transform 0.35s, opacity 0.35s, width 0.35s;
}
.menu-toggle span:nth-child(2) { width: 20px; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 28px; }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   CONTENU GUTENBERG — styles de base
   ============================================= */
.madvision-content {
  width: 100%;
  padding-top: var(--nav-h);
}

/* Textes blancs par défaut sur fond noir */
.madvision-content h1,
.madvision-content h2,
.madvision-content h3,
.madvision-content h4,
.madvision-content p,
.madvision-content li { color: var(--white); }

/* Respecter les couleurs Gutenberg si définies manuellement */
.madvision-content .has-text-color,
.madvision-content [style*="color"] { color: revert; }

/* Espacement automatique entre sections */
.madvision-content .wp-block-group { padding-top: 80px; padding-bottom: 80px; }
.madvision-content .wp-block-group .wp-block-group { padding-top: 0; padding-bottom: 0; }
.madvision-content .wp-block-columns { gap: 40px; margin-top: 40px; }
.madvision-content p { margin-bottom: 1.4em; }
.madvision-content h1, .madvision-content h2, .madvision-content h3 { margin-bottom: 20px; }

/* Titres */
.madvision-content h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 7rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.madvision-content h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.madvision-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.madvision-content p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.4em;
}

/* Colonnes */
.madvision-content .wp-block-columns { gap: 40px; margin-top: 48px; }
.madvision-content .wp-block-column > * + * { margin-top: 16px; }

/* Vidéo YouTube 16:9 */
.madvision-content .wp-block-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 0;
}
/* Overlay transparent — masque le bouton play central YouTube */
.madvision-content .wp-block-embed__wrapper::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 4;
  background: transparent;
  pointer-events: all;
}
.madvision-content .wp-block-embed__wrapper {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
}
.madvision-content .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Images */
.madvision-content .wp-block-image { margin: 0; }
.madvision-content .wp-block-image img { max-width: 100%; height: auto; }

/* Full width */
.madvision-content .alignfull,
.madvision-content .alignwide { max-width: 100%; width: 100%; margin-left: 0; margin-right: 0; }

/* =============================================
   FORMULAIRE DE CONTACT
   ============================================= */
.page-contact { padding-top: var(--nav-h); min-height: 100vh; display: flex; align-items: center; }
.contact-inner { width: 100%; max-width: 820px; margin: 0 auto; padding: 80px 40px; }
.contact-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 12px;
}
.contact-intro {
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  margin-bottom: 64px;
  line-height: 1.7;
  border-left: 2px solid var(--red);
  padding-left: 16px;
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-form .form-group { margin-bottom: 36px; }
.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  cursor: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--red); }
.contact-form textarea { resize: none; min-height: 100px; }
.contact-form select option { background: var(--black); }
.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--red);
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 18px 44px;
  cursor: none;
  transition: background 0.3s var(--ease);
  margin-top: 16px;
}
.submit-btn:hover { background: #ce250e; }
.submit-btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.submit-btn:hover svg { transform: translateX(5px); }

/* =============================================
   PAGE WORK
   ============================================= */
.page-work { padding-top: var(--nav-h); }
.section-header {
  padding: 64px 40px 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.section-title span { color: var(--red); }
.section-count {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gray-lt);
  text-transform: uppercase;
}
.work-filters {
  padding: 20px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.filter-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 18px;
  cursor: none;
  transition: all 0.3s;
}
.filter-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: #111; }
.project-item { position: relative; overflow: hidden; aspect-ratio: 16/9; background: #0a0a0a; cursor: none; }
.project-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.6s; filter: brightness(0.85); }
.project-item:hover .project-thumb { transform: scale(1.04); filter: brightness(1); }
.project-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
  opacity: 0;
  transition: opacity 0.45s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.project-item:hover .project-overlay { opacity: 1; }
.project-overlay .project-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 900;
  transform: translateY(14px);
  transition: transform 0.45s var(--ease);
}
.project-overlay .project-director {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 6px;
  transform: translateY(14px);
  transition: transform 0.45s 0.06s var(--ease);
}
.project-item:hover .project-title,
.project-item:hover .project-director { transform: translateY(0); }
.project-num {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.25);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-item:hover .project-num { opacity: 1; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  padding: 32px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-copy {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* =============================================
   REVEAL SCROLL
   ============================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .site-header { padding: 0 20px; }
  .menu-toggle { display: flex; }
  .main-navigation {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 490;
  }
  .main-navigation.open { opacity: 1; pointer-events: all; }
  .main-navigation ul { flex-direction: column; gap: 36px; text-align: center; }
  .main-navigation a { font-size: 0.9rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .madvision-content .wp-block-group { padding: 60px 20px; }
  .madvision-content .wp-block-columns { flex-direction: column; }
  .contact-inner { padding: 60px 20px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 12px; text-align: center; padding: 28px 20px; }
  body { cursor: auto; }
  .cursor { display: none; }
}

/* =============================================
   EFFETS MOTION — Reveal, Underline, Curtain
   ============================================= */

/* ── REVEAL TITRE LIGNE PAR LIGNE ── */
.title-line { display: block; overflow: hidden; }
.title-line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.title-line-inner.revealed { transform: translateY(0); }
.title-line:nth-child(2) .title-line-inner { transition-delay: .12s; }
.title-line:nth-child(3) .title-line-inner { transition-delay: .24s; }
.title-line:nth-child(4) .title-line-inner { transition-delay: .36s; }

/* ── SOULIGNEMENT ROUGE ── */
.underline-reveal { position: relative; display: inline-block; }
.title-underline-bar {
  position: absolute;
  bottom: -6px; left: 0;
  height: 2px;
  width: 0%;
  background: #FF0000;
  display: block;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.title-underline-bar.drawn { width: 100%; }

/* ── RIDEAU NOIR ── */
.curtain-wrap { position: relative; overflow: hidden; }
.curtain-veil {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: #000;
  z-index: 2;
  transform: translateY(0%);
  transition: transform 2.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.curtain-veil.open { transform: translateY(101%); }

/* ── SMOOTH SCROLL (Lenis reset) ── */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* =============================================
   EFFETS MOTION AUTOMATIQUES
   ============================================= */

/* Lignes titres */
.mv-line { display: block; overflow: hidden; line-height: 1.05; }
.mv-line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.mv-line-inner.mv-revealed { transform: translateY(0); }
.mv-line:nth-child(2) .mv-line-inner { transition-delay: .13s; }
.mv-line:nth-child(3) .mv-line-inner { transition-delay: .26s; }

/* Barre rouge sous H2 */
.mv-underline {
  display: block;
  height: 2px;
  width: 0%;
  background: #FF0000;
  margin-top: 12px;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.mv-underline.mv-drawn { width: 100%; }

/* Reveal paragraphes */
.mv-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(0.16, 1, 0.3, 1), transform .8s cubic-bezier(0.16, 1, 0.3, 1);
}
.mv-reveal.mv-reveal-visible { opacity: 1; transform: translateY(0); }

/* =============================================
   POINT REC 3D — fixe, suit le scroll
   ============================================= */
#rec-sphere {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 490;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity .5s, transform .5s cubic-bezier(0.16,1,0.3,1);
  /* Commence invisible, apparaît après le début du scroll */
  opacity: 0;
  transform: translateY(-50%) translateX(20px);
}

#rec-sphere.visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Corps sphère */
.rec-sphere-body {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 32%,
    #ff4444 0%,
    #FF0000 35%,
    #cc0000 65%,
    #880000 85%,
    #550000 100%
  );
  animation: recSpherePulse 1.2s ease-in-out infinite;
}
@keyframes recSpherePulse {
  0%,100% {
    box-shadow:
      0 0 0 0 rgba(255,0,0,.35),
      0 0 20px rgba(255,0,0,.1),
      inset 0 0 12px rgba(0,0,0,.3);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(255,0,0,.05),
      0 0 32px rgba(255,0,0,.2),
      inset 0 0 12px rgba(0,0,0,.3);
  }
}

/* Reflet spéculaire */
.rec-sphere-shine {
  position: absolute;
  top: 12%; left: 18%;
  width: 32%; height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.55) 0%, rgba(255,255,255,.1) 60%, transparent 100%);
  transform: rotate(-20deg);
  z-index: 2;
  pointer-events: none;
}
.rec-sphere-shine2 {
  position: absolute;
  bottom: 18%; right: 16%;
  width: 18%; height: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,180,180,.2) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Texte REC */
.rec-sphere-label {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: .55rem;
  letter-spacing: .18em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  z-index: 3;
  pointer-events: none;
}

/* Anneau externe qui pulse */
.rec-sphere-ring {
  position: absolute;
  top: -6px; right: -6px; bottom: -6px; left: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255,0,0,.2);
  animation: recRingPulse 1.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes recRingPulse {
  0%,100% { transform: scale(1); opacity: .5; }
  50%      { transform: scale(1.12); opacity: .08; }
}

/* Lévitation continue */
@keyframes recFloat {
  0%,100% { margin-top: 0; }
  50%      { margin-top: -6px; }
}
#rec-sphere.visible .rec-sphere-body { animation: recSpherePulse 1.2s ease-in-out infinite, recFloat 3.5s ease-in-out infinite; }

/* Mobile — plus petit et positionné différemment */
@media (max-width: 768px) {
  #rec-sphere {
    right: 16px;
    width: 38px;
    height: 38px;
  }
  .rec-sphere-label { font-size: .42rem; }
}

/* =============================================
   EFFETS MOTION — contemplatif
   ============================================= */

/* ── Reveal lignes — lent, posé ── */
.mv-line { display: block; overflow: hidden; line-height: 1.05; }
.mv-line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.mv-line-inner.mv-revealed { transform: translateY(0); }
.mv-line:nth-child(2) .mv-line-inner { transition-delay: .22s; }
.mv-line:nth-child(3) .mv-line-inner { transition-delay: .44s; }
.mv-line:nth-child(4) .mv-line-inner { transition-delay: .66s; }

/* ── Rideau noir — haut → bas, très lent ── */
.mv-curtain {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0; z-index: 2;
  background: #000;
  transform: translateY(0%);
  transition: transform 2.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.mv-curtain.mv-curtain-open { transform: translateY(101%); }

/* ── Reveal simple — aérien, long ── */
.mv-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.8s ease,
              transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.mv-reveal.mv-reveal-visible { opacity: 1; transform: translateY(0); }

/* ── Lenis ── */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* =============================================
   ANTI-PLUGIN — Bloquer animations tierces
   Cause identifiée : Extendify / AOS injecte
   des keyframes translateX sur blocs image/vidéo
   ============================================= */

/* 1. AOS (Animate on Scroll) — utilisé par Extendify */
[data-aos],
[data-aos].aos-animate,
[data-aos-id],
.aos-init,
.aos-animate {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* 2. Autres attributs d'animation de plugins */
[data-animation], [data-animation] *,
[data-wow-delay], [data-wow-duration],
.animated, .wow,
.extendify-animation {
  animation: none !important;
  animation-delay: 0s !important;
  transform: none !important;
  opacity: 1 !important;
}

/* 3. Tuer toutes les keyframe animations dans le contenu
      (nos effets utilisent des CSS transitions, pas des animations) */
.madvision-content * {
  animation: none !important;
  animation-delay: 0s !important;
}

/* 4. Forcer images et vidéo sans translateX ni translateY parasite */
.madvision-content .wp-block-image,
.madvision-content .wp-block-image figure,
.madvision-content .wp-block-image img,
.madvision-content .wp-block-embed,
.madvision-content .wp-block-embed__wrapper,
.madvision-content .wp-block-embed iframe,
.madvision-content figure img {
  animation: none !important;
  transform: none !important;
}
