/* ═══════════════════════════════════════════════════
   YARAGO — PAGES LÉGALES & SUPPORT — CSS COMMUN
   ═══════════════════════════════════════════════════ */

/* ── Icône Yarago ── */
.yarago-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.yarago-icon--sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.yarago-icon--footer {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  filter: brightness(1.05);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f8f9fc;
  color: #1a1a2e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Design Tokens ── */
:root {
  --gold: #F5A800;
  --gold-light: #FFD166;
  --gold-pale: #fff8e6;
  --dark: #1A1A2E;
  --dark-2: #16213E;
  --dark-3: #0F3460;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --white: #ffffff;
  /* ── Beige palette hero ── */
  --beige: #F5EDD8;
  --beige-dark: #EDE0C4;
  --beige-mid: #F9F3E6;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.logo svg { width: 36px; height: 36px; }
.logo .logo-dot { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.18s;
}
.nav-links a:hover,
.nav-links a.active { background: var(--border-light); color: var(--dark); }
.nav-links a.active { color: var(--gold); font-weight: 600; }

/* ══════════════════════════════════════
   HERO — Beige + Logo watermark
══════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--beige) 0%, var(--beige-mid) 60%, var(--beige-dark) 100%);
  color: var(--dark);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #DDD0B3;
}

/* Filigrane logo géant en arrière-plan */
.page-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  background-image: url('assets/icon-512.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.10;
  pointer-events: none;
  border-radius: 24%;
  filter: saturate(0.3) brightness(0.7);
}

/* Halo doré subtil à gauche */
.page-hero::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,168,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,168,0,0.18);
  border: 1px solid rgba(245,168,0,0.45);
  color: #7A5200;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--dark);
}
.page-hero h1 em { color: var(--gold); font-style: normal; }
.page-hero .hero-desc {
  font-size: 1.05rem;
  color: #4A3B1A;
  max-width: 600px;
  line-height: 1.7;
}
.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  font-size: 0.82rem;
  color: #8A7050;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }

/* ══════════════════════════════════════
   MAIN LAYOUT (sidebar + content)
══════════════════════════════════════ */
.page-body {
  padding: 56px 0 80px;
}
.page-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

/* ── TOC Sidebar ── */
.toc {
  position: sticky;
  top: 88px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.toc__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 16px;
}
.toc__list { display: flex; flex-direction: column; gap: 2px; }
.toc__list a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.855rem;
  color: var(--text-muted);
  transition: all 0.18s;
  border-left: 2px solid transparent;
}
.toc__list a:hover { background: var(--border-light); color: var(--dark); border-left-color: var(--gold); }

/* ── Content area ── */
.page-content { min-width: 0; }

/* ── Section card ── */
.section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.section-card:hover { box-shadow: var(--shadow); }
.section-card:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,168,0,0.12); }

.section-card__icon {
  width: 44px;
  height: 44px;
  background: var(--gold-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.section-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-card h2 .section-num {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--gold-pale);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 999px;
  font-family: 'DM Mono', monospace;
}
.section-card p {
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 14px;
}
.section-card p:last-child { margin-bottom: 0; }
.section-card ul {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.section-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.93rem;
  padding: 8px 12px;
  background: var(--border-light);
  border-radius: var(--radius-sm);
}
.section-card ul li::before {
  content: '›';
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  flex-shrink: 0;
}

/* ── Highlight box ── */
.highlight-box {
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.93rem;
  color: var(--dark);
}

/* ══════════════════════════════════════
   CONTACT CARDS (support page)
══════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}
.contact-card:hover { border-color: var(--gold); background: var(--gold-pale); }
.contact-card .cc-icon { font-size: 2rem; margin-bottom: 10px; }
.contact-card .cc-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.contact-card .cc-val { font-size: 0.82rem; color: var(--text-muted); }

/* ── FAQ ── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.18s;
}
.faq-item summary:hover { background: var(--border-light); }
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body { padding: 0 18px 16px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ── Form (signaler) ── */
.report-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,168,0,0.12);
}
.form-group textarea { min-height: 120px; }
.form-group .form-hint { font-size: 0.78rem; color: var(--text-light); }

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}
.btn-submit:hover { background: #e09900; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,168,0,0.35); }

/* ── Links strip ── */
.links-strip {
  background: var(--border-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.links-strip span { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.links-strip a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-3);
  padding: 5px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.18s;
}
.links-strip a:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
}
.site-footer .footer-main {
  padding: 60px 0 48px;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 64px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-brand .footer-logo svg { filter: brightness(10); }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.45); line-height: 1.6; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--gold); color: var(--dark); }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.18s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .site-footer .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 40px; }
  .footer-links { grid-template-columns: 1fr; }
  .section-card { padding: 24px; }
}
