/* ============================================================
   STYLEME.FR — BASE PARTAGÉE
   Variables CSS, reset, typographie, utilitaires communs
   Chargé en premier, utilisé par desktop ET mobile
   ============================================================ */

:root {
  /* Fonds clairs */
  --cream: #FAF7F2;
  --cream-warm: #F2EDE5;
  --cream-deep: #E8E1D5;
  --paper: #FCFAF6;

  /* Noirs */
  --ink: #0A0A0A;
  --ink-soft: #1C1C1C;
  --ink-muted: #5A5A5A;

  /* Orange signature */
  --terracotta: #E8651A;
  --terracotta-deep: #C45013;
  --orange: #E8651A;
  --orange-deep: #C45013;
  --orange-soft: #F2A472;
  --orange-fr: #E8651A;

  /* Accents neutres */
  --moss: #2A2A2A;
  --moss-soft: #4A4A4A;
  --rose-dust: #F2A472;

  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.22);
  --shadow-soft: 0 30px 80px -30px rgba(10, 10, 10, 0.22);
  --shadow-card: 0 18px 60px -24px rgba(10, 10, 10, 0.28);

  /* Typographie */
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --type-eyebrow: clamp(0.72rem, 0.75vw, 0.82rem);
  --type-body: clamp(1rem, 1.05vw, 1.125rem);
  --type-lead: clamp(1.2rem, 1.4vw, 1.5rem);
  --type-h3: clamp(1.5rem, 2.2vw, 2.1rem);
  --type-h2: clamp(2.4rem, 4.5vw, 4.4rem);
  --type-h1: clamp(3.4rem, 8vw, 7.2rem);

  /* Espaces */
  --space-section: clamp(5rem, 10vw, 10rem);
  --shell-max: 1320px;
  --shell-px: clamp(1.25rem, 4vw, 3rem);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s ease, opacity .3s ease; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--ink); color: var(--cream); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 12px 18px; z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-inline: var(--shell-px);
  position: relative;
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: var(--type-h1); font-weight: 500; }
h2 { font-size: var(--type-h2); font-weight: 500; }
h3 { font-size: var(--type-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }

em, .italic {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--terracotta);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--type-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--ink-muted);
  display: inline-block;
}

p { margin: 0 0 1rem; }
p.lead {
  font-size: var(--type-lead);
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .35s cubic-bezier(.7,0,.2,1), background .35s ease, color .35s ease, border-color .35s ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn::after {
  content: "→";
  font-family: var(--font-display);
  transition: transform .4s cubic-bezier(.7,0,.2,1);
}
.btn:hover::after { transform: translateX(4px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--terracotta); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); background: var(--cream); }

/* ============================================================
   SECTIONS — Structure commune
   ============================================================ */
section {
  padding: var(--space-section) 0;
  position: relative;
}
.section-band { background: var(--cream); }
.section-band + .section-band { border-top: 1px solid var(--line); }

.section-head {
  max-width: 880px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.centered .eyebrow {
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 span { font-style: italic; color: var(--terracotta); }

/* ============================================================
   ANIMATIONS — Reveal scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.2,.6,.2,1), transform 1s cubic-bezier(.2,.6,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1);
  transition-delay: calc(var(--i, 0) * 100ms);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

.parallax-img { will-change: transform; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  z-index: 1000;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   .FR SUFFIX — orange dans tout le site
   ============================================================ */
.fr-suffix {
  color: var(--orange-fr);
  font-weight: inherit;
  font-style: inherit;
}

/* ============================================================
   MARQUE — ™
   ============================================================ */
.site-name .tm {
  display: inline-block;
  font-family: var(--font-body, 'Inter Tight', system-ui, sans-serif);
  font-size: 0.42em;
  font-weight: 600;
  color: var(--orange);
  vertical-align: super;
  line-height: 1;
  margin-left: 0.12em;
  letter-spacing: 0;
  position: relative;
  top: -0.05em;
  opacity: 0.92;
  -webkit-user-select: none;
  user-select: none;
}
.footer-brand .site-name .tm,
.footer-bottom .site-name .tm { opacity: 0.85; }

/* ============================================================
   SITE-NAME INLINE
   ============================================================ */
.site-name--inline {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.025em;
  font-size: 1.08em;
  vertical-align: baseline;
  color: var(--ink);
}

/* ============================================================
   PAGE INTÉRIEURE — Hero secondaire
   ============================================================ */
.page-hero {
  padding: 12rem 0 6rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 1.5rem; }
.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.page-hero p { font-size: var(--type-lead); color: var(--ink-soft); max-width: 720px; }
.page-hero em { font-style: italic; color: var(--terracotta); }

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 0;
}
.legal-content h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin: 3rem 0 1rem; }
.legal-content p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 1rem; }
.legal-content a { color: var(--terracotta); border-bottom: 1px solid var(--terracotta); }

/* ============================================================
   PREFERS-REDUCED-MOTION — global
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
