/* =========================================
   DESIGN SYSTEM — Richard Lourmet
   Styles communs à toutes les pages
   ========================================= */

/* ---- Polices auto-hébergées ---- */
/* Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Instrument Serif */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Variables */
:root {
  --gutter: clamp(20px, 4vw, 64px);
  --line-dark: rgba(232,212,154,.18);
  --line: rgba(232,224,204,.55);
  --max: 1440px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: #0B1220;
  background: #FEFCF7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #C9A84C; color: #0E1628; }

/* Layout */
.shell { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.max-w-shell { max-width: var(--max); }

/* Typography */
.display {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.96;
  text-wrap: balance;
}
.italic-display { font-style: italic; font-family: 'Instrument Serif', serif; }
.font-display { font-family: 'Instrument Serif', serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* Color utilities */
.text-surface  { color: #FEFCF7; }
.text-gold     { color: #C9A84C; }
.text-gold-soft{ color: #E8D49A; }
.text-muted    { color: #6B7693; }
.text-ink      { color: #0B1220; }
.text-ink-soft { color: #6B7693; }
.bg-marine     { background: #0E1628; }

/* Eyebrow */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #C9A84C;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
}
.dark .eyebrow { color: #E8D49A; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold  { background: #C9A84C; color: #0E1628; border-color: #C9A84C; }
.btn--gold:hover { background: #b8963f; border-color: #b8963f; }
.btn--ghost { background: transparent; color: #FEFCF7; border-color: rgba(232,212,154,.35); }
.btn--ghost:hover { background: rgba(232,212,154,.08); border-color: rgba(232,212,154,.6); }
.btn .arrow { width: 14px; height: 14px; transition: transform .25s; }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* Decorative */
.gold-rule {
  height: 1px;
  background-image: linear-gradient(to right, #C9A84C 50%, transparent 50%);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  opacity: .55;
}

/* Hero section */
.hero-grid {
  background-image:
    repeating-linear-gradient(0deg, rgba(201,168,76,.06) 0px, transparent 1px, transparent 60px, rgba(201,168,76,.06) 60px),
    repeating-linear-gradient(90deg, rgba(201,168,76,.06) 0px, transparent 1px, transparent 60px, rgba(201,168,76,.06) 60px);
}
.hero-glow {
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Mega menu */
@keyframes mega-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mega-scrim-in { from { opacity: 0 } to { opacity: 1 } }
.mega-link { display: flex; flex-direction: column; gap: 2px; transition: color .2s, transform .2s; }
.mega-link:hover { color: #C9A84C !important; transform: translateX(3px); }

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.33%); }
}
.marquee { animation: marquee 38s linear infinite; will-change: transform; }
@media (max-width: 767px) { .marquee { animation-duration: 24s; } }

/* FAQ accordion */
.faq-body { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s cubic-bezier(.2,.7,.3,1), opacity .4s; }
.faq-item.open .faq-body { max-height: 800px; opacity: 1; }
.faq-plus { transition: transform .3s; }
.faq-item.open .faq-plus { transform: rotate(45deg); }

/* Cards & hover effects */
.svc-cell { transition: background .3s; }
.svc-cell:hover { background: rgba(232,212,154,.05); }
.proj-card .proj-art { transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.proj-card:hover .proj-art { transform: scale(1.06); }
.offer-card { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.offer-card:hover { transform: translateY(-4px); }
.pricing-card { background: rgba(254,252,247,.04); border: 1px solid rgba(232,212,154,.14); border-radius: 16px; padding: 36px 32px; position: relative; transition: border-color .3s; }
.pricing-card:hover { border-color: rgba(232,212,154,.3); }
.pricing-card--featured { border-color: #C9A84C !important; background: rgba(201,168,76,.06); }

/* Forms */
.form-input {
  width: 100%;
  background: rgba(254,252,247,.06);
  border: 1px solid rgba(232,212,154,.2);
  border-radius: 8px;
  padding: 14px 18px;
  color: #FEFCF7;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s;
}
.form-input:focus { outline: none; border-color: rgba(201,168,76,.5); }
.form-input::placeholder { color: rgba(254,252,247,.35); }
.form-label { display: block; font-size: 12px; font-family: 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: rgba(254,252,247,.5); margin-bottom: 8px; }

/* Dyslexic mode */
.dyslexic, .dyslexic * { font-family: 'Open Dyslexic', sans-serif !important; }

/* Nav responsive */
@media (min-width: 980px) {
  .nav-links  { display: flex !important; }
  .nav-phone  { display: inline-flex !important; }
}
