/* ═══════════════════════════════════════════════════════════════
   JALENQUES · style.css
   Stack : HTML5 + CSS3 Vanilla · Mobile-first · DM Sans
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   0. FONTS LOCALES
───────────────────────────────────────── */
@font-face {
  font-family: 'NeutraDisplay';
  src: url('assets/fonts/NeutraDisplay-Medium.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NeutraDisplay';
  src: url('assets/fonts/NeutraDisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─────────────────────────────────────────
   0. RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Scrollbar custom */
  scrollbar-color: var(--teal) var(--surface);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal-dim);
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  /* Curseur masqué au profit du curseur custom */
  cursor: none;
}

/* Rétablir le curseur natif sur les éléments interactifs
   (le curseur custom JS s'en chargera) */
a, button, input, textarea, select, label {
  cursor: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: italic;
  color: var(--teal);
}

strong {
  font-weight: 700;
  color: var(--teal);
}

/* ─────────────────────────────────────────
   1. VARIABLES
───────────────────────────────────────── */
:root {
  --bg:         #383c3d;
  --teal:       #00BFA5;
  --teal-dim:   #009688;
  --pink:       #E8174A;
  --pink-dim:   #c01239;
  --white:      #F5F5F5;
  --muted:      #888888;
  --surface:    #2a2e2f;
  --surface-2:  #222627;

  --font-display: 'DM Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:     12px;
  --radius-sm:  6px;

  --transition-fast:   150ms ease;
  --transition-base:   200ms ease;
  --transition-slow:   400ms ease;

  --container-max: 1200px;
  --container-pad: 1.5rem;
  --section-pad:   6rem;
}

/* ─────────────────────────────────────────
   2. CURSEUR PERSONNALISÉ
───────────────────────────────────────── */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Croix "+" style teal */
.custom-cursor::before,
.custom-cursor::after {
  content: '';
  position: absolute;
  background: var(--teal);
  border-radius: 1px;
}

/* Barre horizontale */
.custom-cursor::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

/* Barre verticale */
.custom-cursor::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

/* État hover (sur éléments cliquables) */
.custom-cursor.is-hovering::before,
.custom-cursor.is-hovering::after {
  background: var(--pink);
  width: 110%;
  height: 110%;
}
.custom-cursor.is-hovering {
  width: 28px;
  height: 28px;
  transition: width var(--transition-fast), height var(--transition-fast);
}

/* ─────────────────────────────────────────
   3. LAYOUT : CONTAINER
───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─────────────────────────────────────────
   3b. UTILITAIRES
───────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─────────────────────────────────────────
   4. TYPOGRAPHIE GLOBALE
───────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 2rem;
}

/* ─────────────────────────────────────────
   5. SÉPARATEURS
───────────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  border: none;
  border-top: 1px dashed rgba(232, 23, 74, 0.3);
  margin: 0;
}

/* ─────────────────────────────────────────
   6. BOUTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              background var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base);
  white-space: nowrap;
}

.btn--pink {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.btn--pink:hover,
.btn--pink:focus-visible {
  background: var(--pink-dim);
  border-color: var(--pink-dim);
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(232, 23, 74, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: rgba(0, 191, 165, 0.08);
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 191, 165, 0.2);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ─────────────────────────────────────────
   7. NAVBAR
───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: var(--bg);
  /* Masquée au départ — apparaît après la phrase */
  opacity: 0;
  animation: navbar-appear 0.8s ease forwards;
  animation-delay: 2.4s;
  transition: padding var(--transition-slow),
              box-shadow var(--transition-slow);
}

@keyframes navbar-appear {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.navbar.is-sticky {
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(0, 191, 165, 0.08);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.navbar__tagline {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.38);
  white-space: nowrap;
  flex: 1;           /* pousse les liens vers la droite */
}

.navbar__logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  /* Si SVG absent : placeholder visible */
  background: transparent;
}

/* Logo fallback si SVG absent */
.navbar__logo img[src="assets/logo/logo.svg"]:not([complete]) {
  min-width: 140px;
  min-height: 36px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.navbar__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  opacity: 0.75;
  position: relative;
  padding-bottom: 3px;
  transition: opacity var(--transition-base), color var(--transition-base);
}

/* Underline animé depuis la gauche */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  opacity: 1;
  color: var(--teal);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  width: 100%;
}

/* Burger mobile */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.navbar__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.is-open span:nth-child(2) { opacity: 0; }
.navbar__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────
   8. HERO SECTION — Piste A "La Tension"
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding-top: 80px;
  padding-inline: var(--container-pad);
  padding-bottom: 3rem;
}

/* ── Phrase principale ── */
.hero__statement {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 2rem;
  position: relative;
  z-index: 2;
}

/* ── Photos visages ── */
.hero__photos {
  position: absolute;
  right: calc(var(--container-pad) + 14vw);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 22vw, 320px);
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  will-change: opacity;
}

@media (max-width: 767px) {
  .hero__photos { display: none; }
}

.hero__line {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  overflow: hidden; /* masque le translateY initial */
}

/* Wrapper interne pour le slide */
.hero__line-inner {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: line-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--line-delay, 0s);
}

@keyframes line-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tailles par ligne */
.hero__line--1 .hero__line-inner { font-size: clamp(1.4rem, 3.5vw, 3rem); }
.hero__line--2 .hero__line-inner { font-size: clamp(1.4rem, 3.5vw, 3rem); }
.hero__line--3 .hero__line-inner { font-size: clamp(1.4rem, 3.5vw, 3rem); }
.hero__line--1, .hero__line--2, .hero__line--3 { margin-bottom: 0.25em; }
.hero__line--4 .hero__line-inner {
  font-size: clamp(4rem, 11vw, 10rem);
  color: var(--teal);
  line-height: 0.9;
  margin-top: 0.15em;
}

/* Le point final en rose */
.hero__period {
  color: var(--pink);
}

/* ── Sous-titre enjeux visiteur ── */
.hero__subtitle {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  color: rgba(245, 245, 245, 0.6);
  max-width: 460px;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  line-height: 1.65;
  opacity: 0;
  animation: fade-up-hero 0.7s ease forwards;
  animation-delay: 2.2s;
}

@keyframes fade-up-hero {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Barre de bas : logo + identité + CTA ── */
.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  /* Apparition après la phrase */
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
  animation-delay: 2.4s;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__identity {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* 





.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* Ligne identitaire sous le logo */
.hero__tagline-id {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.4);
}

/* ── CTA ── */
.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

/* Ligne identitaire (si présente dans future version) */
.hero__tagline-id {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.4);
}

/* ── Chemin décoratif hero ── */
.hero__chemin-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero__chemin-wrapper svg {
  width: 100%;
  height: 100%;
  opacity: 0.06;
}

/* ── Paths animés ── */
.animated-path {
  fill: none;
  stroke: var(--pink);
  stroke-dasharray: var(--path-length, 2000);
  stroke-dashoffset: var(--path-length, 2000);
}

.animated-path.is-drawing {
  animation: draw-path 2.5s ease-out forwards;
}

@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}

/* ── Scroll hint ── */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: var(--container-pad);
  z-index: 2;
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
  animation-delay: 2.8s;
}

.scroll-dot {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: scroll-bounce 2s ease-in-out infinite;
  animation-delay: 3s;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(10px); opacity: 0.35; }
}

/* ── Responsive mobile ── */
@media (max-width: 767px) {
  .hero__line--4 .hero__line-inner {
    font-size: clamp(3.2rem, 16vw, 6rem);
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ─────────────────────────────────────────
   ÉCUREUIL — GUIDE DE SCROLL (fixed)
───────────────────────────────────────── */
.squirrel-guide {
  /* Position et opacity gérées entièrement par JS selon la phase */
  position: absolute;  /* overridé par JS en fixed après la course */
  left: 0;
  top: 0;
  z-index: 40;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;          /* JS contrôle l'opacité */
  transition: opacity 0.3s ease;
}

.squirrel-guide.is-visible {
  opacity: 1;
}

.squirrel-guide__img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  object-fit: contain;
  /* Légère oscillation */
  animation: squirrel-bob 2.2s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(232, 23, 74, 0.3));
}

@keyframes squirrel-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-5px) rotate(3deg); }
}

/* Trait pointillé sous l'écureuil (piste) */
.squirrel-guide__trail {
  width: 2px;
  height: 60px;
  background: repeating-linear-gradient(
    to bottom,
    var(--pink) 0px,
    var(--pink) 4px,
    transparent 4px,
    transparent 10px
  );
  opacity: 0.35;
  margin-top: 4px;
}

/* Masquer sur mobile (trop encombrant) */
@media (max-width: 767px) {
  .squirrel-guide { display: none; }
}
/* ─────────────────────────────────────────
   9. À PROPOS
───────────────────────────────────────── */
.about {
  padding-block: var(--section-pad);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about__bio {
  color: rgba(245, 245, 245, 0.8);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

/* Grille 2×2 axes d'intervention */
.about__axes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.about__axe {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--teal);
}

.about__axe-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.about__axe p {
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.65);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 767px) {
  .about__axes { grid-template-columns: 1fr; }
}

.about__cta-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color var(--transition-base), transform var(--transition-base);
}
.about__cta-link:hover { color: var(--white); transform: translateX(4px); }

.about__quote {
  border-left: 3px solid var(--pink);
  padding-left: 1.25rem;
  margin-block: 2rem;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--teal);
  line-height: 1.5;
}

.about__values {
  grid-column: 1 / -1;
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: space-around;
}

.about__value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.value__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid rgba(0, 191, 165, 0.2);
  border-radius: var(--radius);
  color: var(--teal);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
}

.about__value:hover .value__icon {
  border-color: var(--teal);
  box-shadow: 0 0 16px rgba(0, 191, 165, 0.2);
  transform: translateY(-2px);
}

.value__label {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}

/* Couleur individuelle par bloc */
.about__value:nth-child(1) .value__label,
.about__value:nth-child(2) .value__label,
.about__value:nth-child(3) .value__label { color: var(--teal-dim); }
.about__value:nth-child(4) .value__label  { color: var(--white); }

/* Apparition mot par mot — glissement de gauche à droite */
@keyframes word-slide-in {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.about__value {
  opacity: 0;
  transform: translateX(-40px);
  transition: none !important;
}
.about__value.is-visible {
  animation: word-slide-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0s);
}

/* Photo placeholder */
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  max-width: 360px;
  margin-inline: auto;
  background: var(--surface-2);
  border: 1px dashed rgba(0, 191, 165, 0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.photo-placeholder {
  position: relative;
  overflow: hidden; /* IMPORTANT : empêche le débordement */
}

.photo-placeholder__image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit le cadre sans déformer */
  object-position: center; /* Centre l'image */
  display: block;
}
.about__chemin-deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.15;
}

/* ─────────────────────────────────────────
   10. OFFRES (cards)
───────────────────────────────────────── */
.offres {
  padding-block: var(--section-pad);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.offres__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.offre-card {
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--transition-slow),
              border-color var(--transition-base),
              transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

.offre-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.offre-card:hover {
  box-shadow: 0 8px 32px rgba(0, 191, 165, 0.15);
  border-color: rgba(0, 191, 165, 0.2);
  transform: translateY(-2px);
}

.offre-card:hover::before {
  opacity: 1;
}

.offre-card__icon {
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.offre-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.offre-card__ext-link {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.offre-card__ext-link:hover { color: var(--white); }

.offre-card__subtitle {
  font-size: 0.9rem;
  color: rgba(245, 245, 245, 0.6);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.offre-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.offre-card__tags li {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  background: rgba(0, 191, 165, 0.08);
  border: 1px solid rgba(0, 191, 165, 0.2);
  border-radius: 4px;
  color: var(--teal);
}

.offres__refs-link {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--teal);
}
.offres__refs-link a {
  color: var(--teal);
  font-weight: 700;
  transition: color var(--transition-base);
}
.offres__refs-link a:hover { color: var(--white); }

.offres__chemin-deco {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 60%;
  pointer-events: none;
  opacity: 0.08;
}

/* ─────────────────────────────────────────
   11. MÉTHODE (timeline)
───────────────────────────────────────── */
.methode {
  padding-block: var(--section-pad);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.methode__wrapper {
  position: relative;
  margin-top: 1rem;
}

/* Chemin SVG de fond méthode */
.methode__chemin-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.methode__chemin-wrapper svg {
  width: 100%;
  height: 100%;
}

/* Écureuil méthode */
.methode__ecureuil {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* Steps */
.methode__steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.methode__step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  position: relative;
}

.step__number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 191, 165, 0.12);
  font-family: var(--font-display);
  flex-shrink: 0;
  width: 5rem;
  text-align: right;
  padding-top: 0.2rem;
  letter-spacing: -0.03em;
}

.step__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid rgba(0, 191, 165, 0.2);
  border-radius: var(--radius);
  color: var(--teal);
  margin-top: 0.2rem;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background var(--transition-base);
}

.methode__step:hover .step__icon {
  background: rgba(0, 191, 165, 0.08);
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(0, 191, 165, 0.15);
}

.step__content {
  padding-top: 0.3rem;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.step__desc {
  color: rgba(245, 245, 245, 0.65);
  font-size: 0.95rem;
  line-height: 1.65;
}

.step__ext-link {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.step__ext-link:hover { color: var(--white); }

/* Step actif (JS le toggle) */
.methode__step.is-active .step__number {
  color: rgba(0, 191, 165, 0.35);
}

.methode__step.is-active .step__title {
  color: var(--teal);
}

/* ─────────────────────────────────────────
   12. RÉFÉRENCES
───────────────────────────────────────── */
.references {
  padding-block: var(--section-pad);
  background: var(--surface);
}

/* ── Marquee références ── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Citations ── */
.references__quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .references__quotes { grid-template-columns: repeat(3, 1fr); }
}

.ref-quote {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 3px solid var(--pink);
}

.ref-quote__text {
  font-style: italic;
  color: rgba(245, 245, 245, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ref-quote__footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ref-quote__name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal);
}

.ref-quote__role {
  font-size: 0.78rem;
  color: var(--muted);
}

.references__marquee {
  overflow: hidden;
  margin-top: 2.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.references__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.references__marquee:hover .references__track {
  animation-play-state: paused;
}

.ref-item {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.5);
  padding: 0 1.5rem;
  transition: color 0.3s ease;
}

.references__track:hover .ref-item:hover {
  color: var(--teal);
}

.ref-sep {
  color: var(--teal-dim);
  opacity: 0.4;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.ref-item--logo {
  display: flex;
  align-items: center;
}

.ref-item--logo img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.75;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.references__track:hover .ref-item--logo:hover img {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(0,191,165,0.5));
}

/* Logos agrandis individuellement */
.ref-item--logo img[alt="Huppy Conseil"] {
  height: 54px;
}

.ref-item--logo img[alt="Fratries"] {
  height: 80px;
}

.ref-item--sis-up {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────
   13. CONTACT
───────────────────────────────────────── */
#contact-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.contact {
  padding-block: var(--section-pad);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* Formulaire */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(245, 245, 245, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.12);
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: rgba(245, 245, 245, 0.7);
  transition: color var(--transition-base);
  padding: 0.5rem 0;
}

.contact__link:hover {
  color: var(--teal);
}

/* Écureuil qui "attend" */
.contact__ecureuil {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.ecureuil--waiting {
  animation: waiting-bob 3s ease-in-out infinite;
}

@keyframes waiting-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.contact__ecureuil-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────
   14. FOOTER
───────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-block: 2rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: var(--teal);
}

/* ─────────────────────────────────────────
   15. ANIMATIONS SCROLL (reveal)
───────────────────────────────────────── */

/* État initial (masqué) */
.reveal-fade,
.reveal-slide-left,
.reveal-cascade {
  opacity: 0;
  will-change: opacity, transform;
}

.reveal-fade {
  transform: translateY(30px);
  transition: opacity 0.6s ease,
              transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-slide-left {
  transform: translateX(-40px);
  transition: opacity 0.7s ease,
              transform 0.7s ease;
}

.reveal-cascade {
  transform: translateY(30px);
  transition: opacity 0.6s ease,
              transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

/* Déclenché par JS (IntersectionObserver) */
.reveal-fade.is-visible,
.reveal-slide-left.is-visible,
.reveal-cascade.is-visible {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────
   16. ÉCUREUILS
───────────────────────────────────────── */
.ecureuil-img {
  image-rendering: pixelated; /* pixel art crisp */
  object-fit: contain;
}

/* Écureuil hero : flotte légèrement */
.ecureuil--hero {
  animation: hero-float 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(232, 23, 74, 0.25));
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-12px) rotate(2deg); }
}

/* Écureuil méthode : position gérée par JS */
.ecureuil--methode {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────
   17. RESPONSIVE — 768px
───────────────────────────────────────── */
@media (max-width: 767px) {
  :root {
    --section-pad: 4rem;
    --container-pad: 1.25rem;
  }

  body {
    cursor: auto; /* On réactive le curseur natif sur mobile */
  }

  .custom-cursor {
    display: none;
  }

  /* Navbar burger */
  .navbar__burger {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 80vw);
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6rem 2rem 2rem;
    background: var(--surface);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transition: right var(--transition-slow);
    z-index: 99;
  }

  .navbar__links.is-open {
    right: 0;
  }

  .navbar__links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    opacity: 1;
  }

  /* Hero */
  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__chemin-wrapper,
  .hero__ecureuil {
    display: none;
  }

  /* About */
  .about__visual {
    display: none;
  }

  /* Méthode : masquer écureuil sur mobile */
  .methode__ecureuil {
    display: none;
  }

  .step__number {
    font-size: 2.5rem;
    width: 3.5rem;
  }
}

/* ─────────────────────────────────────────
   18. RESPONSIVE — 768px – 1199px (tablette)
───────────────────────────────────────── */
@media (min-width: 768px) {

  /* About : 2 colonnes */
  .about__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 4rem;
  }

  /* Offres : 2 colonnes */
  .offres__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Timeline horizontal */
  .methode__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact : 2 colonnes */
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ─────────────────────────────────────────
   19. RESPONSIVE — 1200px (desktop)
───────────────────────────────────────── */
@media (min-width: 1200px) {
  .offres__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .methode__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .methode__step {
    flex-direction: column;
    align-items: flex-start;
  }

  .step__number {
    width: auto;
    text-align: left;
  }
}

/* ─────────────────────────────────────────
   20. FOCUS VISIBLE (accessibilité)
───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─────────────────────────────────────────
   21. REDUCED MOTION
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal-fade,
  .reveal-slide-left,
  .reveal-cascade {
    opacity: 1;
    transform: none;
  }
}