/* =========================================================
   Stéphanie Mahelin — Landing UX
   Bleu nuit + terracotta · registre éditorial senior
   ========================================================= */

:root {
  --bg: #FBF8F4;
  --tint: #F3EBE2;
  --ink: #16263F;
  --ink-soft: #25364f;
  --surface: #FFFFFF;
  --accent: #C25A3C;
  --accent-dark: #A8482E;
  --accent-contrast: #FFFFFF;
  --muted: #5B6472;
  --line: #E7E0D7;
  --on-dark: #FBF8F4;
  --on-dark-muted: #9FB0C4;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22,38,63,.05), 0 4px 12px rgba(22,38,63,.06);
  --shadow: 0 2px 6px rgba(22,38,63,.06), 0 18px 50px rgba(22,38,63,.10);

  --maxw: 1120px;
  --maxw-narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); }
em { font-style: italic; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 var(--s-5);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; }
h1 em { color: var(--accent); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 var(--s-4); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--maxw-narrow); }
main { counter-reset: sec; }
.section { padding: clamp(72px, 11vw, 144px) 0; }
.section.tint { background: var(--tint); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--on-dark); }
.big-p { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }

/* Numérotation éditoriale des sections */
.section.numbered { counter-increment: sec; }
.numbered h2[data-label]::before {
  content: counter(sec, decimal-leading-zero) "  ·  " attr(data-label);
  display: block;
  font-family: "Inter", sans-serif;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}

/* ---------- Accessibilité ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4); z-index: 100; }
.skip-link:focus { left: var(--s-4); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible { outline-color: #fff; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 15px 28px; border-radius: 999px;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 6px 20px rgba(194,90,60,.28); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-arrow { transition: transform .15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,248,244,.82); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) 0; }
.wordmark { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark-dot { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 10vw, 132px) 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-9); align-items: center; }
.eyebrow { font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-5); }
.hero h1 { color: var(--on-dark); margin-bottom: var(--s-6); }
.lede { font-size: 1.22rem; color: var(--on-dark-muted); max-width: 42ch; margin-bottom: var(--s-7); line-height: 1.6; }
.hero-photo { margin: 0; position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  transform: translate(20px, 20px); border-radius: var(--radius);
  background: var(--accent); z-index: 0;
}
.hero-photo img { position: relative; z-index: 1; border-radius: var(--radius); width: 100%; object-fit: cover; }

/* ---------- Logos ---------- */
.logos { padding: var(--s-8) 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.logos-label { text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-6); }
.logos-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 64px); }
.logos-row img { height: 40px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .6; transition: opacity .2s ease, filter .2s ease; }
.logos-row img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- Problème ---------- */
.checklist { margin-top: var(--s-6); display: grid; gap: var(--s-4); }
.checklist li { position: relative; padding-left: var(--s-6); font-size: 1.08rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* ---------- Transformation ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-bottom: var(--s-8); }
.ba-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-7); }
.ba-card p:last-child { margin-bottom: 0; }
.ba-tag { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s-4); }
.ba-before { opacity: .85; }
.ba-before .ba-tag { color: var(--muted); }
.ba-after { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.ba-after .ba-tag { color: var(--accent); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.pillars li { border-top: 2px solid var(--accent); padding-top: var(--s-4); color: var(--muted); }
.pillars strong { display: block; font-family: "Fraunces", serif; font-size: 1.1rem; color: var(--ink); margin-bottom: var(--s-2); font-weight: 600; }

/* ---------- Offre ---------- */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-bottom: var(--s-8); }
.offer-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-8) var(--s-7) var(--s-7); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.offer-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.offer-step { position: absolute; top: var(--s-5); right: var(--s-6); font-family: "Fraunces", serif; font-size: 2.4rem; color: var(--line); line-height: 1; }
.offer-card h3 { color: var(--accent); margin-bottom: var(--s-4); max-width: 80%; }
.offer-note { color: var(--muted); font-size: .98rem; margin-bottom: 0; }

/* ---------- Méthode ---------- */
.steps { display: grid; gap: 0; margin-top: var(--s-6); }
.steps li { display: flex; gap: var(--s-5); align-items: flex-start; position: relative; padding-bottom: var(--s-6); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: -2px; width: 2px; background: var(--line); }
.step-n { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-family: "Fraunces", serif; font-weight: 600; display: grid; place-items: center; position: relative; z-index: 1; }
.steps strong { display: block; font-family: "Fraunces", serif; font-size: 1.15rem; margin-bottom: var(--s-1); font-weight: 600; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Études de cas ---------- */
.cases h2 { margin-bottom: var(--s-9); }
.case { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s-9); align-items: center; padding: var(--s-8) 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case--solo { grid-template-columns: 1fr; max-width: var(--maxw-narrow); }
.case h3 { margin-bottom: var(--s-3); }
.case-tagline { font-family: "Fraunces", serif; font-style: italic; font-size: 1.2rem; color: var(--accent); margin-bottom: var(--s-5); }
.case-result { font-weight: 600; color: var(--ink); }
.stats { display: flex; flex-wrap: wrap; gap: var(--s-7); margin: var(--s-6) 0; }
.stat-n { display: block; font-family: "Fraunces", serif; font-size: 1.8rem; color: var(--ink); line-height: 1; }
.stat-l { display: block; font-size: .85rem; color: var(--muted); margin-top: var(--s-2); }
.case-media { display: grid; gap: var(--s-3); }
.case-media-main { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow); }
.case-media-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.case-media-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ---------- À propos ---------- */
.about p { font-size: 1.08rem; }
.creds { margin-top: var(--s-7); display: grid; gap: var(--s-3); }
.creds li { padding-left: var(--s-5); position: relative; color: var(--muted); }
.creds li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Contact ---------- */
.contact .lede { color: var(--on-dark-muted); margin-bottom: var(--s-8); max-width: 52ch; }
.contact-form { display: grid; gap: var(--s-5); max-width: 600px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 600; font-size: .95rem; color: var(--on-dark); }
.field input, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 13px 15px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.contact-form .btn { justify-self: start; }
.contact-info { margin-top: var(--s-7); color: var(--on-dark-muted); line-height: 1.9; }
.contact-info a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: var(--s-8) 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); align-items: baseline; justify-content: space-between; }
.site-footer .wordmark { color: #fff; }
.footer-meta a { color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero-photo { order: -1; max-width: 340px; }
  .hero-photo::before { transform: translate(14px, 14px); }
  .ba-grid, .offer-grid, .pillars { grid-template-columns: 1fr; }
  .case, .case--solo { grid-template-columns: 1fr; gap: var(--s-6); }
  .case-media { order: 2; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .logos-row img { height: 30px; }
  .stats { gap: var(--s-6); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
