/* ── RBQC — Styles partagés ── */

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

:root {
  --paper:   #F7F1E6;
  --surface: #EFE8D8;
  --card:    #E8DFC8;
  --border:  #C8BB9A;
  --red:     #C8351A;
  --mustard: #D4900A;
  --amber:   #F5C400;
  --dark:    #1A1209;
  --ink:     #2D2416;
  --muted:   #6B5C46;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--paper);
  color: var(--dark);
  font-family: 'Work Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 56px;
  background: rgba(247,241,230,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
nav.scrolled {
  padding: 13px 56px;
  border-bottom-color: var(--border);
  background: rgba(247,241,230,0.98);
}
.nav-logo {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  color: var(--dark);
  text-transform: uppercase;
  text-decoration: none;
}
.nav-logo .accent { color: var(--red); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--dark); }
.nav-links .nav-cta {
  background: var(--red);
  color: white !important;
  font-weight: 600;
  padding: 10px 24px;
  transition: background 0.2s, transform 0.15s;
}
.nav-links .nav-cta:hover { background: #A82D16; transform: translateY(-1px); }

/* ── Section base ── */
section { padding: 100px 64px; }

.section-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--red);
  display: block;
  flex-shrink: 0;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 140px;
}
.section-label.light { color: rgba(255,255,255,0.35); }
.section-label.light::after { background: rgba(255,255,255,0.1); }

/* ── Boutons ── */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: white;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 44px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #A82D16; transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  border: 2px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 36px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--dark); color: var(--dark); }

.btn-dark {
  display: inline-block;
  background: var(--dark);
  color: var(--amber);
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 20px 52px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-dark:hover { background: var(--ink); transform: translateY(-2px); }

/* ── Messenger mockup (partagé) ── */
.messenger-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
}
.messenger-header {
  background: #141414;
  border-bottom: 1px solid #2a2a2a;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.messenger-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #444, #222);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.messenger-name { font-size: 0.85rem; font-weight: 600; color: white; }
.messenger-sub  { font-size: 0.68rem; color: #555; margin-top: 2px; }
.messenger-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.msg-date { font-size: 0.62rem; color: #555; text-align: center; margin: 6px 0; letter-spacing: 0.04em; }
.msg-row { display: flex; align-items: flex-end; gap: 8px; }
.msg-row.sent { justify-content: flex-end; }
.msg-avatar-sm {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #444, #222);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; flex-shrink: 0;
}
.msg-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.msg-bubble.received { background: #2a2a2a; color: white; border-bottom-left-radius: 4px; }
.msg-bubble.sent     { background: #0084FF; color: white; border-bottom-right-radius: 4px; }
.msg-link-preview {
  background: #141414;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #888;
  border-left: 2px solid #0084FF;
  max-width: 72%;
  align-self: flex-end;
}
.msg-link-preview strong { color: white; display: block; margin-bottom: 2px; }
.messenger-footer {
  padding: 12px 20px;
  border-top: 1px solid #2a2a2a;
  font-size: 0.72rem;
  color: #555;
  font-style: italic;
}

/* ── Footer ── */
footer {
  background: var(--dark);
  padding: 48px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  text-decoration: none;
  text-transform: uppercase;
}
.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.7); }
.footer-copy { font-size: 0.68rem; color: rgba(255,255,255,0.18); }

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ── SVG icon sizing ── */
.why-icon svg, .avg-platform svg, .platform-icon svg,
.contact-info-icon svg { display: block; }

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  z-index: 101;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav overlay ── */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  padding: 100px 40px 60px;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile ul   { list-style: none; display: flex; flex-direction: column; width: 100%; }
.nav-mobile li   { border-bottom: 1px solid var(--border); }
.nav-mobile a {
  display: block;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  padding: 16px 0;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}
.nav-mobile a:hover { color: var(--red); }
.nav-mobile li:last-child { border-bottom: none; }
.nav-mobile .nav-cta {
  display: inline-block;
  background: var(--red);
  color: white !important;
  padding: 16px 36px;
  margin-top: 24px;
  font-size: 1.2rem;
  text-align: center;
  transition: background 0.2s;
}
.nav-mobile .nav-cta:hover { background: #A82D16; }

/* ── Prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  nav, nav.scrolled { padding: 14px 16px; }
  .nav-logo { font-size: 1.3rem; }
  section { padding: 64px 20px; }
  footer  { padding: 28px 20px; }
  .footer-nav { display: none; }
}
@media (max-width: 768px) {
  nav, nav.scrolled { padding: 15px 24px; }
  .nav-links    { display: none; }
  .nav-hamburger{ display: flex; }
  section { padding: 80px 24px; }
  footer  { padding: 36px 24px; flex-direction: column; align-items: flex-start; }
  .footer-nav { flex-wrap: wrap; gap: 18px; }
}
