/* Renaud Coaching — feuille de style unique
   Fraunces (titres) · Inter (texte) */

@font-face {
  font-family: 'Fraunces';
  src: url('polices/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('polices/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --nuit: #12212e;          /* bleu nuit profond */
  --marine: #1d3448;
  --brume: #7d94a6;
  --ambre: #c8763c;         /* accent chaud, terre */
  --ambre-clair: #e2a173;
  --creme: #f7f3ee;
  --blanc: #fefdfb;
  --encre: #17242e;
  --encre-doux: #5b6b78;
  --ligne: #e4ddd4;

  --largeur: 1240px;
  --gouttiere: clamp(20px, 5vw, 60px);
  --titre: 'Fraunces', Georgia, serif;
  --texte: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --entete-h: 80px;
  --courbe: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.72;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 6.4vw, 4.8rem); overflow-wrap: break-word; }
h2 { font-size: clamp(1.75rem, 4.2vw, 3.1rem); overflow-wrap: break-word; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.42rem); }

p { margin: 0 0 1.2em; }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.oeil {
  display: inline-block;
  margin-bottom: 18px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ambre);
}

.chapo {
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--encre-doux);
}

/* ═══════════════════════════════════════════════ En-tête */

.site-entete {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s var(--courbe), box-shadow .35s var(--courbe);
}

.site-entete.defilee { background: var(--blanc); box-shadow: 0 1px 0 var(--ligne); }

.entete-rangee {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--entete-h);
}

.marque {
  display: flex;
  flex-direction: column;
  font-family: var(--titre);
  font-size: 1.32rem;
  line-height: 1.06;
  text-decoration: none;
  color: var(--blanc);
  white-space: nowrap;
  transition: color .35s var(--courbe);
}

.marque small {
  font-family: var(--texte);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .78;
}

.site-entete.defilee .marque { color: var(--encre); }

/* la nav occupe le reste de la barre : liens à droite, puis le bouton */
.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.site-nav .nav-liste { margin-left: auto; }
.site-nav .tel-entete { flex-shrink: 0; }

.nav-liste {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-liste a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: .89rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, .84);
  white-space: nowrap;
  transition: color .3s var(--courbe);
}

.site-entete.defilee .nav-liste a { color: var(--encre-doux); }

.nav-liste a::after {
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--ambre);
  transition: width .3s var(--courbe);
  content: '';
}

.nav-liste a:hover { color: var(--blanc); }
.site-entete.defilee .nav-liste a:hover { color: var(--encre); }
.nav-liste a:hover::after,
.nav-liste a[aria-current='page']::after { width: 100%; }
.site-entete.defilee .nav-liste a[aria-current='page'] { color: var(--encre); }

.tel-entete {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  min-height: 44px;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--blanc);
  background: var(--ambre);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .25s var(--courbe), box-shadow .25s var(--courbe);
}

.tel-entete:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(200, 118, 60, .35); }

.nav-bouton {
  position: relative;
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  padding: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  cursor: pointer;
}

.site-entete.defilee .nav-bouton { border-color: var(--ligne); }

.nav-bouton span,
.nav-bouton span::before,
.nav-bouton span::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 1.6px;
  margin-left: -9px;
  background: var(--blanc);
  transition: transform .3s var(--courbe), background .3s;
  content: '';
}

.site-entete.defilee .nav-bouton span,
.site-entete.defilee .nav-bouton span::before,
.site-entete.defilee .nav-bouton span::after { background: var(--encre); }

.nav-bouton span { top: 50%; margin-top: -.8px; }
.nav-bouton span::before { left: 0; margin-left: 0; transform: translateY(-6px); }
.nav-bouton span::after  { left: 0; margin-left: 0; transform: translateY(6px); }

.nav-bouton[aria-expanded='true'] span { background: transparent; }
.nav-bouton[aria-expanded='true'] span::before { transform: rotate(45deg); background: var(--encre); }
.nav-bouton[aria-expanded='true'] span::after  { transform: rotate(-45deg); background: var(--encre); }

@media (max-width: 980px) {
  .nav-bouton { display: block; }

  .site-nav {
    position: fixed;
    inset: var(--entete-h) 0 0;
    z-index: 90;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--gouttiere);
    overflow-y: auto;
    background: var(--blanc);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--courbe), transform .3s var(--courbe), visibility .3s;
  }

  .site-nav.ouvert { opacity: 1; visibility: visible; transform: none; }

  .site-nav .nav-liste {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    width: 100%;
  }

  .nav-liste li { width: 100%; border-bottom: 1px solid var(--ligne); }
  .nav-liste li:first-child { border-top: 1px solid var(--ligne); }

  .nav-liste a {
    display: block;
    padding: 19px 0;
    font-family: var(--titre);
    font-size: clamp(1.3rem, 4.6vw, 1.9rem);
    font-weight: 400;
    color: var(--encre);
  }

  .nav-liste a::after { display: none; }
  .nav-liste a[aria-current='page'] { color: var(--ambre); }
  .site-nav .tel-entete { margin-top: 30px; align-self: flex-start; }
}

/* ═══════════════════════════════════════════════ Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-top: var(--entete-h);
  overflow: hidden;
  background: var(--nuit);
}

/* zoom d'entrée par transition : une animation CSS écraserait la parallaxe JS */
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Cadrage pilote page par page. En mobile le cadre est bien plus etroit :
     l'image est rognee sur les cotes et le visage sort du champ si on garde
     le meme reglage. D'ou une valeur distincte. */
  object-position: var(--cadrage, center);
  transform: scale(1.1);
  transition: transform 2s var(--courbe);
  will-change: transform;
}

.hero.pret .hero-image { transform: scale(1.05); }

@media (max-width: 760px) {
  .hero-image { object-position: var(--cadrage-mobile, var(--cadrage, center)); }
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(18, 33, 46, .62) 0%,
              rgba(18, 33, 46, .38) 30%,
              rgba(18, 33, 46, .72) 62%,
              rgba(18, 33, 46, .93) 100%);
  content: '';
}

.hero-contenu {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(52px, 7vw, 96px);
  color: var(--blanc);
}

.hero .oeil { color: var(--ambre-clair); }
.hero h1 { color: var(--blanc); max-width: 15ch; margin-bottom: .32em; }

.hero-chapo {
  max-width: 46ch;
  margin-bottom: 2em;
  font-size: clamp(1.02rem, 1.6vw, 1.26rem);
  color: rgba(255, 255, 255, .86);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero--court { min-height: clamp(420px, 62vh, 620px); }

/* Sur un portrait, le texte du hero court vient se poser en plein sur le
   visage en mobile. On rallonge le hero : le sujet respire au-dessus. */
@media (max-width: 760px) {
  .hero--court { min-height: 92svh; }
}

/* ---- révélation ---- */

.ligne-masque { display: block; overflow: hidden; }

.ligne-masque > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--courbe);
}

.pret .ligne-masque > span { transform: none; }
.pret .ligne-masque:nth-child(2) > span { transition-delay: .1s; }
.pret .ligne-masque:nth-child(3) > span { transition-delay: .2s; }

.hero-suite {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--courbe) .36s, transform .9s var(--courbe) .36s;
}

.pret .hero-suite { opacity: 1; transform: none; }

/* ---- repères ---- */

.reperes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 24px 20px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: clamp(26px, 3.5vw, 38px);
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.repere strong {
  display: block;
  font-family: var(--titre);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ambre-clair);
  font-variant-numeric: tabular-nums;
}

.repere span { display: block; margin-top: 6px; font-size: .85rem; color: rgba(255,255,255,.72); }

/* ═══════════════════════════════════════════════ Boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  min-height: 48px;
  font-family: var(--texte);
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s var(--courbe), background .25s var(--courbe),
              color .25s var(--courbe), box-shadow .25s var(--courbe);
}

.bouton--ambre { color: var(--blanc); background: var(--ambre); }
.bouton--ambre:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(200,118,60,.4); }

.bouton--fantome { color: var(--blanc); border-color: rgba(255,255,255,.45); }
.bouton--fantome:hover { color: var(--nuit); background: var(--blanc); border-color: var(--blanc); }

.bouton--nuit { color: var(--blanc); background: var(--nuit); }
.bouton--nuit:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(18,33,46,.3); }

.bouton--contour { color: var(--encre); border-color: var(--ligne); }
.bouton--contour:hover { color: var(--blanc); background: var(--nuit); border-color: var(--nuit); }

/* ═══════════════════════════════════════════════ Sections */

.section { position: relative; overflow: hidden; padding: clamp(72px, 9.5vw, 132px) 0; }
.section > .conteneur { position: relative; z-index: 1; }
.section--creme { background: var(--creme); }
.section--nuit { background: var(--nuit); color: rgba(255,255,255,.78); }
.section--nuit h2, .section--nuit h3 { color: var(--blanc); }
.section--nuit .chapo { color: rgba(255,255,255,.7); }

.entete-section { max-width: 64ch; margin-bottom: clamp(42px, 5vw, 64px); }

/* ---- formes flottantes ---- */

.forme {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(64px);
  opacity: .45;
}

.forme--1 {
  width: 40vw; max-width: 500px; aspect-ratio: 1;
  top: -12%; right: -8%;
  background: radial-gradient(circle, rgba(200,118,60,.5), transparent 70%);
  animation: flotte-a 20s ease-in-out infinite;
}

.forme--2 {
  width: 34vw; max-width: 420px; aspect-ratio: 1;
  bottom: -14%; left: -10%;
  background: radial-gradient(circle, rgba(125,148,166,.5), transparent 70%);
  animation: flotte-b 25s ease-in-out infinite;
}

@keyframes flotte-a {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(-30px, 28px) scale(1.07); }
  66%      { transform: translate(20px, -24px) scale(.95); }
}

@keyframes flotte-b {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(34px, -30px) scale(1.08); }
}

/* ---- cartes ---- */

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 1px;
  background: var(--ligne);
  border: 1px solid var(--ligne);
}

.carte {
  position: relative;
  padding: clamp(30px, 3.2vw, 44px);
  background: var(--blanc);
  transition: background .3s var(--courbe), transform .45s var(--courbe),
              box-shadow .45s var(--courbe);
}

.section--creme .carte { background: var(--creme); }
.carte:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(18,33,46,.1); z-index: 2; }
.carte h3 { margin-bottom: .45em; }
.carte p { margin: 0; font-size: .96rem; color: var(--encre-doux); }
.carte p + p { margin-top: .9em; }

.carte-icone {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 22px;
  color: var(--ambre);
  border: 1px solid var(--ligne);
  border-radius: 50%;
}

.carte-icone svg { width: 21px; height: 21px; }

.carte-lien { display: block; text-decoration: none; }

.suite {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ambre);
}

.suite::after { transition: transform .3s var(--courbe); content: '→'; }
.carte-lien:hover .suite::after { transform: translateX(5px); }

/* ---- duo texte + image ---- */

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.duo-image { position: relative; overflow: hidden; border-radius: 4px; }
.duo-image img { width: 100%; transition: transform 1.2s var(--courbe); }
.duo-image:hover img { transform: scale(1.04); }

/* ---- étapes numérotées ---- */

.etapes { counter-reset: etape; margin: 0; padding: 0; list-style: none; }

.etape {
  position: relative;
  padding: 26px 0 26px 66px;
  border-top: 1px solid var(--ligne);
}

.etape:last-child { border-bottom: 1px solid var(--ligne); }

.etape::before {
  counter-increment: etape;
  content: counter(etape, decimal-leading-zero);
  position: absolute;
  left: 0; top: 26px;
  font-family: var(--titre);
  font-size: 1.05rem;
  color: var(--ambre);
}

.etape h3 { margin-bottom: .3em; font-size: 1.15rem; }
.etape p { margin: 0; font-size: .96rem; color: var(--encre-doux); }

/* ---- tarifs ---- */

.tarifs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(20px, 2.5vw, 30px);
  margin-top: clamp(38px, 4vw, 54px);
}

.tarif {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 38px);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 4px;
  transition: transform .4s var(--courbe), box-shadow .4s var(--courbe);
}

.section--creme .tarif { background: var(--blanc); }
.tarif:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(18,33,46,.09); }

.tarif--phare { border-color: var(--ambre); border-width: 1.5px; }

.tarif-nom { margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
             text-transform: uppercase; color: var(--ambre); }

.tarif-prix { margin: 0; font-family: var(--titre); font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; }
.tarif-prix small { font-family: var(--texte); font-size: .82rem; font-weight: 500; color: var(--encre-doux); }
.tarif p { margin: 14px 0 0; font-size: .93rem; color: var(--encre-doux); }

/* ---- listes ---- */

.liste-traits { margin: 0 0 1.5em; padding: 0; list-style: none; }
.liste-traits li { position: relative; margin-bottom: .8em; padding-left: 28px; }
.liste-traits li::before {
  position: absolute; left: 0; top: .7em;
  width: 15px; height: 1px;
  background: var(--ambre);
  content: '';
}

.section--nuit .liste-traits li::before { background: var(--ambre-clair); }

.encadre {
  margin: 32px 0;
  padding: clamp(24px, 3vw, 34px);
  background: var(--creme);
  border-left: 2px solid var(--ambre);
  border-radius: 0 4px 4px 0;
}

.section--creme .encadre { background: var(--blanc); }
.encadre p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════ Contact */

.contact-grille {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(38px, 5vw, 78px);
}

@media (max-width: 860px) { .contact-grille { grid-template-columns: 1fr; } }

.champ { margin-bottom: 20px; }

.champ label {
  display: block;
  margin-bottom: 7px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--encre-doux);
}

/* 16px minimum : en dessous, Safari iOS zoome au focus et ne dézoome jamais */
.champ input,
.champ textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 4px;
  transition: border-color .25s var(--courbe);
}

.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--ambre); }
.champ textarea { min-height: 140px; resize: vertical; }

.coordonnees { margin: 0; }
.coordonnees dt { margin-top: 24px; font-size: .73rem; font-weight: 600; letter-spacing: .16em;
                  text-transform: uppercase; color: var(--ambre); }
.coordonnees dt:first-child { margin-top: 0; }
.coordonnees dd { margin: 6px 0 0; font-family: var(--titre); font-size: 1.32rem; }
.coordonnees dd a { text-decoration: none; }
.coordonnees dd.simple { font-family: var(--texte); font-size: 1rem; line-height: 1.6; }

.message {
  margin-bottom: 24px;
  padding: 18px 22px;
  border: 1px solid var(--ligne);
  border-left-width: 3px;
  border-radius: 4px;
}

.message--ok    { border-left-color: #5e8c6a; background: #f1f6f2; }
.message--souci { border-left-color: #b06a6a; background: #fbf2f2; }

/* ═══════════════════════════════════════════════ Pied de page */

.site-pied {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 88px) 0 40px;
  background: var(--nuit);
  color: rgba(255, 255, 255, .6);
  font-size: .92rem;
}

.site-pied a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-pied a:hover { color: var(--blanc); }

.pied-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(30px, 4vw, 54px);
}

.pied-marque { margin: 0 0 10px; font-family: var(--titre); font-size: 1.45rem; color: var(--blanc); }
.pied-titre { margin: 0 0 15px; font-size: .73rem; font-weight: 600; letter-spacing: .16em;
              text-transform: uppercase; color: var(--ambre-clair); }
.pied-liste { margin: 0; padding: 0; list-style: none; }
.pied-liste li { margin-bottom: 9px; }

.pied-bas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  justify-content: space-between;
  margin-top: clamp(42px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: .84rem;
  color: rgba(255,255,255,.42);
}

/* ═══════════════════════════════════════════════ Bouton d'appel flottant */

.appel-flottant {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 26px 15px 20px;
  min-height: 48px;
  font-size: .91rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--blanc);
  background: var(--ambre);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(18, 33, 46, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.94);
  transition: opacity .45s var(--courbe), transform .45s var(--courbe),
              visibility .45s, box-shadow .3s var(--courbe);
}

.appel-flottant.visible { opacity: 1; visibility: visible; transform: none; }
.appel-flottant:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(200,118,60,.45); }
.appel-flottant svg { width: 19px; height: 19px; flex-shrink: 0; }

.appel-flottant::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--ambre);
  animation: pulse 2.8s ease-out infinite;
  content: '';
}

@keyframes pulse {
  0%   { transform: scale(1);    opacity: .5; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

@media (max-width: 560px) {
  .appel-flottant {
    left: clamp(16px, 4vw, 32px);
    right: clamp(16px, 4vw, 32px);
    justify-content: center;
    padding: 17px 24px;
  }
}

/* ═══════════════════════════════════════════════ Progression + indice */

.progression {
  position: fixed;
  top: 0; left: 0;
  z-index: 110;
  width: 100%; height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--ambre);
  will-change: transform;
}

.indice-defilement {
  position: absolute;
  left: 50%; bottom: 20px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 26px; height: 42px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  transform: translateX(-50%);
}

.indice-defilement::after {
  width: 3px; height: 7px;
  background: var(--blanc);
  border-radius: 999px;
  animation: descend 1.9s ease-in-out infinite;
  content: '';
}

@keyframes descend {
  0%, 100% { transform: translateY(-5px); opacity: 0; }
  40%      { transform: translateY(0);    opacity: 1; }
  80%      { transform: translateY(6px);  opacity: 0; }
}

@media (max-height: 700px) { .indice-defilement { display: none; } }

/* ═══════════════════════════════════════════════ Apparition */

.apparait {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s var(--courbe), transform .75s var(--courbe);
}

.apparait.vue { opacity: 1; transform: none; }
.no-js .apparait { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .forme, .appel-flottant::before, .indice-defilement::after { animation: none; }
  .ligne-masque > span { transform: none; }
  .hero-suite { opacity: 1; transform: none; }
  .apparait { opacity: 1; transform: none; transition: none; }
  .carte:hover, .tarif:hover, .duo-image:hover img { transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════ Grilles de trois

   Entre ~660 et ~980 px, une grille de trois cartes passe à deux colonnes :
   la troisième reste seule et laisse un bloc vide à côté d'elle.
   On l'étire alors sur toute la largeur. Une grille de quatre n'est pas
   concernée (2 x 2), d'où le sélecteur :nth-child(3):last-child. */
@media (min-width: 640px) and (max-width: 979px) {
  .grille > :nth-child(3):last-child,
  .tarifs > :nth-child(3):last-child {
    grid-column: 1 / -1;
  }
}

/* ═══════════════════════════════════════════════ Grilles de quatre

   Au-dessus de ~980 px la grille passe à trois colonnes : la quatrième
   carte reste seule sur sa ligne et laisse deux blocs vides à côté d'elle.
   On l'étire sur toute la largeur. En dessous, la grille est à deux
   colonnes (2 x 2) : rien à corriger, et l'étirer creuserait un trou. */
@media (min-width: 980px) {
  .grille > :nth-child(4):last-child {
    grid-column: 1 / -1;
  }
  /* La carte occupe toute la largeur, mais le texte garde la mesure
     des autres cartes : au-delà, la ligne devient illisible. */
  .grille > :nth-child(4):last-child h3,
  .grille > :nth-child(4):last-child p {
    max-width: 62ch;
  }
}
