/* ============================================================
   L'EFFET CLIQUET — Shell commun
   Header (smart-hide + hover taglines), footer en colonnes,
   fond WebGL rosé. Structure reprise du site dirigeants,
   couleurs inversées (clair). Variables : theme.css
   ============================================================ */

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

html, body {
  background: var(--ivory);
  color: var(--ink-body);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Défilement doux pour les ancres (ex. #candidater → section calendrier) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Fond WebGL permanent + canvas displacement caché + grain ---- */
#bg-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; display: block; }
#dp-canvas { position: fixed; top: -9999px; left: -9999px; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.35; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================ HEADER ============================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transform: translateY(0); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-header.hidden { transform: translateY(-100%); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 18px 40px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
/* Logo hiérarchisé (repris de l'ancien site particulier) : "RAF" en police titre,
   "par Davy Lheureux" plus fin/atténué pour créer la différence de poids. */
.site-logo { display: flex; align-items: baseline; gap: 0.4rem; text-decoration: none; white-space: nowrap; }
.site-logo-raf { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.site-logo-sub { font-size: 11px; font-weight: 400; color: var(--ink-muted); letter-spacing: 0.08em; text-transform: lowercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: 6px; transition: color 0.2s; white-space: nowrap; }
.nav-item:hover { color: var(--ink); }
.nav-item.active { color: var(--ink); font-weight: 600; }
/* Pattern dirigeants : sous-libellé qui apparaît au survol, couleur différenciée */
.nav-item .nav-tagline { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.15em; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.nav-item:hover .nav-tagline { opacity: 1; }
.nav-cta { margin-left: 16px; padding: 10px 22px; background: var(--accent); border: 1px solid var(--accent); color: #fff; border-radius: 100px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background 0.2s, transform 0.1s; white-space: nowrap; }
.nav-cta:hover { background: var(--accent-hover); }
.nav-cta:active { transform: scale(0.97); }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 8px; }

/* ============================ MAIN ============================ */
main { position: relative; z-index: 1; padding-top: 80px; }

/* Hero placeholder : un grand titre centré par page */
.page-hero { min-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.page-hero .eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-body); margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(44px, 8vw, 104px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; color: var(--ink); margin: 0; }
.page-hero .lead { margin-top: 24px; font-size: clamp(16px, 2vw, 20px); color: var(--ink-soft); max-width: 540px; line-height: 1.6; }
.page-hero .placeholder-note { margin-top: 18px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-soft); }

/* ---- Titre rainbow : RÉSERVÉ grands titres clés + punchline RAF ---- */
.rainbow {
  background: var(--rainbow);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: rainbowShift 4s ease infinite;
}
@keyframes rainbowShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================ FOOTER ============================ */
.site-footer { position: relative; z-index: 1; background: var(--header-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-top: 1px solid var(--line); padding: 60px 40px 32px; margin-top: 120px; }
.footer-inner { max-width: 1400px; margin: 0 auto; }

.footer-newsletter { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 32px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-newsletter-left { flex: 0 0 auto; }
.footer-newsletter-eyebrow { font-size: 10px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 6px; display: block; }
.footer-newsletter-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }
.newsletter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; max-width: 440px; }
.newsletter-form input { padding: 11px 16px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.2s, background 0.2s; min-width: 0; }
.newsletter-form input:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.85); }
.newsletter-form input::placeholder { color: var(--ink-muted); }
.newsletter-form button { grid-column: 1 / -1; padding: 11px 22px; background: var(--accent); border: none; border-radius: 100px; color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.1s; white-space: nowrap; }
.newsletter-form button:hover { background: var(--accent-hover); }
.newsletter-form button:active { transform: scale(0.97); }
.newsletter-feedback { grid-column: 1 / -1; font-size: 13px; color: var(--accent-deep); margin: 2px 0 0; line-height: 1.4; }
.newsletter-feedback:empty { display: none; }
.newsletter-success { font-size: 14px; line-height: 1.5; color: var(--ink); flex: 1; max-width: 440px; padding: 12px 16px; background: var(--accent-tint); border: 1px solid rgba(214, 51, 108, 0.28); border-radius: 8px; }

.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 24px; max-width: 320px; }
.footer-social { display: flex; align-items: center; gap: 12px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-soft); text-decoration: none; transition: all 0.2s; }
.footer-social a:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }
/* Pilule WhatsApp dans la rangée sociale : même accent framboise que les CTA du site,
   alignée sur la même ligne que les ronds 36px (forme allongée, plus large). */
.footer-social .footer-wa { width: auto; height: 36px; padding: 0 18px; border-radius: 100px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.footer-social .footer-wa:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.footer-col-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-muted); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; color: var(--ink-muted); align-items: center; }
.footer-bottom a { color: var(--ink-muted); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ============================ MOBILE ============================ */
@media (max-width: 980px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; transition: transform 0.2s; }
  .header-inner { padding: 16px 20px; }
  .site-header.nav-open .site-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--header-bg-solid); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 14px 20px 22px; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .site-header.nav-open .nav-item { font-size: 16px; padding: 13px 14px; border-radius: 8px; }
  .site-header.nav-open .nav-item .nav-tagline { position: static; transform: none; opacity: 1; display: inline-block; margin-left: 10px; font-size: 10px; }
  .site-header.nav-open .nav-cta { margin: 8px 0 0; text-align: center; padding: 13px 20px; }
  .site-header.nav-open .nav-toggle { transform: rotate(90deg); }
  .footer-newsletter { flex-direction: column; align-items: flex-start; gap: 24px; }
  .newsletter-form { max-width: 100%; width: 100%; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .footer-cols { grid-template-columns: 1fr; }
  .site-footer { padding: 50px 20px 24px; }
  .newsletter-form { grid-template-columns: 1fr; }
}
