/* ============================================================
   BC VISUAL — Global Stylesheet
   Palette : #F5C518 (jaune) / #0a0a0a (noir) / #fff (blanc)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #F5C518;
  --yellow-dark: #d4a800;
  --black: #0a0a0a;
  --black-soft: #111111;
  --black-card: #1a1a1a;
  --grey: #888;
  --grey-light: #ccc;
  --white: #ffffff;
  --font-main: 'Inter', sans-serif;
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --transition: 0.3s ease;
  --radius: 4px;
  /* Hero photo opacity — ajuster ici pour changer l'intensité */
  /* Discret : 0.20 | Subtil : 0.32 | Marqué : 0.50 */
  --hero-photo-opacity: 0.32;
}

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

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--white);
  margin-bottom: 0.25em;
}

.section-title span { color: var(--yellow); }

.section-subtitle {
  color: var(--grey);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.15em;
  color: var(--yellow);
  animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.4; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1); }
}

/* ---------- Navigation ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.85rem 2.5rem;
  border-bottom: 1px solid rgba(245, 197, 24, 0.15);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo .brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.12em;
  color: var(--yellow);
}

.nav-logo .sub {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 2px;
}

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

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-light);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--yellow); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a.btn-nav {
  background: var(--yellow);
  color: var(--black);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.nav-links a.btn-nav::after { display: none; }
.nav-links a.btn-nav:hover { background: var(--yellow-dark); color: var(--black); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-mobile.open { opacity: 1; pointer-events: all; }

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.1em;
  color: var(--white);
  transition: color var(--transition);
}

.nav-mobile a:hover { color: var(--yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1200 50%, #0a0a0a 100%);
}

/* Grille de points décorative */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(245,197,24,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('../assets_web/porfolio/photo_hero_page.webp');
  background-size: cover;
  /* Cadrage : personnage + montagne centrés, légèrement haut */
  background-position: center 30%;
  opacity: 0; /* fade-in piloté par JS — voir main.js fadeInHeroPhoto() */
  filter: saturate(0.65) brightness(0.9);
  z-index: 1;
  will-change: transform, opacity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Fond sombre + vignettage + fondu bas */
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(10,10,10,0.55) 100%),
    linear-gradient(to bottom,
      rgba(10,10,10,0.30) 0%,
      rgba(10,10,10,0.15) 45%,
      rgba(10,10,10,0.65) 85%,
      rgba(10,10,10,0.90) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
  /* GPU — préparation pour l'effet parallax scroll */
  will-change: transform, opacity;
  transform-origin: 50% 50%;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid rgba(245,197,24,0.4);
  padding: 0.4rem 1.2rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 0.4em;
}

.hero-title .accent { color: var(--yellow); }

.hero-creator {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 197, 24, 0.7);
  margin-bottom: 1.8rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--grey-light);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--grey);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Hero — animations cinématiques ---------- */

/* Fond : léger zoom lent et subtil */
@keyframes heroBgZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}

/* Fade up générique */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* "BC" — slide up net */
@keyframes heroBcIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* "VISUAL" — blur to sharp + léger slide gauche */
@keyframes heroVisualIn {
  from { opacity: 0; filter: blur(16px); transform: translateX(-10px); }
  to   { opacity: 1; filter: blur(0);    transform: translateX(0); }
}

/* Glow doux en boucle sur VISUAL */
@keyframes titleGlow {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 60px rgba(245,197,24,0.15), 0 0 120px rgba(245,197,24,0.06); }
}

/* Respiration du label */
@keyframes labelBreath {
  0%, 100% { border-color: rgba(245,197,24,0.35); }
  50%       { border-color: rgba(245,197,24,0.72); box-shadow: 0 0 10px rgba(245,197,24,0.08); }
}

/* Ligne de scroll qui descend en boucle */
@keyframes scrollLineDown {
  0%   { transform: scaleY(0); transform-origin: top center; opacity: 1; }
  65%  { transform: scaleY(1); transform-origin: top center; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top center; opacity: 0; }
}

/* ---- Application des animations ---- */

/* Fond */
.hero-bg {
  animation: heroBgZoom 9s cubic-bezier(0.0, 0.0, 0.2, 1) forwards;
}

/* Photo hero : zoom lent identique au fond */
.hero-photo {
  animation: heroBgZoom 14s cubic-bezier(0.0, 0.0, 0.2, 1) forwards;
}

/* Label — 0.2s */
.hero-label {
  animation:
    heroFadeUp  0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both,
    labelBreath 3.5s ease-in-out 2.6s infinite;
}

/* "BC" — 0.45s */
.hero-bc {
  display: inline-block;
  animation: heroBcIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

/* "VISUAL" — 0.72s, après BC */
.hero-title .accent {
  display: inline-block;
  animation:
    heroVisualIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.72s both,
    titleGlow    5s   ease-in-out 3.4s infinite;
}

/* Tagline — 1.05s */
.hero-tagline {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  color: var(--white);
  line-height: 1.45;
  letter-spacing: 0.01em;
  max-width: 680px;
  margin: 0 auto 1.2rem;
  animation: heroFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.05s both;
}

/* Sous-titre — 1.3s */
.hero-desc {
  animation: heroFadeUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 1.3s both;
}

/* Boutons — 1.55s */
.hero-cta {
  animation: heroFadeUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 1.55s both;
}

/* Bouton primaire — glow au hover */
.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(245,197,24,0.38), 0 0 50px rgba(245,197,24,0.12);
}

/* Bouton outline — remplissage progressif au hover */
.btn-outline {
  transition: background 0.4s ease, color 0.3s ease, border-color 0.3s ease,
              transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-outline:hover {
  background: rgba(245,197,24,0.08);
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(245,197,24,0.25);
}

/* Scroll indicator — ligne qui descend */
.hero-scroll::after {
  animation: scrollLineDown 2s ease-in-out 2.2s infinite;
}

/* ---------- Sections générales ---------- */
.section {
  padding: 7rem 2.5rem;
}

.section-header {
  margin-bottom: 4rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Ligne décorative jaune */
.accent-line {
  width: 60px;
  height: 3px;
  background: var(--yellow);
  margin: 1rem 0 2rem;
}

/* ---------- Catégories (accueil) ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 340px 280px 260px;
  gap: 2px;
  border: 2px solid var(--black-soft);
}

.cat-featured {
  grid-column: span 2;
}

.cat-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  background: var(--black-card);
}

.cat-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  filter: brightness(0.5);
}

/* Images de fond par catégorie */
.cat-brand     .cat-card-bg { background-image: url("../assets_web/porfolio/page%20d%27accueil/entreprise_et_savoir_faire.webp"); }
.cat-places    .cat-card-bg { background-image: url("../assets_web/porfolio/page%20d%27accueil/lieu_et_experience.webp"); }
.cat-festifs   .cat-card-bg { background-image: url("../assets_web/porfolio/page%20d%27accueil/evenement.webp"); }
.cat-corporate .cat-card-bg { background-image: url("../assets_web/porfolio/page%20d%27accueil/evenement_corporate.webp"); }
.cat-wedding   .cat-card-bg { background-image: url("../assets_web/porfolio/page%20d%27accueil/mariage.webp"); }


.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
}

.cat-card:hover .cat-card-bg { transform: scale(1.06); filter: brightness(0.35); }

.cat-card-content {
  position: relative;
  z-index: 2;
}

.cat-number {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: rgba(245,197,24,0.2);
  margin-bottom: -0.5rem;
  transition: color var(--transition);
}

.cat-card:hover .cat-number { color: rgba(245,197,24,0.5); }

.cat-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  color: var(--white);
  display: block;
}

.cat-type {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-top: 0.3rem;
  display: block;
}

.cat-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.5rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  display: block;
  transition: color var(--transition);
}

.cat-card:hover .cat-desc { color: rgba(255,255,255,0.7); }

.cat-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-8px);
}

.cat-card:hover .cat-arrow {
  opacity: 1;
  transform: translateX(0);
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ---------- Reel Carousel ---------- */
.showreel-section {
  background: var(--black-soft);
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

.showreel-section .container {
  max-width: 1280px;
  padding: 0 2.5rem;
}

/* Stage : zone de défilement */
.reel-stage {
  position: relative;
  height: 480px;
  overflow: hidden;
  margin: 0 -2rem;
}

/* Track : conteneur des slides en position absolue */
.reel-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slide générique */
.reel-slide {
  position: absolute;
  width: min(62vw, 800px);
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   0.55s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.55s ease;
  will-change: transform, opacity;
  background: #0d0d0d;
}

/* États positionnels */
.reel-slide[data-state="active"] {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 10;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(245,197,24,0.12);
}
.reel-slide[data-state="prev"] {
  transform: translateX(-66%) scale(0.72);
  opacity: 0.45;
  z-index: 5;
}
.reel-slide[data-state="next"] {
  transform: translateX(66%) scale(0.72);
  opacity: 0.45;
  z-index: 5;
}
.reel-slide[data-state="far-left"] {
  transform: translateX(-105%) scale(0.5);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.reel-slide[data-state="far-right"] {
  transform: translateX(105%) scale(0.5);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Thumbnail */
.reel-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: filter 0.4s ease;
}
.reel-slide[data-state="active"]  .reel-thumb { filter: brightness(0.5); }
.reel-slide:not([data-state="active"]) .reel-thumb { filter: brightness(0.25); }
.reel-slide[data-state="active"]:hover .reel-thumb { filter: brightness(0.42); }

/* Overlay play (visible uniquement sur active) */
.reel-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}
.reel-slide[data-state="active"] .reel-play-overlay { opacity: 1; }

.reel-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--yellow);
  background: rgba(0,0,0,0.35);
  transition: all 0.25s ease;
}
.reel-slide[data-state="active"]:hover .reel-play-btn {
  background: var(--yellow);
  color: var(--black);
  transform: scale(1.1);
}

/* iframe (injectée au clic) */
.reel-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  border: none;
  z-index: 3;
}

/* Flèches de navigation */
.reel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.55);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.reel-nav:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(0,0,0,0.75);
  transform: translateY(-50%) scale(1.08);
}
.reel-prev { left: 2rem; }
.reel-next { right: 2rem; }

/* Info sous le carousel */
.reel-info {
  min-height: 3.5rem;
  margin-top: 2rem;
  transition: opacity 0.3s ease;
}
.reel-info-cat {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.3rem;
}
.reel-info-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  color: var(--white);
}

/* Points de navigation */
.reel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.reel-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.18);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.reel-dot.active {
  background: var(--yellow);
  width: 28px;
}

/* Responsive */
@media (max-width: 768px) {
  .reel-stage { height: 56vw; min-height: 200px; }
  .reel-slide { width: min(86vw, 480px); }
  .reel-slide[data-state="prev"] { transform: translateX(-88%) scale(0.65); opacity: 0.3; }
  .reel-slide[data-state="next"] { transform: translateX(88%) scale(0.65); opacity: 0.3; }
  .reel-nav { width: 38px; height: 38px; font-size: 0.85rem; }
  .reel-prev { left: 0.75rem; }
  .reel-next { right: 0.75rem; }
  .reel-info-title { font-size: 1.3rem; }
  .showreel-section { padding: 4rem 0; }
}

/* ---------- Stats ---------- */
.stats-section { padding: 5rem 2.5rem; background: var(--black); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item { padding: 2rem; }

.stat-number {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--yellow);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 0.5rem;
}

/* ---------- À propos (aperçu accueil) ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-placeholder {
  aspect-ratio: 4/5;
  background: var(--black-card);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 3rem;
  border: 1px solid rgba(255,255,255,0.05);
}

.about-img-wrap .deco-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--yellow);
  border-radius: var(--radius);
  z-index: -1;
}

.about-text p {
  color: var(--grey-light);
  margin-bottom: 1.2rem;
  line-height: 1.85;
}

/* ---------- Portfolio page ---------- */
.portfolio-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.55rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--grey);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(245,197,24,0.07);
}

/* Toggle photo/video */
.media-toggle {
  display: inline-flex;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

.toggle-btn {
  padding: 0.65rem 1.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--grey);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-btn.active {
  background: var(--yellow);
  color: var(--black);
}

.portfolio-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Masonry grid portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 14px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.portfolio-item img,
.portfolio-item .item-placeholder {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  transition: transform 0.5s ease;
}

.item-placeholder {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
}

.portfolio-item:hover img,
.portfolio-item:hover .item-placeholder { transform: scale(1.04); }

.item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  border-radius: var(--radius);
}

.portfolio-item:hover .item-overlay { opacity: 1; }

.item-overlay-content .item-cat {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
}

.item-overlay-content .item-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

/* Video item indicator */
.video-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

/* ---------- Portfolio — masonry dynamique (vue sous-catégorie) ---------- */
/*
  Pattern 7 : hero (2×2) · sm · sm · tall (1×2) · wide (2×1) · sm · sm
  Les vidéos tombent naturellement sur les grandes cases grâce à l'ordre HTML.
*/
.portfolio-grid:not(.cat-strip-mode) .portfolio-item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; } /* hero large  */
.portfolio-grid:not(.cat-strip-mode) .portfolio-item:nth-child(7n+2) { grid-column: span 1; grid-row: span 1; } /* small       */
.portfolio-grid:not(.cat-strip-mode) .portfolio-item:nth-child(7n+3) { grid-column: span 1; grid-row: span 1; } /* small       */
.portfolio-grid:not(.cat-strip-mode) .portfolio-item:nth-child(7n+4) { grid-column: span 1; grid-row: span 2; } /* tall        */
.portfolio-grid:not(.cat-strip-mode) .portfolio-item:nth-child(7n+5) { grid-column: span 2; grid-row: span 1; } /* wide        */
.portfolio-grid:not(.cat-strip-mode) .portfolio-item:nth-child(7n+6) { grid-column: span 1; grid-row: span 1; } /* small       */
.portfolio-grid:not(.cat-strip-mode) .portfolio-item:nth-child(7n+0) { grid-column: span 1; grid-row: span 1; } /* small       */

/* Thumbnails et placeholders : remplissent leur cellule grid */
.portfolio-grid:not(.cat-strip-mode) .portfolio-item .item-thumb,
.portfolio-grid:not(.cat-strip-mode) .portfolio-item .item-placeholder { height: 100% !important; }

/* ---- Vidéos : rendu horizontal cinématique 16:9 sans crop ---- */

/*
  Les slots "tall" (7n+4 = 1col×2rows, ~0.89:1) et "wide" (7n+5 = 2cols×1row, ~3.6:1)
  sont incompatibles avec un ratio 16:9. Pour les vidéos, on les ramène à 1×1
  (~1.77:1 ≈ 16:9) afin de ne jamais avoir de crop destructif.
*/
.portfolio-grid:not(.cat-strip-mode) .portfolio-item[data-media="video"]:nth-child(7n+4) {
  grid-row: span 1;    /* annule le format tall pour les vidéos */
}
.portfolio-grid:not(.cat-strip-mode) .portfolio-item[data-media="video"]:nth-child(7n+5) {
  grid-column: span 1; /* annule le format wide pour les vidéos */
}


/* ---------- Tarifs ---------- */
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tarif-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 2.5rem;
  position: relative;
  transition: var(--transition);
}

.tarif-card:hover {
  border-color: rgba(245,197,24,0.3);
  transform: translateY(-4px);
}

.tarif-card.featured {
  border-color: var(--yellow);
  background: linear-gradient(135deg, rgba(245,197,24,0.06), var(--black-card));
}

.tarif-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 2px;
  white-space: nowrap;
}

.tarif-cat {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.tarif-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.tarif-price {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.tarif-price sup { font-size: 1.2rem; vertical-align: super; }
.tarif-price small { font-size: 1rem; color: var(--grey); font-family: var(--font-main); }

/* Prix "à partir de" */
.tarif-from {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  font-family: var(--font-main);
  font-weight: 400;
  display: block;
  margin-bottom: 0.15rem;
}

.tarif-amount {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.02em;
}

.tarif-amount sup {
  font-size: 1.4rem;
  vertical-align: super;
  font-family: var(--font-main);
  font-weight: 600;
}

.tarif-card.featured .tarif-amount { color: var(--yellow); }

.tarif-devis-note {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-main);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.tarif-global-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-main);
  letter-spacing: 0.06em;
  font-style: italic;
}

.tarif-desc {
  font-size: 0.88rem;
  color: var(--grey);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tarif-features {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.tarif-features li {
  font-size: 0.88rem;
  color: var(--grey-light);
  padding: 0.45rem 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tarif-features li::before {
  content: '✓';
  color: var(--yellow);
  font-weight: 700;
  flex-shrink: 0;
}

.tarif-features li.no::before {
  content: '✕';
  color: rgba(255,255,255,0.2);
}

.tarif-features li.no { color: rgba(255,255,255,0.25); }

/* ---------- À propos page ---------- */
.about-hero {
  padding: 10rem 2.5rem 5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 6rem;
  align-items: start;
}

.about-body p {
  color: var(--grey-light);
  margin-bottom: 1.5rem;
  line-height: 1.9;
  font-size: 1.05rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.skill-tag {
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.3);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2px;
}

.about-sidebar .info-block {
  background: var(--black-card);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
}

.info-block h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.info-block p,
.info-block li {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.7;
  padding: 0.2rem 0;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info p {
  color: var(--grey);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-links { display: flex; flex-direction: column; gap: 1rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--grey-light);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.contact-link .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-link:hover { color: var(--yellow); }
.contact-link:hover .icon { border-color: var(--yellow); color: var(--yellow); }

/* Formulaire */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--yellow); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--grey); }

.form-group select option { background: var(--black-card); }

/* ---------- Footer ---------- */
footer {
  background: var(--black-soft);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 2.5rem 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand .brand {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.12em;
  color: var(--yellow);
}

.footer-brand .sub {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--grey);
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--grey);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--grey);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

/* Couleurs de marque par réseau */
.social-link--instagram {
  color: #E1306C;
  border-color: rgba(225, 48, 108, 0.25);
}
.social-link--instagram:hover {
  border-color: #E1306C;
  color: #E1306C;
  background: rgba(225, 48, 108, 0.08);
  transform: translateY(-2px);
}

.social-link--linkedin {
  color: #0A66C2;
  border-color: rgba(10, 102, 194, 0.25);
}
.social-link--linkedin:hover {
  border-color: #0A66C2;
  color: #0A66C2;
  background: rgba(10, 102, 194, 0.08);
  transform: translateY(-2px);
}

/* ---------- Page hero (sous-pages) ---------- */
.page-hero {
  padding: 10rem 2.5rem 5rem;
  background: linear-gradient(to bottom, rgba(245,197,24,0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ---------- Animations ---------- */
.reveal { opacity: 1; transform: none; }

/* ---------- Cursor custom ---------- */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.2s, height 0.2s, transform 0.1s ease;
  mix-blend-mode: difference;
}

body.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .categories-grid { grid-template-rows: repeat(3, 280px); }
  .tarifs-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-preview { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-wrap { max-width: 380px; }
  /* Portfolio — tablet : 2 colonnes, pattern simplifié */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .portfolio-grid:not(.cat-strip-mode) .portfolio-item:nth-child(7n+1) { grid-column: span 2; grid-row: span 1; }
  .portfolio-grid:not(.cat-strip-mode) .portfolio-item:nth-child(7n+4) { grid-column: span 1; grid-row: span 2; }
  .portfolio-grid:not(.cat-strip-mode) .portfolio-item:nth-child(7n+5) { grid-column: span 2; grid-row: span 1; }
  /* Tablet : vidéos — annule tall et wide incompatibles avec 16:9 */
  .portfolio-grid:not(.cat-strip-mode) .portfolio-item[data-media="video"]:nth-child(7n+4) { grid-row: span 1; }
  .portfolio-grid:not(.cat-strip-mode) .portfolio-item[data-media="video"]:nth-child(7n+5) { grid-column: span 1; }
}

@media (max-width: 768px) {
  /* Hero photo — recadrage mobile pour sujet bien positionné */
  .hero-photo { background-position: 60% 20%; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-mobile { display: flex; }

  #navbar { padding: 1rem 1.5rem; }

  .categories-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 200px); }
  .tarifs-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  /* Portfolio — mobile : 1 colonne, toutes les cards identiques */
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .portfolio-grid:not(.cat-strip-mode) .portfolio-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .portfolio-header-row { flex-direction: column; align-items: flex-start; }
  .section { padding: 5rem 1.5rem; }
  .page-hero { padding: 8rem 1.5rem 3rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(3rem, 16vw, 6rem); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-number { font-size: 3rem; }
}

/* ============================================================
   BC VISUAL — Améliorations UX
   Scroll reveal · Hover premium · Micro-interactions · a11y
   ============================================================ */

/* ---------- Scroll Reveal — piloté par .js-enabled sur <html> ---------- */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-enabled .reveal.visible {
  opacity: 1;
  transform: none;
}
/* Décalages stagger pour les groupes de cartes */
.js-enabled .reveal-delay-1 { transition-delay: 0.08s; }
.js-enabled .reveal-delay-2 { transition-delay: 0.18s; }
.js-enabled .reveal-delay-3 { transition-delay: 0.28s; }

/* ---------- Portfolio items — contour et ombre au hover ---------- */
.portfolio-item {
  border: 1px solid transparent;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.portfolio-item:hover {
  border-color: rgba(245,197,24,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
/* Overlay : légèrement plus opaque au hover */
.portfolio-item:hover .item-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.15) 65%);
}

/* ---------- Tarif cards — hover enrichi avec glow ---------- */
.tarif-card {
  transition: border-color 0.35s ease,
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease;
}
.tarif-card:hover {
  border-color: rgba(245,197,24,0.35);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45),
              0 0 0 1px rgba(245,197,24,0.07),
              0 2px 20px rgba(245,197,24,0.06);
}
.tarif-card.featured:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.45),
              0 0 40px rgba(245,197,24,0.12);
}

/* ---------- Info blocks — page à propos ---------- */
.about-sidebar .info-block {
  transition: border-color 0.3s ease,
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
}
.about-sidebar .info-block:hover {
  border-color: rgba(245,197,24,0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

/* ---------- Skill tags ---------- */
.skill-tag {
  transition: background 0.25s ease, border-color 0.25s ease,
              box-shadow 0.25s ease, transform 0.22s ease;
}
.skill-tag:hover {
  background: rgba(245,197,24,0.18);
  border-color: rgba(245,197,24,0.55);
  box-shadow: 0 0 14px rgba(245,197,24,0.1);
  transform: translateY(-1px);
}

/* ---------- Page-heroes sous-pages — apparition séquencée ---------- */
.page-hero .container > * {
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-hero .container > *:nth-child(1) { animation-delay: 0.15s; }
.page-hero .container > *:nth-child(2) { animation-delay: 0.30s; }
.page-hero .container > *:nth-child(3) { animation-delay: 0.42s; }
.page-hero .container > *:nth-child(4) { animation-delay: 0.52s; }
.page-hero .container > *:nth-child(5) { animation-delay: 0.60s; }

/* ---------- Cat cards accueil — bordure accent + transition propre ---------- */
.cat-card {
  transition: box-shadow 0.4s ease;
}
.cat-card:hover {
  box-shadow: inset 0 0 0 1px rgba(245,197,24,0.18);
}

/* ---------- Reel slide actif — glow renforcé ---------- */
.reel-slide[data-state="active"] {
  box-shadow: 0 30px 80px rgba(0,0,0,0.7),
              0 0 0 1px rgba(245,197,24,0.15),
              0 0 60px rgba(245,197,24,0.05);
}

/* ---------- Transition inter-pages ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 9998;
}
body.is-leaving::after {
  opacity: 1;
  pointer-events: all;
}

/* ---------- Témoignages carousel ---------- */
.testimonials-section { overflow: hidden; }
.testimonials-section .section-header { text-align: center; margin-bottom: 3.5rem; }

.testi-carousel {
  position: relative;
  overflow: hidden;
}

.testi-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.testi-slide {
  min-width: 100%;
  padding: 0 max(2rem, calc((100vw - 800px) / 2));
  display: flex;
  justify-content: center;
}

.testi-inner {
  max-width: 800px;
  width: 100%;
  text-align: center;
  padding: 3rem 2rem;
}

.testi-quote-mark {
  font-family: var(--font-editorial);
  font-size: 7rem;
  line-height: 0.6;
  color: var(--yellow);
  opacity: 0.4;
  margin-bottom: 1.5rem;
  user-select: none;
}

.testi-text {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.8;
  color: var(--grey-light);
  font-style: italic;
  font-family: var(--font-editorial);
  font-weight: 300;
  margin-bottom: 2rem;
}

.testi-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.testi-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.testi-sep {
  color: var(--yellow);
  opacity: 0.6;
}

.testi-role {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--grey);
  text-transform: uppercase;
}

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0 0.5rem;
}

.testi-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.testi-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(245,197,24,0.07);
}

.testi-dots {
  display: flex;
  gap: 0.5rem;
}

.testi-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.testi-dot.active {
  background: var(--yellow);
  transform: scale(1.4);
}

/* ---------- prefers-reduced-motion — accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  /* Désactive le scroll reveal */
  .js-enabled .reveal,
  .js-enabled .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
  /* Neutralise toutes les animations hero */
  .hero-label, .hero-bc, .hero-title .accent,
  .hero-tagline, .hero-desc, .hero-cta, .hero-bg, .hero-photo,
  .hero-scroll::after, .page-hero .container > * {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }
  /* Photo hero : affichage direct sans animation */
  .hero-photo { opacity: 0.32 !important; }
  /* Supprime les translations hover */
  .btn:hover,
  .tarif-card:hover,
  .skill-tag:hover,
  .about-sidebar .info-block:hover,
  .social-link:hover,
  .portfolio-item:hover,
  .cat-card:hover {
    transform: none !important;
  }
}
