/* ============================================================
   main.css — Variables CSS, Reset, Utilitaires
   Impact Communication
   ============================================================ */

/* ===== @FONT-FACE ===== */

@font-face {
    font-family: 'Bodoni72';
    src: url('../fonts/BodoniSvtyTwoITCTT-Book.eot');
    src: url('../fonts/BodoniSvtyTwoITCTT-Book.eot?#iefix') format('embedded-opentype'),
        url('../fonts/BodoniSvtyTwoITCTT-Book.woff2') format('woff2'),
        url('../fonts/BodoniSvtyTwoITCTT-Book.woff') format('woff'),
        url('../fonts/BodoniSvtyTwoITCTT-Book.ttf') format('truetype'),
        url('../fonts/BodoniSvtyTwoITCTT-Book.svg#BodoniSvtyTwoITCTT-Book') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bodoni72';
    src: url('../fonts/BodoniSvtyTwoITCTT-BookIta.eot');
    src: url('../fonts/BodoniSvtyTwoITCTT-BookIta.eot?#iefix') format('embedded-opentype'),
        url('../fonts/BodoniSvtyTwoITCTT-BookIta.woff2') format('woff2'),
        url('../fonts/BodoniSvtyTwoITCTT-BookIta.woff') format('woff'),
        url('../fonts/BodoniSvtyTwoITCTT-BookIta.ttf') format('truetype'),
        url('../fonts/BodoniSvtyTwoITCTT-BookIta.svg#BodoniSvtyTwoITCTT-BookIta') format('svg');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Bodoni72';
    src: url('../fonts/BodoniSvtyTwoITCTT-Bold.eot');
    src: url('../fonts/BodoniSvtyTwoITCTT-Bold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/BodoniSvtyTwoITCTT-Bold.woff2') format('woff2'),
        url('../fonts/BodoniSvtyTwoITCTT-Bold.woff') format('woff'),
        url('../fonts/BodoniSvtyTwoITCTT-Bold.ttf') format('truetype'),
        url('../fonts/BodoniSvtyTwoITCTT-Bold.svg#BodoniSvtyTwoITCTT-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url('../fonts/Nexa-ExtraLight.eot');
    src: url('../fonts/Nexa-ExtraLight.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Nexa-ExtraLight.woff2') format('woff2'),
        url('../fonts/Nexa-ExtraLight.woff') format('woff'),
        url('../fonts/Nexa-ExtraLight.ttf') format('truetype'),
        url('../fonts/Nexa-ExtraLight.svg#Nexa-ExtraLight') format('svg');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS VARIABLES ===== */
:root {
  /* Couleurs */
  --color-red:       #C0392B;
  --color-red-dark:  #9B1B1B;
  --color-red-light: #E8453A;
  --color-black:     #0A0A0A;
  --color-white:     #FFFFFF;
  --color-gray-50:   #FAFAF8;
  --color-gray-100:  #F5F5F3;
  --color-gray-200:  #E8E8E6;
  --color-gray-300:  #D0D0CE;
  --color-gray-400:  #AAAAAA;
  --color-gray-500:  #888888;
  --color-gray-600:  #666666;
  --color-gray-800:  #2A2A2A;
  --color-dark-card: #111111;
  --color-dot-red:   #C0392B;
  --color-dot-gray:  #D5D5D5;

  /* Typographie */
  --font-display:  'Bodoni72', 'Bodoni Moda', 'Didot', Georgia, serif;
  --font-heading:  'Bricolage Grotesque', 'BricolageGrotesque', sans-serif;
  --font-body:     'Bricolage Grotesque', sans-serif;
  --font-micro:    'Nexa', 'Helvetica Neue', sans-serif;

  /* Poids */
  --fw-xlight:  200;
  --fw-light:   300;
  --fw-regular: 400;
  --fw-bold:    700;
  --fw-black:   900;

  /* Spacing */
  --section-padding: 7rem 0;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: auto; /* Lenis prend le relais */
  -webkit-text-size-adjust: 100%;
}

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

body.loaded {
  overflow: auto;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

/* ===== ECHELLE TYPOGRAPHIQUE ===== */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: var(--fw-black);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-style: italic;
}
.hero-title strong {
  font-weight: var(--fw-black);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--color-black);
  margin: 0;
}

.body-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: var(--fw-light);
  line-height: 1.8;
  color: var(--color-gray-600);
}
.body-text strong {
  font-weight: var(--fw-bold);
  color: var(--color-black);
}

.text-editorial {
  font-family: var(--font-display);
  font-style: italic;
}

.label-upper {
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.micro-text {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: var(--fw-light);
  line-height: 1.3
}

.footer-bottom .micro-text {
  font-family: var(--font-micro);
  font-size: 0.7rem;
  font-weight: var(--fw-xlight);
  line-height: 1;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: var(--fw-black);
  line-height: 1;
}

/* ===== UTILITAIRES ===== */
.pt-nav {
  padding-top: calc(var(--nav-height) + 3rem);
}

.section-pad {
  padding: var(--section-padding);
}

.text-red   { color: var(--color-red); }
.text-black { color: var(--color-black); }
.text-muted { color: var(--color-black) !important; }
.bg-gray    { background: var(--color-gray-100); }
.bg-dark    { background: var(--color-black); }

/* Reveal wrap — utilisé avec GSAP pour les titres line by line */
.reveal-wrap {
  display: block;
  overflow: hidden;
  line-height: 1.15;
}
.reveal-wrap .line {
  display: block;
  transform: translateY(110%);
  will-change: transform;
}

/* Ligne de séparation légère */
.divider-light {
  border: none;
  border-top: 0.5px solid var(--color-gray-200);
  margin: 0;
}

/* ===== DARK MODE ===== */
body.dark-mode {
  background: #0A0A0A;
  color: #F0F0EC;
  --color-black:     #F0F0EC;
  --color-white:     #0A0A0A;
  --color-gray-100:  #131313;
  --color-gray-200:  #222222;
  --color-gray-600:  #999999;
}
body.dark-mode #navbar.scrolled {
  background: rgba(10, 10, 10, 0.97);
  box-shadow: 0 1px 0 #222;
}
body.dark-mode .section-badge     { border-color: #333; color: #888; }
body.dark-mode .stat-card         { border-color: #222; }
body.dark-mode .work-row          { border-color: #222; }
body.dark-mode .footer            { background: #111; border-top-color: #222; }
body.dark-mode .form-input-impact { color: #F0F0EC; border-bottom-color: #444; }
body.dark-mode .owl-nav button    { border-color: #333 !important; color: #F0F0EC !important; }
body.dark-mode #cursor-dot        { background: #F0F0EC; }
body.dark-mode #cursor-follower   { border-color: #F0F0EC; }
body.dark-mode .body-text         { color: #999; }
body.dark-mode .body-text strong  { color: #F0F0EC; }
body.dark-mode .divider-light     { border-color: #222; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-wrap .line { transform: none !important; }
}
