/* Base commune des sites de démonstration (restaurant, artisan, PME, avocate, association).
   Chaque démo charge ensuite son propre fichier theme.css qui redéfinit les variables
   et ajoute ses composants. Aucune police ni script externe. */

:root {
  --bg: #f7f7f5;
  --paper: #ffffff;
  --tint: #efefeb;
  --ink: #1d1d1b;
  --ink-2: #55554f;
  --accent: #2f5d8a;
  --accent-d: #234870;
  --accent-ink: #ffffff;
  --dark: #1d1d1b;
  --dark-ink: #f2f2ee;
  --line: rgba(0, 0, 0, .1);
  --radius: 16px;
  --btn-radius: 999px;
  --head: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head-weight: 700;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.03rem/1.68 var(--body); -webkit-font-smoothing: antialiased; }
svg { display: block; max-width: 100%; }
a { color: var(--accent-d); }
h1, h2, h3 { font-family: var(--head); font-weight: var(--head-weight); line-height: 1.18; margin: 0 0 .55em; color: inherit; }
h1 { font-size: clamp(2.05rem, 4.8vw, 3.3rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Bandeau de démonstration ─────────────────────────────────────────── */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding: 8px 16px; background: #141414; color: #eee; font: 400 .85rem/1.5 system-ui, sans-serif; text-align: center; }
.demo-bar p { margin: 0; }
.demo-bar a { color: #f7a64a; font-weight: 600; }

/* ── En-tête ──────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-name { display: block; font-family: var(--head); font-weight: var(--head-weight); font-size: 1.15rem; line-height: 1.1; }
.brand-sub { display: block; font-size: .78rem; color: var(--ink-2); }
.main-nav { display: flex; gap: 20px; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-size: .94rem; }
.main-nav a:hover { color: var(--accent-d); }
.header-tel { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }

/* ── Boutons ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--btn-radius); border: 0; font: 600 .98rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-d); }
.btn-ghost { border: 2px solid currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(127, 127, 127, .12); }
.btn-block { width: 100%; }
.header-cta { min-height: 42px; padding: 0 18px; font-size: .9rem; }

/* ── Accueil ──────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .86rem; color: var(--ink-2); }

/* ── Sections et grilles ──────────────────────────────────────────────── */
.section { padding: 76px 0; }
.section-paper { background: var(--paper); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark .eyebrow { color: var(--accent); }
.section-lead { color: var(--ink-2); max-width: 46em; margin-bottom: 30px; }
.section-dark .section-lead { color: inherit; opacity: .8; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-2); font-size: .97rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.note { margin-top: 18px; color: var(--ink-2); font-size: .92rem; }
.demo-note { font-size: .88rem; color: var(--ink-2); background: var(--tint); border-radius: 12px; padding: 10px 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.ticks strong { color: var(--ink); }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(160deg, var(--tint), var(--line)); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 24px; }
.portrait span { font-size: .85rem; color: var(--ink-2); background: var(--paper); padding: 6px 14px; border-radius: 999px; }
.reviews-slot { text-align: center; background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius); padding: 34px 26px; }
.reviews-stars { color: #e3a008; font-size: 1.5rem; letter-spacing: 4px; margin-bottom: 6px; }
.reviews-slot p { color: var(--ink-2); margin: 0; }

/* ── Formulaires de démonstration (rien n'est envoyé) ─────────────────── */
.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-msg { margin: 0; font-size: .88rem; background: var(--tint); color: var(--ink); padding: 10px 12px; border-radius: 10px; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; color: var(--ink); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

/* ── Pied de page ─────────────────────────────────────────────────────── */
.site-footer { padding: 34px 0 110px; font-size: .9rem; color: var(--ink-2); }
.footer-in p { margin: 0 0 6px; }
.credit a { color: var(--ink); font-weight: 700; }
.mobile-cta { display: none; }

/* ── Tablette ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .main-nav, .header-tel { display: none; }
  .hero-in, .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  html { scroll-padding-top: 84px; }
  .header-cta { display: none; }
  .hero { padding: 40px 0 48px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; align-items: center; justify-content: center; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 30; min-height: 52px; border-radius: var(--btn-radius); background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
