/* Flowmori — site vitrine.
 *
 * Les couleurs sont celles de l'application, palette Lagon
 * (app/lib/core/theme/app_theme_yoganime_lagon.dart) : le sarcelle porte les
 * boutons, et les sept fonds d'illustration — un par position, du debout au
 * dos — posent les illustrations comme à l'écran. Les polices sont celles de
 * l'application, servies par le site.
 */

@font-face { font-family: "Caprasimo"; src: url("./assets/fonts/Caprasimo-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Figtree"; src: url("./assets/fonts/Figtree-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("./assets/fonts/Figtree-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --papier: #F2FBF8;    /* bg */
  --doux-fond: #E3F6F0; /* bgSoft */
  --surface: #FFFFFF;
  --encre: #263646;     /* text */
  --doux: #576778;      /* textSecondary */
  --trait: #D5EBE5;
  --profond: #0E7C76;   /* accentStrong : boutons, texte blanc dessus */
  --profond-survol: #0B6862;
  --accent: #13998F;    /* accent */
  --nuit: #0F1B21;      /* fondSombre : bandeaux sombres */
  --lilas: #EFEAFF;     /* accent3Soft */
  --ombre: 38, 54, 70;  /* l'encre, pour les ombres */
  /* Les sept fonds d'illustration, un par position. */
  --fond1: #FFE9E5;     /* debout */
  --fond2: #ECFCD4;     /* mains au sol */
  --fond3: #C8FDF3;     /* assis, à genoux */
  --fond4: #D4F1FE;     /* ventre, côté */
  --fond5: #E7E7FE;     /* dos */
  --fond6: #FFF2D7;
  --fond7: #FFE3FB;

  --affiche: "Caprasimo", Georgia, serif;
  --texte: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arrondi: 22px;
  --largeur: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 17px/1.6 var(--texte);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--profond); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--affiche); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }

.cadre { width: min(var(--largeur), 100% - 40px); margin-inline: auto; }
.cadre-etroit { width: min(760px, 100% - 40px); }

/* ── Boutons ─────────────────────────────────────────────── */

.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 0;
  background: var(--profond); color: #fff;
  font: 600 1rem/1 var(--texte); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.bouton:hover { transform: translateY(-1px); background: var(--profond-survol); }
.bouton-petit { padding: 10px 18px; font-size: .95rem; }
.bouton-clair { background: transparent; color: var(--profond); box-shadow: inset 0 0 0 2px var(--profond); }
.bouton-clair:hover { background: var(--profond); color: #fff; }

.boutons-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 16px; border-radius: 14px;
  background: var(--encre); color: #fff; text-decoration: none;
  min-width: 190px;
}
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store small { display: block; font-size: .72rem; opacity: .8; line-height: 1.2; }
.store strong { display: block; font-size: 1.12rem; font-weight: 600; line-height: 1.2; }
.store[aria-disabled="true"] { background: #3F4F5E; cursor: default; }
/* Badges officiels : leur dessin est imposé, on n'en règle que la hauteur. */
.badge { display: inline-block; line-height: 0; }
.badge img { height: 54px; width: auto; }
/* Le badge Google porte une marge transparente dans son image. */
.badge-google img { height: 80px; margin: -13px -10px; }

/* Les appels : les stores, et l'essai sans installation à côté. */
.appels { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bouton-essai { padding: 16px 24px; background: var(--surface); color: var(--profond); box-shadow: inset 0 0 0 2px var(--profond); }
.bouton-essai:hover { background: var(--profond); color: #fff; }
.bouton-essai[hidden] { display: none; }
.preuve { margin: -10px 0 26px; font-weight: 600; color: var(--encre); }
.preuve span { color: #C9A227; letter-spacing: .1em; margin-right: 6px; }

/* ── En-tête ─────────────────────────────────────────────── */

.entete {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}
.entete-ligne { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.marque { display: inline-flex; align-items: center; gap: 10px; font-family: var(--affiche); font-size: 1.6rem; color: var(--encre); text-decoration: none; }
.marque img { border-radius: 9px; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.bouton) { color: var(--encre); text-decoration: none; font-weight: 600; font-size: .98rem; }
.menu a:not(.bouton):hover { color: var(--accent); }
.menu-bouton { display: none; }

/* ── Ouverture : le tirage ───────────────────────────────── */

.ouverture { padding: 64px 0 88px; overflow: hidden; }
.ouverture-grille { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.sur-titre { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; color: var(--accent); margin-bottom: 16px; }
.chapeau { font-size: 1.2rem; color: var(--doux); margin: 22px 0 30px; max-width: 34em; }
.note { margin-top: 18px; font-size: .92rem; color: var(--doux); }

.tirage { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.eventail { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1.25; }
/* Comme l'éventail de l'accueil : le nom en haut, l'illustration détourée
   posée en bas, sur le fond de sa position (--fond, donné par script.js). */
.carte {
  position: absolute; left: 50%; bottom: 4%;
  width: 31%; aspect-ratio: 0.562;
  border-radius: 14px; overflow: hidden;
  background: var(--fond, var(--surface)); border: 3px solid var(--surface);
  display: flex; flex-direction: column;
  box-shadow: 0 18px 40px rgba(var(--ombre), 0.22);
  transform-origin: 50% 120%;
  transform: translateX(calc(-50% + var(--decalage, 0%))) rotate(var(--angle)) translateY(var(--leve, 0));
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}
.carte img { flex: 1; min-height: 0; width: 100%; object-fit: contain; object-position: center bottom; padding: 0 4% 8%; }
.carte-nom {
  padding: 12% 9% 0; font-weight: 600; font-size: clamp(.6rem, 1.3vw, .82rem); line-height: 1.2;
  color: var(--encre); text-align: center;
}
/* Une carte de côté n'est visible que sur sa bande extérieure (la voisine
   la couvre à partir de 39 % de sa largeur) : le nom s'y replie. */
.carte-nom.gauche { text-align: left; padding-right: 56%; }
.carte-nom.droite { text-align: right; padding-left: 56%; }
.carte.rentree { transform: translateX(-50%) rotate(0deg) translateY(30%); opacity: 0; }
.carte:hover { --leve: -14px; }

/* ── Constat ─────────────────────────────────────────────── */

.constat { background: var(--nuit); color: #fff; padding: 72px 0; }
.constat-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.constat-question { font-family: var(--affiche); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
.constat-reponse { font-size: 1.15rem; color: #CFE3E0; }

/* ── Sections ────────────────────────────────────────────── */

.rituel, .voix, .pratiques, .appli, .pour-qui, .questions { padding: 104px 0 0; }
.questions { padding-bottom: 104px; }
.tete-section { max-width: 720px; margin-bottom: 52px; }
.tete-section p { margin-top: 16px; font-size: 1.15rem; color: var(--doux); }

/* Cadre de téléphone : la capture brute, sans barre système. */
.telephone {
  margin: 0; width: min(300px, 100%);
  border-radius: 38px; padding: 9px; background: var(--encre);
  box-shadow: 0 30px 60px rgba(var(--ombre), 0.20);
}
.telephone img { border-radius: 30px; width: 100%; aspect-ratio: 430 / 932; object-fit: cover; object-position: top; }
.telephones, .paire { display: flex; gap: 22px; justify-content: center; align-items: flex-start; }
.telephone-decale { margin-top: 64px; }

/* Rituel : la seule vraie suite d'étapes de la page, donc numérotée. */
.rituel-grille { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.etapes { list-style: none; padding: 0; margin: 0; counter-reset: etape; display: grid; gap: 34px; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; }
.etapes li::before {
  content: counter(etape) ".";
  grid-row: span 2;
  font-family: var(--affiche); font-size: 2.6rem; line-height: 1; color: var(--accent);
}
.etapes h3 { margin-bottom: 6px; }
.etapes p { color: var(--doux); }

/* Pratiques : chacune sur un fond d'illustration. */
.pratiques-grille { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pratique { border-radius: var(--arrondi); padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 20px; }
.pratique img { width: 78%; aspect-ratio: 1; object-fit: contain; margin: 0 auto; transition: transform .3s ease; }
.pratique:hover img { transform: translateY(-6px); }
.pratique h3 { margin-bottom: 6px; }
.pratique p { font-size: .98rem; color: var(--doux); }
.pratique-hatha { background: var(--fond1); }
.pratique-yin { background: var(--fond3); }
.pratique-pranayama { background: var(--fond5); }
.pratique-pilates { background: var(--fond4); }

/* La voix : ce qu'une capture ne montre pas, on le fait entendre. */
.voix-grille { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.voix-texte p { margin-top: 18px; font-size: 1.15rem; color: var(--doux); }
.bouton-ecoute { margin-top: 28px; padding: 16px 26px; font-size: 1.05rem; }
.ecoute-icone { display: inline-block; width: 1.1em; text-align: center; }
.precision { font-size: .92rem !important; font-style: italic; }
.voix-texte .precision { margin-top: 18px; }
/* Les trois vues du lecteur, en attendant la vidéo Flowmori. */
.vues-lecteur { margin: 0; }
.vues-lecteur img { width: 100%; border-radius: var(--arrondi); }
/* La vidéo, dans le même cadre que les captures. Le bouton pause sous le
   cadre : posé sur l'image, il se confondait avec ceux de l'application. */
.telephone-video { position: relative; justify-self: center; margin-bottom: 56px; }
.telephone-video video {
  display: block; width: 100%; aspect-ratio: 428 / 960; object-fit: cover;
  border-radius: 30px; background: var(--trait);
}
.video-bouton {
  position: absolute; left: 50%; bottom: -52px; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(var(--ombre), .72); color: #fff; font-size: .8rem;
  display: grid; place-items: center;
}

/* Les points clés : une planche, le dessin nu et l'annoté l'un sur l'autre,
   en fondu — les deux n'ont pas tout à fait le même cadre, une coupe sèche
   ferait sauter le personnage. */
.points-cles { padding: 104px 0 0; }
.points-cles-grille { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.points-cles-texte p:not(.sur-titre) { margin-top: 18px; font-size: 1.15rem; color: var(--doux); }
.points-cles-texte h2 { margin-top: 0; }
.exemples { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.exemple {
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--trait);
  font: 600 1rem/1 var(--texte);
}
.exemple small { font-weight: 400; color: var(--doux); margin-left: 4px; }
.exemple[aria-pressed="true"] { background: var(--profond); color: #fff; box-shadow: none; }
.exemple[aria-pressed="true"] small { color: #CFE3E0; }
.planche {
  position: relative; margin: 0; aspect-ratio: 1; border-radius: var(--arrondi);
  background: var(--fond, var(--surface)); overflow: hidden;
  box-shadow: 0 24px 50px rgba(var(--ombre), .14);
  transition: background .4s ease;
}
.planche img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom; transition: opacity .45s ease;
}
.planche-nu { opacity: 0; }
.planche.nue .planche-nu { opacity: 1; }
.planche.nue .planche-notes { opacity: 0; }
/* La pastille de la fiche, au même coin : bas gauche. */
.pastille-points {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--encre); font: 600 .95rem/1 var(--texte);
  box-shadow: 0 6px 16px rgba(var(--ombre), .16);
}
.pastille-points svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pastille-points[aria-pressed="true"] { background: var(--profond); color: #fff; }

/* Le reste de l'application : une grille compacte. */
.fonctions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.fonctions img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
  border-radius: 18px; background: var(--encre); padding: 6px;
  box-shadow: 0 16px 34px rgba(var(--ombre),.14); margin-bottom: 16px;
}
.fonctions h3 { font-size: 1.2rem; margin-bottom: 6px; }
.fonctions p { font-size: .98rem; color: var(--doux); }
.fonctions-precision { margin-top: 32px; color: var(--doux); }

/* Engagements. */
.engagements { margin-top: 104px; background: var(--doux-fond); padding: 64px 0; }
.engagements-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.engagements h3 { margin-bottom: 8px; }
.engagements p { color: var(--doux); }

/* Témoignages (à activer avec de vrais avis). */
.temoignages { padding: 104px 0 0; }
.temoignages-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.temoignages blockquote { margin: 0; border-radius: var(--arrondi); background: var(--lilas); padding: 28px; }
.temoignages cite { display: block; margin-top: 14px; font-style: normal; font-weight: 600; color: var(--doux); }

/* Le nom. */
.nom-marque { padding: 104px 0 0; }
.nom-grille { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.nom-image { margin: 0; }
.nom-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 32px; box-shadow: 0 24px 50px rgba(var(--ombre), .16); }
.nom-texte > p:not(.sur-titre) { margin-top: 22px; font-size: 1.15rem; color: var(--doux); }
.nom-mots { margin: 28px 0 0; display: grid; gap: 18px; }
.nom-mots > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; align-items: baseline;
  padding-bottom: 18px; border-bottom: 1px solid var(--trait); }
.nom-mots dt { font-family: var(--affiche); font-size: 1.7rem; color: var(--profond); }
/* Caprasimo n'a pas d'idéogramme : le navigateur prend une police du système. */
.nom-mots dt span { font-family: system-ui, sans-serif; font-size: 1.3rem; color: var(--accent); margin-left: 4px; }
.nom-mots dd { margin: 0; font-size: 1.08rem; color: var(--doux); }

.pour-qui-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pour-qui-grille > div { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--arrondi); padding: 28px; }
.pour-qui-grille h3 { margin-bottom: 10px; }
.pour-qui-grille p { color: var(--doux); }

/* Questions. */
details { border-bottom: 1px solid var(--trait); padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--affiche); font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--doux); }

/* Installer. */
.installer { background: var(--fond3); padding: 80px 0; }
.installer-ligne { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.installer h2 { max-width: 15em; }

/* Pied. */
.pied { padding: 36px 0; border-top: 1px solid var(--trait); }
.pied-ligne { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pied nav { display: flex; gap: 24px; flex-wrap: wrap; }
.pied nav a { color: var(--doux); text-decoration: none; }
.pied nav a:hover { color: var(--encre); }

/* ── Pages de texte (confidentialité, assistance, mentions) ── */

.page { padding: 72px 0 104px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.page .maj { color: var(--doux); margin-bottom: 40px; }
.page h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.page p, .page li { color: var(--doux); }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 1.2em; }
.page li + li { margin-top: 6px; }
.a-completer { background: var(--fond6); padding: 1px 6px; border-radius: 4px; }

/* ── Apparition au défilement ─────────────────────────────── */

.apparait { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.apparait.vue { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carte, .apparait, .bouton, .pratique img, .planche, .planche img { transition: none; }
  .apparait { opacity: 1; transform: none; }
}

/* ── Écrans étroits ───────────────────────────────────────── */

@media (max-width: 960px) {
  .ouverture-grille, .rituel-grille, .constat-grille, .voix-grille, .points-cles-grille, .nom-grille { grid-template-columns: 1fr; }
  .nom-image { max-width: 420px; }
  .pratiques-grille, .engagements-grille, .fonctions { grid-template-columns: 1fr 1fr; }
  .pour-qui-grille, .temoignages-grille { grid-template-columns: 1fr; }
  .ouverture { padding-top: 28px; }
  /* L'éventail, la signature, passe au-dessus du titre : en dessous, il
     tombait sous le pli et le haut de page n'était que du texte. */
  .tirage { order: -1; gap: 14px; }
  .eventail { max-width: 380px; }
}

@media (max-width: 720px) {
  .menu-bouton {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .menu-bouton span { display: block; height: 2px; background: var(--encre); border-radius: 2px; transition: transform .2s ease; }
  .menu-bouton[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-bouton[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 22px 20px 26px; background: var(--papier); border-bottom: 1px solid var(--trait);
    display: none;
  }
  .menu.ouvert { display: flex; }
  /* Pages de texte : un seul lien, toujours visible, pas de menu à déplier. */
  .menu.menu-simple { display: flex; position: static; padding: 0; border: 0; background: none; }
  .pratiques-grille, .engagements-grille { grid-template-columns: 1fr; }
  .fonctions { gap: 26px 14px; }
  .fonctions h3 { font-size: 1.05rem; }
  .fonctions p { font-size: .92rem; }
  .appels, .appels .boutons-stores { width: 100%; }
  .bouton-essai { justify-content: center; width: 100%; }
  .eventail { max-width: 300px; }
  /* À cette taille, la bande visible d'une carte de côté ne tient plus un
     mot : seul le nom du centre reste. */
  .carte-nom.gauche, .carte-nom.droite { visibility: hidden; }
  #tirer { display: none; }
  .pratique { flex-direction: row; align-items: center; padding: 18px; }
  .pratique img { width: 30%; flex: none; margin: 0; }
  .telephone { width: min(250px, 100%); }
  .paire .telephone, .telephones .telephone { width: 46%; }
  .telephone-decale { margin-top: 40px; }
  .rituel, .voix, .pratiques, .points-cles, .nom-marque, .appli, .pour-qui, .questions, .temoignages { padding-top: 76px; }
  .nom-mots > div { grid-template-columns: 1fr; gap: 4px; }
}
