/*
 * PaieScan — feuille de style du site vitrine.
 * Les valeurs de couleur sont reprises telles quelles de src/theme/colors.ts
 * (palettes `light` et `dark`) et la typographie de src/theme/typography.ts.
 * Toute divergence est un bug : l'app est la source de vérité.
 */

/* ---------------------------------------------------------------- polices */

@font-face {
  font-family: 'Spectral';
  src: url('fonts/Spectral_400Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('fonts/Spectral_600SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans_400Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans_500Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans_600SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono_500Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono_600SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* ----------------------------------------------------------------- jetons */

:root {
  --fond: #f7f3ea;
  --surface: #fffdf8;
  --surface-alt: #efe9da;
  --hero: #123d2f;
  --encre: #1b1d19;
  --texte: #3a3d34;
  --texte-doux: #5c5f55;
  --muted: #8a8d80;
  --bordure: #e9e3d4;
  --hairline: #eee8d9;
  --bordure-forte: #d8d0be;
  --primaire: #123d2f;
  --sur-primaire: #f7f3ea;
  --or: #f4c24b;
  --or-doux: #e4c88a;
  --or-lisible: #93752c;
  --sur-hero: #f7f3ea;
  --hero-label: #c9d6ce;
  --hero-muted: #b8c7be;
  --hero-pastille: rgba(247, 243, 234, 0.08);
  --hero-separateur: rgba(247, 243, 234, 0.15);
  --succes: #2e7d5b;
  --alerte: #c79a2e;
  --alerte-fond: #fbf1d6;
  --alerte-bordure: #ebd79c;
  --alerte-encre: #93752c;
  --alerte-forte: #7d4a00;
  --alerte-puce: #f6e7c2;
  --info: #3f6e8c;
  --info-fond: #e3ecf2;
  --info-forte: #2f556e;

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --largeur: 1060px;
  --rayon: 14px;
  --rayon-large: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #14150f;
    --surface: #1e211a;
    --surface-alt: #2a2d22;
    --encre: #f1eee3;
    --texte: #cfcbbd;
    --texte-doux: #a9ab9d;
    --muted: #8a8d80;
    --bordure: #313428;
    --hairline: #2b2e23;
    --bordure-forte: #3a3d30;
    --primaire: #2e7d5b;
    --or-lisible: #f2c868;
    --alerte-fond: #33290f;
    --alerte-bordure: #5a4a1e;
    --alerte-encre: #d9b45e;
    --alerte-forte: #f2c868;
    --alerte-puce: #3e3210;
    --info: #7fa8c6;
    --info-fond: #17242e;
    --info-forte: #93bad4;
  }
}

/* ------------------------------------------------------------------- base */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--encre);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.3rem);
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}
h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: var(--primaire);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--succes);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

strong {
  font-weight: 600;
  color: var(--encre);
}

/* Tous les montants, taux et références chiffrées. */
.montant,
.num {
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
}
.saut-contenu:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: var(--primaire);
  color: var(--sur-primaire);
  padding: 10px 16px;
  border-radius: 8px;
}

/* ---------------------------------------------------------- mise en page */

.contenant {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 24px;
}

.etroit {
  max-width: 720px;
}

section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.oeil {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9em;
}

.chapeau {
  font-size: 1.15rem;
  color: var(--texte-doux);
  max-width: 60ch;
}

/* ---------------------------------------------------------------- entête */

.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.entete .contenant {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  margin-right: auto;
}

.marque img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--texte-doux);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover {
  color: var(--encre);
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }
}

/* --------------------------------------------------------------- boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.bouton:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.bouton-principal {
  background: var(--primaire);
  color: var(--sur-primaire);
}

/* Sur la bande verte, l'inversion : crème pleine sur vert. */
.bouton-clair {
  background: var(--sur-hero);
  color: var(--hero);
}

.bouton-secondaire {
  background: transparent;
  color: var(--encre);
  border-color: var(--bordure-forte);
}

.bouton-fantome {
  background: transparent;
  color: var(--sur-hero);
  border-color: var(--hero-separateur);
}

/* ------------------------------------------------------------------ hero */

.hero {
  background: var(--hero);
  color: var(--sur-hero);
  padding: clamp(64px, 9vw, 108px) 0 clamp(72px, 10vw, 120px);
}

.hero h1 {
  color: var(--sur-hero);
  max-width: 15ch;
}

.hero .chapeau {
  color: var(--hero-muted);
  font-size: 1.2rem;
  max-width: 46ch;
}

.hero-grille {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

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

.hero .oeil {
  color: var(--hero-label);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--hero-label);
}

/* ------------------------------------- reconstitution de l'écran résultat */

/* Un fac-similé HTML de l'écran de résultat, pas une capture : il reste net
   à toutes les tailles et suit le thème sombre comme l'app. */
.telephone {
  width: 300px;
  margin: 0 auto;
  background: var(--fond);
  border: 9px solid #0b0d09;
  border-radius: 40px;
  padding: 14px 12px 18px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

.telephone-barre {
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: var(--bordure-forte);
  margin: 12px auto 0;
}

.carte-verdict {
  background: var(--hero);
  border-radius: var(--rayon-large);
  padding: 18px 16px;
  color: var(--sur-hero);
}

.carte-verdict .entete-verdict {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--or);
  margin-bottom: 10px;
}

.carte-verdict .intro {
  font-size: 0.78rem;
  color: var(--hero-muted);
  margin: 0 0 2px;
}

.verdict-somme {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 2.5rem;
  color: var(--or);
  line-height: 1.1;
}
.verdict-somme .par-mois {
  font-size: 1rem;
  color: var(--or-doux);
}

.verdict-annee {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--hero-muted);
  margin: 4px 0 14px;
}

.pastilles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pastille {
  background: var(--hero-pastille);
  border-radius: 12px;
  padding: 9px 8px;
}
.pastille dt {
  font-size: 0.62rem;
  color: var(--hero-label);
  margin-bottom: 3px;
}
.pastille dd {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--sur-hero);
}

.titre-lignes {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 2px 8px;
}
.titre-lignes span:first-child {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--encre);
}
.titre-lignes span:last-child {
  font-size: 0.7rem;
  color: var(--muted);
}

.ligne {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-left: 3px solid var(--succes);
  border-radius: 10px;
  padding: 9px 11px;
  margin-bottom: 7px;
}

.ligne.anomalie {
  background: var(--alerte-fond);
  border-color: var(--alerte-bordure);
  border-left-color: var(--alerte);
}

.ligne .intitule {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--encre);
  display: block;
}

.ligne .detail {
  font-size: 0.68rem;
  color: var(--muted);
}

.ligne .valeur {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--encre);
  white-space: nowrap;
}

.marqueur {
  display: inline-block;
  background: var(--or);
  color: #3a2d05;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin: 3px 0;
}

.puce-manque {
  display: inline-block;
  background: var(--alerte-puce);
  color: var(--alerte-forte);
  font-family: var(--mono);
  font-size: 0.66rem;
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 4px;
}

/* -------------------------------------------------------------- carrousel */

/* Alternance automatique entre l'aperçu de l'application et les quatre
   étapes. Tout en CSS : le site reste sans JavaScript, donc la CSP peut
   rester en `default-src 'none'`. Les deux vues sont empilées dans la même
   cellule de grille et se croisent en fondu. */
.carrousel {
  display: grid;
  align-items: center;
}

.carrousel > .vue {
  grid-area: 1 / 1;
  opacity: 0;
  animation: defiler 16s infinite;
}

.carrousel > .vue:nth-child(1) {
  animation-delay: 0s;
}
.carrousel > .vue:nth-child(2) {
  animation-delay: -8s;
}

@keyframes defiler {
  0% {
    opacity: 0;
  }
  4%,
  46% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* Points de progression, purement décoratifs (aucun clic possible). */
.carrousel-points {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.carrousel-points i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--hero-separateur);
  animation: pointiller 16s infinite;
}
.carrousel-points i:nth-child(2) {
  animation-delay: -8s;
}
@keyframes pointiller {
  0%,
  46% {
    background: var(--or);
  }
  50%,
  100% {
    background: var(--hero-separateur);
  }
}

/* Sans animation : on empile les deux vues plutôt que de les laisser
   invisibles — la règle globale de réduction du mouvement écraserait la
   durée de l'animation et masquerait tout le contenu. */
@media (prefers-reduced-motion: reduce) {
  .carrousel {
    display: block;
  }
  .carrousel > .vue {
    animation: none;
    opacity: 1;
  }
  .carrousel > .vue + .vue {
    margin-top: 32px;
  }
  .carrousel-points {
    display: none;
  }
}

/* Les quatre étapes, version compacte posée sur le vert du hero. */
.etapes-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.etape-hero {
  background: var(--hero-pastille);
  border: 1px solid var(--hero-separateur);
  border-radius: var(--rayon);
  padding: 16px 16px 18px;
}

.etape-hero .rang {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--or);
  display: block;
  margin-bottom: 6px;
}

.etape-hero b {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sur-hero);
  display: block;
  margin-bottom: 4px;
}

.etape-hero span {
  font-size: 0.8rem;
  color: var(--hero-muted);
  line-height: 1.45;
}

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

.grille {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}

/* Quatre blocs côte à côte, quoi qu'il arrive, jusqu'à ce que la largeur
   ne le permette plus. */
.quatre {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) {
  .quatre {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .quatre {
    grid-template-columns: 1fr;
  }
}

.carte {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 26px 24px;
}

.carte h3 {
  margin-bottom: 0.35em;
}

.carte p:last-child {
  margin-bottom: 0;
}

.carte .source {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
  margin-top: 16px;
}

/* Numérotation des étapes « comment ça marche ». */
.etape {
  counter-increment: etapes;
  position: relative;
}
.etapes {
  counter-reset: etapes;
}
.etape h3::before {
  content: counter(etapes);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--texte-doux);
  font-family: var(--mono);
  font-size: 0.8rem;
  vertical-align: 2px;
}

/* Bande de rappel : fond crème alterné. */
.bande-alt {
  background: var(--surface-alt);
}

/* --------------------------------------------------------- confidentialité */

.bande-verte {
  background: var(--hero);
  color: var(--hero-muted);
}
.bande-verte h2,
.bande-verte h3 {
  color: var(--sur-hero);
}
.bande-verte .oeil {
  color: var(--hero-label);
}
.bande-verte strong {
  color: var(--sur-hero);
}
.bande-verte a {
  color: var(--or-doux);
}
.bande-verte .carte {
  background: var(--hero-pastille);
  border-color: var(--hero-separateur);
}

.liste-nue {
  list-style: none;
  padding: 0;
  margin: 0;
}
.liste-nue li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.liste-nue li:last-child {
  border-bottom: 0;
}
.bande-verte .liste-nue li {
  border-color: var(--hero-separateur);
}

/* ----------------------------------------------------------------- prix */

.grille-prix {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 780px;
  margin: 0 auto;
}

.prix {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 2.1rem;
  color: var(--or-lisible);
  line-height: 1.1;
  display: block;
  margin: 6px 0 2px;
}

.prix-periode {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.mention-abonnement {
  font-size: 0.85rem;
  color: var(--texte-doux);
  max-width: 68ch;
  margin: 28px auto 0;
  text-align: left;
}

/* ------------------------------------------------------------------- faq */

details {
  border-bottom: 1px solid var(--bordure);
  padding: 4px 0;
}
details summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 500;
  color: var(--encre);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--muted);
  flex: none;
}
details[open] summary::after {
  content: '\2212';
}
details > *:not(summary) {
  margin-bottom: 1em;
  color: var(--texte-doux);
}

/* --------------------------------------------------------- pages de texte */

.page-texte {
  padding: clamp(48px, 7vw, 80px) 0;
}
.page-texte h2 {
  margin-top: 2em;
  font-size: 1.5rem;
}
.page-texte h3 {
  margin-top: 1.6em;
}
.page-texte ul {
  padding-left: 1.2em;
}
.page-texte li {
  margin-bottom: 0.5em;
}
.page-texte table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.94rem;
}
.page-texte th,
.page-texte td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--bordure);
}
.page-texte th {
  font-weight: 600;
  color: var(--encre);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.maj {
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* Encadré d'avertissement, repris du ton franc de l'app. */
.encadre {
  background: var(--alerte-fond);
  border: 1px solid var(--alerte-bordure);
  border-radius: var(--rayon);
  padding: 18px 22px;
  margin: 1.6em 0;
  color: var(--alerte-encre);
}
.encadre strong {
  color: var(--alerte-forte);
}
.encadre p:last-child {
  margin-bottom: 0;
}

/* Marque un champ que l'éditeur doit renseigner avant publication. */
.a-remplir {
  background: var(--alerte-puce);
  color: var(--alerte-forte);
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px dashed var(--alerte-bordure);
}

/* ------------------------------------------------------------- pied de page */

/* Compact : le pied de page se répète sur les cinq pages, il ne doit pas
   peser autant qu'une section de contenu. Interlignes serrés, une seule
   rangée de liens. */
.pied {
  background: var(--hero);
  color: var(--hero-muted);
  padding: 26px 0 18px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.pied-grille {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
}

.pied a {
  color: var(--hero-muted);
  text-decoration: none;
  font-size: 0.84rem;
}
.pied a:hover {
  color: var(--sur-hero);
  text-decoration: underline;
}

.pied .marque {
  color: var(--sur-hero);
  font-size: 1rem;
  gap: 8px;
  margin: 0 auto 0 0;
}
.pied .marque img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.pied-bas {
  border-top: 1px solid var(--hero-separateur);
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--hero-label);
}

@media (max-width: 700px) {
  .pied .marque {
    margin-right: 0;
    width: 100%;
  }
}

/* ============================================================================
   AJOUTS — splash, carrousel, badges, animations
   ========================================================================= */

/* ------------------------------------------------------------------ splash */

body.chargement { overflow: hidden; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.6, 0, 0.4, 1);
}

.splash-parti {
  opacity: 0;
  transform: scale(1.9);
  pointer-events: none;
}

.splash-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.splash-logo-boite {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  opacity: 0;
}
.splash-actif .splash-logo {
  animation: logo-entree 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

@keyframes logo-entree {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* Ligne de scan qui balaye le logo */
.splash-scanline {
  position: absolute;
  left: -8px;
  right: -8px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  box-shadow: 0 0 16px 3px rgba(244, 194, 75, 0.55);
  opacity: 0;
  top: 0;
}
.splash-actif .splash-scanline {
  animation: scan 1.25s cubic-bezier(0.5, 0, 0.5, 1) 0.55s 1 forwards;
}

@keyframes scan {
  0%   { opacity: 0; transform: translateY(0); }
  12%  { opacity: 1; }
  50%  { opacity: 1; transform: translateY(118px); }
  88%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}

/* Coins du viseur de scan */
.splash-cadre { position: absolute; inset: -14px; opacity: 0; }
.splash-actif .splash-cadre {
  animation: cadre-apparait 0.4s ease 0.45s forwards, cadre-part 0.35s ease 1.85s forwards;
}
@keyframes cadre-apparait { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: scale(1); } }
@keyframes cadre-part { to { opacity: 0; transform: scale(1.25); } }

.coin {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--or);
  border-radius: 3px;
}
.coin-hg { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.coin-hd { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.coin-bg { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.coin-bd { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

.splash-nom {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--sur-hero);
  opacity: 0;
}
.splash-actif .splash-nom {
  animation: nom-entree 0.6s ease 1.1s forwards;
}
@keyframes nom-entree {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Entrée du site une fois le splash parti */
body.entre .entete,
body.entre main,
body.entre .pied {
  animation: site-entree 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
body.entre main { animation-delay: 0.05s; }
body.entre .pied { animation-delay: 0.1s; }

@keyframes site-entree {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------- carrousel */

.carrousel {
  position: relative;
  overflow: hidden;
  background: var(--hero);
  color: var(--sur-hero);
  cursor: pointer;
}

.carrousel-piste {
  display: flex;
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.25, 1);
  will-change: transform;
}

.carrousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 54px 0 74px;
  display: flex;
  align-items: center;
}

/* Contenu qui glisse et s'estompe avec la slide */
.carrousel-slide .slide-texte,
.carrousel-slide .telephone,
.carrousel-slide .etape {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.carrousel-slide.slide-visible .slide-texte,
.carrousel-slide.slide-visible .telephone,
.carrousel-slide.slide-visible .etape {
  opacity: 1;
  transform: translateY(0);
}
.carrousel-slide.slide-visible .telephone { transition-delay: 0.14s; }
.carrousel-slide.slide-visible .etape:nth-child(1) { transition-delay: 0.10s; }
.carrousel-slide.slide-visible .etape:nth-child(2) { transition-delay: 0.18s; }
.carrousel-slide.slide-visible .etape:nth-child(3) { transition-delay: 0.26s; }
.carrousel-slide.slide-visible .etape:nth-child(4) { transition-delay: 0.34s; }

.carrousel .oeil { color: var(--hero-label); }
.carrousel h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 14px; }
.carrousel h1,
.carrousel h2 { color: var(--sur-hero); }
.carrousel h2 { font-size: clamp(24px, 3.2vw, 34px); }
.carrousel .chapeau { color: var(--hero-muted); font-size: 16px; }

.slide-etapes .grille { margin-top: 30px; }

.slide-etapes .carte {
  position: relative;
  background: var(--hero-pastille);
  border-color: var(--hero-separateur);
  color: var(--sur-hero);
  padding: 22px 20px;
}
.slide-etapes .carte h3 { color: var(--sur-hero); font-size: 17px; }
.slide-etapes .carte p { color: var(--hero-muted); font-size: 14px; }

.etape-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--or);
  color: var(--hero);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

/* Pastilles de navigation : gris / blanc */
.carrousel-points {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 11px;
}
.carrousel-point {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(247, 243, 234, 0.28);
  cursor: pointer;
  transition: background 0.35s ease, transform 0.35s ease;
}
.carrousel-point:hover { background: rgba(247, 243, 234, 0.5); }
.carrousel-point.actif {
  background: #ffffff;
  transform: scale(1.15);
}

@media (max-width: 860px) {
  .carrousel-slide { padding: 40px 0 68px; }
  .carrousel h1 { font-size: 28px; }
}

/* --------------------------------------------- révélation au défilement */

.reveler {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveler.revele {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------- badges stores */

.badges-store {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.badge-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px 11px 17px;
  min-width: 200px;
  border: 1px solid var(--encre);
  border-radius: 11px;
  background: var(--encre);
  color: var(--fond);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.2s ease;
}
.badge-store:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
}
.badge-logo { flex: 0 0 auto; }
.badge-texte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}
.badge-petit {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.badge-grand {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 480px) {
  .badge-store { min-width: 100%; justify-content: center; }
}

/* ---------------------------------------------- respect des préférences */

@media (prefers-reduced-motion: reduce) {
  .carrousel-piste { transition: none; }
  .reveler { opacity: 1; transform: none; transition: none; }
  .carrousel-slide .slide-texte,
  .carrousel-slide .telephone,
  .carrousel-slide .etape { opacity: 1; transform: none; transition: none; }
  body.entre .entete,
  body.entre main,
  body.entre .pied { animation: none; }
}
