/* ====================================================================
   TEAM ATLAS — Feuille de style principale
   Charte : #4B362A (brun foncé) · #B8773D (ambre) · #E8D0AD (beige) · #F3E8DB (crème)
   Typo : Roboto (Google Fonts) — Mobile-first
==================================================================== */

/* ----------------------------------------------------------------
   1. Variables & reset
---------------------------------------------------------------- */
:root {
  /* Palette officielle — ne pas ajouter d'autres couleurs */
  --brown-dark:  #4B362A;
  --amber:       #B8773D;
  --beige:       #E8D0AD;
  --cream:       #F3E8DB;

  /* Typographie */
  --font: 'Roboto', Arial, sans-serif;

  /* Rythme & divers */
  --radius: 10px;
  --shadow: 0 10px 30px rgba(75, 54, 42, 0.12);
  --header-h: 124px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;                 /* Smooth scroll natif sur les ancres */
  scroll-padding-top: var(--header-h);     /* Compense le header sticky */
}

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.65;
  color: var(--brown-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;   /* verrouille tout débordement horizontal (parallaxe, etc.) */
}

img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(100% - 2.5rem, 1160px);
  margin-inline: auto;
}

/* ----------------------------------------------------------------
   2. Boutons
---------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-align: center;
}

/* Bouton primaire : dominant (plein + ombre ambrée, lift au survol) */
.btn--primary {
  background: var(--amber);
  color: var(--cream);
  box-shadow: 0 8px 22px rgba(184, 119, 61, 0.35);
  transition: background var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--brown-dark);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(75, 54, 42, 0.45);
}

.btn--sm { padding: 0.7rem 1.5rem; font-size: 0.95rem; }
.btn--lg { padding: 0.9rem 2.2rem; font-size: 1rem; letter-spacing: 0.02em; }

/* ----------------------------------------------------------------
   3. Header / navigation
---------------------------------------------------------------- */
/* Transparent au-dessus du hero, pilule flottante « verre dépoli » au scroll,
   masqué à la descente / réaffiché à la remontée (smart header). */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: transform 0.4s ease;
}
.header.is-hidden { transform: translateY(-115%); }

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease,
              border-radius 0.35s ease, margin 0.35s ease, padding 0.35s ease,
              height 0.35s ease;
}

/* État « pilule » une fois la page scrollée */
.header.is-scrolled .header__inner {
  margin-top: 10px;
  height: 76px;
  padding-inline: 1.4rem;
  border-radius: 999px;
  background: rgba(243, 232, 219, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: rgba(232, 208, 173, 0.8);
  box-shadow: 0 12px 32px rgba(75, 54, 42, 0.22);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
/* Logo signature : surdimensionné, il déborde de la barre sur le hero,
   puis se réduit dans la pilule au scroll. */
.header__brand {
  align-self: flex-start;
  padding-top: 12px;
  transition: padding 0.35s ease;
}
.header.is-scrolled .header__brand {
  align-self: center;
  padding-top: 0;
}

.header__logo {
  height: 132px;
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
  transition: height 0.35s ease, filter 0.35s ease;
}
.header.is-scrolled .header__logo {
  height: 62px;
  filter: none;
}

@media (min-width: 1024px) {
  .header__logo { height: 185px; }
}

/* Navigation — panneau plein écran en mobile, barre en desktop */
.nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--cream);
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 3px solid var(--beige);
  transform: translateY(-130%);
  transition: transform var(--transition);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.nav.is-open { transform: translateY(0); }

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav__link {
  display: block;
  position: relative;
  font-weight: 700;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brown-dark);
  padding: 0.4rem 0;
  transition: color var(--transition);
}
/* Souligné animé (grandit depuis la gauche) */
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__link:hover,
.nav__link.is-active { color: var(--amber); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Sélecteur de langue FR / EN */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--brown-dark);
}
.lang-switch__btn {
  background: none;
  border: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brown-dark);
  opacity: 0.45;
  padding: 0.78rem 0.4rem;   /* zone tactile ≥ 44px (WCAG) */
  transition: opacity var(--transition), color var(--transition);
}
.lang-switch__btn:hover { opacity: 0.8; }
.lang-switch__btn.is-active {
  opacity: 1;
  color: var(--amber);
  border-bottom: 2px solid var(--amber);
}
.lang-switch__sep { opacity: 0.4; }

/* En haut de page (header transparent sur le hero) : liens et boutons en crème.
   Scopé au desktop — sur mobile le panneau du menu reste crème avec texte brun. */
@media (min-width: 1024px) {
  .header:not(.is-scrolled) .nav__link { color: var(--cream); }
  .header:not(.is-scrolled) .nav__link:hover,
  .header:not(.is-scrolled) .nav__link.is-active { color: var(--beige); }
  .header:not(.is-scrolled) .lang-switch__btn { color: var(--cream); }
  .header:not(.is-scrolled) .lang-switch__btn.is-active { color: var(--amber); }
  .header:not(.is-scrolled) .lang-switch__sep { color: var(--cream); }
}

/* Le hamburger suit aussi le contraste (barre transparente = traits crème) */
.header:not(.is-scrolled) .burger span { background: var(--cream); }
.header.is-scrolled .burger span,
.burger.is-open span { background: var(--brown-dark); }

/* Largeurs intermédiaires (1024-1240px) : on resserre pour tenir sur une ligne */
@media (min-width: 1024px) and (max-width: 1240px) {
  .header__logo { height: 150px; }
  .header.is-scrolled .header__logo { height: 56px; }
  .nav { gap: 1.2rem; }
  .nav__list { gap: 1.1rem; }
  .nav__link { font-size: 0.85rem; letter-spacing: 0.06em; }
  .lang-switch__btn { font-size: 0.95rem; }
  .header .btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
}

/* Hamburger (mobile uniquement) */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 9px;
  background: none;
  border: none;
}
.burger span {
  height: 3px;
  width: 100%;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
/* Croix quand le menu est ouvert */
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----------------------------------------------------------------
   4. Hero
---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  overflow: hidden;                          /* contient le calque parallaxe */
  background: radial-gradient(ellipse at 70% 20%, #6a4b38 0%, var(--brown-dark) 65%);
  background-color: var(--brown-dark);
  color: var(--cream);
}

/* Calque photo/vidéo dédié : animé en parallaxe par main.js (scale anti-bords) */
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/hero-poster.jpg') center / cover no-repeat;
  transform: scale(1.06);
  will-change: transform;
}

/* Vidéo de fond : couvre le calque, par-dessus l'image de repli */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sans animation ni en capture : on reste sur l'image */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.capture .hero__video { display: none; }

/* Overlay brun pour la lisibilité du texte sur la photo */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(75, 54, 42, 0.86) 0%,
    rgba(75, 54, 42, 0.72) 55%,
    rgba(75, 54, 42, 0.9) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* Le logo du hero est masqué : le logo signature du header occupe déjà ce coin.
   (Repassez en display:block pour le rétablir.) */
.hero__logo { display: none; }

/* --- Entrée en cascade au chargement (CSS pur, 450 ms par élément) --- */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero__kicker,
.hero__title,
.hero__sub,
.hero__actions {
  animation: hero-rise 0.45s ease both;
}
.hero__title    { animation-delay: 0.08s; }
.hero__sub      { animation-delay: 0.16s; }
.hero__actions  { animation-delay: 0.28s; }
.hero__note     { animation: hero-rise 0.45s ease 0.38s both; }

/* Mot-clé du titre : trait ambre qui se dessine après l'entrée */
.hero__hl {
  position: relative;
  display: inline-block;                     /* le groupe ne se coupe pas */
}
.hero__hl::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  animation: hl-draw 0.5s ease 0.95s both;
}
@keyframes hl-draw {
  to { transform: scaleX(1); }
}

/* Eyebrow (couleur accent) — ombre légère pour la lisibilité sur photo */
.hero__kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
  margin-bottom: 1.1rem;
}

.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.7rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.6rem;
  max-width: 900px;
}

/* Sous-titre : unique ligne de support avant les CTA */
.hero__sub {
  font-size: clamp(1.12rem, 2.3vw, 1.4rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--cream);
  opacity: 0.94;
  max-width: 760px;
  margin-bottom: 2.6rem;
}


/* Réassurance sous les CTA */
.hero__note {
  font-size: 0.85rem;
  color: var(--beige);
  opacity: 0.85;
  margin-top: 1rem;
}

/* Mobile : hero centré, CTA empilés pleine largeur (zone tactile ≥ 48px) */
@media (max-width: 599px) {
  .hero__content { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; min-height: 48px; }
  /* .hero en préfixe : bat la règle .hero__scroll définie plus bas (cascade) */
  .hero .hero__scroll { display: none; }   /* évite le chevauchement avec les CTA */
}

/* Séparateur en filigrane zellige (bas du hero et haut du footer) */
.zellige-divider {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 56px;
  background: url('../assets/zellige-pattern.svg') center / 90px repeat-x;
  opacity: 0.22;
  pointer-events: none;
}

/* ----------------------------------------------------------------
   4a. Bandeau de réassurance (micro-preuves sous le hero)
---------------------------------------------------------------- */
.proof-strip {
  background: var(--cream);
  border-bottom: 1px solid rgba(184, 119, 61, 0.18);
  padding: 1.05rem 0;
}
.proof-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 2.2rem;
  row-gap: 0.5rem;
}
.proof-strip span {
  position: relative;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--brown-dark);
  opacity: 0.85;
}
/* Séparateur losange (clin d'œil zellige) entre les preuves */
.proof-strip span + span::before {
  content: '';
  position: absolute;
  left: -1.35rem;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--amber);
  transform: translateY(-50%) rotate(45deg);
}

/* Mobile : liste verticale centrée, séparateurs fins (fini le texte coupé) */
@media (max-width: 720px) {
  .proof-strip__inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;   /* items pleine largeur → le texte se retourne */
    row-gap: 0;
  }
  .proof-strip span {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-align: center;
    line-height: 1.4;
    padding: 0.7rem 0.5rem;
  }
  .proof-strip span + span {
    border-top: 1px solid rgba(184, 119, 61, 0.16);
  }
  .proof-strip span + span::before { display: none; }
}

/* ----------------------------------------------------------------
   4b. Notre promesse · bandeau d'impact · duo Paris & Marrakech
---------------------------------------------------------------- */
/* Respiration adaptée : le bloc ne contient qu'un titre + un paragraphe */
.promise .section__head { margin-bottom: 1.4rem; }
.promise { padding-bottom: 5rem; }

.promise__text {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 820px;
}

/* Bandeau citation sur fond sombre */
.impact-band {
  background:
    url('../assets/zellige-pattern.svg') center / 150px repeat,
    var(--brown-dark);
  background-blend-mode: soft-light;
  padding: 4.25rem 0;
}
.impact-band__quote {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
  color: var(--cream);
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

/* Split-screen Paris / Marrakech */
.duo__grid {
  display: grid;
  gap: 1.5rem;
}

.duo__card {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  /* dégradé de secours si la photo manque */
  background: linear-gradient(150deg, var(--amber), var(--brown-dark));
  transition: transform var(--transition), box-shadow var(--transition);
}
/* Élévation de la carte au survol, en plus du zoom photo */
.duo__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(75, 54, 42, 0.3);
}
.duo__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.duo__card:hover img { transform: scale(1.05); }

.duo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(75, 54, 42, 0.05) 30%,
    rgba(75, 54, 42, 0.88) 100%);
}

.duo__body {
  position: relative;
  padding: 1.75rem;
  color: var(--cream);
}
.duo__city {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 0.5rem;
}
.duo__body p { font-size: 0.98rem; opacity: 0.95; max-width: 480px; }

@media (min-width: 700px) {
  .duo__grid { grid-template-columns: 1fr 1fr; }
  .duo__card { min-height: 460px; }
}

/* ----------------------------------------------------------------
   5. Sections génériques
---------------------------------------------------------------- */
.section { padding: 4.5rem 0; }

/* Fond beige doré (sections secondaires) */
.section--beige { background: var(--beige); }

/* Sections texturées : photo floutée sous un voile beige dominant */
.section--textured { position: relative; }
.section--textured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0.5;
}
#valeur.section--textured::before { background-image: url('../assets/valeur-bg.jpg'); }
#pourquoi.section--textured::before { background-image: url('../assets/pourquoi-bg.jpg'); }
.section--textured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--beige);
  opacity: 0.86;
}
.section--textured > .container {
  position: relative;
  z-index: 1;
}

/* Fond brun foncé, texte crème (sections de contraste) */
.section--dark {
  background: var(--brown-dark);
  color: var(--cream);
}
.section--dark .section__kicker { color: var(--beige); }
.section--dark .section__title { color: var(--cream); }

.section__head {
  max-width: 720px;
  margin-bottom: 2.75rem;
}

.section__kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
}

.section__intro {
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* Bloc « Impact mesuré » : le ROI comme livrable (fin de section Services) */
.impact-block {
  margin-top: 1.4rem;
  background:
    url('../assets/zellige-pattern.svg') center / 130px repeat,
    var(--brown-dark);
  background-blend-mode: soft-light;
  border-radius: var(--radius);
  padding: 2.1rem 2.25rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  color: var(--cream);
}
@media (min-width: 900px) {
  .impact-block { grid-template-columns: 1fr auto; }
}

.impact-block__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.45rem;
}

.impact-block__title {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
}

.impact-block__body {
  font-size: 0.96rem;
  line-height: 1.7;
  opacity: 0.92;
  max-width: 700px;
}

/* Mobile : bouton du bloc ROI pleine largeur, sur une seule ligne */
@media (max-width: 599px) {
  .impact-block { padding: 1.8rem 1.4rem; }
  .impact-block .btn {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
  }
}

.section__closing {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--beige);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 500;
  font-size: 1.05rem;
}

/* Grilles réutilisables (mobile : 1 colonne) */
.grid { display: grid; gap: 1.5rem; }

/* ----------------------------------------------------------------
   6. Cartes services
---------------------------------------------------------------- */
/* Carte immersive : la photo couvre toute la carte, le texte se pose
   sur un dégradé brun (même langage visuel que les cartes Paris/Marrakech). */
.card {
  position: relative;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--brown-dark);       /* fond de secours si la photo manque */
  border-radius: var(--radius);
  padding: 0 0 1.6rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(75, 54, 42, 0.3);
}

/* Photo plein cadre */
.card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.45s ease;
}
/* Au survol : la photo zoome et s'éclaire subtilement */
.card:hover .card__media img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Recadrage : la photo 06 (rooftop, portrait) montre sa partie éclairée */
.card__media img[src*="service-evenements"] { object-position: center 72%; }

/* Voile dégradé : photo lisible en haut, texte lisible en bas */
.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(75, 54, 42, 0.12) 0%,
    rgba(75, 54, 42, 0.45) 42%,
    rgba(75, 54, 42, 0.94) 82%);
}

/* Médaillon icône (au-dessus du voile) */
.card__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--amber);
  border-radius: 14px;
  position: relative;
  margin: 0 0 0.85rem 1.6rem;
}
.card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  position: relative;
  margin: 0 1.6rem 0.7rem;
}

.card__list {
  margin-inline: 1.6rem;
  position: relative;
  transition: transform var(--transition);
}
/* Le contenu glisse légèrement vers le haut au survol */
.card:hover .card__list,
.card:hover .card__gain { transform: translateY(-4px); }

/* Icône : impulsion unique au survol (pas de boucle) */
@keyframes icon-pop {
  50% { transform: scale(1.12); }
}
.card:hover .card__icon { animation: icon-pop 0.35s ease; }

/* Ligne de bénéfice « Ce que vous y gagnez » */
.card__gain {
  position: relative;
  margin: 0.85rem 1.6rem 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(243, 232, 219, 0.28);
  font-size: 0.86rem;
  font-style: italic;
  color: var(--beige);
  transition: transform var(--transition);
}

.card__list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.42rem;
  font-size: 0.93rem;
  color: var(--cream);
  opacity: 0.95;
}
/* Puce losange, clin d'œil zellige */
.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--amber);
  transform: rotate(45deg);
}

/* ----------------------------------------------------------------
   7. Piliers (proposition de valeur)
---------------------------------------------------------------- */
.pillars {
  display: grid;
  gap: 2rem;
  list-style: none;
  counter-reset: pillar;
}

.pillar { text-align: center; }

.pillar__num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--brown-dark);
  color: var(--cream);
  font-size: 1.4rem;
  font-weight: 900;
  border: 3px solid var(--amber);
}

.pillar__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* Douleur fermée par le pilier (« Fini… ») */
.pillar__pain {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--amber);
  margin-bottom: 0.4rem;
}

.pillar__text { max-width: 300px; margin-inline: auto; }

/* Survol sobre : le numéro s'affirme */
.pillar__num { transition: transform var(--transition), box-shadow var(--transition); }
.pillar:hover .pillar__num {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(184, 119, 61, 0.35);
}

/* ----------------------------------------------------------------
   8. Timeline méthode (verticale en mobile, horizontale en desktop)
---------------------------------------------------------------- */
.timeline {
  display: grid;
  gap: 2.5rem;
  list-style: none;
  position: relative;
  padding-left: 2rem;
}
/* Ligne verticale (mobile) */
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--beige);
}

.timeline__step { position: relative; }
/* Point sur la ligne */
.timeline__step::before {
  content: '';
  position: absolute;
  left: calc(-2rem + 1px);
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 3px var(--amber);
}

/* La timeline elle-même n'est pas fondue : seule sa ligne se dessine au scroll */
.js .timeline.reveal { opacity: 1; transform: none; }
.js .timeline.reveal::before {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.7s ease 0.1s;
}
.js .timeline.reveal.is-visible::before { transform: scaleY(1); }

/* Médaillon photo de phase */
.timeline__thumb {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--amber);
  box-shadow: 0 8px 20px rgba(75, 54, 42, 0.25);
  margin-bottom: 0.8rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.timeline__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.timeline__step:hover .timeline__thumb {
  transform: scale(1.07);
  box-shadow: 0 12px 28px rgba(184, 119, 61, 0.4);
}

.timeline__num {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--amber);
  letter-spacing: 0.15em;
}

/* Pastilles leviers : cascade d'apparition quand la phase entre à l'écran */
.js .timeline__levers li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.js .timeline__step.is-visible .timeline__levers li {
  opacity: 1;
  transform: none;
}
.js .timeline__step.is-visible .timeline__levers li:nth-child(2) { transition-delay: 0.07s; }
.js .timeline__step.is-visible .timeline__levers li:nth-child(3) { transition-delay: 0.14s; }
.js .timeline__step.is-visible .timeline__levers li:nth-child(4) { transition-delay: 0.21s; }
.js .timeline__step.is-visible .timeline__levers li:nth-child(5) { transition-delay: 0.28s; }

/* Livrable de phase : la matérialité du conseil */
.timeline__deliverable {
  position: relative;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brown-dark);
  padding-left: 1.1rem;
  margin-bottom: 0.9rem;
}
.timeline__deliverable::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  background: var(--amber);
  transform: rotate(45deg);
}

.timeline__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.25rem 0 0.9rem;
}

/* Leviers en "chips" */
.timeline__levers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.timeline__levers li {
  background: var(--beige);
  color: var(--brown-dark);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.timeline__quote {
  font-style: italic;
  color: var(--amber);
  font-weight: 500;
  border-left: 3px solid var(--beige);
  padding-left: 0.9rem;
}

/* ----------------------------------------------------------------
   9. Pourquoi Team Atlas
---------------------------------------------------------------- */
.why__item {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
/* Survol : la carte s'élève, la réponse ambre prend la lumière */
.why__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(75, 54, 42, 0.18);
}
.why__item:hover .why__neg { opacity: 0.45; }
.why__item:hover .why__pos::before { transform: translateX(3px); }
.why__pos::before { display: inline-block; transition: transform var(--transition); }
.why__neg { transition: opacity var(--transition); }

/* Manifeste de synthèse (pont vers les chiffres clés) */
.why__manifesto {
  margin-top: 2.75rem;
  text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 700;
  font-style: italic;
  color: var(--amber);
}

/* Mot-clé du manifeste : trait brun qui se dessine à l'apparition */
.manifesto-hl { position: relative; display: inline-block; }
.manifesto-hl::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--brown-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease 0.4s;
}
.why__manifesto.is-visible .manifesto-hl::after { transform: scaleX(1); }

.why__num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--amber);
  opacity: 0.55;
  line-height: 1;
}

.why__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0 0.4rem;
}

/* ----------------------------------------------------------------
   10. Chiffres clés (bandeau sombre)
---------------------------------------------------------------- */
.stats {
  /* Photo de soirée en fond + voile brun foncé + filigrane zellige */
  background:
    url('../assets/zellige-pattern.svg') center / 140px repeat,
    linear-gradient(rgba(75, 54, 42, 0.88), rgba(75, 54, 42, 0.92)),
    url('../assets/stats-bg.jpg') center 82% / cover no-repeat,
    var(--brown-dark);
  background-blend-mode: soft-light, normal, normal;
  color: var(--cream);
  padding: 4rem 0 3rem;
  text-align: center;
}

.stats__grid { display: grid; gap: 2.5rem; }

.stats__value {
  display: block;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 900;
  color: var(--beige);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stats__item p { max-width: 300px; margin-inline: auto; opacity: 0.92; }

.stats__source {
  margin-top: 2.5rem;
  font-size: 0.78rem;
  opacity: 0.55;
}

/* ----------------------------------------------------------------
   11. Références (portfolio)
---------------------------------------------------------------- */
.ref {
  background: var(--beige);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.ref:hover { transform: translateY(-5px); }

/* Zone image : dégradé + zellige en attendant les vraies photos */
.ref__media {
  aspect-ratio: 16 / 10;
  background:
    url('../assets/zellige-pattern.svg') center / 80px repeat,
    linear-gradient(140deg, var(--amber), var(--brown-dark));
  background-blend-mode: soft-light;
}
.ref__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref__body { padding: 1.5rem 1.6rem 1.75rem; }

.ref__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--brown-dark);
}
.ref__body p { font-size: 0.95rem; }

/* ----------------------------------------------------------------
   12. Marrakech
---------------------------------------------------------------- */
.marrakech {
  background:
    url('../assets/zellige-pattern.svg') center / 160px repeat,
    var(--brown-dark);
  background-blend-mode: soft-light;
}

.marrakech__badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.badge {
  background: rgba(243, 232, 219, 0.08);
  border: 1px solid rgba(232, 208, 173, 0.35);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
}

.badge__value {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--beige);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.badge__label { font-size: 0.85rem; opacity: 0.9; }

.marrakech__text {
  max-width: 760px;
  font-size: 1.05rem;
}
.marrakech .stats__source { margin-top: 1.5rem; text-align: left; }

/* ----------------------------------------------------------------
   13. Équipe
---------------------------------------------------------------- */
.member {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

/* Photo : silhouette SVG par défaut, photo par-dessus si le fichier existe */
.member__photo {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
  border: 3px solid var(--amber);
}
.member__photo svg {
  position: absolute;
  inset: 12px 0 0;
  fill: var(--beige);
  stroke: none;
}
.member__photo img {
  position: relative;      /* passe au-dessus de la silhouette */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member__name { font-size: 1.2rem; font-weight: 900; }

.member__role {
  color: var(--amber);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0.2rem 0 0.75rem;
}

.member__mission { font-size: 0.9rem; }

/* ----------------------------------------------------------------
   14. Contact
---------------------------------------------------------------- */
.contact {
  display: grid;
  gap: 2.5rem;
}

.contact__form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}

.form-row { display: grid; gap: 1.1rem; }

.form-field { margin-bottom: 1.1rem; }

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--brown-dark);
  background: #fff;
  border: 2px solid var(--beige);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  transition: border-color var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--amber);
}

/* Information RGPD sous le bouton d'envoi */
.form-rgpd {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  opacity: 0.75;
}
.form-rgpd a { text-decoration: underline; }

/* ----------------------------------------------------------------
   Bouton flottant WhatsApp (fixe, suit le défilement)
---------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #25D366;                 /* vert officiel WhatsApp */
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wa-float:hover,
.wa-float:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
.wa-float svg {
  width: 34px;
  height: 34px;
  fill: #fff;
  position: relative;
  z-index: 1;
}

/* Halo pulsé discret pour attirer l'œil */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 599px) {
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; display: none; }
}

/* ----------------------------------------------------------------
   Décor animé : zelliges flottants (ambiance vivante, tout le site)
---------------------------------------------------------------- */
.decor {
  position: absolute;
  inset: 0;
  overflow: hidden;       /* clippe les étoiles, jamais le contenu de la section */
  pointer-events: none;   /* purement décoratif, ne bloque aucun clic */
  z-index: 1;
}
/* Une section « decorated » place son contenu au-dessus du décor */
.decorated { position: relative; }
.decorated > .container { position: relative; z-index: 2; }
/* Variante miroir : casse la répétition d'une section à l'autre */
.decor--flip { transform: scaleX(-1); }

.decor__star {
  position: absolute;
  display: block;
  color: var(--amber);
  opacity: 0.12;
}
.decor__star svg { width: 100%; height: 100%; display: block; }

/* Sur fond sombre : zelliges crème, un peu plus présents */
.section--dark .decor__star,
.impact-band .decor__star { color: var(--beige); opacity: 0.16; }

/* Taille · position · trajectoire propre à chaque étoile (mouvement libre) */
.decor__star--1 { width: 88px;  height: 88px;  top: 12%; left: 4%;              animation: drift-a 23s ease-in-out infinite; }
.decor__star--2 { width: 50px;  height: 50px;  top: 64%; left: 12%;             animation: drift-b 18s ease-in-out infinite 1s; }
.decor__star--3 { width: 120px; height: 120px; top: 18%; right: 5%;             animation: drift-c 27s ease-in-out infinite; }
.decor__star--4 { width: 60px;  height: 60px;  top: 72%; right: 15%;            animation: drift-d 21s ease-in-out infinite 2s; }
.decor__star--5 { width: 40px;  height: 40px;  top: 40%; left: 46%;             animation: drift-b 25s ease-in-out infinite 3s; }
.decor__star--6 { width: 74px;  height: 74px;  top: 6%;  right: 32%;            animation: drift-a 30s ease-in-out infinite 1s; }
.decor__star--7 { width: 44px;  height: 44px;  bottom: 10%; left: 36%;          animation: drift-c 19s ease-in-out infinite 4s; }

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(26px, -36px) rotate(90deg); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(-32px, -22px) rotate(-90deg); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(-22px, 28px) rotate(60deg); }
  66%      { transform: translate(20px, 12px) rotate(120deg); }
}
@keyframes drift-d {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(16px, 30px) rotate(-120deg); }
}

/* Mobile : on allège (on garde 4 étoiles par section) */
@media (max-width: 599px) {
  .decor__star--3, .decor__star--6, .decor__star--7 { display: none; }
}
/* Accessibilité / captures : décor figé mais visible */
@media (prefers-reduced-motion: reduce) {
  .decor__star { animation: none !important; }
}
.capture .decor__star { animation: none !important; }

.contact__info h3 {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 1.1rem;
}

.contact__info li {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.contact__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.contact__info a { font-weight: 500; }
.contact__info a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------
   15. Footer
---------------------------------------------------------------- */
.footer {
  position: relative;
  overflow: hidden;                 /* contient le décor zellige */
  background: var(--brown-dark);
  color: var(--cream);
  padding-top: 3.5rem;
}

.zellige-divider--footer {
  top: 0;
  bottom: auto;
  opacity: 0.16;
  z-index: 3;
}

/* Décor du footer sous le contenu */
.footer > .decor { z-index: 1; }
.footer > .container,
.footer__bottom { position: relative; z-index: 2; }

/* --- Bandeau d'accroche + CTA --- */
.footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid rgba(232, 208, 173, 0.22);
}
.footer__cta-text h2 {
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.footer__cta-text p {
  font-size: 0.95rem;
  color: var(--beige);
  opacity: 0.85;
}

/* --- Colonnes --- */
.footer__inner {
  display: grid;
  gap: 2.75rem;
  padding-bottom: 2.5rem;
}

.footer__brand img {
  width: 176px;
  height: auto;
  margin-bottom: 0.4rem;
}

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.78;
  max-width: 340px;
}

.footer h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--beige);
  margin-bottom: 1rem;
}

.footer__nav li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer__contact li { margin-bottom: 0.85rem; font-size: 0.95rem; }

/* Contact : label discret au-dessus de la valeur */
.footer__contact-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--beige);
  opacity: 0.6;
  margin-bottom: 0.1rem;
}

.footer a { color: var(--cream); opacity: 0.85; transition: opacity var(--transition), color var(--transition); }
.footer a:hover { opacity: 1; color: var(--amber); }

.footer__social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(232, 208, 173, 0.4);
  border-radius: 50%;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.footer__social a:hover {
  border-color: var(--amber);
  background: rgba(184, 119, 61, 0.18);
  transform: translateY(-2px);
}
.footer__social svg { width: 18px; height: 18px; }

.footer__bottom {
  border-top: 1px solid rgba(232, 208, 173, 0.2);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { text-decoration: underline; }

/* Footer mobile : CTA empilé, bouton pleine largeur */
@media (max-width: 599px) {
  .footer__cta { flex-direction: column; align-items: stretch; }
  .footer__cta .btn { width: 100%; text-align: center; }
}

/* ----------------------------------------------------------------
   16. Animations d'apparition au scroll (léger, sans dépendance)
---------------------------------------------------------------- */
/* Masqué uniquement si JS est actif (classe .js posée par main.js) :
   sans JavaScript, tout le contenu reste visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Variantes directionnelles (état masqué uniquement — l'arrivée est commune) */
.js .reveal--left  { transform: translateX(-28px); }
.js .reveal--right { transform: translateX(28px); }
.js .reveal--zoom  { transform: scale(0.98); }

/* Mode capture (?capture) : hero à hauteur fixe pour les captures pleine page */
.capture .hero { min-height: 860px; }

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__kicker, .hero__title, .hero__sub, .hero__actions, .hero__note { animation: none; }
  .hero__scroll-chevron { animation: none; }
  .hero__hl::after { animation: none; transform: scaleX(1); }
  .card:hover .card__icon { animation: none; }
  .js .reveal--left, .js .reveal--right, .js .reveal--zoom { transform: none; }
  .js .timeline.reveal::before { transform: none; transition: none; }
  .js .timeline__levers li { opacity: 1; transform: none; transition: none; }
  .manifesto-hl::after { transition: none; transform: scaleX(1); }
  .timeline__step:hover .timeline__thumb { transform: none; }
}

/* Mode capture : cascades et soulignements affichés d'emblée */
.capture .timeline__levers li { opacity: 1; transform: none; }
.capture .manifesto-hl::after { transform: scaleX(1); transition: none; }

/* Mode capture (?capture) : toutes les animations du hero rendues instantanées */
.capture .hero__kicker,
.capture .hero__title,
.capture .hero__sub,
.capture .hero__actions,
.capture .hero__note { animation: none; }
.capture .hero__hl::after { animation: none; transform: scaleX(1); }

/* ----------------------------------------------------------------
   16b. Raffinements de sections
---------------------------------------------------------------- */

/* --- Hero : double CTA + indice de scroll --- */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* Bouton secondaire : contour discret, survol doux (pas d'inversion brutale) */
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(243, 232, 219, 0.65);
  font-weight: 500;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(243, 232, 219, 0.14);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.hero__scroll-chevron {
  width: 14px;
  height: 14px;
  border-right: 3px solid var(--beige);
  border-bottom: 3px solid var(--beige);
  transform: rotate(45deg);
  animation: scroll-bounce 2s infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.9; }
  50%      { transform: rotate(45deg) translate(6px, 6px); opacity: 0.4; }
}

/* --- Services : numérotation + interaction icône --- */
.card { position: relative; }

/* Numéro en filigrane sur la photo */
.card__num {
  position: absolute;
  top: 0.9rem;
  right: 1.2rem;
  font-size: 2rem;
  font-weight: 900;
  color: var(--cream);
  opacity: 0.92;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.card__icon { transition: background var(--transition); }
.card:hover .card__icon { background: var(--amber); }

/* --- Pourquoi Team Atlas : contraste négatif → positif --- */
.why__neg {
  opacity: 0.62;
  font-size: 0.95rem;
}

.why__pos {
  font-weight: 700;
  color: var(--amber);
  margin-top: 0.3rem;
}
.why__pos::before {
  content: '→ ';
  font-weight: 900;
}

/* --- Références : tags + zoom photo au survol --- */
.ref__media { overflow: hidden; }
.ref__media img { transition: transform 0.6s ease; }
.ref:hover .ref__media img { transform: scale(1.06); }

.ref__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.ref__tags span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  background: var(--cream);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

/* --- Marrakech : contenu + photo du désert d'Agafay --- */
.marrakech__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.marrakech__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.marrakech__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Accessibilité : focus clavier visible --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------
   17. Breakpoints — tablette (≥ 700px)
---------------------------------------------------------------- */
@media (min-width: 700px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }

  /* Footer : marque large + 2 colonnes de liens, alignées à gauche */
  .footer__inner {
    grid-template-columns: 2fr 1fr 1.3fr;
    column-gap: 3rem;
    align-items: start;
  }
}

/* ----------------------------------------------------------------
   18. Breakpoints — desktop (≥ 1024px)
---------------------------------------------------------------- */
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .marrakech__grid { grid-template-columns: 1.25fr 1fr; }
  .marrakech__media { align-self: stretch; max-height: 520px; }
  .contact { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .contact__form { padding: 2.5rem; }
  .section { padding: 6rem 0; }

  /* --- Navigation : barre horizontale, plus de panneau mobile --- */
  .burger { display: none; }

  .nav {
    position: static;
    transform: none;
    background: none;
    border: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    max-height: none;
    overflow: visible;
    flex-wrap: nowrap;
  }
  .nav__list {
    flex-direction: row;
    gap: 1.25rem;
  }
  .nav__actions { flex-wrap: nowrap; white-space: nowrap; }
  .header .btn--sm { padding: 0.65rem 1.2rem; }
  .nav__link { font-size: 0.92rem; padding: 0.2rem 0; }

  /* --- Timeline : stepper horizontal --- */
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-left: 0;
    padding-top: 2.4rem;
  }
  /* La ligne se dessine horizontalement en desktop */
  .js .timeline.reveal::before {
    transform: scaleX(0);
    transform-origin: left;
  }
  .js .timeline.reveal.is-visible::before { transform: scaleX(1); }
  /* Ligne horizontale reliant les 4 phases */
  .timeline::before {
    left: 0;
    right: 0;
    top: 8px;
    bottom: auto;
    width: auto;
    height: 3px;
  }
  .timeline__step::before {
    left: 1px;
    top: calc(-2.4rem + 1px);
  }

  /* --- Piliers reliés par une ligne (esprit "étapes") --- */
  .pillars { position: relative; }
  .pillars::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: var(--amber);
    opacity: 0.35;
  }
  .pillar { position: relative; }
}
