/* ═══════════════════════════════════════════════════════
   GARAGE F-C SAINT-FRANÇOIS — main.css
   Design System & Global Styles
   ═══════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Palette */
  --c-black:     #080808;
  --c-dark:      #111111;
  --c-dark-2:    #181818;
  --c-dark-3:    #222222;
  --c-border:    #2a2a2a;
  --c-border-2:  #333333;
  --c-grey-4:    #444444;
  --c-grey:      #777777;
  --c-grey-l:    #999999;
  --c-silver:    #bbbbbb;
  --c-white:     #f0ede8;
  --c-white-pure:#ffffff;

  --c-red:       #d01a2a;
  --c-red-light: #e8203a;
  --c-red-dark:  #a01220;
  --c-gold:      #c9a84c;
  --c-gold-light:#e8c96a;

  /* Typography */
  --f-display:   'Oswald', sans-serif;
  --f-body:      'Lato', sans-serif;

  /* Spacing scale */
  --sp-xs:   4px;
  --sp-sm:   8px;
  --sp-md:   16px;
  --sp-lg:   24px;
  --sp-xl:   40px;
  --sp-2xl:  64px;
  --sp-3xl:  96px;
  --sp-4xl:  140px;

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;
  --t-slower: 700ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-red: 0 0 40px rgba(208,26,42,.25);
  --shadow-card: 0 2px 20px rgba(0,0,0,.5);

  /* Layout */
  --max-w: 1280px;
  --nav-h: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
ul, ol { list-style: none; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-dark); }
::-webkit-scrollbar-thumb { background: var(--c-red); border-radius: 3px; }

/* ─── SELECTION ─── */
::selection { background: var(--c-red); color: #fff; }

/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-lg); }
}

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

/* ─── TYPOGRAPHY HELPERS ─── */
.eyebrow {
  font-family: var(--f-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--c-red);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--c-red);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--c-white);
}

.section-title em {
  font-style: normal;
  color: var(--c-red);
}

.lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--c-grey-l);
  line-height: 1.8;
  max-width: 580px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--t-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--c-red);
  color: #fff;
  padding: 16px 36px;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.1);
  opacity: 0;
  transition: var(--t-fast);
}
.btn-primary:hover { background: var(--c-red-light); transform: translateX(4px); }
.btn-primary:hover::after { opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--c-silver);
  padding: 15px 34px;
  border: 1px solid var(--c-border-2);
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}
.btn-outline:hover {
  border-color: var(--c-red);
  color: var(--c-white);
}

.btn-gold {
  background: var(--c-gold);
  color: var(--c-black);
  padding: 16px 36px;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}
.btn-gold:hover { background: var(--c-gold-light); transform: translateX(4px); }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── DIVIDERS ─── */
.divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-border), transparent);
}

/* ─── SECTION PADDING ─── */
.section { padding: var(--sp-4xl) 0; }
.section-sm { padding: var(--sp-3xl) 0; }

/* ─── REVEAL ANIMATIONS (driven by JS) ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1),
              transform .7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── SKIP LINK (accessibility) ─── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--c-red);
  color: #fff;
  padding: 8px 20px;
  font-weight: 700;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ─── BACK TO TOP ─── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--c-red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--t-base);
  z-index: 200;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--c-red-light); }
#back-to-top svg { width: 18px; height: 18px; }

/* ─── RESPONSIVE UTILITIES ─── */
.hide-mobile { }
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .section { padding: var(--sp-3xl) 0; }
  .section-sm { padding: var(--sp-2xl) 0; }
}
