/* Koyeba : l'accueil et Mon espace. Blanc, noir, une seule couleur d'accent (l'orange du point). */
:root {
  --bg: #FFFFFF; --soft: #F6F5F2; --surface: #FFFFFF; --ink: #0B0B0B; --ink-2: #57544E; --ink-3: #8C8984;
  --line: #E6E4DF; --line-strong: #CFCCC5; --brand: #FE7F04; --brand-soft: #FFF1E3; --brand-text: #B35400;
  --ok: #0B7349; --ok-soft: #DDEFE5; --wa: #128C4B;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0B; --soft: #151412; --surface: #161513; --ink: #F3F1EC; --ink-2: #ABA59C; --ink-3: #7D776F;
    --line: #2A2724; --line-strong: #3A3632; --brand-soft: #33200C; --brand-text: #FF9B3D; --ok: #3DBE84; --ok-soft: #173A29;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0B; --soft: #151412; --surface: #161513; --ink: #F3F1EC; --ink-2: #ABA59C; --ink-3: #7D776F;
  --line: #2A2724; --line-strong: #3A3632; --brand-soft: #33200C; --brand-text: #FF9B3D; --ok: #3DBE84; --ok-soft: #173A29;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.03em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.page { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* En-tête */
.tete { display: flex; align-items: center; gap: 16px; padding: 20px 0; }
.tete .marque { display: block; line-height: 0; border-radius: 8px; }
.tete .logo { width: 112px; height: auto; color: var(--ink); }
.tete nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lien { font-weight: 500; text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.lien:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 11px 18px; font: 600 0.95rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--brand); color: #0B0B0B; transition: transform .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.noir { background: var(--ink); color: var(--bg); }
.btn.creux { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.grand { padding: 16px 24px; font-size: 1rem; }
.btn.wa { background: var(--wa); color: #fff; }

/* ---------- Accueil ---------- */
.hero { padding: clamp(40px, 9vw, 96px) 0 clamp(48px, 8vw, 88px); display: grid; gap: 22px; max-width: 760px; }
.hero h1 { font-size: clamp(2.4rem, 7.4vw, 4.4rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.045em; }
.hero h1 b { color: var(--brand); font-weight: inherit; }
.hero p { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--ink-2); max-width: 40ch; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-top: 6px; }

.bloc { padding: clamp(48px, 8vw, 88px) 0; border-top: 1px solid var(--line); }
.bloc > h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); line-height: 1.1; font-weight: 800; max-width: 22ch; }
.bloc > .chapeau { color: var(--ink-2); font-size: 1.08rem; margin-top: 12px; max-width: 52ch; }

.outil { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 72px); align-items: center; padding-top: clamp(40px, 7vw, 72px); }
.outil:nth-of-type(even) .texte { order: 2; }
.outil .verbe { font: 700 0.78rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-text); }
.outil h3 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.1; font-weight: 800; margin-top: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.outil .texte p { color: var(--ink-2); font-size: 1.05rem; margin-top: 12px; max-width: 44ch; }
.bientot { font: 600 0.75rem/1 var(--body); letter-spacing: 0; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }

/* Petites maquettes des outils (toujours claires, comme l'appli) */
.ecran { background: var(--soft); border-radius: 20px; padding: clamp(16px, 3.5vw, 28px); }
.carte { background: #FFFFFF; color: #0B0B0B; border-radius: 14px; box-shadow: 0 1px 2px rgba(11,11,11,.06), 0 10px 30px rgba(11,11,11,.07); padding: 18px; display: grid; gap: 12px; font-size: 0.9rem; }
.carte .entete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.8rem; color: #6A665F; }
.carte .entete b { color: #0B0B0B; font-size: 0.92rem; }
.fiche { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid #EEECE8; align-items: center; }
.fiche b { font-weight: 600; }
.fiche span { color: #6A665F; font-size: 0.82rem; grid-column: 1; }
.fiche em { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-size: 0.75rem; font-weight: 600; border-radius: 999px; padding: 5px 10px; background: #F3F2EF; color: #57544E; white-space: nowrap; }
.fiche em.chaud { background: #FFF1E3; color: #B35400; }
.fiche em.vert { background: #DDEFE5; color: #0B7349; }
.tel { font-family: var(--mono); font-size: 0.8rem; }
.types { display: flex; gap: 6px; flex-wrap: wrap; }
.types i { font-style: normal; border: 1px solid #E6E4DF; border-radius: 999px; padding: 6px 12px; font-size: 0.8rem; font-weight: 500; }
.types i.actif { background: #0B0B0B; color: #fff; border-color: #0B0B0B; }
.manque { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 0.86rem; }
.manque li { display: flex; gap: 8px; align-items: baseline; }
.manque li::before { content: "✓"; color: #0B7349; font-weight: 700; }
.manque li.non { color: #B35400; }
.manque li.non::before { content: "•"; color: #FE7F04; }
.code { font: 0.78rem/1.55 var(--mono); background: #0B0B0B; color: #EDEBE6; border-radius: 10px; padding: 12px 14px; white-space: pre-wrap; }
.code b { color: #FE9A3D; font-weight: 500; }
.petit-btn { justify-self: start; font: 600 0.8rem/1 var(--body); border-radius: 999px; padding: 9px 14px; background: #FE7F04; color: #0B0B0B; }
.petit-btn.wa { background: #128C4B; color: #fff; }
.devis-tete { display: flex; align-items: center; gap: 10px; }
.devis-tete i { width: 34px; height: 34px; border-radius: 9px; background: #1E3A5F; color: #fff; display: grid; place-items: center; font: 700 0.8rem/1 var(--display); font-style: normal; }
.devis-tete span { display: grid; font-size: 0.78rem; color: #6A665F; line-height: 1.3; }
.devis-tete span b { color: #0B0B0B; font-size: 0.9rem; }
.lignes { display: grid; gap: 0; }
.lignes div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #EEECE8; font-size: 0.84rem; }
.lignes div.total { font-weight: 700; border-top: 2px solid #0B0B0B; }
.lignes div span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Comment ça marche */
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: e; }
.etapes li { counter-increment: e; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.etapes li::before { content: counter(e); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 700 0.9rem/1 var(--display); }
.etapes b { font-family: var(--display); font-size: 1.12rem; letter-spacing: -0.015em; }
.etapes span { color: var(--ink-2); font-size: 0.95rem; }

/* L'offre */
.offre { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: end; background: var(--ink); color: var(--bg); border-radius: 24px; padding: clamp(28px, 6vw, 56px); margin-top: 36px; }
.offre .nom { font: 700 0.8rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand); }
.offre .prix { font: 800 clamp(2.4rem, 7vw, 3.6rem)/1 var(--display); letter-spacing: -0.04em; margin-top: 14px; }
.offre .prix small { font: 500 1rem var(--body); letter-spacing: 0; opacity: .7; margin-left: 6px; }
.offre ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.offre li { display: flex; gap: 10px; align-items: baseline; }
.offre li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); transform: translateY(-2px); }
.offre .note { opacity: .7; font-size: 0.92rem; margin-top: 18px; }
.offre .btn.noir { background: var(--bg); color: var(--ink); }

/* Questions */
.questions { display: grid; gap: 0; margin-top: 28px; max-width: 760px; }
.questions details { border-top: 1px solid var(--line); padding: 18px 0; }
.questions details:last-child { border-bottom: 1px solid var(--line); }
.questions summary { cursor: pointer; list-style: none; font: 600 1.08rem/1.35 var(--display); letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 16px; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font-weight: 400; color: var(--ink-3); font-size: 1.4rem; line-height: 1; }
.questions details[open] summary::after { content: "–"; }
.questions p { color: var(--ink-2); margin-top: 10px; max-width: 60ch; }

.pied { border-top: 1px solid var(--line); padding: 32px 0 calc(40px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 0.9rem; }
.pied .logo { width: 84px; height: auto; color: var(--ink); }
.slogan b { color: var(--brand); }

/* ---------- Mon espace ---------- */
.titre { display: grid; gap: 6px; padding: clamp(20px, 5vw, 48px) 0 28px; }
.titre h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; font-weight: 800; }
.titre p { color: var(--ink-2); font-size: 1.05rem; }
.tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tuile { border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 4px; align-content: start; text-decoration: none; color: inherit; background: var(--surface);
  transition: border-color .2s ease, transform .2s ease; min-height: 190px; }
a.tuile:hover { border-color: var(--ink); transform: translateY(-2px); }
.tuile .nom { font-size: 0.9rem; color: var(--ink-2); font-weight: 500; }
.tuile .chiffre { font: 800 2.2rem/1.1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; padding-top: 8px; }
.tuile .chiffre.mot { font-size: 1.6rem; padding-top: 14px; }
.tuile .detail { font-size: 0.92rem; color: var(--ink-2); }
.tuile .ouvrir { font-size: 0.9rem; font-weight: 600; padding-top: 14px; margin-top: auto; }
.tuile.ferme { background: var(--soft); border-color: transparent; }
.tuile.ferme .ouvrir { color: var(--ink-3); font-weight: 500; }
.lignes-info { display: grid; gap: 10px; margin-top: 16px; }
.lignes-info.en-haut { margin: 0 0 16px; }
.info { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; border-radius: 16px; padding: 16px 20px; font-size: 0.95rem; }
.info.doux { background: var(--soft); }
.info.chaud { background: var(--brand-soft); }
.info.bord { border: 1px solid var(--line); }
.info b { font-weight: 600; }
.info span { color: var(--ink-2); }
.compte { display: flex; align-items: center; gap: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 700 0.95rem/1 var(--display); }
.lien-bouton { font: 500 0.95rem var(--body); background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.lien-bouton:hover { text-decoration: underline; text-underline-offset: 3px; }
.attente { color: var(--ink-3); padding: 60px 0; }

@media (max-width: 860px) {
  .outil { grid-template-columns: 1fr; }
  .outil:nth-of-type(even) .texte { order: 0; }
  .etapes { grid-template-columns: 1fr; }
  .offre { grid-template-columns: 1fr; align-items: start; }
  .tuiles { grid-template-columns: 1fr; }
  .tuile { min-height: 0; }
}
@media (max-width: 520px) {
  .tete nav .cache-mobile { display: none; }
  .tete .logo { width: 96px; }
  .tete nav { gap: 14px; }
  .btn { padding: 10px 15px; }
  .btn.grand { padding: 15px 22px; width: 100%; }
  .actions { gap: 16px; }
  .actions .lien { width: 100%; text-align: center; }
  .compte .nom-compte { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .tuile { transition: none; } }
