/* ============================================================
   K&F SHOOTING — DESIGN SYSTEM V7
   Minimalisme cinématographique premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,500;0,700;0,800;1,400;1,700&family=Jost:wght@300;400;500;600;700&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --black:    #0a0a0a;
  --black-2:  #111111;
  --black-3:  #1a1a1a;
  --gray-1:   #2a2a2a;
  --gray-2:   #444444;
  --gray-3:   #888888;
  --white:    #f5f5f0;
  --white-2:  #e0e0d8;
  --yellow:   #FFD600;
  --yellow-d: #e6c000;
  --blue:     #007aff;
  --blue-d:   #0062cc;

  --font-head: 'Bodoni Moda', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-circ:  cubic-bezier(0.45, 0, 0.55, 1);

  --z-base:   1;
  --z-nav:    100;
  --z-modal:  200;
  --z-toast:  300;
  --z-cookie: 400;

  --nav-h: 80px;
  --container: 1280px;
  --container-text: 760px;

  --r-sm:  4px;
  --r-md:  8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* empêche tout débordement horizontal (ex. toast hors-écran) */
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Signature ciné : grain argentique discret sur tout le site (statique, sans JS) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.container--text {
  max-width: var(--container-text);
}

.section {
  padding: clamp(80px, 10vw, 160px) 0;
}

.section--sm {
  padding: clamp(40px, 5vw, 80px) 0;
}

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.display-1 {
  font-size: clamp(3.5rem, 10vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.display-2 {
  font-size: clamp(2.5rem, 7vw, 7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.h1 { font-size: clamp(2rem, 5vw, 4.5rem); }
.h2 { font-size: clamp(1.75rem, 4vw, 3.5rem); }
.h3 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
.h4 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* Signature K&F : tiret jaune devant chaque kicker (rappel du repère [ REC ]) */
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--yellow);
  flex: none;
}

/* Numéro éditorial (chapitres de la narration) */
.kicker-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--white-2);
  opacity: 0.45;
  letter-spacing: 0.05em;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--gray-3);
  max-width: 60ch;
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* ─── COULEURS UTILITAIRES ───────────────────────────────── */
.text-yellow  { color: var(--yellow); }
.text-blue    { color: var(--blue); }
.text-white   { color: var(--white); }
.text-gray    { color: var(--gray-3); }
.text-muted   { color: var(--gray-2); }

.bg-black  { background: var(--black); }
.bg-black2 { background: var(--black-2); }
.bg-black3 { background: var(--black-3); }
.bg-yellow { background: var(--yellow); }
.bg-blue   { background: var(--blue); }

/* ─── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav__logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  flex: none; /* logo carré : dimensions explicites pour éviter tout écrasement */
}

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

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-3);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav__link:hover { color: var(--white); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.active { color: var(--white); }
.nav__link.active::after { transform: scaleX(1); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

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

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
}

.nav__mobile.open { display: flex; }

.nav__mobile-link {
  font-family: var(--font-head);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  transition: color 0.2s;
}

.nav__mobile-link:hover { color: var(--yellow); }

@media (max-width: 900px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

/* ─── BOUTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::before { opacity: 1; }

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

.btn--primary:hover {
  background: var(--yellow-d);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 214, 0, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn--blue {
  background: var(--blue);
  color: var(--white);
}

.btn--blue:hover {
  background: var(--blue-d);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 122, 255, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-3);
  padding: 14px 0;
}

.btn--ghost:hover { color: var(--white); }

.btn--lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.75rem;
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease-out);
}

.btn:hover .btn__icon { transform: translateX(3px); }

/* ─── SIGNATURE REC ──────────────────────────────────────── */
.rec-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gray-3);
}

.rec-dot {
  color: #ff3b30;
  animation: rec-pulse 1.5s ease-in-out infinite;
  display: inline;
}

@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.95) 0%,
    rgba(10,10,10,0.7) 50%,
    rgba(10,10,10,0.9) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 9vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 2rem;
}

.hero__title em {
  font-style: normal;
  color: var(--yellow);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gray-3);
  line-height: 1.7;
  max-width: 55ch;
  margin-bottom: 3rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease-out);
}

.hero__scroll:hover { opacity: 1; }

/* Masqué sur petits/courts écrans pour ne jamais chevaucher les boutons du hero */
@media (max-width: 768px), (max-height: 760px) {
  .hero__scroll { display: none; }
}

.hero__scroll-mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(245, 245, 240, 0.5);
  border-radius: var(--r-full);
  position: relative;
}

.hero__scroll-wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--yellow);
  transform: translateX(-50%);
  animation: scroll-wheel 1.8s var(--ease-out) infinite;
}

@keyframes scroll-wheel {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  30%  { opacity: 1; }
  60%  { opacity: 1; transform: translate(-50%, 12px); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ─── STATS ──────────────────────────────────────────────── */
.stats-bar {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: var(--black-2);
}

.stats-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--yellow);
  display: block;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--gray-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* ─── SECTION TITLES ─────────────────────────────────────── */
.section-title {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-title__eyebrow {
  margin-bottom: 1rem;
}

.section-title__heading {
  font-size: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 1.25rem;
}

.section-title__desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--gray-3);
  max-width: 55ch;
  line-height: 1.7;
}

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: all 0.35s var(--ease-out);
  cursor: pointer;
}

.card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(255, 214, 0, 0.08);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--yellow);
}

.card__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card__desc {
  color: var(--gray-3);
  font-size: 0.9rem;
  line-height: 1.7;
}

.card--horizontal {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

/* ─── TAGS ───────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.tag--yellow {
  background: rgba(255, 214, 0, 0.1);
  color: var(--yellow);
  border-color: rgba(255, 214, 0, 0.2);
}

.tag--blue {
  background: rgba(0, 122, 255, 0.1);
  color: var(--blue);
  border-color: rgba(0, 122, 255, 0.2);
}

.tag--gray {
  background: rgba(255,255,255,0.05);
  color: var(--gray-3);
  border-color: rgba(255,255,255,0.1);
}

/* ─── DIVIDER ────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--yellow);
  margin: 1.5rem 0;
}

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.testimonial {
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
}

.testimonial__quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--yellow);
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}

.testimonial__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--white-2);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-1);
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial__role {
  font-size: 0.75rem;
  color: var(--gray-3);
}

.testimonial__source {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.7rem;
  color: var(--gray-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── VIDEO CARD ─────────────────────────────────────────── */
.video-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--black-3);
  cursor: pointer;
}

.video-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.video-card:hover .video-card__thumb {
  transform: scale(1.05);
}

.video-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 214, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(10px);
}

.video-card:hover .video-card__play {
  background: var(--yellow);
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(255, 214, 0, 0.5);
}

.video-card__info {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
}

.video-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.video-card__client {
  font-size: 0.8rem;
  color: var(--gray-3);
  margin-top: 4px;
}

/* ─── PROCESS STEPS ──────────────────────────────────────── */
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}

.process-step:last-child { border-bottom: none; }

.process-step:hover .process-step__number {
  color: var(--yellow);
}

.process-step__number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-1);
  line-height: 1;
  transition: color 0.3s;
}

.process-step__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-step__desc {
  color: var(--gray-3);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── MODAL VIDÉO ────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.open { display: flex; }

.modal__inner {
  width: 100%;
  max-width: 900px;
  position: relative;
}

.modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}

.modal__close:hover { background: rgba(255,255,255,0.2); }

.modal__video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--black);
}

.modal__video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── FORMULAIRE ─────────────────────────────────────────── */
.form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-2);
}

.form-select option { background: var(--black-2); }
.form-textarea { resize: vertical; min-height: 120px; }

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

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-error {
  font-size: 0.75rem;
  color: #ff3b30;
  margin-top: 4px;
  display: none;
}

.form-group.error .form-error { display: block; }
.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
  border-color: #ff3b30;
}

.form-group.success .form-input,
.form-group.success .form-select,
.form-group.success .form-textarea {
  border-color: #30d158;
}

/* honeypot */
.form-trap { display: none !important; visibility: hidden; position: absolute; }

.form-submit-wrapper {
  margin-top: 2rem;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--black-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: clamp(60px, 8vw, 100px) 0 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 60px;
}

.footer__brand {}

.footer__logo {
  height: 44px;
  margin-bottom: 1.25rem;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--gray-3);
  line-height: 1.7;
  max-width: 28ch;
  margin-bottom: 1.5rem;
}

.footer__col-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--gray-3);
  transition: color 0.2s;
}

.footer__link:hover { color: var(--yellow); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__legal {
  font-size: 0.8rem;
  color: var(--gray-2);
}

.footer__legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer__legal-link {
  font-size: 0.8rem;
  color: var(--gray-2);
  transition: color 0.2s;
}

.footer__legal-link:hover { color: var(--white); }

@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal-links { justify-content: center; }
}

/* ─── WHATSAPP FLOAT ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: calc(var(--z-nav) - 10);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ─── COOKIE BANNER ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-cookie);
  background: var(--black-2);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 2rem;
  display: none;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner.visible { display: flex; }

.cookie-banner__text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--gray-3);
  min-width: 200px;
}

.cookie-banner__text a {
  color: var(--yellow);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ─── SCROLL ANIMATIONS ──────────────────────────────────── */
/* État masqué appliqué uniquement quand JS + GSAP sont actifs (html.js).
   Sans JS ou si GSAP échoue, le contenu reste visible (pas de page blanche). */
html.js .hero__title    { opacity: 0; transform: translateY(40px); }
html.js .hero__subtitle { opacity: 0; transform: translateY(20px); }
html.js .hero__actions  { opacity: 0; transform: translateY(20px); }

html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
}

html.js .reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

html.js .reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

html.js .reveal-group > * {
  opacity: 0;
  transform: translateY(30px);
}

/* ─── PAGE HEADER ────────────────────────────────────────── */
.page-header {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-header__title {
  font-size: clamp(2.5rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.page-header__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray-3);
  margin-top: 1.5rem;
  max-width: 55ch;
  line-height: 1.7;
}

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-3);
  margin-bottom: 2rem;
}

.breadcrumb__sep { color: var(--gray-2); }
.breadcrumb a { color: var(--gray-3); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb__current { color: var(--white); }

/* ─── BADGE ROI ──────────────────────────────────────────── */
.roi-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 214, 0, 0.1);
  border: 1px solid rgba(255, 214, 0, 0.25);
  border-radius: var(--r-full);
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 0.03em;
}

/* ─── MARQUEE ────────────────────────────────────────────── */
.marquee-track {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: var(--black-2);
}

.marquee-inner {
  display: flex;
  gap: 3rem;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-2);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.marquee-item::after {
  content: '●';
  color: var(--yellow);
  font-size: 0.5rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── LOGOS CLIENTS ─────────────────────────────────────── */
.logos-section {
  padding: 5rem 0;
  background: #fff;
}

.logos-section__label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  text-align: center;
  margin-bottom: 0.75rem;
}

.logos-section__sub {
  text-align: center;
  color: #6b6b6b;
  font-size: 0.95rem;
  max-width: 46ch;
  margin: 0 auto 3rem;
}

/* Répartition homogène : chaque ligne étire ses items sur toute la largeur */
.logos-grid {
  display: grid;
  align-items: center;
  justify-items: center;
  margin: 0 auto;
}

.logos-grid--featured {
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 880px;
  padding-bottom: 3rem;
  border-bottom: 1px solid #ececec;
}

.logos-grid--secondary {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 2.25rem 2.5rem;
  max-width: 980px;
  margin-top: 3rem;
}

.logos-item {
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease-out), filter 0.3s var(--ease-out);
}

.logos-grid--featured .logos-item { height: 58px; max-width: 170px; }
.logos-grid--secondary .logos-item { height: 38px; max-width: 120px; opacity: 0.45; }

.logos-item:hover {
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .logos-grid--featured { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .logos-grid--featured .logos-item { height: 48px; }
}

/* ─── BANDE IMAGE PLEINE LARGEUR ─────────────────────────── */
.image-band {
  position: relative;
  height: clamp(300px, 46vw, 480px);
  overflow: hidden;
}

.image-band__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.image-band__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.75rem, 5vw, 4.5rem);
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.25) 55%, rgba(10,10,10,0.55) 100%);
}

.image-band__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.image-band__text em { font-style: normal; color: var(--yellow); }

/* ─── NUMÉRAL ÉDITORIAL SURDIMENSIONNÉ (chapitres) ────────── */
.block-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1;
  margin-bottom: 0.75rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 214, 0, 0.55);
  letter-spacing: 0.02em;
}

/* ─── PULL-QUOTE ÉDITORIALE (moment de respiration) ───────── */
.pullquote {
  padding: clamp(90px, 14vw, 200px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Déclaration pleine largeur, alignée à gauche */
.pullquote__inner {
  text-align: left;
}

.pullquote__mark {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.4;
  height: 0.42em;
  color: var(--yellow);
  margin-bottom: 0.25em;
}

.pullquote__text {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: none; /* occupe toute la largeur du conteneur */
}

.pullquote__text em { font-style: italic; color: var(--yellow); }

.pullquote__by { margin-top: 2.5rem; }

/* ─── ARTICLE BLOG ───────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: rgba(255, 214, 0, 0.3);
  transform: translateY(-4px);
}

.article-card__thumb {
  aspect-ratio: 16/9;
  background: var(--black-3);
  overflow: hidden;
  position: relative;
}

.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.article-card:hover .article-card__thumb img { transform: scale(1.05); }

.article-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.article-card__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.article-card__excerpt {
  font-size: 0.875rem;
  color: var(--gray-3);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.article-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gray-2);
}

/* ─── LEGAL ──────────────────────────────────────────────── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  font-weight: 700;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
  font-weight: 600;
  color: var(--white-2);
}

.legal-content p {
  color: var(--gray-3);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  color: var(--gray-3);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.legal-content strong { color: var(--white); }
.legal-content a { color: var(--yellow); text-decoration: underline; }

/* ─── GEO PAGES ──────────────────────────────────────────── */
.geo-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 400px;
  background: var(--black-3);
  position: relative;
}

.geo-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1rem 0;
}

/* ─── CTA SECTION ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--black-2) 0%, var(--black-3) 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,214,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── NOTIFICATION TOAST ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 100px;
  right: 32px;
  z-index: var(--z-toast);
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 1rem 1.5rem;
  max-width: 320px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transform: translateX(120%);
  transition: transform 0.4s var(--ease-out);
}

.toast.visible { transform: translateX(0); }

.toast--success { border-left: 3px solid #30d158; }
.toast--error   { border-left: 3px solid #ff3b30; }

.toast__icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.toast__title { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.toast__msg { font-size: 0.8rem; color: var(--gray-3); }

/* ─── CASE STUDY ─────────────────────────────────────────── */
.case-study-card {
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  transition: all 0.35s var(--ease-out);
}

.case-study-card:hover {
  border-color: rgba(255,214,0,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.case-study-card__media {
  position: relative;
  overflow: hidden;
  background: var(--black-3);
}

.case-study-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.case-study-card:hover .case-study-card__media img { transform: scale(1.05); }

.case-study-card__content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-study-card__result {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.case-study-result {
  text-align: center;
}

.case-study-result__value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.case-study-result__label {
  font-size: 0.75rem;
  color: var(--gray-3);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .case-study-card { grid-template-columns: 1fr; }
  .case-study-card__media { min-height: 240px; }
}

/* ─── UTILITAIRES ────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.w-full { width: 100%; }
.hidden { display: none; }

.border-t { border-top: 1px solid rgba(255,255,255,0.06); }
.border-b { border-bottom: 1px solid rgba(255,255,255,0.06); }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }

/* ─── RESPONSIVE GÉNÉRAL ─────────────────────────────────── */
@media (max-width: 768px) {
  .hero__title { font-size: clamp(2.5rem, 10vw, 5rem); }
  .whatsapp-float { bottom: 80px; right: 20px; }
  .cookie-banner { flex-direction: column; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }

  /* Repli de toutes les grilles inline multi-colonnes en pile sur mobile */
  .grid-asym,
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="repeat(3,1fr)"],
  [style*="repeat(3, 1fr)"],
  [style*="grid-template-columns:1fr 1.6fr"] { grid-template-columns: 1fr !important; }

  /* La pull-quote occupe toute la largeur sur petit écran */
  .pullquote__inner { max-width: none; }

  /* Empêche un enfant de grille de forcer une largeur > conteneur (anti-débordement) */
  .grid-asym > *,
  [style*="grid-template-columns:1fr 1fr"] > *,
  [style*="grid-template-columns: 1fr 1fr"] > *,
  [style*="repeat(3,1fr)"] > *,
  [style*="repeat(3, 1fr)"] > * { min-width: 0; }
}

/* Palier tablette : les grilles 3 colonnes passent à 2 colonnes */
@media (min-width: 769px) and (max-width: 980px) {
  [style*="repeat(3,1fr)"],
  [style*="repeat(3, 1fr)"],
  [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ─── CTA STICKY MOBILE ──────────────────────────────────── */
#mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: calc(var(--z-nav) - 1);
  padding: 12px 16px;
  gap: 10px;
  background: rgba(10,10,10,0.97);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out);
}

@media (max-width: 900px) {
  #mobile-cta-bar { display: flex; }
  #mobile-cta-bar.visible { transform: translateY(0); }
}
