/* Gobly, site vitrine. Le style de l'app (décision 29, « l'écran est la scène » ; DA « BG3 + Clash
   Royale ») : la scène 3D en grand, une interface minimale posée dessus, des panneaux sombres aux coins
   ronds cernés d'encre avec leur ombre dure, un seul bouton d'or, texte crème, titres en Almendra
   cernés d'encre, texte en Alegreya. Gobly, la mascotte, guide la visite. */

/* Polices libres (SIL OFL, voir fonts/OFL-*.txt), servies par le site. Le logo est un dessin (SVG). */
@font-face { font-family: 'Almendra'; src: url(/fonts/almendra-gras.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Alegreya'; src: url(/fonts/alegreya.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Alegreya'; src: url(/fonts/alegreya-italique.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

/* Les jetons de l'app (apps/mobile/src/ui/theme.ts). */
:root {
  color-scheme: dark;
  --nuit: #100e1f;
  --fond: #0b0a18;
  --encre: #05040b;
  --creme: #f3ead6;
  --discret: #a9a3b0;
  --filet: rgba(243, 234, 214, .12);
  --trait: rgba(242, 236, 224, .35);
  --action: #e9cf7c;
  --or: #f2b53c;
  --or-arete: #ffe08a;
  --or-tranche: #b9770e;
  --sur-or: #1d1405;
  --panneau: rgba(242, 236, 224, .05);
  --panneau-haut: rgba(242, 236, 224, .09);
  --parchemin: #f3e6c4;
  --sur-parchemin: #2a2113;
  --barre: #1a1730;
  --violet: #3b2f63;
  --soin: #57d67c;
  /* Les couleurs des campagnes (JEWELS) : l'ambiance, les lueurs. */
  --styx: #0f8a82; --jade: #1f7a4a; --rubis: #b3261e; --saphir: #2748b0; --braise: #cf5318; --amethyste: #6a3fb8;
  --marge: 16px;
  --titre: 'Almendra', Georgia, serif;
  --texte: 'Alegreya', Georgia, serif;
  /* Un titre de l'app : crème, cerné d'encre, posé sur son ombre. */
  --cerne: 0 .05em 0 var(--encre), 0 0 .5em rgba(5, 4, 11, .55);
  --ombre-dure: 0 6px 0 var(--encre);
}
@media (min-width: 700px) { :root { --marge: 32px; } }
@media (min-width: 1100px) { :root { --marge: 56px; } }

* { box-sizing: border-box; }
html { background: var(--fond); overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; color: var(--creme); overflow-x: clip; min-height: 100vh;
  font: 18px/1.55 var(--texte); font-variant-numeric: lining-nums;
  -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility;
  /* Le ciel étoilé de l'app, en quelques points, et la lueur sarcelle de l'accueil. */
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(243, 234, 214, .55), transparent),
    radial-gradient(1px 1px at 68% 9%, rgba(243, 234, 214, .4), transparent),
    radial-gradient(1.5px 1.5px at 84% 34%, rgba(243, 234, 214, .35), transparent),
    radial-gradient(1px 1px at 33% 52%, rgba(243, 234, 214, .3), transparent),
    radial-gradient(1px 1px at 52% 76%, rgba(243, 234, 214, .35), transparent),
    radial-gradient(1.5px 1.5px at 6% 88%, rgba(243, 234, 214, .3), transparent),
    var(--fond);
  background-size: 420px 520px, 420px 520px, 420px 520px, 420px 520px, 420px 520px, 420px 520px, auto;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--action); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--or-arete); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--titre); font-weight: 700; text-wrap: balance; line-height: 1.08; }
h1, h2 { text-shadow: var(--cerne); -webkit-text-stroke: .045em var(--encre); paint-order: stroke fill; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
b, strong { font-weight: 700; }
::selection { background: var(--or); color: var(--sur-or); }

.evitement { position: absolute; left: var(--marge); top: -100px; z-index: 50; background: var(--creme); color: var(--encre); padding: 10px 14px; border-radius: 10px; }
.evitement:focus { top: 10px; }

/* Un sur-titre : le texte courant, en petit, jamais en capitales. */
.surtitre { color: var(--action); font-size: 1rem; font-style: italic; }
.note { color: var(--discret); font-size: .95rem; }
mark.a-completer { background: rgba(242, 181, 60, .2); color: var(--action); padding: 0 .2em; border-radius: 3px; }
.etat {
  display: inline-block; padding: 1px 10px; border-radius: 999px; font: 700 .8rem/1.5 var(--titre); white-space: nowrap;
  color: var(--creme); box-shadow: inset 0 0 0 1.5px var(--trait); vertical-align: .1em;
}
.etat.pret { background: var(--or); color: var(--sur-or); box-shadow: 0 0 0 2px var(--encre); }
.etat.mien { background: var(--creme); color: var(--encre); box-shadow: 0 0 0 2px var(--encre); }

/* L'en-tête : le logo en haut à gauche, comme dans l'app ; les onglets au milieu, en étiquettes. */
.tete {
  position: relative; z-index: 20; display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 10px 16px; padding: 14px var(--marge) 10px;
}
.marque { color: var(--creme); display: block; justify-self: start; padding: 4px 0; border-radius: 8px; }
.marque:hover { color: var(--or-arete); }
.logo { height: 30px; width: auto; filter: drop-shadow(0 2px 0 var(--encre)); }
.logo.petit { height: 24px; display: inline-block; margin-bottom: 6px; }
.menu {
  grid-column: 1 / -1; grid-row: 2; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--marge)); padding: 2px var(--marge) 4px;
}
.menu::-webkit-scrollbar { display: none; }
.menu a, .ouvrir {
  flex: none; color: var(--creme); text-decoration: none; font: 700 .98rem/1 var(--titre);
  padding: 9px 14px; border-radius: 999px; transition: background-color .15s, color .15s;
}
.menu a:hover { background: var(--panneau-haut); color: var(--creme); }
.ouvrir { justify-self: end; box-shadow: inset 0 0 0 1.5px var(--trait); }
.ouvrir:hover { background: var(--creme); color: var(--encre); }
@media (min-width: 900px) {
  .tete {
    position: sticky; top: 0; grid-template-columns: 1fr auto 1fr; padding-block: 12px;
    background: rgba(11, 10, 24, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--filet);
  }
  .menu { grid-column: 2; grid-row: 1; margin: 0; padding: 4px; background: var(--barre); border-radius: 999px; box-shadow: 0 0 0 2px var(--encre), 0 4px 0 var(--encre); }
  .ouvrir { justify-self: end; }
}

/* Le bouton d'or, cerné d'encre, sur sa tranche (le seul de l'écran). */
.actions { display: grid; gap: 14px; justify-items: start; width: 100%; max-width: 440px; }
.bouton {
  display: flex; justify-content: center; align-items: center; width: 100%; min-height: 56px; padding: 12px 24px;
  border-radius: 14px; background: var(--or); color: var(--sur-or); text-decoration: none; border: 3px solid var(--encre);
  font: 700 1.2rem/1.2 var(--titre); box-shadow: inset 0 -5px 0 var(--or-tranche), inset 0 2px 0 var(--or-arete), 0 5px 0 var(--encre);
  transition: transform .08s, box-shadow .08s;
}
a.bouton:hover { color: var(--sur-or); transform: translateY(-2px); box-shadow: inset 0 -5px 0 var(--or-tranche), inset 0 2px 0 var(--or-arete), 0 7px 0 var(--encre); }
a.bouton:active { transform: translateY(3px) scale(.98); box-shadow: inset 0 -2px 0 var(--or-tranche), 0 2px 0 var(--encre); }
.bouton[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
/* Sur la page de repli, l'app est le bouton d'or ; le navigateur passe en second. */
.repli #web { background: rgba(5, 4, 11, .5); color: var(--creme); box-shadow: inset 0 0 0 1.5px var(--trait), 0 5px 0 var(--encre); border-color: var(--encre); }
.magasins { display: flex; flex-wrap: wrap; gap: 10px; }
.magasin {
  display: grid; padding: 8px 16px 9px; border-radius: 12px; min-width: 150px;
  background: var(--encre); color: var(--creme); box-shadow: inset 0 0 0 1.5px var(--trait); text-decoration: none;
  font: 700 1.05rem/1.15 var(--titre);
}
.magasin small { font: 400 .78rem/1.2 var(--texte); color: var(--discret); }
.magasin[aria-disabled="true"] { cursor: default; }
a.magasin:hover { box-shadow: inset 0 0 0 1.5px var(--action); color: var(--creme); }
.bureau { color: var(--discret); font-size: .92rem; }

/* La parole de Gobly : son portrait et sa bulle de parchemin, comme dans le prologue. */
.parole { display: flex; align-items: flex-start; gap: 10px; max-width: 460px; }
.portrait {
  flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--creme), 0 0 0 6px var(--encre), 0 6px 0 3px var(--encre);
  animation: hoche 5s ease-in-out infinite;
}
.bulle {
  position: relative; padding: 10px 16px 12px; border-radius: 16px; background: var(--parchemin); color: var(--sur-parchemin);
  border: 3px solid var(--encre); box-shadow: 0 5px 0 var(--encre); font-size: 1rem; line-height: 1.45;
}
.bulle::before {
  content: ""; position: absolute; left: -11px; top: 18px; width: 16px; height: 16px; background: var(--parchemin);
  border-left: 3px solid var(--encre); border-bottom: 3px solid var(--encre); transform: rotate(45deg);
}
.bulle-nom { font: 700 1.05rem/1.2 var(--titre); color: #8a5a12; }
@keyframes hoche { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg) translateY(-1px); } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Le héros : la key art peinte (Gobly, son d20 d'or et les quatre prétirés autour du feu), la promesse
   posée dessus. Téléphone : un recadrage sur Gobly et les héros, le texte dessous. Tablette : l'image
   entière, le texte dessous. Grand écran (≥ 1200 px) : le texte à gauche, l'image calée pour que le
   groupe (de 25 % à 83 % de sa largeur) tienne entre la fin du texte (--g) et le bord droit (--d),
   sans jamais passer sous le texte ; le ciel continue au-dessus dans sa couleur. */
.heros { position: relative; display: grid; isolation: isolate; }
.heros-scene { position: relative; z-index: -1; background: #2b0113; }
.heros-scene img { width: 100%; aspect-ratio: 3200 / 1910; object-fit: cover; }
.heros-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 62%, var(--fond)); }
.heros-texte { display: grid; gap: 16px; padding: 0 var(--marge) 56px; margin-top: -20px; }
.heros h1 { font-size: clamp(2.5rem, 10vw, 4.4rem); max-width: 14ch; }
.pitch { font-size: 1.12rem; max-width: 46ch; }
.heros .actions { margin-top: 6px; }
.code { font: 700 1.7rem var(--texte); letter-spacing: .12em; color: var(--action); }
@media (min-width: 700px) {
  .heros-scene img { aspect-ratio: 5090 / 2160; }
  .heros-texte { margin-top: -56px; }
}
@media (min-width: 1200px) {
  .heros { min-height: min(86vh, 900px); align-items: center; }
  .heros-scene {
    position: absolute; inset: 0; overflow: hidden; container-type: size;
    --g: calc(max(0px, (100cqw - 1240px - 2 * var(--marge)) / 2) + var(--marge) + 580px);
    --d: calc(100cqw - 16px);
    --l: calc((var(--d) - var(--g)) * 1.7225);
  }
  .heros-scene img {
    position: absolute; max-width: none; height: auto; aspect-ratio: 5090 / 2160;
    width: var(--l); left: calc(var(--g) - (var(--d) - var(--g)) * .4298); top: calc(54cqh - var(--l) * .2461);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%), linear-gradient(transparent, #000 16%, #000 82%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 32%), linear-gradient(transparent, #000 16%, #000 82%, transparent);
    mask-composite: intersect;
  }
  .heros-scene::after {
    background:
      linear-gradient(90deg, rgba(11, 10, 24, .92) 0%, rgba(11, 10, 24, .86) calc(var(--g) - 110px), transparent calc(var(--g) + 10px)),
      linear-gradient(transparent 72%, var(--fond));
  }
  .heros-texte { width: min(100%, 1240px + 2 * var(--marge)); justify-self: center; margin: 0; padding: 120px var(--marge) 96px; }
  .heros-texte > * { max-width: 560px; }
  .heros.court { min-height: 78vh; }
}

/* En bref : quatre atouts en étiquettes. */
.atouts {
  list-style: none; margin: 0 auto; padding: 0 var(--marge); max-width: calc(1240px + 2 * var(--marge));
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.atouts li { padding: 12px 14px; border-radius: 14px; background: var(--panneau); box-shadow: 0 0 0 2px var(--encre); color: var(--discret); font-size: .95rem; line-height: 1.3; }
.atouts b { display: block; font: 700 1.08rem/1.25 var(--titre); color: var(--creme); }
@media (min-width: 900px) { .atouts { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* Les sections : un texte court, l'app à côté. Chacune sous la lueur d'une couleur de campagne. */
.volet, .offre, .faq {
  position: relative; isolation: isolate; display: grid; gap: 32px; width: 100%;
  max-width: calc(1240px + 2 * var(--marge)); margin: 0 auto; padding: 80px var(--marge);
}
.volet::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 55% at 70% 50%, var(--lueur, rgba(15, 138, 130, .16)), transparent 70%);
}
.volet.inverse::before { background: radial-gradient(ellipse 50% 55% at 30% 50%, var(--lueur, rgba(15, 138, 130, .16)), transparent 70%); }
.lueur-rubis { --lueur: rgba(179, 38, 30, .22); }
.lueur-jade { --lueur: rgba(31, 122, 74, .24); }
.lueur-saphir { --lueur: rgba(39, 72, 176, .24); }
.lueur-ambre { --lueur: rgba(207, 83, 24, .18); }
.cote { display: grid; gap: 22px; align-content: center; }
.tete-section { display: grid; gap: 12px; max-width: 620px; }
.tete-section > p:not(.surtitre) { font-size: 1.08rem; }
.vitrine { display: grid; gap: 20px; align-content: center; }
.fort { font: 700 1.3rem var(--titre); color: var(--action); }

/* Un écran de l'app : coins ronds, cerné d'encre, posé sur son ombre dure. */
.capture { margin: 0; display: grid; gap: 10px; }
.capture img, .capture video { width: 100%; border-radius: 16px; border: 3px solid var(--encre); box-shadow: 0 8px 0 var(--encre), 0 30px 60px -24px #000; background: var(--encre); }
.capture figcaption, .telephone figcaption { color: var(--discret); font-size: .95rem; }
/* Un téléphone : l'écran entier, dans un boîtier d'encre. */
.telephone { margin: 0 auto; width: min(100%, 270px); display: grid; gap: 12px; }
.telephone img, .telephone video { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 34px; box-shadow: 0 0 0 7px var(--encre), 0 0 0 9px rgba(243, 234, 214, .16), 0 10px 0 7px var(--encre), 0 40px 70px -20px #000; background: var(--encre); }
.telephone figcaption { text-align: center; }

@media (min-width: 960px) {
  .volet { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; padding-block: 88px; align-items: center; }
  .volet.inverse > .cote { order: 2; }
  /* Deux écrans : le second déborde sur le premier, comme deux cartes posées l'une sur l'autre. */
  .vitrine:has(> .capture + .capture) { gap: 0; }
  .vitrine > .capture + .capture { width: 72%; justify-self: end; margin-top: -18%; position: relative; }
  .vitrine > .capture + .capture img { box-shadow: 0 8px 0 var(--encre), 0 0 0 6px rgba(11, 10, 24, .6), 0 30px 60px -20px #000; }
  .vitrine > .capture.video + .capture.video { margin-top: -10%; }
  /* Un écran et un téléphone : le téléphone devant, en bas à droite. */
  .vitrine:has(> .telephone) { position: relative; }
  .vitrine > .capture + .telephone { position: absolute; right: -24px; bottom: -64px; width: 220px; }
  .vitrine > .capture:has(+ .telephone) { margin-right: 120px; }
  .telephones { grid-template-columns: 1fr 1fr; align-items: start; }
  .telephones .telephone:last-child { margin-top: 72px; }
}

/* Le prologue : trois temps, en cartes. */
#prologue { grid-template-columns: minmax(0, 1fr); }
#prologue .tete-section { max-width: 760px; }
#prologue::before { background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(31, 122, 74, .2), transparent 70%); }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: etape; }
.etapes li {
  position: relative; display: grid; gap: 10px; align-content: start; padding: 12px 12px 20px; border-radius: 20px; counter-increment: etape;
  background: var(--panneau); border: 3px solid var(--encre); box-shadow: var(--ombre-dure);
}
.etapes li::before {
  content: counter(etape); position: absolute; z-index: 1; top: -14px; left: -10px; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--or); color: var(--sur-or); font: 800 1.15rem var(--texte); border: 3px solid var(--encre); box-shadow: 0 3px 0 var(--encre);
}
.etapes .capture img { border-radius: 12px; box-shadow: none; }
.etapes h3, .etapes p { padding: 0 8px; }
.etapes p { color: var(--discret); font-size: 1rem; }
@media (min-width: 800px) { .etapes { grid-template-columns: repeat(3, 1fr); } }
/* Sur téléphone : les trois temps défilent de côté, chacun dans l'écran du téléphone. */
@media (max-width: 799px) {
  .etapes { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--marge)); padding: 18px var(--marge) 14px; scrollbar-width: none; }
  .etapes::-webkit-scrollbar { display: none; }
  .etapes li { flex: 0 0 min(72vw, 290px); scroll-snap-align: center; }
  .etapes li::before { top: -12px; left: -6px; }
  .etapes .capture img { aspect-ratio: 390 / 844; object-fit: cover; border-radius: 22px; }
}

/* Des points : un losange d'or, le nom en Almendra. */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 28px; }
.points li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 10px; height: 10px; background: var(--or); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--encre); }
.points b { font: 700 1.12rem var(--titre); color: var(--creme); }
.points .etat { margin-right: .3em; }

/* Les îles des mondes, qui flottent chacune à son rythme. */
.iles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
.ile { display: grid; justify-items: center; gap: 4px; text-align: center; font: 700 .98rem/1.2 var(--titre); }
.ile img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--encre), 0 5px 0 3px var(--encre); animation: flotte 6s ease-in-out infinite; }
.ile:nth-child(2) img { animation-delay: -1.2s; } .ile:nth-child(3) img { animation-delay: -2.4s; }
.ile:nth-child(4) img { animation-delay: -3.6s; } .ile:nth-child(5) img { animation-delay: -4.8s; }
.ile b { margin-top: 6px; }

/* Le MJ en trois temps, comme les onglets de l'app. */
.temps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: temps; }
.temps li { position: relative; padding-left: 50px; counter-increment: temps; }
.temps li::before {
  content: counter(temps); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--creme); color: var(--encre); font: 800 1rem var(--texte); box-shadow: 0 0 0 2px var(--encre), 0 3px 0 2px var(--encre);
}
.temps b { display: block; font: 700 1.25rem/1.3 var(--titre); }

.lignes { list-style: none; margin: 0; padding: 0; }
.lignes li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--filet); }
.lignes li:last-child { border-bottom: 1px solid var(--filet); }
.lignes b { font: 700 1.1rem var(--titre); flex: none; }
.lignes small { color: var(--discret); font-size: .95rem; text-align: right; }

/* Les trophées de la compagnie et les médailles des succès : de petites pièces qui sautent au survol. */
.trophees, .medailles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trophees { display: grid; grid-template-columns: repeat(5, minmax(0, 72px)); }
.trophees img { width: 100%; height: auto; filter: drop-shadow(0 4px 0 var(--encre)); transition: transform .15s; }
.medailles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
.medailles li { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: .9rem; color: var(--discret); line-height: 1.2; }
.medailles img { width: 76px; height: 76px; filter: drop-shadow(0 4px 0 var(--encre)); transition: transform .15s; }
.trophees li:hover img, .medailles li:hover img { transform: translateY(-4px) scale(1.08); }
@media (min-width: 600px) { .medailles { grid-template-columns: repeat(6, 1fr); } }

/* Les objets : Gobly et son dé, la lueur d'une lampe. */
.objets { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.objets::before { background: radial-gradient(ellipse 50% 60% at 30% 50%, rgba(255, 138, 61, .14), transparent 70%); }
.objets-gobly { width: 150px; animation: flotte 7s ease-in-out infinite; filter: drop-shadow(0 8px 0 rgba(5, 4, 11, .8)); }
@media (min-width: 960px) {
  .objets { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); justify-items: stretch; }
  .objets-gobly { width: 300px; justify-self: center; }
}

/* L'offre */
.offre, .faq { gap: 18px; justify-items: start; }
.offre > *, .faq > * { width: 100%; }
.offre > .surtitre, .faq > .surtitre, .offre > h2, .faq > h2 { width: auto; }
.formules { display: grid; gap: 18px; margin-top: 10px; max-width: 900px; }
.formule { display: grid; align-content: start; gap: 10px; padding: 24px; border-radius: 20px; background: var(--panneau); border: 3px solid var(--encre); box-shadow: var(--ombre-dure); }
.formule h3.grimoire { display: flex; align-items: center; gap: 12px; }
.formule h3.grimoire svg { flex: none; filter: drop-shadow(0 3px 0 rgba(5, 4, 11, .6)); }
.formule.mise { background: linear-gradient(rgba(242, 181, 60, .12), rgba(242, 181, 60, .04)); box-shadow: inset 0 0 0 2px rgba(242, 181, 60, .45), var(--ombre-dure); }
/* Les chiffres en Alegreya, comme dans l'app : le 1 d'Almendra se lit comme un I. */
.prix { font: 800 2.8rem/1 var(--texte); font-variant-numeric: lining-nums tabular-nums; text-shadow: var(--cerne); }
.prix small { font: 400 1rem var(--texte); color: var(--discret); text-shadow: none; }
.prix-app { font-size: 1.6rem; line-height: 1.2; }
.prix-app small { display: block; margin-top: 4px; }
@media (min-width: 700px) { .formules { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* FAQ : des questions qui se déplient. */
.questions { display: grid; margin-top: 8px; max-width: 900px; }
.questions details { border-top: 1px solid var(--filet); }
.questions details:last-child { border-bottom: 1px solid var(--filet); }
.questions summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font: 700 1.18rem/1.3 var(--titre); }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; flex: none; color: var(--action); font: 700 1.6rem/1 var(--titre); transition: transform .2s; }
.questions details[open] summary::after { transform: rotate(45deg); }
.questions summary:hover { color: var(--action); }
.questions details p { padding: 0 0 20px; max-width: 70ch; }

/* Fin : Gobly salue, la promesse et les boutons. */
.fin { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 40px var(--marge) 96px; position: relative; isolation: isolate; }
.fin::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 40%, rgba(15, 138, 130, .22), transparent 70%); }
.fin-gobly { width: 170px; animation: flotte 6s ease-in-out infinite; filter: drop-shadow(0 8px 0 rgba(5, 4, 11, .8)); }
.fin h2 { font-size: clamp(2.6rem, 9vw, 4rem); }
.fin .actions { justify-items: center; margin-top: 8px; }
.fin .magasins { justify-content: center; }

/* Pied de page */
.pied { display: grid; gap: 18px; padding: 36px var(--marge) 44px; border-top: 1px solid var(--filet); color: var(--discret); font-size: .95rem; background: rgba(5, 4, 11, .35); }
.pied-marque { display: flex; align-items: center; gap: 14px; }
.pied-marque img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 2px var(--encre), 0 4px 0 2px var(--encre); }
.pied .logo { color: var(--creme); }
.pied nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.pied nav a { color: var(--creme); text-decoration: none; padding: 8px 0; }
.pied nav a:hover { color: var(--action); text-decoration: underline; }
@media (min-width: 960px) {
  .pied { grid-template-columns: auto 1fr; align-items: center; column-gap: 48px; }
  .pied nav { justify-content: flex-end; }
  .pied .note { grid-column: 1 / -1; }
}

/* Pages légales : un texte long, lisible, son sommaire à côté. */
.feuillet { max-width: calc(1180px + 2 * var(--marge)); margin: 0 auto; padding: 24px var(--marge) 72px; }
.feuillet-tete { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--filet); }
.feuillet-tete > div { display: grid; gap: 10px; }
.feuillet-tete h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.feuillet-gobly { width: 84px; flex: none; filter: drop-shadow(0 6px 0 rgba(5, 4, 11, .8)); }
.brouillon { color: var(--creme); padding: 12px 16px; border-radius: 14px; background: rgba(242, 181, 60, .1); border: 2px solid var(--encre); box-shadow: inset 0 0 0 1.5px rgba(242, 181, 60, .4); margin-bottom: 24px !important; max-width: 72ch; }
.sommaire { border-radius: 16px; background: var(--panneau); border: 2px solid var(--encre); font-size: .98rem; }
.sommaire ol { margin: 0; padding: 0 16px 14px; display: grid; gap: 2px; list-style: none; }
.sommaire a { display: block; padding: 4px 0; color: var(--creme); text-decoration: none; line-height: 1.3; }
.sommaire a:hover { color: var(--action); }
.sommaire summary, .sommaire > p { padding: 12px 16px; font: 700 1.1rem var(--titre); cursor: pointer; }
.sommaire-replie { margin-bottom: 28px; }
.sommaire-fixe { display: none; }
.texte-long { max-width: 72ch; overflow-wrap: anywhere; font-size: 1.05rem; line-height: 1.7; min-width: 0; }
.texte-long h2 { font-size: 1.7rem; margin: 48px 0 14px; padding-top: 22px; border-top: 1px solid var(--filet); scroll-margin-top: 96px; -webkit-text-stroke: 0; }
.texte-long > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.texte-long h2 .num { font-family: var(--texte); font-weight: 800; }
.texte-long h3 { font-size: 1.22rem; margin: 30px 0 8px; color: var(--action); }
.texte-long p, .texte-long ul, .texte-long ol { margin: 0 0 16px; }
.texte-long ul, .texte-long ol { padding-left: 1.3em; }
.texte-long li { margin-bottom: 8px; }
.texte-long li::marker { color: var(--action); }
.texte-long strong { color: #fff6e3; }
.texte-long code { font-size: .9em; background: var(--panneau-haut); padding: 1px 5px; border-radius: 5px; }
.texte-long pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--panneau); border: 2px solid var(--encre); font-size: .9rem; line-height: 1.5; }
.texte-long pre code { background: none; padding: 0; }
.texte-long table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 22px; font-size: .95rem; line-height: 1.5; max-width: 100%; }
.texte-long th, .texte-long td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--filet); min-width: 12ch; }
.texte-long th { color: var(--action); font: 700 1rem var(--titre); border-bottom-color: var(--trait); }
.texte-long blockquote { margin: 0 0 16px; padding: 10px 16px; border-left: 3px solid var(--or); background: var(--panneau); border-radius: 0 12px 12px 0; }
@media (min-width: 1000px) {
  .feuillet-gobly { width: 120px; }
  .sommaire-replie { display: none; }
  .feuillet-corps.avec-sommaire { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
  .sommaire-fixe { display: block; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
}

/* Page seule (404) : Gobly cherche, et vous ramène. */
.seul { display: grid; justify-items: center; text-align: center; gap: 18px; padding: 48px var(--marge) 96px; max-width: 640px; margin: 0 auto; }
.seul-gobly { width: 180px; animation: flotte 6s ease-in-out infinite; filter: drop-shadow(0 8px 0 rgba(5, 4, 11, .8)); }
.seul .bulle { text-align: left; }
.seul .bulle::before { left: 50%; top: -11px; margin-left: -8px; transform: rotate(135deg); }
.seul h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); }
.seul .actions { justify-items: center; max-width: 360px; }

/* Grand écran : rien à ajouter ici, chaque bloc porte ses règles. */

/* Mouvements réduits : rien ne bouge (les boucles restent en image fixe, site.js). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
