/* ==========================================================================
   Landing CopyThinking Academy (pré-ouverture) : feuille de la page.
   Elle se pose APRÈS da.css (le socle de la DA Copy House) : polices, couleurs
   et « zéro arrondi » viennent de là. Ici, seulement la composition.

   Règles tenues :
   - papier #F9F9F2, encre #212121, bronze #AC6B46 en accent (un mot du h1, la
     première case du dernier schéma), jamais une surface ;
   - Graveur (pile CHDisplay, chiffres en Inter Bold) pour h1, h2 et pré-titre
     seulement, graisse 400 ; Inter pour tout le reste, jamais d'italique Inter ;
   - une gouttière commune --gut, mobile d'abord ;
   - écart titre -> bloc suivant = 0,5 x la taille du titre (règle posée sur le
     voisin : `h1 + *`, `h2 + *`).
   ========================================================================== */

:root {
  --gut: clamp(20px, 5.5vw, 64px);
  --max: 1120px;
  --h1: clamp(32px, 8.8vw, 66px);
  --h2: clamp(30px, 6.8vw, 50px);
  --sec: clamp(56px, 9vw, 112px);
  --filet: rgba(33, 33, 33, .22);
  --voile: rgba(33, 33, 33, .32);
}

html, body { background: var(--paper); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
@media (min-width: 900px) { body { font-size: 19px; } }
::selection { background: var(--ink); color: var(--paper); }

/* ---- socle : conteneur, sections, filets ------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gut));
  margin-inline: auto;
  padding-inline: var(--gut);
}
.s { padding-block: var(--sec); }
.s + .s { border-top: 1px solid var(--filet); }

/* ---- typographie -------------------------------------------------------- */

h1, h2, .pre {
  font-family: 'CHDisplay', 'Inter', serif;
  font-weight: 400;
  font-synthesis: none;
}
h1, h2 { text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: var(--h1); line-height: 1.05; letter-spacing: -0.012em; }
h2 { font-size: var(--h2); line-height: 1.08; letter-spacing: -0.01em; }
h1 em { font-style: italic; color: var(--bronze); }

.pre {
  font-size: clamp(16px, 4.2vw, 21px);
  line-height: 1.3;
  letter-spacing: .01em;
}

/* L'écart entre un titre et le bloc qui le suit : la règle est sur le voisin. */
h1 + * { margin-top: calc(var(--h1) * .5); }
h2 + * { margin-top: calc(var(--h2) * .5); }
.pre + h1 { margin-top: 20px; }

p + p, ul + p, ul + ul { margin-top: 1.15em; }
p + ul { margin-top: .55em; }

strong { font-weight: 700; }
.nb { white-space: nowrap; }

ul { list-style: none; }
li { position: relative; padding-left: 26px; }
li + li { margin-top: .3em; }
li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(.775em - 4px);
  width: 8px;
  height: 8px;
  background: var(--ink);
}

/* ---- le bouton : encre sur papier (papier sur encre en section sombre) -- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 34px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.cta:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }
.act { margin-top: 44px; }
.act .cta { width: 100%; }
@media (min-width: 560px) { .act .cta { width: auto; min-width: 300px; } }

/* ---- schémas : cases d'un calendrier de 90 jours ------------------------ */

.cellules { display: grid; gap: 2px; }
.cellules i { display: block; aspect-ratio: 1; border: 1px solid var(--ink); }
.cellules i:first-child { background: var(--ink); }
.cellules--90 { grid-template-columns: repeat(15, 1fr); gap: 4px; width: 100%; max-width: 460px; }
@media (min-width: 1100px) {
  .cellules--90 { grid-template-columns: repeat(10, 1fr); gap: 6px; }
}

/* ---- 1. hero ------------------------------------------------------------- */

.hero { padding-top: clamp(32px, 7vw, 88px); }
.hero .wrap { display: grid; gap: 44px; }
.hero .lead { font-size: clamp(19px, 5vw, 23px); line-height: 1.5; }
.hero .cellules { width: 100%; }
@media (min-width: 1100px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .6fr);
    gap: 72px;
    align-items: end;
  }
  .hero .cellules { max-width: 340px; justify-self: end; }
}

/* ---- 2. chaque matin ------------------------------------------------------ */

.matin .cols { display: grid; gap: 44px; }
@media (min-width: 900px) {
  .matin .cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 80px; align-items: start; }
}
.rail { position: relative; display: grid; gap: 24px; }
.rail .pas { position: relative; padding-left: 42px; }
.rail .pas::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(.775em - 7px);
  width: 14px;
  height: 14px;
  background: var(--ink);
}
.rail .pas + .pas { margin-top: 0; }
.rail .pas:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: .775em;
  bottom: calc(-24px - .775em);
  width: 1px;
  background: var(--ink);
}
.jauge { display: block; height: 12px; margin-top: 16px; border: 1px solid var(--ink); max-width: 320px; }
.jauge i { display: block; width: 100%; height: 100%; background: var(--ink); }

.sans-tech { border: 1px solid var(--ink); padding: 26px 24px 28px; font-size: 18px; }
.sans-tech strong { display: inline-block; max-width: 100%; margin-bottom: .5em; font-size: 22px; line-height: 1.4; }
@media (min-width: 900px) { .sans-tech { padding: 34px 32px 36px; } .sans-tech strong { font-size: 25px; } }

/* ---- 3. les 90 jours, en 3 phases ------------------------------------------ */

.frise { display: block; width: 100%; height: 16px; overflow: visible; }
.frise .f1 { fill: var(--ink); }
.frise .f2 { fill: var(--voile); }
.frise .f3 { fill: var(--paper); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }

.phases-grid { display: grid; gap: 44px; margin-top: 36px; }
.phase { max-width: 640px; }
@media (min-width: 1100px) {
  .phases-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 44px; }
  .phase { max-width: none; }
}
.phase::before { content: ""; display: block; box-sizing: border-box; width: 56px; height: 12px; margin-bottom: 20px; }
@media (min-width: 720px) and (max-width: 1099px) {
  .phases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 48px; }
  .phase { max-width: none; }
  .phase--2 { grid-column: 2; grid-row: 1 / span 2; }
  .phase--1 { grid-column: 1; grid-row: 1; }
  .phase--3 { grid-column: 1; grid-row: 2; }
}
.phase--1::before { background: var(--ink); }
.phase--2::before { background: var(--voile); }
.phase--3::before { background: var(--paper); border: 1px solid var(--ink); }
.phase .phase-t { font-size: 1.06em; line-height: 1.35; }
.phase .phase-t + p { margin-top: .5em; }

/* ---- 4. pourquoi on te paie --------------------------------------------------- */

.cartes { display: grid; gap: 20px; margin-top: 36px; }
.carte { border: 1px solid var(--ink); padding: 28px 24px 32px; }
.carte--sombre { background: var(--ink); color: var(--paper); }
.carte .pic { display: block; width: 56px; height: 40px; margin-bottom: 28px; fill: currentColor; }
.carte--vues .pic { width: 116px; height: 64px; }
.carte .r { display: block; margin-top: .35em; font-size: clamp(24px, 6.2vw, 32px); font-weight: 700; line-height: 1.15; }
.bar .l1 { display: flex; align-items: baseline; gap: .5em; }
.bar .mt { font-size: clamp(52px, 14vw, 76px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.bar .l2 { display: block; margin-top: 8px; }
.carte .q + .bars { margin-top: 26px; }
.bar + .bar { margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(249, 249, 242, .35); }
@media (min-width: 760px) {
  .cartes { gap: 28px; }
  .carte { padding: 36px 40px 40px; }
  .carte--vues { display: flex; align-items: center; gap: 48px; }
  .carte--vues .pic { flex: none; width: 174px; height: 96px; margin-bottom: 0; }
}
@media (min-width: 900px) {
  .bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar + .bar { margin-top: 0; padding: 0 0 0 40px; border-top: 0; border-left: 1px solid rgba(249, 249, 242, .35); }
  .bar:first-child { padding-right: 40px; }
}

/* Rythme de fond : deux sections du milieu teintées (encre à 6 %), pas de nouvelle couleur. */
.niveaux, .qui { background: rgba(33, 33, 33, .06); }
.niveaux + .s, .qui + .s { border-top-color: transparent; }

/* ---- 5. tes publications te font monter de niveau ---------------------------------- */

.echelle { margin-top: 22px; display: grid; gap: 18px; }
.echelle li { --w: 34%; margin-top: 0; padding: 26px 0 0; font-size: 21px; font-weight: 600; line-height: 1.3; }
.echelle li:nth-child(2) { --w: 67%; }
.echelle li:nth-child(3) { --w: 100%; }
.echelle li::before { left: 0; top: 0; width: var(--w); height: 12px; background: var(--ink); }
@media (min-width: 720px) {
  .echelle { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 0; margin-top: 28px; }
  .echelle li { padding: 22px 22px 24px; border: 1px solid var(--ink); margin-left: -1px; }
  .echelle li::before { display: none; }
  .echelle li:nth-child(1) { min-height: 128px; background: var(--paper); margin-left: 0; }
  .echelle li:nth-child(2) { min-height: 196px; background: rgba(33, 33, 33, .14); }
  .echelle li:nth-child(3) { min-height: 264px; background: var(--ink); color: var(--paper); }
}

/* ---- 6. plus de 300 leçons ------------------------------------------------------------ */

.cols2 { display: grid; gap: 44px; }
@media (min-width: 900px) {
  .cols2 { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 80px; align-items: center; }
}
.mosaique { grid-template-columns: repeat(25, 1fr); gap: 3px; max-width: 520px; }
.mosaique i { border: 0; background: var(--ink); }
@media (min-width: 900px) { .mosaique { gap: 4px; } }

/* ---- 7. qui t'accompagne ------------------------------------------------------------------ */

.portrait { margin: 0; max-width: 480px; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 46% 22%;
  background: var(--ink);
}
.qui .nom { font-size: 24px; line-height: 1.3; }
@media (min-width: 900px) {
  .qui .cols2 { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: center; }
  .qui .cols2 > p { font-size: 22px; }
  .portrait img { aspect-ratio: 4 / 5; object-position: 47% 12%; }
  .qui .nom { font-size: 32px; }
}

/* ---- 8. les ventes ouvrent le 1er janvier (section sombre) ------------------------------------ */

.final { background: var(--ink); color: var(--paper); border-top: 0; }
.final .wrap { display: grid; gap: 44px; }
.final .cta { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.final .cellules i { border-color: var(--paper); }
.final .cellules i:first-child { background: var(--bronze); border-color: var(--bronze); }
@media (min-width: 1100px) {
  .final .wrap { grid-template-columns: minmax(0, 1.55fr) minmax(0, .6fr); gap: 72px; align-items: end; }
  .final .cellules { max-width: 340px; justify-self: end; }
}

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

.pied { padding-block: 30px 38px; font-size: 14px; line-height: 1.5; border-top: 1px solid var(--filet); }
.pied .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between; }
.pied p { margin: 0; }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pied a { color: var(--ink); text-underline-offset: 3px; }
.pied a:hover { text-decoration-thickness: 2px; }
.pied a:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }
@media (max-width: 767px) {
  .pied a { display: inline-block; padding-block: 12px; }
  .pied nav { gap: 0 22px; }
}

/* ---- bandeau mobile : caché tant qu'un bouton de la page est à l'écran ---------------------------------- */

.bandeau { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .bandeau {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--ink);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .bandeau.is-on { transform: none; visibility: visible; transition: transform .25s ease; }
  .bandeau .cta { width: 100%; }
}
@media (hover: hover) {
  .cta:hover { background: var(--paper); color: var(--ink); }
  .final .cta:hover { background: var(--ink); color: var(--paper); }
}
@media (prefers-reduced-motion: reduce) {
  .bandeau, .bandeau.is-on { transition: none; }
  .cta { transition: none; }
}
