/* ═══════════════════════════════════════════════════════════════════════════
   sbonhoure.app — feuille de style partagée (pages contact & prestations)
   Palette strictement identique à la page d'accueil.
   La page d'accueil garde son CSS inline (mise en page bento spécifique).
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --surface: rgba(20, 20, 20, 0.85);
  --surface-2: rgba(28, 28, 28, 0.95);
  --border: rgba(255,255,255,0.07);
  --text: #f0ede8;
  --muted: #8a8780;          /* 5.4:1 sur le fond — conforme WCAG AA */
  --muted-dim: #6b6863;
  --accent: #c8ff00;
  --accent-dim: rgba(200,255,0,0.08);
  --accent-border: rgba(200,255,0,0.35);
  --glow-strong: 0 0 20px rgba(200,255,0,0.25);
  --maxw: 900px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  /* Grille technique discrète, rappel du canvas de l'accueil */
  background-image:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 44px 44px;
}

a { color: var(--accent); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* Lien d'évitement pour la navigation au clavier */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--accent); color: #0d0d0d;
  padding: 10px 16px; border-radius: 0 0 10px 0;
  font-size: 13px; font-weight: 700; text-decoration: none; z-index: 200;
}
.skip-link:focus { left: 0; top: 0; }

/* ── EN-TÊTE / NAVIGATION ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,13,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .7rem; padding-bottom: .7rem;
}
.brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem; color: var(--text); text-decoration: none;
  white-space: nowrap;
}
.brand em { font-style: italic; color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; }
.site-nav a {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--muted); text-decoration: none;
  letter-spacing: .03em; transition: color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.nav-cta {
  border: 1px solid var(--accent-border); border-radius: 100px;
  padding: 5px 13px; color: var(--accent) !important;
  background: var(--accent-dim); transition: all .2s;
}
.nav-cta:hover { background: rgba(200,255,0,0.16); border-color: var(--accent); }

/* ── FIL D'ARIANE ────────────────────────────────────────────────────────── */
.breadcrumb {
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: var(--muted-dim); letter-spacing: .05em;
  padding-top: 1.6rem;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li:not(:last-child)::after { content: ' /'; color: var(--muted-dim); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ── HERO DE PAGE ────────────────────────────────────────────────────────── */
.page-hero { padding: 1.5rem 0 2.2rem; }
.eyebrow {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  position: relative; padding-left: 15px; margin-bottom: .9rem;
}
.eyebrow::before { content: '//'; position: absolute; left: 0; color: var(--muted-dim); font-size: 9px; }

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.85rem, 5vw, 2.9rem);
  line-height: 1.1; letter-spacing: -.02em;
  margin-bottom: .85rem;
}
h1 em { font-style: italic; color: var(--accent); text-shadow: 0 0 14px rgba(200,255,0,.35); }

.lead { font-size: 1rem; color: var(--muted); max-width: 62ch; }
.lead strong { color: var(--text); font-weight: 700; }

/* ── CONTENU RÉDACTIONNEL ────────────────────────────────────────────────── */
.prose { padding-bottom: 2.4rem; }
.prose section { margin-bottom: 2.4rem; }

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  line-height: 1.2; margin-bottom: .9rem;
  display: flex; align-items: center; gap: .7rem;
}
h2::before {
  content: ''; width: 3px; height: 1.1em; flex-shrink: 0;
  background: var(--accent); border-radius: 2px;
}
h2 em { font-style: italic; color: var(--accent); }

h3 {
  font-family: 'Syne', sans-serif; font-size: .98rem; font-weight: 700;
  color: var(--text); margin-bottom: .35rem;
}

.prose p { color: var(--muted); margin-bottom: .95rem; max-width: 68ch; }
.prose p strong { color: var(--text); }
.prose > section > ul { list-style: none; margin-bottom: 1rem; max-width: 68ch; }
.prose > section > ul li {
  color: var(--muted); padding-left: 1.4rem; position: relative; margin-bottom: .5rem;
}
.prose > section > ul li::before {
  content: '+'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-family: 'DM Mono', monospace;
}

/* ── CARTES ──────────────────────────────────────────────────────────────── */
.grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  margin-bottom: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem;
  transition: border-color .25s, background .25s, transform .25s;
}
.card:hover { border-color: var(--accent-border); background: var(--surface-2); transform: translateY(-2px); }
.card p { font-size: .87rem; color: var(--muted); margin: 0; }
.card .price {
  font-family: 'DM Serif Display', serif; font-size: 1.35rem;
  color: var(--accent); line-height: 1; margin: .5rem 0 .35rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }
.tag {
  font-family: 'DM Mono', monospace; font-size: 11px;
  padding: 4px 11px; border-radius: 100px;
  border: 1px solid var(--accent-border); color: var(--accent);
  background: var(--accent-dim);
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq details {
  border: 1px solid var(--border); border-radius: 12px;
  padding: .85rem 1.1rem; margin-bottom: 8px;
  background: var(--surface); transition: border-color .2s;
}
.faq details[open] { border-color: var(--accent-border); }
.faq summary {
  cursor: pointer; font-family: 'Syne', sans-serif;
  font-size: .92rem; font-weight: 700; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-family: 'DM Mono', monospace; flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: .7rem 0 0; font-size: .89rem; color: var(--muted); }

/* ── BOUTONS ─────────────────────────────────────────────────────────────── */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #0d0d0d;
  border: 1px solid var(--accent);
  text-decoration: none; border-radius: 100px;
  padding: 10px 20px;
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 0 15px rgba(200,255,0,0.3);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(200,255,0,0.5); }
.btn-ghost {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent-border); box-shadow: none;
}
.btn-ghost:hover { background: var(--accent-dim); border-color: var(--accent); box-shadow: 0 0 15px rgba(200,255,0,0.18); }

/* ── BANDEAU D'APPEL À L'ACTION ──────────────────────────────────────────── */
.cta-band {
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  background: linear-gradient(90deg, var(--accent-dim), transparent);
  padding: 1.4rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 2.4rem;
}
.cta-band p { margin: 0; color: var(--muted); max-width: 46ch; }
.cta-band strong { color: var(--text); }

/* ── FORMULAIRE ──────────────────────────────────────────────────────────── */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.6rem;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block; margin-bottom: .4rem;
  font-family: 'DM Mono', monospace; font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.field .req { color: var(--muted-dim); text-transform: none; letter-spacing: 0; }

.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  font-family: 'Syne', sans-serif; font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px rgba(200,255,0,0.10);
  outline: none;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: #141414; color: var(--text); }

.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }

/* Piège à robots : invisible pour un humain, rempli par les spambots */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note {
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: var(--muted); line-height: 1.6; margin-top: .9rem;
}

.consent { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1.1rem; }
.consent input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; accent-color: var(--accent); }
.consent label { font-size: .8rem; color: var(--muted); font-family: 'Syne', sans-serif; text-transform: none; letter-spacing: 0; }

/* ── PIED DE PAGE ────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 1rem; padding: 2rem 0 2.5rem;
}
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 1.6rem;
}
.footer-col h4 {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .7rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a, .footer-col p {
  font-size: .84rem; color: var(--muted); text-decoration: none; transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: var(--muted-dim); border-top: 1px solid var(--border); padding-top: 1.2rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: .55rem; }
  .site-nav { gap: .3rem .8rem; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .btn-row .btn { width: 100%; justify-content: center; }
}

/* ── ACCESSIBILITÉ : mouvement réduit ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
