/* ============================================================
   KERNOZ — Feuille de style
   Les couleurs et réglages principaux sont dans :root
   ============================================================ */

:root {
  --bg: #fafbfd;
  --bg-alt: #f1f4f9;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-soft: #3d4759;
  --muted: #6b7486;
  --line: #e2e7ef;
  --blue: #1f3fd1;        /* couleur d'accent */
  --blue-dark: #1631a8;
  --blue-soft: #e9eefc;
  --navy: #0a1430;        /* sections sombres */
  --navy-2: #13204a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px rgba(11, 18, 32, .06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow--light { color: #9fb2ff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: .97rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: #c5cdda; }
.btn--outline { color: var(--blue); border-color: #c9d3f5; background: transparent; width: 100%; }
.btn--outline:hover { background: var(--blue-soft); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #8ea4ff; outline-offset: 2px;
}

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 253, .9); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: .14em; font-size: 1.05rem; color: var(--ink); text-decoration: none;
}
.logo__mark {
  width: 22px; height: 22px; border-radius: 6px; background: var(--blue); position: relative;
}
.logo__mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 2px; background: #fff;
  clip-path: polygon(0 0, 45% 0, 45% 40%, 100% 0, 100% 35%, 60% 50%, 100% 65%, 100% 100%, 45% 60%, 45% 100%, 0 100%);
}
.logo--small { font-size: .95rem; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- Accroche ---------- */
.hero { padding: 88px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.lead { font-size: 1.17rem; color: var(--ink-soft); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 36px; }
.hero__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero__points li, .list-check li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: .97rem; }
.hero__points li::before, .list-check li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231f3fd1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Exemple d'email */
.mail {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 2px 4px rgba(11,18,32,.04), 0 24px 60px rgba(31,63,209,.10);
  overflow: hidden; font-size: .93rem;
}
.mail__tag {
  padding: 12px 20px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue); background: #f7f9fc; border-bottom: 1px solid var(--line);
}
.mail__head { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.mail__head p { margin: 0; padding: 4px 0; color: var(--ink); display: grid; grid-template-columns: 52px 1fr; }
.mail__head p > span:first-child { color: var(--muted); font-size: .85rem; padding-top: 1px; }
.mail__head b { font-weight: 400; }
.mail__body { padding: 18px 20px 6px; color: var(--ink-soft); line-height: 1.65; }
.mail__body p { margin: 0 0 12px; }
.mail mark { background: var(--blue-soft); color: var(--blue-dark); padding: 1px 3px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mail__legend { padding: 12px 20px 16px; font-size: .8rem; color: var(--muted); }
.mail__legend span { display: inline-flex; align-items: center; gap: 8px; }
.mail__swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--blue-soft); border: 1px solid #c9d3f5; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__intro { color: var(--ink-soft); font-size: 1.07rem; margin-top: 12px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.card--line { border-top: 3px solid var(--blue); }

/* Méthode */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step__num { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 6px; padding: 3px 8px; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.step p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* Pour qui */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit__col { border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); background: var(--surface); }
.fit__col--yes { border-color: #c9d3f5; box-shadow: var(--shadow); }
.fit__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fit__col li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.fit__col li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.fit__col--yes li::before { content: "✓"; color: var(--blue); }
.fit__col--no li::before { content: "—"; color: var(--muted); }

/* Offres */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column;
}
.price--plus { border-color: #c9d3f5; }
.price__name { font-weight: 650; margin: 0 0 14px; }
.price__amount { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; font-variant-numeric: tabular-nums; }
.price__amount span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price__unit { font-size: .88rem; color: var(--muted); margin: 0 0 20px; }
.price__features { list-style: none; padding: 20px 0 0; margin: 0 0 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; }
.price__features li { font-size: .95rem; color: var(--ink-soft); padding-left: 22px; position: relative; }
.price__features li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.price__features li.is-off { color: var(--muted); }
.price__features li.is-off::before { background: #cfd6e3; }

.scope { margin-top: 24px; }
.scope .list-check { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
.scope__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.scope__col h3 { font-size: 1rem; }
.scope__col p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* Fondateur */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; max-width: 980px; }
.founder__img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.founder__text p:not(.eyebrow) { color: var(--ink-soft); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--blue); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 22px; margin: 0; max-width: 680px; }

/* Contact */
.section--dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__text p { color: #c3cbe0; font-size: 1.05rem; }
.booking-embed { margin-top: 28px; background: #fff; border-radius: 16px; overflow: hidden; }
.booking-embed iframe { display: block; width: 100%; height: 700px; border: 0; }
.form { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 32px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: .97rem; font-weight: 400; color: var(--ink);
  border: 1px solid #d3dae5; border-radius: 8px; padding: 11px 12px; background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.form textarea { resize: vertical; }
.form__consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; color: var(--ink-soft) !important; font-size: .85rem !important; }
.form__consent input { width: 16px; height: 16px; margin-top: 3px; }
.form__status { margin: 0; font-size: .92rem; min-height: 1.2em; }
.form__status.is-ok { color: #13734a; }
.form__status.is-error { color: #b42318; }
.hp { position: absolute; left: -9999px; }

/* Pied de page */
.footer { padding: 36px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer__inner p { margin: 0; }
.footer__links { display: flex; gap: 20px; margin-left: auto; }
.footer__links a { color: var(--ink-soft); text-decoration: none; }
.footer__links a:hover { color: var(--ink); }

/* Pages légales */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .todo { background: #fff6db; padding: 1px 5px; border-radius: 4px; color: #7a5a00; }
.legal__warning { background: #fff6db; border: 1px solid #f1d98a; border-radius: 10px; padding: 16px 18px; color: #6b5000 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero__grid, .contact { grid-template-columns: 1fr; gap: 48px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .fit { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }

  .nav-toggle {
    display: grid; gap: 6px; place-content: center; width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer;
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .grid-3, .steps, .pricing, .form__row, .scope .list-check { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .founder { grid-template-columns: 1fr; gap: 24px; }
  .founder__img { max-width: 280px; }
  .form { padding: 22px; }
  .footer__links { margin-left: 0; }
}
