/* Deviens la ref — site de présentation. Thème « Carnet d'orateur » (docs/DESIGN_SYSTEM.md). */

:root {
  --paper: #F3EEE3;
  --paper-line: #E8E0CF;
  --paper-card: #FFFDF8;
  --paper-border: #E6DECD;
  --divider: #D8CFBC;
  --ink: #0B1437;
  --ink-soft: #1E2A4D;
  --ink-muted: #8C93AD;
  --body: #3A3A3A;
  --muted: #6A6458;
  --faint: #A89F8C;
  --postit: #BFA2F8;
  --postit-soft: #E4D8FB;
  --postit-pale: #ECE4FC;
  --violet: #7A4BD9;
  --violet-deep: #3B1F8A;
  --violet-darkest: #2A1466;
  --postit-back: #EFE6D6;
  --red: #B4472B;
  --success: #3B6B2A;
  --highlight: #D6EBCB;
  --margin-success: #8DC27A;
  --pin: #B8B4AC;
  --pin-border: #8E8A82;

  --diction: #BFA2F8;
  --rythme: #7FB8D6;
  --fluidite: #8DC27A;
  --structure: #E8A46A;

  --font-title: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --font-logo: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background-color: var(--paper);
  /* Papier ligné : une ligne tous les 28 px */
  background-image: repeating-linear-gradient(
    to bottom, transparent 0, transparent 27px, var(--paper-line) 27px, var(--paper-line) 28px);
}

img, svg { max-width: 100%; }

a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--violet-deep); }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── Icônes au trait ─────────────────────────────────────────────────────── */

.icon {
  width: 1.4em; height: 1.4em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Typographie ─────────────────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--font-title); color: var(--ink); margin: 0; text-wrap: balance; }

h1 {
  font-size: clamp(34px, 7.4vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(27px, 5vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.005em;
}
h3 { font-size: 21px; line-height: 1.25; font-weight: 600; }

p { margin: 0 0 1em; }

.label {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}

.hand {
  font-family: var(--font-hand); font-weight: 500; font-size: 24px; line-height: 1.2;
  color: var(--violet); margin: 0;
}
.hand--red { color: var(--red); }

.lead { font-size: clamp(18px, 2.6vw, 21px); line-height: 1.55; color: var(--body); max-width: 34em; }

/* ── Logo « DEVIENS LA REF » ─────────────────────────────────────────────── */

.topbar { background: var(--ink); padding: 22px 0 26px; }

.logo {
  display: inline-block; text-decoration: none; color: var(--paper);
  font-family: var(--font-logo); text-transform: uppercase;
  font-size: clamp(34px, 9vw, 50px); line-height: 0.95; letter-spacing: 0.01em;
  transform: skewX(-8deg) rotate(-3deg); transform-origin: left center;
}
.logo:hover, .logo:focus-visible { color: var(--paper); }
.logo__l1, .logo__l2 { display: block; }
.logo__l2 { display: flex; align-items: center; gap: 0.18em; margin-top: 0.06em; }
.logo__ref {
  position: relative; display: inline-block; color: var(--ink); background: var(--postit);
  padding: 0.02em 0.16em 0.04em; transform: rotate(2.5deg);
}
.logo__ref::before { /* punaise */
  content: ''; position: absolute; top: -0.12em; left: 48%; width: 0.2em; height: 0.2em;
  border-radius: 50%; background: var(--pin); border: 2px solid var(--pin-border);
}
.logo__ref::after { /* coin recourbé */
  content: ''; position: absolute; right: 0; bottom: 0; width: 0.3em; height: 0.3em;
  background: var(--postit-back); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 10px;
  font: 700 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink);
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-soft); color: var(--paper); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }

/* Boutons des stores : « Bientôt disponible » tant que le lien est vide */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 52px; padding: 8px 20px; border-radius: 10px;
  border: 1.5px dashed var(--faint); color: var(--muted); background: transparent;
  line-height: 1.2; cursor: default;
}
.store__name { font-weight: 700; font-size: 16px; color: var(--ink); }
.store__soon { font-size: 13.5px; }
.store-badge { display: inline-flex; line-height: 0; border-radius: 8px; }
.store-badge img { display: block; height: 48px; width: auto; }
.store-badge--google img { height: 71px; margin: -11px -8px; }

.on-ink .store { border-color: var(--ink-muted); color: var(--ink-muted); }
.on-ink .store__name { color: var(--paper); }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero { padding: 44px 0 56px; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__text > * + * { margin-top: 22px; }
.hero__text .lead { margin-bottom: 0; }
.hero__visual { display: flex; justify-content: center; }

@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
}

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

.section { padding: 56px 0; }
.section + .section { padding-top: 8px; }

.section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.section__head .label { white-space: nowrap; }
.section__head::after { content: ''; flex: 1; height: 1px; background: var(--divider); }

.section__title { margin-bottom: 14px; }
.section__intro { max-width: 40em; margin-bottom: 30px; font-size: 18px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 959px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* ── Fiche (IndexCard) ───────────────────────────────────────────────────── */

.fiche {
  position: relative; background: var(--paper-card);
  border: 1px solid var(--paper-border); border-left: 6px solid var(--postit);
  border-radius: 3px; padding: 20px 22px 22px;
}
.fiche--diction { border-left-color: var(--diction); }
.fiche--rythme { border-left-color: var(--rythme); }
.fiche--fluidite { border-left-color: var(--fluidite); }
.fiche--structure { border-left-color: var(--structure); }
.fiche--success { border-left-color: var(--margin-success); }
.fiche--red { border-left-color: var(--red); }
.fiche h3 { margin-bottom: 8px; }
.fiche p:last-child { margin-bottom: 0; }
.fiche__icon { color: var(--ink); margin-bottom: 10px; display: block; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.tag {
  display: inline-block; padding: 3px 9px; border-radius: 2px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.tag--diction { background: #E4D8FB; color: #3B1F8A; }
.tag--rythme { background: #D5E9F4; color: #1D4A63; }
.tag--fluidite { background: #D6EBCB; color: #2E5220; }
.tag--structure { background: #F6DCC2; color: #7A3E10; }
.tag--neutre { background: var(--paper-border); color: var(--body); }

.duo { display: grid; gap: 14px; margin: 0; }
.duo dt {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2px;
}
.duo dd { margin: 0; }
@media (min-width: 560px) { .duo { grid-template-columns: 1fr 1fr; gap: 22px; } }

/* ── Post-it punaisé (PinnedPostIt) ──────────────────────────────────────── */

.postit {
  position: relative; background: var(--postit); color: var(--violet-darkest);
  padding: 30px 24px 26px; transform: rotate(-1.4deg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}
.postit::before { /* punaise */
  content: ''; position: absolute; top: 9px; left: 50%; width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%; background: var(--pin); border: 1.5px solid var(--pin-border);
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.postit-wrap { position: relative; }
.postit-wrap::after { /* dos du coin recourbé */
  content: ''; position: absolute; right: 0; bottom: 0; width: 30px; height: 30px;
  background: var(--postit-back); clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transform: rotate(-1.4deg);
}
.postit .label { color: var(--violet-deep); margin-bottom: 10px; }
.postit h3, .postit h2 { color: var(--ink); }
.postit p:last-child { margin-bottom: 0; }

/* ── Scotch ──────────────────────────────────────────────────────────────── */

.tape {
  position: absolute; top: -11px; left: 50%; width: 64px; height: 22px; margin-left: -32px;
  background: rgba(228, 216, 251, 0.85); border-left: 1px solid var(--paper-border);
  border-right: 1px solid var(--paper-border); transform: rotate(-4deg);
}

/* ── Mise en page « texte + téléphone » ──────────────────────────────────── */

.split { display: grid; gap: 40px; align-items: center; }
.split__visual { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 340px; gap: 64px; }
  .split--reverse { grid-template-columns: 340px 1fr; }
  .split--reverse .split__visual { order: -1; }
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { padding-left: 34px; position: relative; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--paper-card);
}
.checklist li::after { /* coche */
  content: ''; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2 6.4 4.9 9 10 3' fill='none' stroke='%230B1437' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checklist strong { color: var(--ink); }

/* Stepper : les 6 étapes de la préparation */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: etape; }
.steps li { position: relative; padding-left: 52px; min-height: 40px; counter-increment: etape; }
.steps li::before {
  content: counter(etape); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 16px/1 var(--font-body); color: var(--ink);
  background: var(--paper-card); border: 2px solid var(--ink);
}
.steps strong { display: block; color: var(--ink); font-family: var(--font-title); font-size: 19px; }

/* ── Maquettes de téléphone ──────────────────────────────────────────────── */

.phone {
  position: relative; margin: 0; width: 280px; flex: none;
  background: var(--paper); border: 9px solid var(--ink); border-radius: 40px;
  box-shadow: 0 18px 36px rgba(11, 20, 55, 0.22);
  height: 560px; overflow: hidden;
  color: var(--body); font-family: var(--font-body);
}
.phone::before { /* encoche */
  content: ''; position: absolute; top: 8px; left: 50%; width: 76px; height: 20px;
  margin-left: -38px; background: var(--ink); border-radius: 12px; z-index: 5;
}
.phone__screen {
  position: absolute; inset: 0; overflow: hidden;
  background-image: repeating-linear-gradient(
    to bottom, transparent 0, transparent 23px, var(--paper-line) 23px, var(--paper-line) 24px);
  padding: 38px 14px 0;
}
.phone__screen::after { /* fondu de bas d'écran */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(243,238,227,0), var(--paper));
}
.phone__capture { /* vraie capture : recouvre la maquette */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 4; background: var(--paper);
}
.phone-caption { text-align: center; margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* contenu des maquettes (tailles réduites, purement décoratif) */
.m-date { font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); margin: 4px 0 0; }
.m-title { font-family: var(--font-title); font-weight: 700; font-size: 24px; color: var(--ink); line-height: 1.1; margin: 2px 0 0; }
.m-hand { font-family: var(--font-hand); font-size: 15px; color: var(--violet); margin-left: 6px; font-weight: 500; }
.m-section { display: flex; align-items: center; gap: 6px; margin: 14px 0 8px; font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.m-section::after { content: ''; flex: 1; height: 1px; background: var(--divider); }
.m-postit { position: relative; background: var(--postit); color: var(--violet-darkest); padding: 18px 12px 12px; margin-top: 14px; transform: rotate(-1.2deg); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); font-size: 10.5px; line-height: 1.4; }
.m-postit::before { content: ''; position: absolute; top: 5px; left: 50%; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--pin); border: 1px solid var(--pin-border); }
.m-postit .m-label { font-size: 8px; letter-spacing: 0.14em; color: var(--violet-deep); text-transform: uppercase; margin: 0 0 4px; }
.m-postit strong { display: block; font-family: var(--font-title); font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.m-btn { display: block; text-align: center; font-weight: 700; font-size: 10.5px; padding: 8px 6px; border-radius: 7px; background: var(--ink); color: var(--paper); margin-top: 9px; }
.m-btn--outline { background: transparent; color: var(--ink); border: 1.2px solid var(--ink); }
.m-card { position: relative; background: var(--paper-card); border: 1px solid var(--paper-border); border-left: 4px solid var(--structure); border-radius: 3px; padding: 9px 10px; font-size: 10px; line-height: 1.4; }
.m-card--ok { border-left-color: var(--margin-success); }
.m-card--ko { border-left-color: var(--red); }
.m-card strong { font-family: var(--font-title); font-size: 12.5px; color: var(--ink); display: block; margin-bottom: 3px; }
.m-boxes { display: flex; gap: 4px; margin: 5px 0; }
.m-boxes i { width: 22px; height: 15px; border: 1.2px dashed var(--faint); border-radius: 2px; }
.m-quote { font-family: var(--font-title); font-style: italic; font-size: 11px; color: var(--ink); line-height: 1.45; margin: 3px 0 0; }
.m-hl { background: var(--highlight); }
.m-strike { color: var(--red); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.m-soft { background: var(--postit-soft); color: var(--violet-darkest); padding: 6px 8px; margin-top: 6px; font-size: 10px; border-radius: 2px; transform: rotate(0.6deg); }
.m-soft b { display: block; font-size: 7.5px; letter-spacing: 0.14em; color: var(--violet-deep); text-transform: uppercase; margin-bottom: 2px; }
.m-stamp {
  display: inline-block; font-family: var(--font-hand); font-weight: 600; font-size: 22px; color: var(--red);
  border: 2.5px solid var(--red); border-radius: 50%; padding: 1px 16px 3px; transform: rotate(-8deg); line-height: 1.1;
}
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 10px 0 2px; }
.m-stat { background: var(--paper-card); border: 1px solid var(--paper-border); border-top: 3px solid var(--rythme); border-radius: 2px; padding: 5px 4px; text-align: center; }
.m-stat b { display: block; font-family: var(--font-title); font-size: 15px; color: var(--ink); line-height: 1.1; }
.m-stat span { font-size: 6.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.m-minis { display: flex; gap: 6px; }
.m-minis span { flex: 1; background: var(--postit-soft); color: var(--violet-darkest); font-family: var(--font-title); font-weight: 600; font-size: 10px; line-height: 1.25; padding: 14px 6px 8px; border-radius: 2px; transform: rotate(-1deg); }
.m-minis span:nth-child(2) { background: var(--postit); transform: rotate(1deg); }
.m-nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 50px; background: var(--ink); display: flex; justify-content: space-around; align-items: center; color: var(--ink-muted); font-size: 7px; letter-spacing: 0.08em; text-transform: uppercase; }
.m-nav span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.m-nav .on { color: var(--paper); }
.m-nav .icon { width: 17px; height: 17px; }
.m-steps { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 4px; position: relative; }
.m-steps::before { content: ''; position: absolute; left: 12px; right: 12px; top: 50%; height: 1px; background: var(--divider); }
.m-steps i { position: relative; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 8px; font-weight: 700; background: var(--paper); border: 1.2px dashed var(--faint); color: var(--faint); }
.m-steps i.done { background: var(--ink); border: 1.2px solid var(--ink); color: var(--paper); }
.m-steps i.now { background: var(--postit); border: 1.5px solid var(--ink); color: var(--ink); }
.m-steps-names { display: flex; justify-content: space-between; font-size: 7.5px; color: var(--muted); }
.m-field { margin-top: 6px; border-bottom: 1.5px solid var(--ink); padding: 3px 0 5px; font-size: 10px; color: var(--ink); min-height: 40px; }
.m-btns { display: flex; gap: 6px; }
.m-btns .m-btn { flex: 1; }

/* ── Décryptages ─────────────────────────────────────────────────────────── */

.video-card {
  position: relative; background: var(--paper-card); border: 1px solid var(--paper-border);
  border-radius: 3px; padding: 12px 12px 18px; transform: rotate(1.4deg);
  box-shadow: 0 3px 8px rgba(11, 20, 55, 0.1); max-width: 360px; margin: 0 auto;
}
.video-card__thumb {
  position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 2px;
  display: grid; place-items: center; color: var(--paper);
}
.video-card__thumb .icon { width: 52px; height: 52px; stroke-width: 1.4; }
.video-card__duree {
  position: absolute; right: 8px; bottom: 8px; background: rgba(11, 20, 55, 0.88);
  color: var(--paper-card); font-size: 12px; padding: 2px 7px; border-radius: 2px;
}
.video-card h3 { margin-top: 14px; font-size: 18px; }

/* ── Formules ────────────────────────────────────────────────────────────── */

.formule h3 { font-size: 24px; }
.formule .label { margin-bottom: 8px; }
.formule ul { margin: 12px 0 0; padding-left: 20px; }
.formule li { margin-bottom: 6px; }
.formule--premium { background: var(--ink); border-color: var(--ink); border-left-color: var(--postit); color: var(--paper); }
.formule--premium h3, .formule--premium .label { color: var(--paper); }
.formule--premium .label { color: var(--ink-muted); }
.formule .offer { font-family: var(--font-hand); font-size: 24px; color: var(--violet); font-weight: 600; display: block; margin-top: 12px; }
.formule--premium .offer { color: var(--postit); }
.note { font-size: 15px; color: var(--muted); margin-top: 20px; }

/* ── Pied de page ────────────────────────────────────────────────────────── */

.footer { background: var(--ink); color: var(--paper); padding: 52px 0 40px; margin-top: 40px; }
.footer h2 { color: var(--paper); font-size: clamp(26px, 4.4vw, 34px); margin-bottom: 20px; }
.footer a { color: var(--postit); }
.footer a:hover { color: var(--paper); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 34px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--ink-soft); }
.footer__small { color: var(--ink-muted); font-size: 14.5px; margin: 22px 0 0; }
.footer .hand { color: var(--postit); }

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

@media print { .topbar, .footer { background: none; color: #000; } }
