/* Landing audit.diasporise.com, DA « post-it » alignée sur le PDF et LinkedIn.
   Bricolage Grotesque pour les titres, Inter pour le texte, Caveat pour les
   surtitres manuscrits (jamais pour un paragraphe ni un bouton). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/caveat-latin.woff2") format("woff2");
}

:root {
  --navy: #1e2836;
  --navy-light: #2b3a52;
  --navy-deep: #161d28;
  --cream: #f5f4f1;
  --board: #dddcdb;
  --board-edge: #c9c8c6;
  --ink: #1f2a37;
  --ink-soft: #545b66;
  --on-navy: #f3f1ec;
  --on-navy-soft: #c3c8d1;
  --yellow: #f8db72;
  --mint: #aee5cc;
  --pink: #f5b4c1;
  --lavender: #d0c6fb;
  --green: #2e7d5b;      /* surtitres sur fond crème, contraste AA */
  --green-check: #4f9f78;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 16px rgba(20, 28, 40, 0.12);
  --font-title: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;
}

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

html { scroll-behavior: smooth; }
/* Les post-it légèrement agrandis avant leur apparition ne doivent pas créer de défilement horizontal */
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.on-cream :focus-visible { outline-color: var(--ink); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ── Sections ─────────────────────────────────────────────── */
.navy {
  background: radial-gradient(ellipse at 85% 0%, var(--navy-light) 0%, var(--navy) 55%) var(--navy);
  color: var(--on-navy);
}
.on-cream { background: var(--cream); color: var(--ink); }
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }

/* ── Typographie ──────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-title); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 800; max-width: 28ch; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }

.hand {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  margin: 0 0 14px;
}
.navy .hand { color: var(--yellow); }
.on-cream .hand { color: var(--green); }

.hl {
  background: var(--yellow);
  color: var(--ink);
  border-radius: 8px;
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--on-navy-soft); max-width: 46ch; margin: 28px 0 0; }
.muted { color: var(--ink-soft); }
.navy .muted { color: var(--on-navy-soft); }

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 16px 26px;
  border-radius: var(--radius);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.on-cream .btn { box-shadow: 0 3px 0 var(--ink); }
.on-cream .btn:hover { box-shadow: 0 5px 0 var(--ink); }
.btn-small { padding: 10px 16px; font-size: 0.95rem; white-space: nowrap; flex: none; }
.btn-note { font-size: 0.95rem; margin: 12px 0 0; }

/* ── En-tête ──────────────────────────────────────────────── */
.topbar { padding: 18px 0; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-size: 0.95rem; color: var(--on-navy-soft); text-decoration: none; }
.brand strong { color: var(--on-navy); font-weight: 600; }
@media (max-width: 520px) { .brand span { display: none; } }

/* ── Post-it ──────────────────────────────────────────────── */
.note {
  position: relative;
  border-radius: 4px;
  padding: 30px 26px 26px;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.note::before {             /* ruban adhésif */
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(170, 170, 170, 0.55);
}
.note.yellow { background: var(--yellow); }
.note.mint { background: var(--mint); }
.note.pink { background: var(--pink); }
.note.lavender { background: var(--lavender); }
.note h3 { margin-bottom: 10px; }
.note p { margin: 0; }
.note { transform: rotate(var(--tilt, 0deg)); }
@media (min-width: 900px) {
  .tilt-l { --tilt: -1deg; }
  .tilt-r { --tilt: 1deg; }
}

.board {
  background: var(--board);
  border: 1px solid var(--board-edge);
  border-radius: 4px;
  padding: 34px 20px 24px;
  display: grid;
  gap: 30px;
}
@media (min-width: 900px) { .board { padding: 40px 28px 30px; gap: 28px; } }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 24px 0 64px; }
@media (min-width: 900px) { .hero { padding: 40px 0 96px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.7fr 1fr; } }

.tag {
  display: inline-block;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.15;
  background: var(--yellow);
  color: var(--ink);
  padding: 18px 26px 16px;
  margin: 18px 0 36px;
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow);
  position: relative;
}
.tag::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 34%;
  width: 84px;
  height: 20px;
  background: rgba(200, 200, 200, 0.7);
  transform: rotate(-3deg);
}
.hero h1 .hl { padding: 0 0.15em; }
.hero-cta { margin-top: 36px; }

/* Illustration du hero : la grille de performance et le post-it oublié */
.matrix-wrap { position: relative; max-width: 280px; margin: 0 auto; width: 100%; }
@media (min-width: 980px) { .matrix-wrap { max-width: 380px; } }
.matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  aspect-ratio: 4 / 3;
  border: 3px solid rgba(243, 241, 236, 0.55);
  border-radius: 8px;
}
.matrix span { border: 1.5px solid rgba(243, 241, 236, 0.4); }
.stack { position: absolute; top: 4%; right: 3%; width: 30%; aspect-ratio: 1; }
.stack i { position: absolute; width: 72%; aspect-ratio: 1; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); }
.stack i:nth-child(1) { background: var(--yellow); opacity: 0.8; top: 0; left: 0; transform: rotate(-3deg); }
.stack i:nth-child(2) { background: var(--pink); top: 6%; left: 26%; transform: rotate(3deg); }
.stack i:nth-child(3) { background: var(--mint); top: 22%; left: 10%; transform: rotate(-2deg); }
.stack i:nth-child(4) { background: var(--yellow); top: 34%; left: 30%; transform: rotate(4deg); }
.axis { font-family: var(--font-hand); font-weight: 700; color: var(--on-navy-soft); font-size: 1.5rem; text-align: center; margin: 10px 0 18px; }
.forgotten { display: flex; align-items: center; gap: 18px; }
.forgotten .ring {
  flex: none;
  position: relative;
  width: 118px;
  height: 92px;
  display: grid;
  place-items: center;
}
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring ellipse { fill: none; stroke: var(--yellow); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.forgotten .ring i { width: 54px; height: 54px; background: var(--lavender); transform: rotate(7deg); }
.forgotten span { white-space: nowrap; font-family: var(--font-hand); font-weight: 700; font-size: 1.9rem; color: var(--yellow); transform: rotate(-3deg); }

/* ── Bandeau de faits ─────────────────────────────────────── */
.facts { border-top: 1px solid rgba(243, 241, 236, 0.14); padding: 36px 0 0; margin-top: 64px; }
.facts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
@media (min-width: 640px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .facts ul { grid-template-columns: repeat(4, 1fr); } }
.facts strong { display: block; font-family: var(--font-title); font-size: 1.55rem; color: var(--yellow); line-height: 1.15; }
.facts span { color: var(--on-navy-soft); font-size: 0.97rem; }

/* Expérience antérieure : noms en texte, pas en logos, pour ne pas suggérer des clientes */
.refs { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.refs-intro { margin: 0; color: var(--on-navy-soft); font-size: 0.95rem; flex-basis: 100%; }
@media (min-width: 1000px) { .refs-intro { flex-basis: auto; } }
.refs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.refs li { font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; color: var(--on-navy); opacity: 0.85; }
.refs img { height: 26px; width: auto; }
.refs img.logo-tall { height: 46px; }
.refs img.logo-mid { height: 36px; }
@media (min-width: 900px) { .refs img { height: 30px; } .refs img.logo-tall { height: 52px; } .refs img.logo-mid { height: 42px; } }

/* ── Constat ──────────────────────────────────────────────── */
.section-head { margin-bottom: 44px; }
@media (min-width: 900px) { .board.three { grid-template-columns: repeat(3, 1fr); } }
.case-grid { display: grid; gap: 36px; margin-top: 48px; }
@media (min-width: 900px) { .case-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.flow { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow { gap: 14px 10px; padding: 6px; }
.flow li { background: var(--white); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; box-shadow: 0 0 0 6px var(--board); white-space: nowrap; }
.flow li.end { background: var(--pink); }
.flow .arrow { background: none; box-shadow: none; padding: 0; margin: 0; font-weight: 400; }
blockquote { margin: 0; }
blockquote p { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.3; margin: 0 0 12px; }
blockquote footer { color: var(--ink-soft); font-size: 0.97rem; }

/* ── Mesure ───────────────────────────────────────────────── */
.measure-grid { display: grid; gap: 36px; }
@media (min-width: 980px) { .measure-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.files { gap: 18px; }
.files .note { padding: 20px 22px; }
.files .note::before { display: none; }
.files .note p { font-weight: 700; font-size: 1.08rem; }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; }
.card + .card { margin-top: 0; }
.card-stack { display: grid; gap: 18px; background: var(--board); border: 1px solid var(--board-edge); border-radius: 4px; padding: 18px; }
.numbered { list-style: none; counter-reset: n; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.numbered li { counter-increment: n; display: flex; gap: 14px; align-items: flex-start; }
.numbered li::before {
  content: counter(n);
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.isnt { margin: 40px 0 0; font-size: 1.05rem; }
.mid-cta { margin-top: 40px; }

/* ── Déroulé et garanties ─────────────────────────────────── */
@media (min-width: 700px) { .board.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .board.four { grid-template-columns: repeat(4, 1fr); } }
.step .hand { color: var(--ink); margin-bottom: 6px; font-size: 1.75rem; }
.step strong { display: block; margin-bottom: 6px; }
.guarantees { margin-top: 28px; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .guarantees .checks { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before {
  content: "";
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green-check) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ── Ce que vous obtenez et bio ───────────────────────────── */
.deliver-grid { display: grid; gap: 48px; }
@media (min-width: 980px) { .deliver-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.navy .checks li { color: var(--on-navy); }
.price { margin-top: 32px; color: var(--on-navy-soft); }
.price strong { color: var(--on-navy); font-size: 1.15rem; }
.bio { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(243, 241, 236, 0.14); border-radius: var(--radius); padding: 26px; }
.bio-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.bio img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--yellow); }
.bio p { margin: 0; color: var(--on-navy-soft); }
.bio .hand { margin: 0; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--board-edge); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--green);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); }

/* ── Appel final ──────────────────────────────────────────── */
.final-grid { display: grid; gap: 52px; align-items: center; }
@media (min-width: 980px) { .final-grid { grid-template-columns: 1.1fr 1fr; } }
.final-grid .lead { margin-bottom: 32px; }
.mail-note { max-width: 460px; }
.mail-note .hand { color: var(--ink); font-size: 1.8rem; margin-bottom: 8px; }
.mail-note a { display: inline-block; margin-top: 14px; font-weight: 800; font-size: 1.1rem; }
@media (min-width: 900px) { .mail-note { --tilt: -1.5deg; } }

/* ── Pied de page ─────────────────────────────────────────── */
.site-footer { background: var(--navy-deep); color: var(--on-navy-soft); padding: 32px 0; font-size: 0.93rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer a { color: var(--on-navy-soft); }
.site-footer a:hover { color: var(--on-navy); }

/* ── Animations ──────────────────────────────────────────────
   Actives seulement sous html.anim (posée en JS, jamais si le visiteur
   demande à réduire les mouvements). Sans JS, tout reste visible. */

/* Hero, au chargement : l'étiquette se colle, les post-it tombent dans la
   case du haut, puis le cercle se dessine autour du post-it oublié. */
@keyframes stick-in {
  from { opacity: 0; transform: translateY(-18px) rotate(-6deg) scale(1.05); }
  to { opacity: 1; transform: rotate(-1.5deg); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes drop {
  from { opacity: 0; translate: 0 -40px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop {
  0% { opacity: 0; transform: rotate(7deg) scale(0.6); }
  70% { opacity: 1; transform: rotate(7deg) scale(1.08); }
  100% { opacity: 1; transform: rotate(7deg) scale(1); }
}

.anim .hero .tag { animation: stick-in 0.6s cubic-bezier(0.2, 0.8, 0.3, 1.2) 0.1s both; }
.anim .hero .hand,
.anim .hero h1,
.anim .hero .lead,
.anim .hero-cta { animation: fade-up 0.7s ease-out both; }
.anim .hero .hand { animation-delay: 0.25s; }
.anim .hero h1 { animation-delay: 0.35s; }
.anim .hero .lead { animation-delay: 0.5s; }
.anim .hero-cta { animation-delay: 0.65s; }
.anim .matrix-wrap { animation: fade-up 0.8s ease-out 0.4s both; }
.anim .stack i { animation: drop 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.3) both; }
.anim .stack i:nth-child(1) { animation-delay: 0.9s; }
.anim .stack i:nth-child(2) { animation-delay: 1.05s; }
.anim .stack i:nth-child(3) { animation-delay: 1.2s; }
.anim .stack i:nth-child(4) { animation-delay: 1.35s; }
.anim .forgotten .ring i { animation: pop 0.5s ease-out 1.6s both; }
.anim .ring ellipse { stroke-dashoffset: 1; animation: draw 0.9s ease-in-out 1.9s forwards; }
.anim .forgotten-label { animation: fade-up 0.5s ease-out 2.6s both; }

/* Au défilement : apparition douce */
.anim [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.anim [data-reveal].is-in { opacity: 1; transform: none; }

/* Post-it : ils se collent avec un léger rebond, l'un après l'autre */
.anim [data-reveal="note"] {
  transform: translateY(-26px) rotate(calc(var(--tilt, 0deg) - 5deg)) scale(1.04);
  transition: opacity 0.45s ease-out, transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1.35);
}
.anim [data-reveal="note"].is-in { transform: rotate(var(--tilt, 0deg)); }
.anim .board > :nth-child(2) { transition-delay: 0.12s; }
.anim .board > :nth-child(3) { transition-delay: 0.24s; }
.anim .board > :nth-child(4) { transition-delay: 0.36s; }

/* Listes : les éléments arrivent un par un */
.anim [data-reveal="stagger"] { opacity: 1; transform: none; }
.anim [data-reveal="stagger"] > li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.anim [data-reveal="stagger"].is-in > li { opacity: 1; transform: none; }
.anim [data-reveal="stagger"] > li:nth-child(2) { transition-delay: 0.1s; }
.anim [data-reveal="stagger"] > li:nth-child(3) { transition-delay: 0.2s; }
.anim [data-reveal="stagger"] > li:nth-child(4) { transition-delay: 0.3s; }
.anim [data-reveal="stagger"] > li:nth-child(5) { transition-delay: 0.4s; }
.anim .flow > li:nth-child(n) { transition-delay: calc(var(--i, 0) * 0.18s); }
.anim .flow > li:nth-child(1) { --i: 0; }
.anim .flow > li:nth-child(2) { --i: 1; }
.anim .flow > li:nth-child(3) { --i: 2; }
.anim .flow > li:nth-child(4) { --i: 3; }
.anim .flow > li:nth-child(5) { --i: 4; }

/* Surlignage : le feutre jaune passe sur les mots-clés */
.anim .hl {
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat left center / 0% 100%;
  color: inherit;
  transition: background-size 0.8s cubic-bezier(0.6, 0, 0.3, 1) 0.3s, color 0.3s ease 0.5s;
}
.anim .hl.is-in { background-size: 100% 100%; color: var(--ink); }

/* Boutons : la flèche avance au survol */
.btn span[aria-hidden] { display: inline-block; transition: transform 0.2s ease; }
.btn:hover span[aria-hidden] { transform: translateX(4px); }

/* Post-it e-mail : petit mouvement au survol */
.mail-note { transition: transform 0.3s ease; }
.mail-note:hover { transform: rotate(0deg) translateY(-3px); }

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

/* Utilitaires (remplacent les attributs style, interdits par la CSP stricte) */
.section.no-top { padding-top: 0; }
.files-note { margin-top: 16px; }
.card-text { margin: 10px 0 0; }
ol.board { list-style: none; margin: 0; }
.bio .bio-name { color: var(--on-navy); }
.footer-id { margin: 0; }
