/* YolpAi — feuille de style du site public */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-dark: #0b1324;
  --surface: #ffffff;
  --text: #16202f;
  --text-soft: #4a5768;
  --text-on-dark: #e8eef8;
  --muted-on-dark: #a9b6c9;
  --border: #dfe6ef;
  --primary: #3b5bfd;
  --primary-strong: #2a45d8;
  --primary-soft: #eaefff;
  --accent: #10b8a6;
  --accent-soft: #e2f7f4;
  --danger: #c2373a;
  --success: #12805c;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1424;
    --bg-soft: #121b2f;
    --bg-dark: #070c18;
    --surface: #152036;
    --text: #e6ecf5;
    --text-soft: #a8b5c8;
    --border: #25324b;
    --primary: #7b93ff;
    --primary-strong: #9aacff;
    --primary-soft: #1c2950;
    --accent: #3fd8c6;
    --accent-soft: #123a3a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-strong); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3, .h3 { font-size: 1.2rem; }
.slots-title { margin-top: 24px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.125rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 2px solid var(--primary);
  background: var(--primary); color: #fff; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; font-family: inherit; }
.btn:hover { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-strong); }
.btn-light { background: #fff; border-color: #fff; color: #0b1324; }
.btn-light:hover { background: #e8eef8; border-color: #e8eef8; color: #0b1324; }
.btn-sm { padding: 8px 18px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.centered { justify-content: center; }
.link-arrow { font-weight: 650; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.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; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.logo:hover { color: var(--text); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a:not(.btn) { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-soft); text-decoration: none; font-weight: 550; font-size: .98rem; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
.main-nav { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; display: none; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav a:not(.btn) { padding: 12px; font-size: 1.05rem; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
}

/* Héros */
.hero { position: relative; overflow: hidden; background: var(--bg-dark); color: var(--text-on-dark); padding: clamp(64px, 10vw, 120px) 0 clamp(64px, 9vw, 110px); }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 300px at 85% 10%, rgba(59, 91, 253, .35), transparent 70%),
  radial-gradient(500px 300px at 10% 100%, rgba(16, 184, 166, .22), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #8ea2ff, #4fe3d1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted-on-dark); max-width: 580px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted-on-dark); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: #4fe3d1; font-weight: 800; margin-right: 8px; }
.page-hero { background: var(--bg-dark); color: var(--text-on-dark); padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 260px at 90% 0%, rgba(59, 91, 253, .32), transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--muted-on-dark); font-size: 1.15rem; max-width: 680px; margin: 0; }

/* Illustration flux d'automatisation */
.flow { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 24px; display: grid; gap: 12px; font-size: .95rem; }
.flow-step { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 14px 16px; }
.flow-step .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(123, 147, 255, .2); color: #b9c6ff; font-weight: 800; }
.flow-step:nth-child(odd) .ic { background: rgba(79, 227, 209, .16); color: #7ff0e2; }
.flow-step strong { color: #fff; display: block; }
.flow-step small { color: var(--muted-on-dark); }
.flow-arrow { text-align: center; color: #6f80a3; line-height: 1; }
.flow-result { text-align: center; color: #7ff0e2; font-weight: 700; padding-top: 4px; }

/* Cartes et grilles */
.grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-soft); margin-bottom: .6em; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; }
.card-icon.teal { background: var(--accent-soft); color: var(--accent); }
.check-list { list-style: none; padding: 0; margin: 12px 0 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 8px; color: var(--text-soft); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Étapes */
.steps { counter-reset: step; display: grid; gap: 20px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step p { color: var(--text-soft); margin: 0; }

/* Exemples de tâches */
.examples { display: grid; gap: 14px; }
@media (min-width: 800px) { .examples { grid-template-columns: repeat(2, 1fr); } }
.example { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.example .before { color: var(--text-soft); }
.example .after { font-weight: 600; }
.example .arrow { color: var(--accent); font-weight: 800; }
@media (max-width: 520px) { .example { grid-template-columns: 1fr; } .example .arrow { transform: rotate(90deg); justify-self: start; } }

/* Section application */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.app-mock { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); font-size: .9rem; }
.app-mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.app-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.app-mock-body { padding: 18px; display: grid; gap: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { background: var(--bg-soft); border-radius: 10px; padding: 12px; }
.mock-kpi small { display: block; color: var(--text-soft); font-size: .75rem; }
.mock-kpi b { font-size: 1.1rem; }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 650; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.pill.teal { background: var(--accent-soft); color: var(--accent); }

/* Bandeau d'appel à l'action */
.cta-band { background: linear-gradient(120deg, #2a45d8, #3b5bfd 45%, #10b8a6); color: #fff; border-radius: 24px; padding: clamp(36px, 6vw, 64px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .88); font-size: 1.15rem; max-width: 620px; margin: 0 auto 28px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; padding: 20px 36px 20px 0; font-weight: 650; font-size: 1.08rem; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; color: var(--primary); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-soft); padding-bottom: 16px; }

/* Formulaires */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--text-soft); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-soft); }
.checkbox input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 10px; font-weight: 550; }
.alert[hidden] { display: none; }
.alert-ok { background: #e3f6ee; color: #0d6b4c; }
.alert-err { background: #fdecec; color: #a42b2e; }
@media (prefers-color-scheme: dark) { .alert-ok { background: #0f3b2c; color: #8be6c3; } .alert-err { background: #4a1a1c; color: #ffb3b5; } }

.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr .8fr; } }
.contact-aside .card + .card { margin-top: 20px; }

/* Réservation */
.booking { display: grid; gap: 28px; }
@media (min-width: 960px) { .booking { grid-template-columns: 1fr 1fr; } }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.day-btn, .slot-btn { border: 1.5px solid var(--border); background: var(--surface); color: var(--text); border-radius: 10px; padding: 10px 6px; cursor: pointer; font: inherit; text-align: center; line-height: 1.3; }
.day-btn small { display: block; color: var(--text-soft); font-size: .78rem; text-transform: capitalize; }
.day-btn b { font-size: 1.05rem; }
.day-btn:hover, .slot-btn:hover { border-color: var(--primary); }
.day-btn[aria-pressed="true"], .slot-btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.day-btn[aria-pressed="true"] small { color: rgba(255, 255, 255, .85); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.slot-btn { font-weight: 650; padding: 10px 4px; }
.muted { color: var(--text-soft); }
.booking-summary { background: var(--primary-soft); border-radius: 10px; padding: 12px 16px; font-weight: 600; }

/* Blog et contenus */
.prose { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.breadcrumb { font-size: .9rem; color: var(--text-soft); }
.breadcrumb a { color: var(--text-soft); }
.post-date { color: var(--text-soft); font-size: .92rem; }
.post-card h2 { font-size: 1.35rem; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--primary); }
.cta-inline { margin-top: 48px; padding: 24px; border-radius: var(--radius); background: var(--primary-soft); }
.legal h2 { font-size: 1.3rem; }

/* Pied de page */
.site-footer { background: var(--bg-dark); color: var(--muted-on-dark); padding: 56px 0 24px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 12px; }
.logo-footer { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

.powered { text-align: center; color: var(--text-soft); font-size: .9rem; padding-bottom: 40px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-login { padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 600; text-decoration: none; }
.nav-login:hover { background: var(--bg-soft); }
.page-hero .hero-cta { margin-top: 24px; }
[data-install][hidden] { display: none !important; }
.page-hero p.install-hint { font-size: .95rem; margin-top: 16px; }
button.btn { font: inherit; cursor: pointer; }
.page-hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.page-hero .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
@media (max-width: 960px) { .nav-actions { flex-direction: column; align-items: stretch; } .nav-login { text-align: center; } }
