/* ============================================
   OZE — Site vitrine
   Tokens : bordeaux #70101B / beige #E8DFD3 / rose #E3C4C6 / gris #6E6E6E
   Titres : Anton (majuscules) — Texte courant : Jost (fallback Arial)
   ============================================ */

:root {
  --bordeaux: #70101B;
  --bordeaux-dark: #4A0B12;
  --beige: #E8DFD3;
  --rose: #E3C4C6;
  --rose-deep: #D9AEB1;
  --gris: #6E6E6E;
  --ivoire: #FAF7F2;
  --texte: #2B2B2B;
  --blanc: #FFFFFF;

  --font-title: 'Anton', Arial, sans-serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1120px;
  --header-h: 82px;

  /* Ombres teintées bordeaux, jamais gris neutre */
  --shadow-sm: 0 6px 18px rgba(112, 16, 27, 0.12);
  --shadow-md: 0 16px 38px rgba(112, 16, 27, 0.18);
  --shadow-lift: 0 28px 54px rgba(112, 16, 27, 0.24);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--texte);
  background: var(--ivoire);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; }

h1, h2 {
  font-family: var(--font-title);
  color: var(--bordeaux);
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--bordeaux-dark);
  line-height: 1.3;
  margin: 0 0 20px;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  text-shadow: 2px 4px 0 rgba(112, 16, 27, 0.12), 4px 8px 18px rgba(112, 16, 27, 0.18);
}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

p { margin: 0 0 16px; }

:focus-visible {
  outline: 3px solid var(--bordeaux);
  outline-offset: 3px;
}

.btn {
  display: inline-block;
  padding: 17px 38px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background 0.22s ease;
}
.btn:active { transform: translateY(-1px) scale(0.98); }
.btn-primary {
  background: var(--bordeaux);
  color: var(--ivoire);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--bordeaux-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.btn-light {
  background: var(--ivoire);
  color: var(--bordeaux);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  font-size: 1.05rem;
}
.btn-light:hover {
  background: var(--rose);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 45;
  background: transparent;
  --nav-color: var(--ivoire);
  --nav-hover: var(--ivoire);
  --nav-chip: rgba(255, 255, 255, 0.14);
}
.site-header.scrolled {
  --nav-color: var(--texte);
  --nav-hover: var(--bordeaux);
  --nav-chip: rgba(112, 16, 27, 0.08);
}
/* Apparition fluide du bandeau (fond + ombre en fondu, aucune propriété coûteuse animée) */
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-radius: 999px;
  transition: transform 0.45s var(--ease-out);
  transform: translateY(0);
  will-change: transform;
}
.header-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.9);
  box-shadow: 0 14px 34px rgba(112, 16, 27, 0.14);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  z-index: -1;
}
.site-header.scrolled .header-inner { transform: translateY(10px); }
.site-header.scrolled .header-inner::before {
  opacity: 1;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.brand-mark {
  height: 50px;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.35s ease, transform 0.45s var(--ease-out);
  transform-origin: left center;
}
.site-header.scrolled .brand-mark { filter: none; transform: scale(0.86); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none;
  color: var(--nav-color);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.35s ease, transform 0.15s ease;
}
.site-nav a:not(.nav-cta):hover { background: var(--nav-chip); color: var(--nav-hover); }
.site-nav a:not(.nav-cta):active { transform: scale(0.95); }
.nav-cta {
  margin-left: 10px;
  background: var(--ivoire);
  color: var(--bordeaux) !important;
  padding: 11px 26px !important;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background 0.25s ease, color 0.25s ease;
}
.site-header.scrolled .nav-cta {
  background: var(--bordeaux);
  color: var(--ivoire) !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Hamburger (mobile) ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 50;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--nav-color);
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(13px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-13px) rotate(-45deg); }
.hamburger.is-open span { background: var(--ivoire); }

/* ---------- Mobile menu overlay ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bordeaux);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu a {
  width: 100%;
  max-width: 320px;
  text-align: center;
  background: var(--ivoire);
  color: var(--bordeaux-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 18px 24px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mobile-menu a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
body.menu-locked .brand-mark { filter: brightness(0) invert(1) !important; }
body.menu-locked { overflow: hidden; }

/* ---------- Splash (toutes tailles d'écran) ---------- */
.mobile-splash {
  display: flex;
  position: relative;
  min-height: 100svh;
  margin-top: calc(-1 * var(--header-h));
  background: var(--bordeaux);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mobile-splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 25%, rgba(255, 255, 255, 0.06), transparent 42%),
    radial-gradient(circle at 78% 75%, rgba(0, 0, 0, 0.22), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 65%);
  pointer-events: none;
}
.splash-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  animation: splashFloat 7s ease-in-out 2.2s infinite;
}
/* Intro : le logo se révèle, puis les lettres OZE montent une à une */
.splash-logo { animation: logoIn 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
@keyframes logoIn {
  0% { opacity: 0; transform: scale(0.82); filter: blur(10px); }
  60% { filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
.splash-word { display: flex; overflow: hidden; padding: 0 0.04em 0.06em; }
.splash-word span {
  display: inline-block;
  animation: letterIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.splash-word span:nth-child(1) { animation-delay: 0.85s; }
.splash-word span:nth-child(2) { animation-delay: 0.97s; }
.splash-word span:nth-child(3) { animation-delay: 1.09s; }
@keyframes letterIn {
  from { opacity: 0; transform: translateY(105%); }
  to { opacity: 1; transform: translateY(0); }
}
.splash-scroll { animation: cueIn 0.9s ease 1.8s backwards; }
@keyframes cueIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes splashFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.splash-logo {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.splash-logo-img {
  height: clamp(110px, 14vw, 170px);
  display: block;
  filter: brightness(0) invert(1);
}
.splash-word {
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 8.5vw, 5.4rem);
  letter-spacing: 0.08em;
  color: var(--ivoire);
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}
.splash-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(250, 247, 242, 0.72);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
}
.mobile-splash.cue-hidden .splash-scroll { opacity: 0; }
.splash-scroll::after {
  content: '';
  width: 1px;
  height: 44px;
  background: linear-gradient(rgba(250, 247, 242, 0.85), transparent);
  transform-origin: top;
  animation: scrollCue 2.4s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(16px); opacity: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bordeaux);
  padding: 140px 0 130px;
}
.hero-mega {
  position: absolute;
  inset: -30px -20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero-mega span {
  font-family: var(--font-title);
  font-size: clamp(7rem, 17vw, 14rem);
  line-height: 0.92;
  white-space: nowrap;
  color: rgba(0, 0, 0, 0.12);
}
.hero-mega span:nth-child(1) { align-self: flex-end; transform: translateX(9%); color: rgba(0, 0, 0, 0.09); }
.hero-mega span:nth-child(2) { align-self: center; transform: translateX(16%); }
.hero-mega span:nth-child(3) { transform: translateX(-7%); color: rgba(0, 0, 0, 0.10); }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.eyebrow {
  color: rgba(250, 247, 242, 0.78);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--ivoire);
  margin-bottom: 26px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}
.hero-lede {
  font-size: 1.15rem;
  color: rgba(250, 247, 242, 0.92);
  max-width: 46ch;
  margin-bottom: 36px;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--bordeaux);
  box-shadow:
    inset 0 3px 8px rgba(74, 11, 18, 0.35),
    inset 0 -2px 4px rgba(255, 255, 255, 0.5);
}
.ring-md {
  width: 210px;
  height: 210px;
  border-color: var(--rose-deep);
  box-shadow:
    inset 0 3px 8px rgba(74, 11, 18, 0.2),
    inset 0 -2px 4px rgba(255, 255, 255, 0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-md span {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 3.2rem;
  letter-spacing: 0.02em;
  color: var(--bordeaux);
}

/* À propos : beige rosé doux, plus jamais blanc cru */
.section-apropos {
  background: linear-gradient(160deg, var(--beige) 0%, #EFDDD6 55%, var(--rose) 130%);
}
/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-beige { background: var(--beige); }
.section-ivoire { background: var(--ivoire); }
.section-rose { background: var(--rose); }
.section-lede {
  color: var(--gris);
  font-size: 1.1rem;
  max-width: 60ch;
  margin-bottom: 56px;
}

/* ---------- Animations d'apparition ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
.section-lede.reveal { transition-delay: 0.1s; }
.service-item.reveal:nth-child(2), .step.reveal:nth-child(2) { transition-delay: 0.1s; }
.service-item.reveal:nth-child(3), .step.reveal:nth-child(3) { transition-delay: 0.2s; }
.service-item.reveal:nth-child(4) { transition-delay: 0.3s; }
.faq-item.reveal:nth-child(2) { transition-delay: 0.07s; }
.faq-item.reveal:nth-child(3) { transition-delay: 0.14s; }
.faq-item.reveal:nth-child(4) { transition-delay: 0.21s; }
.faq-item.reveal:nth-child(5) { transition-delay: 0.28s; }

/* ---------- Services ---------- */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 38px 36px;
  background: var(--ivoire);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out),
              opacity 0.65s var(--ease-out);
}
.service-item.reveal { transition: transform 0.65s var(--ease-out), box-shadow 0.28s var(--ease-out), opacity 0.65s var(--ease-out); }
.service-item.reveal.in-view { transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), opacity 0.65s var(--ease-out); }
.service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}
.service-mark {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 7px;
  border-radius: 50%;
  border: 3px solid var(--bordeaux);
  box-shadow: inset 0 2px 4px rgba(74, 11, 18, 0.35);
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.service-item.is-active .service-mark {
  background: var(--bordeaux);
  transform: scale(1.12);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 5px rgba(112, 16, 27, 0.12);
}
.service-item h3 { margin: 0 0 10px; }
.service-item p { color: var(--texte); margin-bottom: 0; }

/* ---------- Approche ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.step-num {
  display: block;
  font-family: var(--font-title);
  font-size: 2.4rem;
  color: var(--rose-deep);
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 12px; }
.step p { color: var(--texte); }

/* ---------- Realisations ---------- */
.case {
  background: var(--ivoire);
  padding: 46px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  cursor: pointer;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), opacity 0.65s var(--ease-out);
}
.case:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.case-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--bordeaux);
  box-shadow: inset 0 2px 5px rgba(74, 11, 18, 0.3);
  margin-bottom: 22px;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.case.is-active .case-mark {
  background: var(--bordeaux);
  transform: scale(1.08);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 0 6px rgba(112, 16, 27, 0.12);
}
.case-tag {
  color: var(--gris);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.case h3 { margin-bottom: 6px; }
.case p { color: var(--texte); }
.case-phase {
  margin-bottom: 18px;
}
.case-phase-label {
  display: block;
  font-weight: 600;
  color: var(--bordeaux-dark);
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.case-link {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  color: var(--bordeaux);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--rose-deep);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.case-link:hover { border-color: var(--bordeaux); }

/* ---------- A propos ---------- */
.apropos-inner { display: block; }
.apropos-text { max-width: 760px; }
.apropos-text p { color: var(--texte); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--ivoire);
  border-radius: 14px;
  padding: 24px 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s ease, opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 600;
  color: var(--bordeaux-dark);
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: normal;
  color: var(--bordeaux);
  transition: transform 0.25s var(--ease-out);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p {
  margin: 16px 0 0;
  color: var(--texte);
}
.faq-item[open] p { animation: faqIn 0.35s var(--ease-out); }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Contact ---------- */
.section-contact {
  background: var(--bordeaux);
  text-align: center;
  box-shadow: inset 0 12px 30px rgba(0, 0, 0, 0.15);
}
.section-contact h2 { color: var(--ivoire); }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-lede {
  color: var(--rose);
  font-size: 1.15rem;
  max-width: 52ch;
  margin-bottom: 36px;
}
.contact-sub {
  color: rgba(250, 247, 242, 0.75);
  margin-top: 22px;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ivoire); border-top: 1px solid rgba(112, 16, 27, 0.15); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 30px 32px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-mark { height: 30px; opacity: 0.85; }
.footer-inner p { margin: 0; color: var(--gris); font-size: 0.9rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  color: var(--gris);
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--bordeaux); }

/* ---------- Pages légales ---------- */
.legal-main { padding: 70px 0 100px; }
.legal-main h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal-main h2 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--bordeaux-dark);
  font-size: 1.15rem;
  margin-top: 40px;
}
.legal-main p, .legal-main li { color: var(--texte); }
.legal-box {
  background: var(--ivoire);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 32px 36px;
  margin-top: 24px;
}
.legal-box p { margin-bottom: 8px; }

/* ---------- Responsive ---------- */

/* ===== Animations premium ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--rose-deep), var(--bordeaux));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}
.splash-inner, .hero-mega span { will-change: transform, opacity; }

/* Hero : entrée orchestrée */
.hero .eyebrow, .hero-lede, .hero .btn {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.hero .eyebrow { transition-delay: 0.05s; }
.hero-lede { transition-delay: 0.75s; }
.hero .btn { transition: opacity 0.9s var(--ease-out) 0.9s, transform 0.9s var(--ease-out) 0.9s, box-shadow 0.22s var(--ease-out), background 0.22s ease; }
.hero.hero-in .eyebrow, .hero.hero-in .hero-lede, .hero.hero-in .btn { opacity: 1; transform: none; }
.hero.hero-in .btn:hover { transform: translateY(-3px); transition-delay: 0s; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.02em 0.12em; margin-bottom: -0.12em; }
.hero h1 .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero.hero-in h1 .w > span { transform: none; }

/* Titres de section : révélés depuis un masque */
.section h2.reveal {
  clip-path: inset(0 0 99% 0);
  transform: translateY(26px);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}
.section h2.reveal.in-view { clip-path: inset(0 0 -10% 0); transform: none; }

/* Méthode : un trait se dessine sous chaque numéro */
.step-num { position: relative; padding-bottom: 14px; }
.step-num::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 2px;
  background: var(--bordeaux);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}
.step.in-view .step-num::after { transform: scaleX(1); }

/* Menu : section en cours */
.site-nav a.is-current:not(.nav-cta) { background: var(--nav-chip); color: var(--nav-hover); }

/* Menu mobile : liens en cascade */
.mobile-menu a { opacity: 0; transform: translateY(14px); }
.mobile-menu.is-open a { opacity: 1; transform: none; transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.2s ease; }
.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.13s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.23s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.28s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: 0.33s; }

/* Lien « Voir le site » : soulignement qui se remplit */
.case-link { border-bottom: none; background: linear-gradient(var(--bordeaux), var(--bordeaux)) left bottom / 0 2px no-repeat, linear-gradient(var(--rose-deep), var(--rose-deep)) left bottom / 100% 2px no-repeat; transition: background-size 0.45s var(--ease-out); }
.case-link:hover { background-size: 100% 2px, 100% 2px; }

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero-lede, .hero .btn, .hero h1 .w > span, .mobile-menu a { opacity: 1 !important; transform: none !important; }
  .section h2.reveal { clip-path: none !important; }
  .step-num::after { transform: scaleX(1) !important; }
}

/* ===== Optimisation téléphone ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body { overflow-x: clip; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { overflow-wrap: break-word; text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

/* Écran tactile : pas d'effets de survol « collants », retour au toucher à la place */
@media (hover: none) {
  .service-item:hover { transform: none; box-shadow: var(--shadow-sm); }
  .case:hover { transform: none; box-shadow: var(--shadow-md); }
  .btn-primary:hover, .btn-light:hover, .nav-cta:hover, .mobile-menu a:hover { transform: none; }
  .service-item:active, .case:active { transform: scale(0.985); transition-duration: 0.12s; }
  .btn:active, .mobile-menu a:active { transform: scale(0.97); }
}

@media (max-width: 860px) {
  .hamburger { width: 48px; height: 48px; padding: 4px; }
  .mobile-menu { min-height: 100dvh; padding: max(32px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom)); }
  .mobile-menu a { font-size: 1.1rem; padding: 18px 24px; }
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-header.scrolled .header-inner { margin: 0 12px; }
  .section-lede { margin-bottom: 40px; }
  .hero-lede { font-size: 1.08rem; }
  .service-item { padding: 28px 24px; gap: 16px; }
  .case { padding: 32px 26px; border-radius: 18px; }
  .faq-item { padding: 20px 22px; }
  .faq-item summary { min-height: 44px; font-size: 1rem; }
  .footer-inner { padding-top: 40px; padding-bottom: 36px; }
  .btn { padding: 17px 32px; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .splash-scroll { bottom: max(24px, env(safe-area-inset-bottom)); }
  .hero .btn, .contact-inner .btn { display: block; width: 100%; text-align: center; }
  .contact-inner { align-items: stretch; }
  .site-header.scrolled .header-inner { margin: 0 10px; padding: 8px 10px 8px 18px; }
  .site-header.scrolled .brand-mark { transform: scale(0.8); }
  .steps { gap: 30px; }
  .site-footer .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 52px 24px max(36px, env(safe-area-inset-bottom)); }
  .footer-brand { flex-direction: column; align-items: center; gap: 14px; }
  .footer-mark { height: 40px; }
  .footer-inner p { max-width: 30ch; line-height: 1.5; }
  .footer-links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 20px; padding-top: 18px; border-top: 1px solid rgba(112, 16, 27, 0.12); width: 100%; }
  .footer-links a { display: inline-block; padding: 10px 0; }
  .legal-box { padding: 24px 20px; }
  .legal-main { padding: 48px 0 72px; }
}

@media (max-width: 360px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.75rem; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 860px) {
  .service-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .site-header.scrolled .header-inner { transform: translateY(8px); }

  /* Hero mobile : fond clair, plus de OZE géant (déjà vu sur l'écran d'accueil), texte sombre */
  .hero {
    background: var(--ivoire);
    padding: 70px 0 90px;
  }
  .hero-mega { display: none; }
  .eyebrow { color: var(--gris); }
  .hero h1 { color: var(--bordeaux); text-shadow: 2px 4px 0 rgba(112, 16, 27, 0.12), 4px 8px 18px rgba(112, 16, 27, 0.18); }
  .hero-lede { color: var(--texte); }
  .hero .btn-light {
    background: var(--bordeaux);
    color: var(--ivoire);
    box-shadow: var(--shadow-md);
  }
  .hero .btn-light:hover { background: var(--bordeaux-dark); }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .header-inner { padding: 14px 20px; }
  :root { --header-h: 78px; }
  .hero { padding: 50px 0 80px; }
  .section { padding: 70px 0; }
}

/* Les logos portent width/height en HTML (anti-décalage) : la hauteur CSS reste la référence */
.brand-mark, .splash-logo-img, .footer-mark { width: auto; }

/* ---------- Pages services, réalisation, à propos ---------- */
.page-hero {
  background: var(--bordeaux);
  padding: 72px 0 84px;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 64px);
}
.page-hero-inner { max-width: 760px; }
.page-hero h1 {
  color: var(--ivoire);
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  margin-bottom: 22px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}
.page-hero .hero-lede { max-width: 56ch; margin-bottom: 0; opacity: 1; transform: none; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(250, 247, 242, 0.7);
  margin-bottom: 26px;
}
.breadcrumb a { color: rgba(250, 247, 242, 0.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--ivoire); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ivoire); }
.wrap.prose { max-width: var(--max-width); }
.prose > * { max-width: 760px; }
.prose p { color: var(--texte); }
.prose a:not(.case-link), .step p a { color: var(--bordeaux); font-weight: 500; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 26px;
  background: var(--blanc);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}
.related-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.related-title { font-weight: 600; color: var(--bordeaux-dark); font-size: 1.12rem; }
.related-text { color: var(--gris); font-size: 0.97rem; line-height: 1.5; }
.case-static { cursor: default; }
.case-static:hover { transform: none; box-shadow: var(--shadow-md); }
.case-title { font-family: var(--font-body); font-weight: 600; color: var(--bordeaux-dark); font-size: 1.35rem; margin-bottom: 6px; }
.service-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--bordeaux);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--rose-deep);
}
.service-more:hover { border-color: var(--bordeaux); }
.footer-services { padding-bottom: 26px; }
.footer-services nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(112, 16, 27, 0.1);
}
.footer-services a { color: var(--gris); font-size: 0.88rem; text-decoration: none; }
.footer-services a:hover { color: var(--bordeaux); }
@media (max-width: 520px) {
  .page-hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }
  .footer-services nav { justify-content: center; text-align: center; }
}
.case-link + .case-link { margin-left: 22px; }
