/* =====================================================
   ALINE ROBINET E.I. — artisan de votre image
   Charte : jaune doré #cd9a0f · anthracite #312f2d
            bleu gris #41576f · terracotta #c46b4b
   ===================================================== */

:root {
  --gold: #cd9a0f;
  --gold-dark: #a87e0a;
  --gold-soft: #f8f1dd;
  --ink: #312f2d;
  --ink-soft: #57534e;
  --blue: #41576f;
  --terra: #c46b4b;
  --paper: #faf7f1;
  --white: #ffffff;
  --line: #e9e3d7;
  --shadow: 0 20px 50px -18px rgba(49, 47, 45, .22);
  --radius: 18px;
  --arch: 320px 320px var(--radius) var(--radius);
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Jost', 'Century Gothic', sans-serif;
  --header-h: 78px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

::selection { background: var(--gold); color: var(--white); }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

section { scroll-margin-top: var(--header-h); }

/* ---------- Typographie ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}

.section-lead {
  max-width: 720px;
  color: var(--ink-soft);
  margin-top: -6px;
  margin-bottom: 10px;
}

.section-head { margin-bottom: 54px; }
.section-head .section-title { margin-bottom: 18px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.btn .arrow { transition: transform .25s ease; font-weight: 500; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary:hover .arrow { transform: translateX(4px); }
a[href="#realisations"].btn:hover .arrow { transform: translateY(4px); }

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 12px 28px -12px rgba(205, 154, 15, .65);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(49, 47, 45, .28);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(49, 47, 45, .35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand-logo { height: 58px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right .3s ease;
}

.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }

.btn-nav { padding: 12px 22px; font-size: 14.5px; margin-left: 6px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* Image "fondu" en fond : pour tester la version SANS image,
   supprimer les deux lignes url(...) et le premier linear-gradient. */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 28px;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(250, 247, 241, .97) 0%, rgba(250, 247, 241, .88) 36%, rgba(250, 247, 241, .42) 55%, rgba(250, 247, 241, 0) 74%),
    url("../img/hero-fondu.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.hero-content { max-width: 700px; }

.hero-title {
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin-bottom: 26px;
}

.hero-lead {
  max-width: 520px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.hero-process {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  gap: clamp(28px, 4vw, 54px);
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.hero-stats li { display: flex; flex-direction: column; gap: 2px; }

.hero-stats strong {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-stats strong sup { color: var(--gold); font-size: .6em; }

.hero-stats span {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.scroll-cue {
  display: block;
  width: 1px;
  height: 58px;
  margin: 26px auto 0;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
}
.scroll-cue span {
  position: absolute;
  top: 0; left: -2.5px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(44px); opacity: 0; }
  71% { opacity: 0; }
}

/* ---------- Strip Créer / Structurer / Accompagner ---------- */
.strip {
  background: var(--ink);
  color: var(--white);
  padding: 74px 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4vw, 60px);
}

.strip-item { position: relative; padding-left: 22px; }

.strip-item::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--gold);
}

.strip-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--gold);
}

.strip-item h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
}

.strip-item p {
  font-size: 15px;
  color: rgba(255, 255, 255, .72);
}

/* ---------- Sections génériques ---------- */
.section { padding: 110px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .section-title { color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, .78); }
.section-dark p strong { color: var(--white); }

/* ---------- Expertise ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.card:nth-child(2)::before { background: var(--terra); }
.card:nth-child(3)::before { background: var(--gold); }
.card:nth-child(4)::before { background: var(--blue); }

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }

.card-picto { height: 52px; width: auto; margin-bottom: 22px; }

.card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }

.banner {
  margin-top: 46px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 22px 30px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: .02em;
  text-align: center;
}

/* ---------- Split (Expérience / Fabrik / À propos) ---------- */
.split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(44px, 6vw, 84px);
  align-items: center;
}

.split-content p { margin-bottom: 18px; color: var(--ink-soft); }
.section-dark .split-content p { color: rgba(255, 255, 255, .78); }

.split-figure { position: relative; }

.split-figure img {
  width: 100%;
  height: clamp(360px, 40vw, 520px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: var(--shadow);
}

.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 22px;
  margin: 26px 0;
  font-size: 18px;
  color: var(--ink);
}
.pull-quote strong { font-weight: 700; }

.tagline {
  margin-top: 74px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 330;
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.4;
  color: var(--ink);
}
.tagline em { font-style: italic; color: var(--gold); }

/* ---------- Méthode ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 3vw, 40px);
  counter-reset: step;
  margin-top: 10px;
}

.step {
  position: relative;
  padding-top: 26px;
}

.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: -22px;
  height: 1px;
  background: var(--line);
}
.step:last-child::before { right: 0; }

.step::after {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 42px;
  line-height: 1;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p { font-size: 14.5px; color: var(--ink-soft); }

.section-note {
  margin-top: 52px;
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 15.5px;
  border-left: 3px solid var(--line);
  padding-left: 22px;
}

/* ---------- Fabrik ---------- */
.section-dark .eyebrow { color: var(--gold); }

.fabrik-row {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.fabrik-logo {
  background: var(--white);
  border-radius: 14px;
  padding: 10px 18px;
  display: inline-flex;
}
.fabrik-logo img { height: 44px; width: auto; }

.chip-dark { background: var(--white); }

/* ---------- TIH ---------- */
#tih { padding: 90px 0; }

.tih-card {
  max-width: 880px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(32px, 5vw, 54px);
  box-shadow: 0 24px 60px -30px rgba(49, 47, 45, .18);
}

.tih-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}

.tih-logo { height: 58px; width: auto; }

.tih-head h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.tih-sub {
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tih-card > p { color: var(--ink-soft); margin-bottom: 22px; }

.tih-note {
  background: var(--gold-soft);
  border-radius: 14px;
  padding: 24px 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.tih-highlight {
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink);
}
.tih-highlight strong { color: var(--gold-dark); }

.tih-cta { margin-top: 28px; }

.tih-footnotes {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.tih-note sup { font-size: 0.7em; }
.tih-note abbr { text-decoration: none; cursor: help; }

/* ---------- Réalisations ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.work {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.t-5 { grid-column: span 5; }
.t-7 { grid-column: span 7; }
.t-12 { grid-column: span 12; }

.h-m .work-img, .h-m img { height: 360px; }
.h-l .work-img, .h-l img { height: 440px; }

.work img {
  width: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.work[href*="pompiers"] img { object-position: center 24%; }
.work[href*="origny-hiver"] img { object-position: center 35%; }

.work:hover img { transform: scale(1.045); }

.work-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 68px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(35, 33, 31, .82));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}

.work:hover .work-caption,
.work:focus-visible .work-caption {
  opacity: 1;
  transform: translateY(0);
}

.work-caption strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
}

.work-caption em {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}

@media (hover: none) {
  .work-caption { opacity: 1; transform: none; padding: 46px 18px 14px; }
}

.works-cta {
  margin-top: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.works-cta p {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink-soft);
}

/* ---------- À propos ---------- */
.split-narrow { grid-template-columns: .8fr 1.2fr; }

.about-figure {
  position: relative;
  max-width: 430px;
}

.about-figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid rgba(205, 154, 15, .5);
  border-radius: var(--arch);
}

.about-figure img {
  position: relative;
  width: 100%;
  height: clamp(430px, 44vw, 560px);
  object-fit: cover;
  border-radius: var(--arch);
  box-shadow: var(--shadow);
}

.signature {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 40px;
  color: var(--gold);
  margin-top: 6px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: clamp(44px, 6vw, 90px);
  align-items: start;
}

.contact-intro > p { color: var(--ink-soft); max-width: 480px; }

.contact-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16.5px;
  font-weight: 500;
}

.contact-list a:hover { color: var(--gold-dark); }

.ci {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
}
.ci svg { width: 21px; height: 21px; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 44px);
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.req { color: var(--terra); }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(205, 154, 15, .18);
}

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}
.form-note a { color: var(--gold-dark); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .75);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 50px;
}

.footer-logo { height: 96px; width: auto; }

.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 24px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

/* ---------- Page mentions légales ---------- */
.legal-page {
  padding: calc(var(--header-h) + 64px) 0 100px;
  background: var(--white);
}

.legal-inner { max-width: 780px; }

.legal-page h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

.legal-page p { color: var(--ink-soft); }

.legal-page p a { color: var(--gold-dark); font-weight: 600; }

.legal-note { font-size: 14px; }

.a-completer {
  background: var(--gold-soft);
  border-radius: 6px;
  padding: 1px 8px;
  color: var(--ink);
  font-weight: 600;
}

.legal-back { margin-top: 44px; }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed;
  z-index: 150;
  left: 22px;
  bottom: 22px;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 30px 70px -25px rgba(49, 47, 45, .4);
  animation: cookie-in .5s cubic-bezier(.22, .61, .36, 1);
}

.cookie-banner[hidden] { display: none; }

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.cookie-title {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 8px;
}

.cookie-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.cookie-text a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-actions .btn {
  padding: 10px 16px;
  font-size: 13px;
}

@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .cookie-actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 28, 26, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}

.lightbox[hidden] { display: none; }

.lb-figure {
  max-width: min(1200px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lb-figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  margin-inline: auto;
}

.lb-figure figcaption {
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lb-figure strong { font-size: 17px; }

.lb-figure em {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

.lb-close, .lb-prev, .lb-next {
  position: fixed;
  z-index: 210;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--white);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s ease;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); border-color: var(--gold); }

.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ---------- Animations d'apparition ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
}

.reveal.in { opacity: 1; transform: none; }

.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .step::before { right: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .brand-logo { height: 46px; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 5% 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(49, 47, 45, .3);
    transform: translateY(-120%);
    transition: transform .35s ease;
  }

  .main-nav.is-open { transform: translateY(0); }

  .nav-link { font-size: 17px; padding: 10px 0; }
  .btn-nav { margin: 12px 0 0; }

  .burger { display: flex; }

  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 44px);
    padding-bottom: 40px;
    background-image:
      linear-gradient(rgba(250, 247, 241, .93), rgba(250, 247, 241, .82)),
      url("../img/hero-fondu.jpg");
    background-position: 72% center;
  }

  .strip-grid { grid-template-columns: 1fr; gap: 30px; }

  .section { padding: 80px 0; }

  .split, .split-narrow { grid-template-columns: 1fr; gap: 40px; }
  .about-figure { max-width: 100%; }

  .works-grid { grid-template-columns: 1fr; gap: 18px; }
  .t-5, .t-7, .t-12 { grid-column: auto; }
  .h-m img, .h-l img { height: min(72vw, 420px); }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-close { top: 12px; right: 12px; }
}

@media (max-width: 560px) {
  /* le titre garde sa cesure forcee : lignes courtes, taille adaptee */
  .hero-title { font-size: clamp(22px, 7vw, 32px); }
  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px 34px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .fabrik-row { gap: 18px; }
  .tih-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .tagline em { display: block; }
}
