/* Amble — feuille de style partagée des pages statiques de amblelearn.com.
   Design system « Flow Pop » v1.1 : les variables --amble-* sont copiées du
   kit (amble-mobile/docs/design/ds-v1.1/tokens/amble.css, ne pas éditer à la
   main). Les pages ne consomment que les rôles sémantiques, jamais un hex.
   Rappels du kit : citron = célébration seulement, corail = alerte seulement,
   orange = logo/mascotte seulement, jamais de texte sous 13 px. */

/* --- Polices (auto-hébergées, OFL, sous-ensemble latin) ----------------- */
@font-face {
  font-family: 'Rubik';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/rubik-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Rubik';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/rubik-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Rubik';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/rubik-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
}

/* --- Tokens du kit v1.1 ------------------------------------------------- */
:root {
  /* Primitives (référencées seulement par la couche sémantique) */
  --amble-neutre-blanc: #ffffff;
  --amble-neutre-surface: #f2f4ee;
  --amble-neutre-graphique: #e9ede4;
  --amble-neutre-ligne: #e2e7dc;
  --amble-neutre-gris-texte: #4f5b4a;
  --amble-neutre-gris-doux: #6a7564;
  --amble-neutre-gris-desactive: #7d8778;
  --amble-foret-900: #12340f;
  --amble-foret-700: #2f6b22;
  --amble-foret-500: #3e7a2e;
  --amble-citron-500: #b4f05a;
  --amble-citron-600: #9bd843;
  --amble-citron-300: #d6f7a3;
  --amble-peche-300: #ffcfb3;
  --amble-peche-400: #ffbe99;
  --amble-peche-100: #ffe6d8;
  --amble-lavande-300: #d8ccff;
  --amble-lavande-100: #eee8ff;
  --amble-ciel-300: #c2e4ff;
  --amble-ciel-100: #e3f2ff;
  --amble-corail-500: #ff6159;
  --amble-corail-700: #c2413a;
  --amble-neutre-creme: #f8f7f3;
  --amble-orange-500: #ee6a24;

  /* Sémantique (à utiliser partout) */
  --amble-fond-canvas: var(--amble-neutre-blanc);
  --amble-fond-surface: var(--amble-neutre-surface);
  --amble-fond-carte: var(--amble-neutre-blanc);
  --amble-action-principal: var(--amble-foret-900);
  --amble-action-principal-presse: var(--amble-foret-700);
  --amble-celebration-fond: var(--amble-citron-500);
  --amble-celebration-presse: var(--amble-citron-600);
  --amble-celebration-doux: var(--amble-citron-300);
  --amble-texte-principal: var(--amble-foret-900);
  --amble-texte-secondaire: var(--amble-neutre-gris-texte);
  --amble-texte-tertiaire: var(--amble-neutre-gris-doux);
  --amble-texte-sur-action: var(--amble-neutre-blanc);
  --amble-texte-sur-celebration: var(--amble-foret-900);
  --amble-texte-lien: var(--amble-foret-700);
  --amble-texte-alerte: var(--amble-corail-700);
  --amble-famille-mouvement: var(--amble-peche-300);
  --amble-famille-mouvement-doux: var(--amble-peche-100);
  --amble-famille-attention: var(--amble-lavande-300);
  --amble-famille-attention-doux: var(--amble-lavande-100);
  --amble-famille-calme: var(--amble-ciel-300);
  --amble-famille-calme-doux: var(--amble-ciel-100);
  --amble-progression-fait: var(--amble-foret-900);
  --amble-progression-aujourdhui: var(--amble-neutre-blanc);
  --amble-progression-piste: var(--amble-lavande-100);
  --amble-bordure-defaut: var(--amble-neutre-ligne);
  --amble-bordure-forte: var(--amble-foret-900);
  --amble-retour-alerte: var(--amble-corail-500);
  --amble-illustration-collier-tension: var(--amble-corail-500);
  --amble-illustration-collier-calme: var(--amble-foret-900);
  --amble-marque-nom: var(--amble-foret-900);
  --amble-marque-nom-sur-fonce: var(--amble-neutre-creme);

  /* Dimensions */
  --amble-rayon-xs: 8px;
  --amble-rayon-sm: 18px;
  --amble-rayon-md: 26px;
  --amble-rayon-lg: 30px;
  --amble-rayon-pilule: 999px;
  --amble-taille-bouton: 58px;
  --amble-taille-bouton-compact: 44px;
  --amble-ombre-douce: 0 8px 24px rgba(0, 0, 0, 0.08);
  --amble-police-titre: 'Rubik', system-ui, sans-serif;
  --amble-police-corps: 'Inter', system-ui, sans-serif;

  --page: 1080px;
  --gouttiere: 20px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--amble-fond-canvas);
  color: var(--amble-texte-principal);
  font-family: var(--amble-police-corps);
  font-size: 17px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--amble-texte-lien);
  font-family: var(--amble-police-titre);
  font-weight: 500;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--amble-action-principal);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

/* --- Échelle typo du kit ----------------------------------------------- */
.t-display,
.t-titre,
.t-carte,
.t-chiffres-l,
.t-chiffres-m {
  font-family: var(--amble-police-titre);
  font-weight: 700;
  margin: 0;
}
.t-display {
  font-size: 34px;
  line-height: 40px;
  letter-spacing: -0.01em;
}
.t-titre {
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.01em;
}
.t-carte {
  font-size: 24px;
  line-height: 30px;
}
.t-chiffres-l {
  font-size: 64px;
  line-height: 68px;
  letter-spacing: -0.02em;
}
.t-chiffres-m {
  font-size: 34px;
  line-height: 40px;
  letter-spacing: -0.01em;
}
.t-sous-titre {
  font-family: var(--amble-police-titre);
  font-weight: 600;
  font-size: 20px;
  line-height: 26px;
  margin: 0;
}
.t-moyen {
  font-family: var(--amble-police-titre);
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
}
.t-etiquette {
  font-family: var(--amble-police-titre);
  font-weight: 600;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.01em;
}
.t-corps {
  font-size: 17px;
  line-height: 26px;
  margin: 0;
}
.t-petit {
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}
.t-legende {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  margin: 0;
}
.secondaire {
  color: var(--amble-texte-secondaire);
}
.tertiaire {
  color: var(--amble-texte-tertiaire);
}

/* --- En-tête du site --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--amble-fond-canvas) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--amble-bordure-defaut);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}
/* Icône 3D : jamais recadrée, ≥ 29 px. */
.brand .icone {
  width: 40px;
  height: 40px;
}
.brand .nom {
  height: 22px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--amble-texte-principal);
  text-decoration: none;
  font-size: 15px;
}
.site-nav a:hover {
  color: var(--amble-texte-lien);
}
.site-nav a.btn {
  color: var(--amble-texte-sur-action);
  padding: 0 20px;
}
@media (max-width: 720px) {
  .site-nav .nav-lien {
    display: none;
  }
}

/* --- Boutons (gabarit Bouton du kit) ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--amble-taille-bouton);
  padding: 0 24px;
  border-radius: var(--amble-rayon-pilule);
  border: 0;
  font-family: var(--amble-police-titre);
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.btn:active {
  transform: scale(0.98);
}
.btn-compact {
  height: var(--amble-taille-bouton-compact);
  padding: 0 20px;
  font-size: 15px;
}
.btn-principal {
  background: var(--amble-action-principal);
  color: var(--amble-texte-sur-action);
}
.btn-principal:hover {
  background: var(--amble-action-principal-presse);
}
.btn-secondaire {
  background: transparent;
  color: var(--amble-texte-principal);
  box-shadow: inset 0 0 0 1.5px var(--amble-bordure-forte);
}
.btn-secondaire:hover {
  background: var(--amble-fond-surface);
}

/* --- Badges stores ------------------------------------------------------
   Pilules forêt au gabarit Bouton (58 px), glyphe du store + libellé sur
   deux lignes, à la manière des badges Apple / Google. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: var(--amble-taille-bouton);
  padding: 0 24px 0 20px;
  border-radius: var(--amble-rayon-pilule);
  background: var(--amble-action-principal);
  color: var(--amble-texte-sur-action);
  text-decoration: none;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.store:hover {
  background: var(--amble-action-principal-presse);
}
.store:active {
  transform: scale(0.98);
}
.store svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.store span {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.store small {
  font-family: var(--amble-police-corps);
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  opacity: 0.85;
}
.store strong,
.doc .store strong {
  color: inherit;
  font-family: var(--amble-police-titre);
  font-weight: 600;
  font-size: 17px;
  line-height: 20px;
}
/* Sur fond forêt : badge blanc, texte forêt. */
.sur-fonce .store {
  background: var(--amble-fond-carte);
  color: var(--amble-texte-principal);
}
.sur-fonce .store:hover {
  background: var(--amble-fond-surface);
}

/* --- Chips & cartes ----------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--amble-rayon-pilule);
  background: var(--amble-fond-surface);
  color: var(--amble-texte-principal);
  font-family: var(--amble-police-titre);
  font-weight: 600;
  font-size: 13px;
  line-height: 20px;
}
.chip svg {
  width: 14px;
  height: 14px;
}
.chip-mouvement {
  background: var(--amble-famille-mouvement-doux);
}
.chip-attention {
  background: var(--amble-famille-attention-doux);
}
.chip-calme {
  background: var(--amble-famille-calme-doux);
}
.carte {
  background: var(--amble-fond-carte);
  border-radius: var(--amble-rayon-md);
  box-shadow: var(--amble-ombre-douce);
  padding: 24px;
}

/* --- Pied de page ------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--amble-bordure-defaut);
  background: var(--amble-fond-surface);
  padding: 40px 0 48px;
}
.site-footer .wrap {
  display: grid;
  gap: 24px;
}
.site-footer .pied-haut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--amble-texte-secondaire);
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--amble-texte-lien);
}
.site-footer .copyright {
  color: var(--amble-texte-tertiaire);
}

/* --- Pages documents (CGU, confidentialité, support…) ------------------ */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px var(--gouttiere) 80px;
}
.doc .top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.doc .lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
}
.doc h1 {
  font-family: var(--amble-police-titre);
  font-weight: 700;
  font-size: 34px;
  line-height: 40px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.doc .updated {
  color: var(--amble-texte-tertiaire);
  font-size: 14px;
  line-height: 20px;
  margin: 0 0 32px;
}
.doc h2 {
  font-family: var(--amble-police-titre);
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  margin: 40px 0 12px;
}
.doc h3 {
  font-family: var(--amble-police-titre);
  font-weight: 600;
  font-size: 20px;
  line-height: 26px;
  margin: 24px 0 8px;
}
.doc p,
.doc li {
  font-size: 17px;
  line-height: 26px;
  color: var(--amble-texte-secondaire);
}
.doc ul {
  padding-left: 22px;
  margin: 8px 0;
}
.doc li {
  margin-bottom: 8px;
}
.doc strong {
  color: var(--amble-texte-principal);
  font-weight: 500;
}
.doc .card {
  background: var(--amble-fond-carte);
  border-radius: var(--amble-rayon-md);
  box-shadow: var(--amble-ombre-douce);
  padding: 20px 24px;
  margin: 20px 0;
}
.doc .card p {
  margin: 0;
}
.doc .note {
  background: var(--amble-fond-surface);
  border-radius: var(--amble-rayon-sm);
  padding: 16px 20px;
  font-size: 15px;
  line-height: 22px;
  color: var(--amble-texte-principal);
}
.doc table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
  line-height: 22px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px;
  border-bottom: 1px solid var(--amble-bordure-defaut);
  color: var(--amble-texte-secondaire);
}
.doc th {
  font-family: var(--amble-police-titre);
  font-weight: 600;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.01em;
  color: var(--amble-texte-tertiaire);
}
.doc .faq-item h3 {
  margin-bottom: 4px;
}

/* Bandeau « télécharger l'app » en bas des pages documents. */
.app-cta {
  margin-top: 56px;
  padding: 32px;
  border-radius: var(--amble-rayon-lg);
  background: var(--amble-fond-surface);
  display: grid;
  gap: 20px;
  justify-items: start;
}
.app-cta .tete {
  display: flex;
  align-items: center;
  gap: 16px;
}
.app-cta .tete img {
  width: 56px;
  height: 56px;
  flex: none;
}
.app-cta .tete p {
  margin: 0;
}
.doc .app-cta .t-sous-titre {
  color: var(--amble-texte-principal);
}

@media (max-width: 520px) {
  :root {
    --gouttiere: 16px;
  }
  .doc h1 {
    font-size: 28px;
    line-height: 34px;
  }
  .stores {
    width: 100%;
    flex-direction: column;
  }
  .store {
    width: 100%;
    justify-content: center;
  }
  .app-cta {
    padding: 24px 20px;
  }
}

/* --- Landing (index.html) ---------------------------------------------- */
.landing section {
  padding: 72px 0;
}
.hero {
  padding: 56px 0 72px;
  background: var(--amble-fond-surface);
}
.landing .hero {
  padding: 56px 0 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  margin: 16px 0;
}
.hero .chip {
  background: var(--amble-fond-carte);
}
.hero .t-corps {
  max-width: 30ch;
  margin-bottom: 28px;
}
.hero .visuel {
  display: flex;
  justify-content: center;
}
.hero .points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
/* Vidéo produit (720 × 900, muette, en boucle). */
.video-produit {
  width: 340px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--amble-rayon-lg);
  background: var(--amble-fond-carte);
  box-shadow: var(--amble-ombre-douce);
}
.centre {
  text-align: center;
}
.centre .t-corps {
  max-width: 46ch;
  margin: 12px auto 0;
}
.fond-surface {
  background: var(--amble-fond-surface);
}
.grille-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.benef {
  display: grid;
  gap: 10px;
  align-content: start;
}
.benef .ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.benef .ico svg {
  width: 24px;
  height: 24px;
}
.benef .t-sous-titre {
  font-size: 17px;
  line-height: 22px;
}
.ico-mouvement {
  background: var(--amble-famille-mouvement-doux);
}
.ico-attention {
  background: var(--amble-famille-attention-doux);
}
.ico-calme {
  background: var(--amble-famille-calme-doux);
}
.ico-neutre {
  background: var(--amble-fond-surface);
}
.etapes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.etape {
  display: grid;
  gap: 8px;
  align-content: start;
}
.etape .num {
  width: 44px;
  height: 44px;
  border-radius: var(--amble-rayon-pilule);
  background: var(--amble-action-principal);
  color: var(--amble-texte-sur-action);
  display: grid;
  place-items: center;
  font-family: var(--amble-police-titre);
  font-weight: 700;
  font-size: 20px;
}
.programme {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.unite {
  display: grid;
  gap: 6px;
}
.faq {
  max-width: 720px;
}
.faq h2 {
  margin-bottom: 12px;
}
.faq details {
  border-bottom: 1px solid var(--amble-bordure-defaut);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--amble-police-titre);
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary svg {
  width: 20px;
  height: 20px;
  flex: none;
  transform: rotate(90deg);
  transition: transform 200ms ease-out;
}
.faq details[open] summary svg {
  transform: rotate(-90deg);
}
.faq details p {
  margin: 0 0 20px;
  color: var(--amble-texte-secondaire);
}
@media (prefers-reduced-motion: reduce) {
  .faq summary svg {
    transition: none;
  }
}
.cta-final {
  background: var(--amble-action-principal);
  color: var(--amble-texte-sur-action);
  border-radius: var(--amble-rayon-lg);
  padding: 48px;
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
}
.cta-final img {
  width: 88px;
  height: 88px;
}
.sans-haut {
  padding-top: 0 !important;
}
@media (max-width: 860px) {
  .landing section,
  .landing .hero {
    padding: 56px 0;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grille-4 {
    grid-template-columns: 1fr 1fr;
  }
  .etapes,
  .programme {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .grille-4 {
    grid-template-columns: 1fr;
  }
  .cta-final {
    padding: 32px 20px;
  }
}

/* --- Lien de langue (barre du site) : renvoie vers la même page dans
   l'autre langue, au style des liens de navigation. */
.site-nav .lang-lien {
  font-family: var(--amble-police-titre);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--amble-texte-secondaire);
}
.site-nav .lang-lien {
  gap: 8px;
}
.lang-lien .drapeau {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--amble-bordure-defaut);
}
.site-nav .lang-lien:hover {
  color: var(--amble-texte-principal);
}

/* Très petit écran : l'icône 3D seule suffit, le nom libère la place. */
@media (max-width: 359px) {
  .site-header .brand .nom {
    display: none;
  }
}
