/* ============================================
   Elise Veille Sommeil — Feuille de style
   Méthode : Ora Sommeil
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --creme: #FBF7F0;
  --bleu-nuit: #2E4756;
  --bleu-brume: #9DBDCC;
  --abricot: #E8A878;
  --texte: #5A5347;

  --creme-fonce: #F3ECE0;
  --abricot-fonce: #DC9560;
  --bleu-brume-clair: #C7DBE5;
  --dore: #D4A23E; /* doré chaud : étoiles visibles sur fond crème */

  --ombre-douce: 0 10px 30px rgba(46, 71, 86, 0.08);
  --ombre-carte: 0 14px 40px rgba(46, 71, 86, 0.10);

  --radius: 18px;
  --radius-sm: 12px;

  --max: 1180px;
  --transition: 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-titre: 'Poppins', system-ui, sans-serif;
  --font-corps: 'Open Sans', system-ui, sans-serif;
}

/* ---------- Reset léger ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-corps);
  color: var(--texte);
  background-color: var(--creme);
  line-height: 1.75;
  font-size: 1.05rem;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-titre);
  color: var(--bleu-nuit);
  line-height: 1.2;
  font-weight: 600;
}

/* ---------- Utilitaires ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(60px, 9vw, 110px);
}

.section--brume {
  background-color: var(--bleu-brume-clair);
}

/* Espacements resserrés (lecture fluide, sans grands vides) */
.section--tight {
  padding-block: clamp(34px, 5vw, 60px);
}

.section--creme-fonce {
  background-color: var(--creme-fonce);
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--abricot-fonce);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  margin-bottom: 22px;
}

.section__intro {
  max-width: 720px;
  font-size: 1.1rem;
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.lead { font-size: 1.18rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background-color var(--transition), color var(--transition);
  will-change: transform;
}

.btn--primary {
  background-color: var(--abricot);
  color: #fff;
  box-shadow: 0 8px 22px rgba(232, 168, 120, 0.4);
}

.btn--primary:hover {
  background-color: var(--abricot-fonce);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(232, 168, 120, 0.5);
}

.btn--outline {
  background-color: transparent;
  color: var(--bleu-nuit);
  border-color: var(--bleu-nuit);
}

.btn--outline:hover {
  background-color: var(--bleu-nuit);
  color: #fff;
  transform: translateY(-3px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--bleu-nuit);
  padding-inline: 4px;
  text-decoration: underline;
  text-decoration-color: var(--abricot);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.btn--ghost:hover {
  color: var(--abricot-fonce);
}

.btn--light {
  background-color: #fff;
  color: var(--bleu-nuit);
  box-shadow: var(--ombre-douce);
}

.btn--light:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre-carte);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn-row--center {
  justify-content: center;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(251, 247, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(157, 189, 204, 0.3);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--ombre-douce);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  line-height: 1.1;
}

.nav__logo {
  height: 52px;
  width: auto;
  display: block;
}

.nav__brand-name {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--bleu-nuit);
}

.nav__brand-tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--abricot-fonce);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav__link {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--bleu-nuit);
  padding: 8px 16px;
  border-radius: 50px;
  position: relative;
  transition: color var(--transition), background-color var(--transition);
}

.nav__link:hover {
  color: var(--abricot-fonce);
}

.nav__link.is-active {
  color: var(--abricot-fonce);
}

.nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background-color: var(--abricot);
}

.nav__cta {
  margin-left: 8px;
  padding: 11px 24px;
}

/* Burger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--bleu-nuit);
  border-radius: 3px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-block: 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Fond crème uni, identique au reste de la page */
  background-color: var(--creme);
}

/* Étoiles d'ambiance : montée lente bas -> haut, fondu, scintillement, derrière le texte */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1; /* au-dessus du fond (0), sous le texte (2) */
  overflow: hidden;
  pointer-events: none;
}

/* Enveloppe : gère la MONTÉE, le fondu d'entrée/sortie et le TOURNOIEMENT lent */
.star {
  position: absolute;
  left: var(--x);
  bottom: -16px;
  width: var(--s);
  height: var(--s);
  opacity: 0;
  --spin: 230deg; /* tournoiement léger sur toute la montée */
  /* Seuls transform et opacity sont animés -> composité GPU, fluide même à 45 étoiles */
  will-change: transform, opacity;
  animation: star-rise var(--rd) linear infinite;
  animation-delay: var(--rde);
}

/* Sens de rotation alterné pour un effet plus naturel, jamais synchronisé */
.star:nth-child(even) { --spin: -270deg; }
.star:nth-child(3n)   { --spin: 200deg; }
.star:nth-child(5n)   { --spin: -180deg; }

/* Forme étoile à 4 branches (fine et délicate) + SCINTILLEMENT (pulsation d'opacité) */
.star::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--c);
  clip-path: polygon(
    50% 0%, 58% 42%, 100% 50%, 58% 58%,
    50% 100%, 42% 58%, 0% 50%, 42% 42%
  );
  will-change: transform, opacity;
  animation: star-twinkle var(--td) ease-in-out infinite;
  animation-delay: var(--tde);
}

/* Montée + tournoiement : l'opacité d'enveloppe plafonne à --o (profondeur variable) */
@keyframes star-rise {
  0%   { transform: translateY(0) scale(0.8) rotate(0deg);              opacity: 0; }
  10%  { opacity: var(--o); }
  85%  { opacity: var(--o); }
  100% { transform: translateY(-92vh) scale(1) rotate(var(--spin));     opacity: 0; }
}

/* Scintillement doux : opacité * enveloppe = scintillement borné, jamais clignotant.
   Plancher relevé (0.55) -> étoiles un peu plus présentes, sans dominer le texte */
@keyframes star-twinkle {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.08); }
}

/* Étoile filante : descente en VRAIE diagonale via offset-path.
   offset-rotate: auto oriente la traînée sur la tangente du chemin
   -> la queue suit toujours l'axe du déplacement (et gère les courbes). */
.shooting-star {
  position: absolute;
  width: clamp(90px, 13vw, 170px);
  height: 2px;
  border-radius: 2px;
  /* tête lumineuse à l'avant (extrémité droite, = sens du déplacement) */
  background: linear-gradient(90deg,
    rgba(232, 168, 120, 0) 0%,
    rgba(212, 162, 62, 0.45) 55%,
    var(--abricot) 100%);
  filter: drop-shadow(0 0 4px rgba(220, 149, 96, 0.5));
  opacity: 0;
  pointer-events: none;
  offset-rotate: auto;            /* la traînée s'aligne sur la trajectoire */
  will-change: offset-distance, opacity;
}

/* Étoile 1 : haut-gauche -> bas-droite, droite, ~33° */
.shooting-star--1 {
  top: 4%;
  left: 3%;
  offset-path: path("M 0 0 L 880 560");
  animation: shoot 17s ease-in-out infinite;
  animation-delay: 3s;
}

/* Étoile 2 : haut-gauche -> bas-droite, plus raide ~44°, trajectoire COURBE */
.shooting-star--2 {
  top: -6%;
  left: 24%;
  offset-path: path("M 0 0 Q 230 280, 760 720");
  animation: shoot 19s ease-in-out infinite;
  animation-delay: 9s;
}

/* Étoile 3 : sens inverse, haut-droite -> bas-gauche, ~36°, légèrement courbe */
.shooting-star--3 {
  top: 2%;
  right: 5%;
  offset-path: path("M 0 0 Q -250 240, -820 600");
  animation: shoot 21s ease-in-out infinite;
  animation-delay: 6.5s;
}

/* Course le long du chemin (~17 % du cycle) puis longue pause -> apparition occasionnelle.
   Fondu d'entrée au départ, fondu de sortie à l'arrivée. */
@keyframes shoot {
  0%   { offset-distance: 0%;   opacity: 0; }
  3%   { opacity: 0.9; }
  14%  { opacity: 0.9; }
  17%  { offset-distance: 100%; opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Respect des préférences d'accessibilité : pas de mouvement */
@media (prefers-reduced-motion: reduce) {
  .hero__particles { display: none; }
}

.hero__placeholder-note {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.72rem;
  color: var(--bleu-nuit);
  background: rgba(255, 255, 255, 0.6);
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.04em;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin-inline: auto;
}

.hero__title {
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  /* Interligne homogène entre les deux lignes de l'accroche */
  line-height: 1.15;
}

/* Ligne 1 fixe (bleu nuit) */
.hero__line {
  display: block;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  color: var(--bleu-nuit);
}

/* Ligne 2 animée : toujours une seule ligne, hauteur fixe */
.rotator {
  display: block;
  text-align: center;
  /* Taille calibrée pour que le mot le plus long tienne sur 1 ligne.
     Légèrement plus petite que la ligne 1. */
  font-size: clamp(1.7rem, 4.6vw, 3.1rem);
  line-height: 1.15;
  /* Hauteur réservée = exactement 1 ligne -> aucun saut, bloc figé */
  height: 1.15em;
  white-space: nowrap;
  overflow: visible;
}

.rotator__word {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.6s ease;
  color: var(--abricot); /* mot animé en abricot, distinct de la phrase fixe */
  white-space: nowrap;
}

.rotator__word.is-out {
  opacity: 0;
}

.hero__logo {
  display: block;
  width: clamp(180px, 22vw, 230px);
  height: auto;
  margin: 0 auto 26px;
}

.hero__subtitle {
  font-size: 1.16rem;
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--texte);
}

/* ============================================
   FADE-IN au scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .rotator__word {
    transition: none;
  }
}

/* ============================================
   BLOCS DE CONTENU GÉNÉRIQUES
   ============================================ */

/* Bloc 2 colonnes (texte + média) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

/* Colonnes alignées en haut (ex. page histoire) */
.split--top {
  align-items: start;
}

/* Colonnes centrées verticalement (texte en face de la photo) */
.split--center {
  align-items: center;
}

/* Carte histoire : détache le bloc photo+texte du fond crème */
.story-card {
  background-color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--ombre-douce);
  border: 1px solid rgba(157, 189, 204, 0.22);
  padding: clamp(24px, 4vw, 46px);
}

/* Photo un peu moins haute pour équilibrer avec le texte */
.story-card__photo {
  aspect-ratio: 4 / 4.5;
  max-height: 520px;
  object-fit: cover;
}

/* Rapproche la carte du titre (moins de vide au-dessus) */
.story-section {
  padding-top: clamp(2px, 0.5vw, 6px);
}

/* Aération du texte de l'histoire */
.story-card .split__text p {
  margin-bottom: 1.05em;
}
.story-card .split__text p:last-child {
  margin-bottom: 0;
}

/* Phrase de bascule isolée, centrée, mise en valeur */
.story-pivot {
  text-align: center;
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--bleu-nuit);
  margin: 1.6em 0;
}

.split--reverse .split__media {
  order: 2;
}

.split__text h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 20px;
}

/* Placeholder média */
.media-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      45deg,
      var(--bleu-brume-clair),
      var(--bleu-brume-clair) 16px,
      var(--creme-fonce) 16px,
      var(--creme-fonce) 32px
    );
  box-shadow: var(--ombre-carte);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-placeholder--wide {
  aspect-ratio: 16 / 10;
}

/* Bande photo immersive pleine largeur (sous le hero) */
.photo-band {
  width: 100%;
  line-height: 0;
}

.photo-band img {
  width: 100%;
  height: clamp(220px, 40vh, 480px);
  object-fit: cover;
  display: block;
}

/* Images réelles (mêmes proportions/arrondi que les placeholders) */
.media-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--ombre-carte);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.media-img--wide {
  aspect-ratio: 16 / 10;
}

/* Image à proportions naturelles : jamais étirée ni recadrée */
.media-img--free {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.media-placeholder__label {
  background: rgba(255, 255, 255, 0.88);
  color: var(--bleu-nuit);
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 50px;
  text-align: center;
  max-width: 80%;
  box-shadow: var(--ombre-douce);
}

/* ============================================
   CARTES (piliers, témoignages)
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 12px;
}

.card {
  background-color: #fff;
  border-radius: var(--radius);
  padding: 38px 32px;
  box-shadow: var(--ombre-douce);
  border: 1px solid rgba(157, 189, 204, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ombre-carte);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: #F4EFE6; /* pastille crème */
  color: var(--bleu-nuit);   /* couleur de l'icône (currentColor) */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.card__icon svg {
  width: 34px;
  height: 34px;
}

.card__num {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--abricot-fonce);
  margin-bottom: 8px;
}

.card__title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-titre);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bleu-brume);
  margin-bottom: 14px;
}

.card__text {
  font-size: 1rem;
}

/* ============================================
   PILIERS DÉTAILLÉS (page méthode)
   ============================================ */
.pillar {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: start;
  background-color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--ombre-douce);
  border-left: 5px solid var(--abricot);
}

.pillar + .pillar {
  margin-top: 26px;
}

.pillar__index {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--bleu-brume);
  line-height: 1;
}

.pillar__title {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.pillar__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-titre);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--abricot-fonce);
  margin-bottom: 14px;
}

/* ============================================
   AMBIANCE NOCTURNE (transition crème -> bande bleue, page méthode)
   ============================================ */
.piliers-section {
  position: relative;
}

/* Le contenu (titre + cartes) reste au-dessus de l'ambiance */
.piliers-section > .container {
  position: relative;
  z-index: 1;
}

.method-ambiance {
  position: absolute;
  inset: 0;
  z-index: 0;            /* au-dessus du fond bleu, sous le titre et les cartes */
  overflow: hidden;      /* lune et étoiles restent dans la bande */
  pointer-events: none;
}

/* Ciel d'étoiles : l'enveloppe FLOTTE sur de longues distances (translate + rotate, boucle),
   le ::before porte la forme étoile, son halo et le SCINTILLEMENT (opacité). */
.m-star {
  position: absolute;
  width: var(--s, 9px);
  height: var(--s, 9px);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  will-change: transform;
}

.m-star::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--c, var(--abricot));
  clip-path: polygon(
    50% 0%, 58% 42%, 100% 50%, 58% 58%,
    50% 100%, 42% 58%, 0% 50%, 42% 42%
  );
  opacity: 0.85;
  /* halo doux -> étoiles bien visibles sur le bleu */
  filter: drop-shadow(0 0 5px rgba(240, 198, 123, 0.85));
  animation: m-twinkle 3.6s ease-in-out infinite;
  will-change: opacity, transform;
}

/* Scintillement (opacité + léger pulse) par-dessus le déplacement */
@keyframes m-twinkle {
  0%, 100% { opacity: 0.5;  transform: scale(0.8); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* 6 trajectoires de flottement, longues distances + rotation, boucle continue (translate(0) et
   rotate(360) aux extrémités -> aucune saccade à la reprise) */
@keyframes drift-1 {
  0%{transform:translate(0,0) rotate(0deg)} 25%{transform:translate(80px,-55px) rotate(90deg)}
  50%{transform:translate(150px,40px) rotate(180deg)} 75%{transform:translate(60px,95px) rotate(270deg)}
  100%{transform:translate(0,0) rotate(360deg)}
}
@keyframes drift-2 {
  0%{transform:translate(0,0) rotate(0deg)} 25%{transform:translate(-75px,45px) rotate(-85deg)}
  50%{transform:translate(-140px,-35px) rotate(-175deg)} 75%{transform:translate(-55px,-90px) rotate(-265deg)}
  100%{transform:translate(0,0) rotate(-360deg)}
}
@keyframes drift-3 {
  0%{transform:translate(0,0) rotate(0deg)} 33%{transform:translate(55px,75px) rotate(120deg)}
  66%{transform:translate(-65px,120px) rotate(240deg)} 100%{transform:translate(0,0) rotate(360deg)}
}
@keyframes drift-4 {
  0%{transform:translate(0,0) rotate(0deg)} 33%{transform:translate(-100px,-45px) rotate(-120deg)}
  66%{transform:translate(45px,-110px) rotate(-240deg)} 100%{transform:translate(0,0) rotate(-360deg)}
}
@keyframes drift-5 {
  0%{transform:translate(0,0) rotate(0deg)} 25%{transform:translate(110px,35px) rotate(80deg)}
  50%{transform:translate(65px,-100px) rotate(160deg)} 75%{transform:translate(-55px,-45px) rotate(240deg)}
  100%{transform:translate(0,0) rotate(360deg)}
}
@keyframes drift-6 {
  0%{transform:translate(0,0) rotate(0deg)} 25%{transform:translate(-65px,-75px) rotate(-90deg)}
  50%{transform:translate(35px,-130px) rotate(-180deg)} 75%{transform:translate(100px,-45px) rotate(-270deg)}
  100%{transform:translate(0,0) rotate(-360deg)}
}

/* Répartition des trajectoires + durées longues et variées (15-40s) */
.m-star:nth-child(6n+1) { animation-name: drift-1; animation-duration: 22s; }
.m-star:nth-child(6n+2) { animation-name: drift-2; animation-duration: 31s; }
.m-star:nth-child(6n+3) { animation-name: drift-3; animation-duration: 17s; }
.m-star:nth-child(6n+4) { animation-name: drift-4; animation-duration: 38s; }
.m-star:nth-child(6n+5) { animation-name: drift-5; animation-duration: 26s; }
.m-star:nth-child(6n)   { animation-name: drift-6; animation-duration: 34s; }

/* Delays variés -> mouvement désynchronisé */
.m-star:nth-child(5n+1) { animation-delay: -4s; }
.m-star:nth-child(5n+2) { animation-delay: -13s; }
.m-star:nth-child(5n+3) { animation-delay: -21s; }
.m-star:nth-child(5n+4) { animation-delay: -8s; }
.m-star:nth-child(5n)   { animation-delay: -28s; }

/* Scintillement désynchronisé */
.m-star:nth-child(3n+1)::before { animation-duration: 3.0s; animation-delay: -0.7s; }
.m-star:nth-child(3n+2)::before { animation-duration: 4.3s; animation-delay: -2.2s; }
.m-star:nth-child(3n)::before   { animation-duration: 3.6s; animation-delay: -1.4s; }

@media (prefers-reduced-motion: reduce) {
  .m-star, .m-star::before { animation: none; }
}

/* ============================================
   CARTES PILIERS AVEC IMAGE (page méthode)
   ============================================ */
.pillar-card {
  padding: 0;            /* l'image va jusqu'aux bords ; padding sur le corps */
  overflow: hidden;       /* coins arrondis appliqués à l'image */
  display: flex;
  flex-direction: column;
}

/* Image et placeholder : même format homogène entre les 3 cartes */
.pillar-card__img,
.pillar-card__ph {
  width: 100%;
  height: 190px;          /* hauteur fixe raisonnable */
  object-fit: cover;      /* recadrage propre, jamais déformé */
  display: block;
}

.pillar-card__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    var(--bleu-brume-clair),
    var(--bleu-brume-clair) 14px,
    var(--creme-fonce) 14px,
    var(--creme-fonce) 28px
  );
}

.pillar-card__body {
  padding: 24px 26px 28px;
}

/* Catégorie : petit label discret en abricot, petites majuscules */
.pillar-card__tag {
  display: inline-block;
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--abricot);
  margin-bottom: 8px;
}

/* Nom du pilier : bleu nuit, taille moyenne, avec petite icône à gauche */
.pillar-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  color: var(--bleu-nuit);
  margin: 0 0 12px;
}

.pillar-card__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;       /* l'icône ne se comprime pas */
  color: var(--bleu-nuit);
}

/* Texte descriptif : corps équilibré et lisible */
.pillar-card__text {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--texte);
  margin: 0;
}

/* ============================================
   GRILLE ACCOMPAGNEMENT (7 cartes) + encart chaleureux
   ============================================ */
/* 7 lignes horizontales pleine largeur : icône à gauche, titre + texte à droite */
.accomp-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
}

.accomp-grid .card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 26px;
  align-items: center;
  padding: 24px 32px;
  text-align: left;
}

.accomp-grid .card .card__icon {
  grid-row: 1 / 3;        /* l'icône occupe la colonne gauche sur toute la hauteur */
  align-self: center;
  margin-bottom: 0;
}

.accomp-grid .card .card__title {
  grid-column: 2;
  margin-bottom: 6px;
}

.accomp-grid .card .card__text {
  grid-column: 2;
  margin: 0;
}

@media (max-width: 560px) {
  .accomp-grid .card {
    padding: 22px;
    column-gap: 18px;
  }
}

/* Encart chaleureux : compact, centré, photo réduite + citation mise en valeur */
.accomp-insert {
  margin-top: 32px;
  max-width: 840px;
  margin-inline: auto;
}

.accomp-insert .split {
  grid-template-columns: 270px 1fr;   /* photo plus petite, texte qui se rapproche */
  gap: clamp(24px, 4vw, 44px);
}

.accomp-insert .story-card__photo {
  aspect-ratio: 4 / 4.6;
  max-height: 340px;                  /* photo compacte */
}

.accomp-quote__mark {
  display: block;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 3rem;
  line-height: 0.5;
  color: var(--abricot);
  margin-bottom: 10px;
}

.accomp-quote {
  margin: 0;
  font-family: var(--font-titre);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  line-height: 1.5;
  color: var(--bleu-nuit);
}

/* Mobile : photo au-dessus (compacte, centrée), citation en dessous */
@media (max-width: 760px) {
  .accomp-insert .split {
    grid-template-columns: 1fr;
  }
  .accomp-insert .story-card__photo {
    max-width: 300px;
    margin-inline: auto;
  }
}

/* ============================================
   LISTE "Est-ce que tu te reconnais"
   ============================================ */
.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-block: 30px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background-color: #fff;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--ombre-douce);
  font-size: 1.02rem;
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background-color: var(--abricot);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================
   MON PARCOURS / LÉGITIMITÉ (page histoire)
   ============================================ */
.creds {
  list-style: none;
  max-width: 660px;
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.creds li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--texte);
}

.creds li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: var(--abricot);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.creds-note {
  max-width: 660px;
  margin: 22px auto 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--texte);
  opacity: 0.82;
  text-align: center;
}

.creds-ids {
  max-width: 660px;
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  background-color: #fff;
  border: 1px solid rgba(157, 189, 204, 0.35);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  text-align: center;
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--bleu-nuit);
}

.creds-ids__sep {
  color: var(--bleu-brume);
}

/* Ligne de réassurance discrète (accueil, bloc Elise) */
.reassurance {
  margin-top: 4px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--texte);
  opacity: 0.82;
}

/* ============================================
   TÉMOIGNAGE MIS EN AVANT
   ============================================ */
.quote-feature {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.quote-feature__mark {
  font-family: var(--font-titre);
  font-size: 4rem;
  line-height: 0.5;
  color: var(--abricot);
}

.quote-feature__text {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--bleu-nuit);
  margin-block: 24px;
  line-height: 1.4;
}

.quote-feature__author {
  font-family: var(--font-titre);
  font-weight: 600;
  color: var(--abricot-fonce);
  letter-spacing: 0.04em;
}

/* Carrousel de témoignages en fondu (accueil) */
.testi-carousel {
  position: relative;
  min-height: 140px;
  margin-bottom: 8px;
}

.testi-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.testi-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.testi-slide__text {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  color: var(--bleu-nuit);
  line-height: 1.4;
}

.testi-slide__author {
  margin-top: 14px;
  font-family: var(--font-titre);
  font-weight: 600;
  color: var(--abricot-fonce);
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .testi-slide { transition: none; }
}

/* Carte témoignage */
.testimonial {
  display: flex;
  flex-direction: column;
}

.testimonial__stars {
  color: var(--abricot);
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial__text {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--texte);
  margin-bottom: 20px;
  flex-grow: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bleu-brume);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-titre);
  font-weight: 600;
  color: #fff;
}

.testimonial__who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

/* Témoignages empilés en pleine largeur (page témoignages) */
.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.testimonial-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.testimonial-row__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.testimonial-row__aside .testimonial__avatar {
  margin-bottom: 8px;
}

.testimonial-row__body .testimonial__text {
  margin-bottom: 0;
  font-size: 1.05rem;
}

@media (max-width: 760px) {
  .testimonial-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.testimonial__name {
  font-family: var(--font-titre);
  font-weight: 600;
  color: var(--bleu-nuit);
}

.testimonial__role {
  font-size: 0.82rem;
  color: var(--texte);
  opacity: 0.85;
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-band {
  background-color: var(--bleu-nuit);
  border-radius: var(--radius);
  padding: clamp(40px, 7vw, 72px);
  text-align: center;
  color: var(--creme);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background-color: rgba(232, 168, 120, 0.18);
  top: -120px;
  right: -80px;
}

.cta-band::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background-color: rgba(157, 189, 204, 0.2);
  bottom: -110px;
  left: -60px;
}

.cta-band__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-inline: auto;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin-bottom: 18px;
}

.cta-band p {
  font-size: 1.12rem;
  margin-bottom: 32px;
  color: rgba(251, 247, 240, 0.92);
}

/* ============================================
   PAGE HEADER (pages internes)
   ============================================ */
.page-hero {
  background-color: var(--bleu-brume-clair);
  text-align: center;
  padding-block: clamp(70px, 11vw, 130px);
}

.page-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin-bottom: 18px;
  max-width: 860px;
  margin-inline: auto;
}

/* Page-hero resserré : titre suivi de près par l'intro */
.page-hero--tight {
  padding-block: clamp(44px, 6vw, 78px) clamp(20px, 3vw, 34px);
}

/* Intro centrée, largeur lisible */
.intro-lead {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

/* ----- En-tête éditorial page méthode (fond crème, aligné à gauche) ----- */
.method-head {
  padding-block: clamp(46px, 6vw, 84px) clamp(26px, 3.5vw, 40px);
}

.method-intro__inner {
  max-width: 750px;
  margin-right: auto; /* aligné à gauche, pas étalé sur tout l'écran */
}

.method-intro__eyebrow {
  color: var(--abricot); /* sur-titre abricot #E8A878 */
}

.method-intro__title {
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  color: var(--bleu-nuit);
  line-height: 1.18;
  margin-bottom: 16px;
}

.method-intro__lead {
  font-size: 1.12rem;
  max-width: 700px;
}

/* Intro témoignages : tient sur une seule ligne (desktop), se replie en mobile */
.testi-lead {
  max-width: none;
  font-size: 1.04rem;
}

.page-hero__intro {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.15rem;
}

/* ============================================
   PAGE MENTIONS LÉGALES
   ============================================ */
.legal {
  max-width: 760px;
  margin-inline: auto;
  color: var(--texte);
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal__h {
  font-size: 1.3rem;
  color: var(--bleu-nuit);
  margin: 36px 0 12px;
}

.legal__h:first-child {
  margin-top: 0;
}

.legal p {
  margin-bottom: 16px;
}

.legal a {
  color: var(--bleu-nuit);
  text-decoration: underline;
  text-decoration-color: var(--abricot);
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.legal a:hover {
  color: var(--abricot-fonce);
}

.legal__update {
  font-size: 0.92rem;
  font-style: italic;
  opacity: 0.8;
  margin-top: 30px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-card {
  max-width: 620px;
  margin-inline: auto;
  background-color: #fff;
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 60px);
  box-shadow: var(--ombre-carte);
  text-align: center;
}

/* Colonne gauche : photo + mot d'accueil (page contact) */
.contact-photo {
  aspect-ratio: 4 / 4.4;
  max-height: 380px;
  margin-bottom: 22px;
}

.contact-welcome {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--texte);
}

/* Encart contact : libellé + mention gratuité */
.contact-card__label {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--bleu-nuit);
  margin-bottom: 18px;
}

.contact-free {
  margin: -8px 0 20px;        /* juste sous le bouton, bien visible */
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--abricot-fonce);
}

.contact-card .btn--primary {
  width: 100%;
  margin-bottom: 18px;
  font-size: 1.08rem;
  padding-block: 18px;
}

.contact-info {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-titre);
  font-weight: 500;
  color: var(--bleu-nuit);
  background-color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  box-shadow: var(--ombre-douce);
  transition: transform var(--transition);
}

.contact-info a:hover {
  transform: translateY(-3px);
  color: var(--abricot-fonce);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--bleu-nuit);
  color: rgba(251, 247, 240, 0.85);
  padding-block: 64px 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(157, 189, 204, 0.25);
}

.footer__logo {
  height: 130px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  /* Le logo (traits bleu nuit) serait invisible sur le footer sombre :
     on le rend en monochrome crème clair, sans ajouter ni fond ni bordure. */
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__brand-name {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer__brand-tag {
  font-size: 0.95rem;
  max-width: 280px;
  color: rgba(251, 247, 240, 0.7);
}

.footer__col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: rgba(251, 247, 240, 0.82);
  transition: color var(--transition), padding-left var(--transition);
  font-size: 0.97rem;
}

.footer__links a:hover {
  color: var(--abricot);
  padding-left: 5px;
}

.footer__socials {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.footer__socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(157, 189, 204, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), transform var(--transition);
}

.footer__socials a:hover {
  background-color: var(--abricot);
  transform: translateY(-3px);
}

.footer__socials svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.footer__email {
  color: rgba(251, 247, 240, 0.82);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer__email:hover {
  color: var(--abricot);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(251, 247, 240, 0.6);
}

.footer__bottom a {
  color: rgba(251, 247, 240, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom a:hover {
  color: var(--abricot);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .split__media {
    max-width: 420px;
    margin-inline: auto;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 76px;
    right: 0;
    width: min(80vw, 320px);
    height: calc(100vh - 76px);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background-color: var(--creme);
    padding: 28px 24px;
    box-shadow: -10px 0 40px rgba(46, 71, 86, 0.12);
    /* Fondu doux + léger glissement vertical. Le menu reste ancré dans les
       limites de l'écran (pas de translateX hors champ) -> aucun scroll horizontal,
       et le header sticky n'est pas impacté. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition),
      visibility var(--transition);
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__link {
    width: 100%;
    font-size: 1.1rem;
    padding: 12px 16px;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }

  .check-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pillar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 24px;
  }

  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .btn-row--center .btn { width: auto; }
}

/* Très petits écrans : le médaillon reste l'élément principal, on masque le texte */
@media (max-width: 430px) {
  .nav__brand-name { display: none; }
  .nav__logo { height: 48px; }
}
