/* =====================================================================
   Accueil : style « blocs colorés » pour les créateurs
   Contours épais, ombres franches, aplats vifs sur fonds pastel (thème clair conservé).
   Chargé uniquement par la page d'accueil, après style.css.
   ===================================================================== */
body.home {
  --ink: #0b1020; --blue: #0f62ec; --coral: #e11d48; --sun: #ffd166; --violet: #7c5cff; --mint: #34d399;
  --bx: 2px solid var(--ink);
  --sh: 6px 6px 0 var(--ink);
  background: #fff; background-image: none;
}
.home .wrap { max-width: 1120px; }
.home :focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

/* ---------- Boutons ---------- */
.bx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: var(--bx); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 750; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s; cursor: pointer; }
.bx-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.bx-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.bx-btn.primary { background: var(--blue); color: #fff; }
.bx-btn .arrow { width: 14px; height: 14px; }

/* ---------- Hero ---------- */
.hx { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 52px) 0 96px; background: #e6eeff; border-bottom: var(--bx); }
.hx-shapes .sh { position: absolute; display: block; border: var(--bx); animation: floaty 9s ease-in-out infinite; }
.sh1 { width: 230px; height: 230px; border-radius: 50%; background: var(--coral); right: -60px; top: 90px; }
.sh2 { width: 110px; height: 110px; border-radius: 28px; background: var(--sun); right: 7%; bottom: 36px; transform: rotate(14deg); animation-delay: -3s; }
.sh3 { width: 170px; height: 170px; border-radius: 50%; border: 18px solid var(--blue); background: transparent; left: -50px; top: 150px; animation-delay: -5s; }
.sh4 { width: 64px; height: 64px; border-radius: 50%; background: var(--violet); right: 44%; bottom: 36px; animation-delay: -1.5s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.hx-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; align-items: center; }
.hx-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 16px; border: var(--bx); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 750; box-shadow: 3px 3px 0 var(--ink); }
.kdot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); }
.hx h1 { margin: 0 0 22px; font-size: clamp(42px, 7vw, 86px); line-height: 0.98; font-weight: 850; letter-spacing: -0.035em; word-spacing: 0.06em; color: var(--ink); }
.hx h1 mark { background: linear-gradient(transparent 60%, var(--sun) 60%); color: inherit; padding: 0 0.06em; }
.hx-sub { margin: 0 0 30px; max-width: 540px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: #2a3042; }
.hx-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hx-cta.center { justify-content: center; }
.hx-fine { margin: 18px 0 0; font-size: 14px; font-weight: 600; color: #2a3042; }

/* Cartes « en direct » empilées */
.hx-visual { position: relative; min-height: 420px; }
.live-card { position: absolute; border: var(--bx); border-radius: 24px; background: #fff; box-shadow: var(--sh); padding: 22px; }
.live-card.front { left: 0; right: 28px; top: 24px; z-index: 2; }
.live-card.back { left: 70px; right: -14px; top: 190px; padding-top: 22px; background: #e1d9ff; transform: rotate(4deg); z-index: 1; }
.live-card.back { min-height: 190px; }
.live-card.back .live-list { display: none; }
.live-card.back .live-head { font-size: 15px; }
.live-head { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; border: 2px solid var(--ink); }
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.live-list li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: var(--bx); border-radius: 16px; background: #fff; min-width: 0; font-weight: 650; font-size: 14.5px; }
.live-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-list li b { --p: 60%; flex: none; position: relative; isolation: isolate; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: conic-gradient(var(--blue) var(--p), #dde3f0 0); }
.live-list li b::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; z-index: -1; }
.live-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 44px; font-weight: 750; color: var(--blue); text-decoration: none; }
.live-more .arrow { width: 12px; height: 12px; }
.sticker { position: absolute; right: 20px; top: 0; z-index: 3; padding: 8px 14px; border: var(--bx); border-radius: 12px; background: var(--sun); font-size: 13px; font-weight: 800; transform: rotate(3deg); box-shadow: 3px 3px 0 var(--ink); }

/* ---------- Bandeau défilant ---------- */
.home .ticker { background: var(--sun); border-block: var(--bx); padding: 14px 0; }
.home .ticker-item { background: #fff; border: var(--bx); box-shadow: none; font-weight: 700; }
.home .ticker-item b { color: var(--blue); }

/* ---------- Sections ---------- */
.sec { position: relative; padding: 104px 0; border-bottom: var(--bx); }
.sec-violet { background: #e9e4ff; }
.sec-sun { background: #fff0c2; }
.sec-mint { background: #d9f6e8; }
.sec-kicker { display: inline-block; margin: 0 0 14px; padding: 5px 14px; border: var(--bx); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: 2px 2px 0 var(--ink); }
.sec-title { margin: 0; max-width: 17ch; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.02; font-weight: 850; letter-spacing: -0.032em; word-spacing: 0.06em; color: var(--ink); }
.sec-lead { margin: 20px 0 28px; max-width: 520px; font-size: 18px; line-height: 1.6; color: #2a3042; }
.sec-lead.center { margin-inline: auto; text-align: center; max-width: 620px; }
#outils .sec-kicker, #outils .sec-title, #faq-home .sec-kicker, #faq-home .sec-title, #flow .sec-kicker, #flow .sec-title { display: block; width: fit-content; }
#outils .wrap > .sec-kicker, #outils .wrap > .sec-title { margin-inline: auto; text-align: center; }
#outils .sec-title { max-width: 22ch; }

/* Trois tuiles */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.tile { position: relative; padding: 34px 30px 36px; border: var(--bx); border-radius: 28px; box-shadow: var(--sh); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.tile:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.tile-n { display: block; margin-bottom: 40px; font-size: 64px; line-height: 1; font-weight: 850; letter-spacing: -0.05em; opacity: 0.95; }
.tile h3 { margin: 0 0 12px; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.tile p { margin: 0; font-size: 17px; line-height: 1.55; }
.t-blue { background: var(--blue); color: #fff; }
.t-coral { background: var(--coral); color: #fff; }
.t-sun { background: var(--sun); color: var(--ink); }

/* Deux colonnes */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.duo.reverse .duo-copy { order: 2; }
.ticks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; font-size: 17px; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: -1px; width: 26px; height: 26px; display: grid; place-items: center; border: var(--bx); border-radius: 50%; background: var(--mint); font-size: 14px; font-weight: 900; }

/* Carte de score */
.score-card, .mail-card { padding: 30px; border: var(--bx); border-radius: 28px; background: #fff; box-shadow: 8px 8px 0 var(--ink); }
.score-top { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.ring-xl { --p: 80%; position: relative; isolation: isolate; flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--coral) var(--p), #e4e7ef 0); border: var(--bx); }
.ring-xl::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #fff; border: var(--bx); z-index: -1; }
.ring-xl span { font-size: 38px; font-weight: 850; letter-spacing: -0.04em; }
.score-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.score-meta { margin: 2px 0 10px; font-size: 14px; color: #4a5160; }
.score-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tg { display: inline-block; font-style: normal; font-size: 12px; font-weight: 750; padding: 3px 10px; border: var(--bx); border-radius: 999px; }
.tg.g { background: #bff3d6; } .tg.b { background: #cfe0ff; }
.sig-list { display: grid; gap: 14px; }
.sig-list div { display: grid; grid-template-columns: 96px 1fr 32px; align-items: center; gap: 12px; font-size: 14px; font-weight: 650; }
.sig-list i { display: block; height: 14px; border: var(--bx); border-radius: 999px; background: #eef0f6; overflow: hidden; }
.sig-list u { display: block; height: 100%; background: var(--blue); }
.sig-list div:nth-child(2) u { background: var(--coral); }
.sig-list div:nth-child(3) u { background: var(--sun); }
.sig-list div:nth-child(4) u { background: var(--violet); }
.sig-list b { text-align: right; }
.note { display: block; margin-top: 18px; font-size: 12px; color: #4a5160; text-align: right; }

/* Trois gestes */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step { position: relative; padding: 30px 28px 32px; border: var(--bx); border-radius: 26px; background: #fff; box-shadow: var(--sh); }
.step-n { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border: var(--bx); border-radius: 16px; background: var(--sun); font-size: 26px; font-weight: 850; box-shadow: 3px 3px 0 var(--ink); }
.step:nth-child(2) .step-n { background: #cfe0ff; }
.step:nth-child(3) .step-n { background: #ffc9d4; }
.step h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; }
.step p { margin: 0; font-size: 16.5px; line-height: 1.55; color: #2a3042; }

/* Aperçu d'e-mail */
.mail-bar { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: var(--bx); }
.mail-bar small { display: block; color: #4a5160; font-size: 13px; }
.mk { display: inline-flex; width: 38px; height: 38px; }
.mail-item { display: grid; gap: 6px; padding: 14px 16px; margin-bottom: 12px; border: var(--bx); border-radius: 16px; background: #f6f7fb; }
.mail-item b { font-size: 16px; }
.mail-item span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #4a5160; }

/* Outils : conversation et code */
.tools-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; margin-top: 48px; align-items: stretch; }
.home .chat-demo, .home .code-demo { border: var(--bx); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); padding: 28px; }
.home .code-demo { background: var(--ink); }
.home .chat-demo { background: #fff; }
.home .msg.user { background: var(--blue); border: var(--bx); }
.home .msg.bot { background: #f6f7fb; border: var(--bx); }
.home .tool-chip { border: 2px dashed var(--ink); }
.tools-cta { margin: 36px 0 0; text-align: center; }

/* Questions */
.narrow-wrap { max-width: 800px; }
.home #faq-home .faq-list { margin-top: 36px; display: grid; gap: 16px; }
.home #faq-home .faq-item { border: var(--bx); border-radius: 20px; background: #fff; box-shadow: 4px 4px 0 var(--ink); padding: 4px 24px; }
.home #faq-home .faq-item[open] { box-shadow: 6px 6px 0 var(--ink); }
.home #faq-home .faq-item p { color: #2a3042; }

/* Appel final */
.final { padding: 104px 0; background: var(--blue); border-bottom: var(--bx); position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.6px); background-size: 28px 28px; opacity: 0.8; pointer-events: none; }
.final-card { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.final h2 { margin: 0 0 16px; font-size: clamp(36px, 5.6vw, 66px); line-height: 1.02; font-weight: 850; letter-spacing: -0.032em; word-spacing: 0.06em; color: #fff; }
.final p { margin: 0 auto 32px; max-width: 560px; font-size: 19px; line-height: 1.55; color: #fff; }
.final .bx-btn.primary { background: var(--sun); color: var(--ink); }

/* ---------- Adaptation tablette et mobile ---------- */
@media (max-width: 980px) {
  .hx-grid { grid-template-columns: 1fr; gap: 44px; }
  .hx-visual { min-height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .trio, .steps { grid-template-columns: 1fr; gap: 22px; }
  .duo, .tools-grid { grid-template-columns: 1fr; gap: 40px; }
  .duo.reverse .duo-copy { order: 0; }
  .sec { padding: 76px 0; }
  .sec-title { max-width: none; }
  .sh1 { width: 150px; height: 150px; right: -40px; top: 70px; }
  .sh3 { display: none; }
}
@media (max-width: 560px) {
  .hx { padding-bottom: 72px; }
  .hx-cta .bx-btn { width: 100%; }
  .hx-visual { min-height: 380px; }
  .live-card.front { right: 8px; }
  .live-card.back { left: 24px; right: -4px; top: 168px; }
  .sh2, .sh4 { display: none; }
  .tile, .step { padding: 26px 22px 28px; }
  .tile-n { font-size: 52px; margin-bottom: 28px; }
  .score-card, .mail-card, .home .chat-demo, .home .code-demo { padding: 22px; box-shadow: 6px 6px 0 var(--ink); }
  .score-top { flex-direction: column; align-items: flex-start; }
  .sig-list div { grid-template-columns: 82px 1fr 28px; }
  .final { padding: 76px 0; }
}
@media (prefers-reduced-motion: reduce) { .hx-shapes .sh { animation: none; } }
