/* Charte AtelierPetitBudget — habillage editorial (refonte visuelle 2026-11-19).
   Direction choisie par Mek : la page produit "Ultimate Brain" de Thomas Frank
   sur Gumroad — c'est-a-dire une page SUR-MESURE, pas le gabarit rose par
   defaut de Gumroad. Donc fond clair presque blanc, beaucoup d'air, une
   colonne editoriale large, des visuels de PDF en grand, et UNE seule couleur
   d'accent : la terracotta de la marque (celle des couvertures, du logo et du
   theme-color declare dans les trois pages).

   Typographie : serif pour les titres et les mises en exergue (le cote
   "livre", coherent avec un produit PDF), sans-serif systeme pour le texte
   courant, les listes et les etiquettes en capitales des kits. Aucune police
   distante : le site reste statique, sans build et sans requete externe.

   Ce fichier habille aussi checkout.html et merci.html : .page, header.marque,
   footer.marque, h1, .sous-titre, .carte, .bouton et .bandeau-confiance
   doivent continuer d'y fonctionner tels quels. */

:root {
  color-scheme: light;

  /* Fonds : du presque-blanc au creme de la marque. */
  --blanc: #ffffff;
  --fond: #FCFAF6;
  --creme: #F5F0E6;
  --creme-fonce: #EDE6D8;

  /* Accent unique. */
  --terracotta: #E4572E;
  /* Version foncee reservee aux fonds cliquables : le blanc sur #E4572E ne
     passe pas le contraste AA en texte normal, sur celle-ci oui (5,0:1). */
  --terracotta-fonce: #C4421C;
  /* Encore un cran plus foncee, pour la terracotta POSEE SUR du creme
     (numeros des pieces, numeros des etapes, coches) : sur ce fond-la,
     #C4421C tombe a 4,45:1, celle-ci remonte a 5,4:1. */
  --terracotta-texte: #AE3A16;

  /* Encres. */
  --encre-noire: #15110E;
  --encre: #26211D;
  --gris: #6B635B;
  /* Ne pas eclaircir : c'est la couleur des surtitres, des legendes et des
     libelles de chiffres, en petites capitales. A #8A7F70 elle tombe a
     3,5:1 sur le creme et ne passe plus AA. */
  --sable: #6F6354;
  --sable-clair: #9B8F7E;
  --bord: #E6DFD2;
  --bord-fort: #D8CFBD;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --r: 16px;
  --r-petit: 12px;
  --ombre: 0 24px 60px -34px rgba(38, 33, 29, .45);
  --ombre-douce: 0 2px 6px -2px rgba(38, 33, 29, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Filet terracotta en haut de page, comme la tranche des couvertures. */
body::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--terracotta);
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px 120px;
}

/* Liens de texte : terracotta foncee, la seule nuance qui passe AA sur clair. */
a { color: var(--terracotta-fonce); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a.bouton { color: var(--blanc); }
a:focus-visible { outline: 2px solid var(--encre-noire); outline-offset: 3px; border-radius: 3px; }

/* ---------- MARQUE ---------- */

header.marque {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--bord);
}
/* Grandes cartes d'offre pour la page d'accueil : image pleine largeur, texte en dessous. */
.grille-offres {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 28px 0 40px;
}
@media (min-width: 820px) {
  .grille-offres { grid-template-columns: repeat(3, 1fr); }
}
.carte-offre {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0;
  overflow: hidden;
  transition: border-color .15s ease;
}
.carte-offre:hover { border-color: var(--terracotta); }
.carte-offre .image {
  height: 220px;
  background: var(--creme);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carte-offre img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.carte-offre .texte { padding: 22px 24px 26px; text-align: center; }
.carte-offre h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--encre-noire); }
.carte-offre p { margin: 0; color: var(--sable); font-size: .95rem; }

/* Titre de section centre : le marqueur de chapitre a gauche ne convient plus. */
h2.titre-centre { text-align: center; }
h2.titre-centre::before { display: none; }

header.marque a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
header.marque img,
header.marque svg { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
header.marque span {
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--encre-noire);
}

footer.marque {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--bord);
  color: var(--gris);
  font-size: .82rem;
  text-align: center;
}
footer.marque a { color: var(--gris); }

/* ---------- TITRES ---------- */

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--encre-noire);
  margin: 0 0 20px;
}
/* L'italique du serif porte la moitie accentuee du titre : c'est le seul
   endroit ou la terracotta claire sert de couleur de texte, et elle y est
   assez grande pour passer le contraste AA des grands caracteres. */
h1 em { font-style: italic; font-weight: 400; color: var(--terracotta); }

/* Titre du kit 1 : calque exact de la couverture du PDF (sans-serif, pas
   d'italique, "bien nourri" en gras noir, aucun accent terracotta). Taille
   ramenee a la proportion de la couverture, plus modeste que le grand titre
   serif des deux autres pages : .hero h1.comme-couverture l'emporte sur la
   regle .hero h1 du breakpoint desktop malgre l'ordre dans le fichier. */
h1.comme-couverture, .hero h1.comme-couverture {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 2.5rem);
}
h1.comme-couverture em { font-style: normal; font-weight: 700; color: var(--encre-noire); }

/* Un h2 ouvre une section : beaucoup d'air au-dessus, et un court filet
   terracotta en guise de marqueur de chapitre (plus leger que l'ancien
   soulignement pleine largeur). */
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.65rem, 3.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--encre-noire);
  margin: 104px 0 12px;
  padding-top: 30px;
  position: relative;
}
h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--terracotta);
}

h3 {
  font-weight: 650;
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--encre-noire);
}

/* Surtitre : capitales espacees, comme les intercalaires des kits. */
.surtitre {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sable);
  margin: 0 0 22px;
}

.sous-titre {
  color: var(--gris);
  font-size: clamp(1.08rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  max-width: 34em;
  margin: 0 0 32px;
}
h2 + .sous-titre { margin-bottom: 36px; }

p { max-width: 36em; }

/* ---------- HERO ---------- */

.hero {
  display: grid;
  gap: 36px;
  align-items: center;
  padding: 56px 0 8px;
  margin-bottom: 56px;
}
.hero > div > :last-child { margin-bottom: 0; }
.hero figure.visuel { margin: 0; max-width: none; }

@media (min-width: 820px) {
  .hero { grid-template-columns: 1fr 400px; gap: 64px; }
  /* Le titre vit dans une colonne plus etroite : il lui faut sa propre taille. */
  .hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.1rem); }
}

/* Hero d'une page sans vignette laterale (le pack) : titre centre, puis le
   grand visuel sur toute la largeur de la colonne. */
.hero.centre {
  display: block;
  text-align: center;
  padding-top: 64px;
}
.hero.centre .sous-titre { margin-left: auto; margin-right: auto; }
.hero.centre figure.visuel { margin-top: 44px; }
.hero.centre figcaption { text-align: center; }

/* ---------- VISUELS PRODUIT ---------- */
/* Les images sont des captures des PDF : elles portent la preuve, donc elles
   sont grandes, detachees du fond par une ombre et un filet tres clair. */

/* Les captures de pages sont carrees : a pleine largeur elles feraient un
   ecran entier de haut chacune. On les cadre a 720px et on les centre, le
   texte reste cale a gauche. .large (le bandeau des trois couvertures du
   pack, bien plus large que haut) reprend toute la colonne. */
figure.visuel {
  margin: 56px auto;
  max-width: 720px;
}
figure.visuel.large { max-width: 100%; }
figure.visuel img {
  display: block;
  width: 100%;
  height: auto;
  /* Pas d'aspect-ratio fixe : les attributs width/height de chaque image
     donnent deja son rapport au navigateur, et elles ne sont pas toutes carrees. */
  background: var(--creme-fonce);
  border: 1px solid var(--bord);
  border-radius: var(--r);
  box-shadow: var(--ombre);
}
figure.visuel figcaption {
  margin-top: 14px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sable);
}

/* ---------- CHIFFRES DE COUVERTURE (la preuve chiffree) ---------- */

.chiffres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 24px;
  padding: 32px 8px;
  background: var(--creme);
  border: 1px solid var(--bord);
  border-radius: var(--r);
  text-align: center;
}
.chiffres div { padding: 0 14px; }
.chiffres div + div { border-left: 1px solid var(--bord-fort); }
.chiffres .n {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--encre-noire);
}
.chiffres .l {
  display: block;
  margin-top: 10px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--sable);
}

/* ---------- CARTES ---------- */

.carte {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--r);
  padding: 32px 34px;
  margin: 28px 0;
  box-shadow: var(--ombre-douce);
}
.carte > :first-child { margin-top: 0; }
.carte > :last-child { margin-bottom: 0; }

/* Carte a filet lateral : l'argument qui porte le kit, traite en exergue.
   C'est la respiration entre deux sections, d'ou le serif et la grande taille. */
.carte.appui {
  background: var(--creme);
  border: none;
  border-left: 3px solid var(--terracotta);
  border-radius: 0 var(--r) var(--r) 0;
  box-shadow: none;
  padding: 32px 36px;
  margin: 40px 0;
}
.carte.appui p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.28rem);
  line-height: 1.55;
  color: var(--encre-noire);
  max-width: 32em;
}

/* Variante centree : argument mis en avant sans filet lateral asymetrique. */
.carte.appui.centre {
  text-align: center;
  border-left: none;
  border-top: 3px solid var(--terracotta);
  border-radius: var(--r);
}
.carte.appui.centre p { margin-left: auto; margin-right: auto; }

/* Les pieces d'un pack / d'un kit : un bloc par piece, numero en pastille. */
.piece {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--bord);
}
.piece:last-child { border-bottom: none; padding-bottom: 0; }
.piece:first-child { padding-top: 0; }
.piece .num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-petit);
  background: var(--creme);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--terracotta-texte);
}
.piece p { margin: 0; color: var(--encre); }

/* Les deux kits vendus a part, chacun avec sa couverture en vignette. */
.duo-kits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.mini-kit {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color .15s ease;
}
.mini-kit:hover { border-color: var(--terracotta); }
.mini-kit img {
  width: 72px;
  height: 72px;
  border-radius: var(--r-petit);
  object-fit: cover;
  flex: 0 0 auto;
}
.mini-kit h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--encre-noire); }
.mini-kit p { margin: 0; font-size: .9rem; color: var(--sable); }

.badge {
  display: inline-block;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--creme-fonce);
  color: var(--sable);
  vertical-align: 3px;
  white-space: nowrap;
}
.badge.inedit { background: var(--terracotta-fonce); color: var(--blanc); }

/* ---------- BLOCS DE CONTENU (ce que contient le kit) ---------- */
/* Une grille de blocs a coche : chaque piece du PDF devient un bloc lisible
   d'un coup d'oeil, au lieu d'une liste a puces en police machine. */

ul.liste-machine {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
  margin: 36px 0;
  padding: 0;
  list-style: none;
}
ul.liste-machine li {
  position: relative;
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--r-petit);
  box-shadow: var(--ombre-douce);
  padding: 22px 24px 22px 60px;
  margin: 0;
  font-size: .99rem;
  line-height: 1.55;
}
ul.liste-machine li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 21px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--creme);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23AE3A16' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
}

/* Meme liste, nichee dans une piece de pack : moins de marge autour, cartes plus compactes. */
.piece ul.liste-machine {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 14px 0 0;
}
.piece ul.liste-machine li { padding: 16px 18px 16px 50px; font-size: .95rem; }
.piece ul.liste-machine li::before { left: 18px; top: 15px; }

/* ---------- PRIX ET BOUTON ---------- */

.prix-bloc {
  max-width: 560px;
  margin: 72px auto 28px;
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: 20px;
  padding: 48px 36px 40px;
  text-align: center;
  box-shadow: var(--ombre);
  position: relative;
  overflow: hidden;
}
.prix-bloc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--terracotta);
}
/* Le prix est sobre : c'est le bouton qui porte la couleur, pas le chiffre. */
.prix-bloc .prix {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--encre-noire);
}
.prix-bloc .prix-barre {
  text-decoration: line-through;
  color: var(--gris);
  font-size: 1.1rem;
  font-weight: 400;
  margin-right: 12px;
}
.prix-bloc .mention {
  max-width: 30em;
  margin: 16px auto 28px;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--gris);
}
/* Ce qu'on obtient a ce prix : coches plutot qu'une phrase qui s'enchaine, chaque ligne centree. */
.prix-bloc ul.inclus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  list-style: none;
  max-width: 30em;
  margin: 16px auto 28px;
  padding: 0;
}
.prix-bloc ul.inclus li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--encre);
}
.prix-bloc ul.inclus li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--creme);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23AE3A16' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

.bouton {
  display: inline-block;
  background: var(--terracotta-fonce);
  color: var(--blanc);
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 18px 32px 15px;
  border-radius: var(--r-petit);
  text-align: center;
  /* Trait d'accent en pied de bouton au lieu d'un contour complet : la seule
     idee retenue des gabarits Systeme.io etudies le 2026-11-19. */
  border: none;
  border-bottom: 3px solid var(--terracotta-texte);
  cursor: pointer;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 10px 24px -12px rgba(196, 66, 28, .55);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.bouton:hover { background: #AE3A16; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(196, 66, 28, .6); }
.bouton:active { transform: none; box-shadow: none; }
.bouton:focus-visible { outline: 3px solid var(--encre-noire); outline-offset: 3px; }
.bouton:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Bouton secondaire : renvoi interne, jamais un achat. Contour seul, pour
   qu'il ne concurrence jamais le bouton d'achat du regard. */
.bouton.secondaire {
  width: auto;
  background: transparent;
  /* La nuance "sur creme" : ce bouton prend un fond creme au survol. */
  color: var(--terracotta-texte);
  border: 1.5px solid var(--bord-fort);
  box-shadow: none;
  padding: 15px 26px;
  font-size: 1rem;
}
.bouton.secondaire:hover {
  background: var(--creme);
  border-color: var(--terracotta);
  box-shadow: none;
  transform: translateY(-2px);
}

/* ---------- LIVRAISON ---------- */

.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 36px 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
.etapes li {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--r-petit);
  box-shadow: var(--ombre-douce);
  padding: 26px 24px;
  font-size: .99rem;
  line-height: 1.55;
}
.etapes li::before {
  counter-increment: etape;
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--creme);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--terracotta-texte);
}

.bandeau-confiance {
  display: flex;
  justify-content: center;
  gap: 10px 28px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: var(--gris);
  margin: 28px auto 0;
  max-width: 760px;
  text-align: center;
}
.bandeau-confiance span { position: relative; padding-left: 16px; }
.bandeau-confiance span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}

.todo-legal {
  background: #FFF4E8;
  border: 1px dashed var(--terracotta);
  border-radius: var(--r-petit);
  padding: 14px 16px;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--encre);
  text-align: left;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 720px) {
  h2 { margin-top: 72px; }
  .hero { padding-top: 36px; margin-bottom: 40px; }
  figure.visuel { margin: 40px 0; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .page { padding: 0 18px 80px; }
  .carte, .carte.appui { padding: 24px 22px; }
  .prix-bloc { padding: 36px 20px 28px; }
  .chiffres { padding: 24px 0; }
  .chiffres div { padding: 0 8px; }
  .piece { gap: 16px; }
  .piece .num { width: 40px; height: 40px; font-size: 1.15rem; }
  ul.liste-machine li { padding: 18px 18px 18px 54px; }
  ul.liste-machine li::before { left: 18px; top: 18px; }
  .bandeau-confiance { justify-content: flex-start; text-align: left; }
}

/* Pas d'apparition au defilement : sur une page qui doit vendre, un contenu
   qui commence a opacite 0 est un contenu qui peut rester invisible (moteur
   sans animation-timeline, capture d'ecran, impression, aperçu reseau
   social). Le relief vient de la typographie et des ombres, pas du mouvement.
   Seuls les elements cliquables bougent, au survol. */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .bouton, .bandeau-confiance { display: none; }
  body { background: var(--blanc); }
  body::before { display: none; }
  figure.visuel img, .carte, .prix-bloc, .etapes li, ul.liste-machine li { box-shadow: none; }
}

/* ---------- AJOUT 2026-11-20 — refonte structure page pack.html ----------
   Deux petites regles pour le CTA double du hero (achat direct + ancre vers
   le detail du contenu), aucune variable de couleur existante touchee. */

.cta-duo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 14px;
}
.cta-duo .bouton { width: auto; }

.confiance-mini {
  font-size: .82rem;
  color: var(--gris);
  margin: 0 auto 8px;
}
