/* =========================================================
   US ENDOUME — Styles globaux
   ========================================================= */

/* ----- Polices locales TitlingGothic ----- */
@font-face {
  font-family: 'TitlingGothicFBComp';
  src: url('../police/TitlingGothicFBComp-Med.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'TitlingGothicFBCond';
  src: url('../police/TitlingGothicFBCond-Reg.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'TitlingGothicFBExt';
  src: url('../police/TitlingGothicFBExt-Med.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&display=swap');

/* ----- Variables ----- */
:root {
  --red:   #E30814;
  --black: #231F20;
  --gold:  #85764E;
  --white: #F5F3EE;

  --red-dim:   rgba(227, 8, 20, 0.08);
  --gold-dim:  rgba(133, 118, 78, 0.12);

  --font-display: 'TitlingGothicFBComp', 'TitlingGothicFBCond', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-snap-type: y proximity;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ----- Utilitaires ----- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ----- Animations globales ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scaleX(0); transform-origin: left; }
  to   { opacity: 1; transform: scaleX(1); transform-origin: left; }
}

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

/* Éléments animés au scroll (classe ajoutée par JS) */
.anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.anim.visible {
  opacity: 1;
  transform: none;
}
.anim.from-left {
  transform: translateX(-40px);
}
.anim.from-left.visible {
  transform: none;
}
