/* ═══════════════════════════════════════════
   EQUINOXE AGENCE — Styles partagés
   ═══════════════════════════════════════════ */

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

/* Accessibilité — élément visible uniquement par les lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:root {
  --red:     #E8381A;
  --orange:  #F07020;
  --grad:    linear-gradient(135deg, #E8381A, #F07020);
  --dark:    #1A0A00;
  --char:    #160800;
  --char2:   #1E0E02;
  --teal:    #1AB87A;
  --teal-lt: #E0F7EE;
  --blue:    #2E6DD4;
  --blue-lt: rgba(46,109,212,0.12);
  --gold:    #C4A015;
  --gold-lt: rgba(196,160,21,0.12);
  --gray:    #F5F3F0;
  --border:  #E8E2D8;
  --text:    #1A1208;
  --soft:    #5A4A38;
  --white:   #FDFCFA;
  /* Durations harmonisées */
  --tr:      .25s;
  --tr-fast: .15s;
  --ease:    cubic-bezier(.4, 0, .2, 1);
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--char); color: var(--white); min-height: 100vh; font-size: 15px; }

/* ── GOOGLE FONTS IMPORT (à placer dans chaque <head>) ──
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700;800;900&family=DM+Sans:wght@300;400;500&display=swap" rel="stylesheet">
*/

/* ═══════════════════
   NAVIGATION
   ═══════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(22, 8, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-pill {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FF3A1A, #FF8C20);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.logo-pill .lp-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 8.5px; color: #1A0800;
  line-height: 1; letter-spacing: -.2px;
}
.logo-pill .lp-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500; font-size: 4.5px; color: #1A0800;
  letter-spacing: 1.4px; margin-top: 2px;
}
.nav-wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 18px; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin-left: auto;
}
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: .07em;
  text-transform: uppercase; text-decoration: none;
  color: rgba(255,255,255,0.5);
  padding: 8px 14px; border-radius: 6px;
  transition: color var(--tr) var(--ease), background var(--tr) var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: white; background: rgba(255,255,255,0.06); }

.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  background: var(--grad); color: white;
  padding: 9px 20px; border-radius: 8px;
  transition: opacity var(--tr) var(--ease); flex-shrink: 0;
}
.nav-cta:hover { opacity: .88; }

.nav-burger {
  display: none; background: none; border: none;
  color: white; font-size: 22px; cursor: pointer;
  margin-left: auto; padding: 4px;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(22, 8, 0, 0.97);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 16px 28px 24px;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  color: rgba(255,255,255,0.6);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--tr) var(--ease);
}
.nav-mobile a:hover { color: white; }
.nav-mobile .nav-cta-mobile {
  margin-top: 12px; text-align: center;
  background: var(--grad); color: white;
  border-radius: 8px; padding: 14px;
  border: none;
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}

/* ═══════════════════
   PAGE WRAPPER
   ═══════════════════ */
.page-content { padding-top: 64px; }

/* ═══════════════════
   SECTION UTILS
   ═══════════════════ */
.section { padding: 80px 28px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -.02em; line-height: 1.05;
  margin-bottom: 16px;
}
.section-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 15px; color: rgba(255,255,255,0.45);
  font-weight: 300; line-height: 1.7;
  max-width: 560px;
}

/* ═══════════════════
   BOUTONS
   ═══════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: white; border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 10px;
  cursor: pointer; text-decoration: none;
  transition: opacity var(--tr) var(--ease);
}
.btn-primary:hover { opacity: .88; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 10px;
  cursor: pointer; text-decoration: none;
  transition: all var(--tr) var(--ease);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); color: white; }

/* ═══════════════════
   FOOTER
   ═══════════════════ */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 48px 28px 32px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo-pill { width: 36px; height: 36px; margin-bottom: 14px; }
.footer-brand p {
  font-size: 13px; color: rgba(255,255,255,0.35);
  line-height: 1.7; max-width: 240px; margin-top: 10px;
}
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 13px; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color var(--tr) var(--ease);
}
.footer-col ul a:hover { color: white; }
/* ── RÉSEAUX SOCIAUX ── */
.social-links {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px;
}
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: border-color var(--tr) var(--ease), color var(--tr) var(--ease), background var(--tr) var(--ease);
}
.social-link:hover { border-color: rgba(232,56,26,0.5); color: white; background: rgba(232,56,26,0.1); }
.social-link svg { width: 13px; height: 13px; fill: currentColor; }

/* Card réseaux sociaux (contact sidebar) */
.social-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 24px;
}
.social-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; margin-bottom: 8px;
}
.social-card p { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 16px; line-height: 1.55; }
.social-link-label { display: flex; align-items: center; gap: 10px; text-decoration: none; color: rgba(255,255,255,0.55); font-size: 13px; font-weight: 500; transition: color var(--tr) var(--ease); padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.social-link-label:last-child { border-bottom: none; }
.social-link-label:hover { color: white; }
.social-link-label .social-icon-sm { width: 30px; height: 30px; border-radius: 7px; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.social-link-label .social-icon-sm svg { width: 13px; height: 13px; fill: currentColor; }

.footer-bottom {
  max-width: 1100px; margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,0.2);
  flex-wrap: wrap; gap: 8px;
}

@media (max-width: 768px) {
  .section { padding: 56px 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════
   ACCESSIBILITÉ — Focus visible (WCAG 2.1 AA)
   ═══════════════════════════════════════════ */
:where(a, button, summary, [role="button"], [tabindex]):focus {
  outline: none;
}
:where(a, button, summary, [role="button"], [tabindex]):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
  transition: outline-offset var(--tr-fast) var(--ease);
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-color: var(--orange);
}
/* Boutons gradient — outline blanc plus visible sur fond orange */
.btn-primary:focus-visible,
.nav-cta:focus-visible,
.nav-cta-mobile:focus-visible {
  outline-color: #fff;
  outline-offset: 4px;
}

/* ═══════════════════════════════════════════
   ACCESSIBILITÉ — Réduction d'animation
   (utilisateurs avec vertige / sensibilité moteur)
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .anim { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════
   CONTRASTE — Remontée pour WCAG AA
   Sur fond #160800 / #1A0A00, alpha .25-.4 = ratio < 4.5
   ═══════════════════════════════════════════ */
.footer-bottom        { color: rgba(255,255,255,0.55); }
.footer-brand p       { color: rgba(255,255,255,0.6); }
.footer-col h4        { color: rgba(255,255,255,0.55); }
.footer-col ul a      { color: rgba(255,255,255,0.7); }
.social-card p        { color: rgba(255,255,255,0.6); }
.social-link-label    { color: rgba(255,255,255,0.7); }
.social-link          { color: rgba(255,255,255,0.7); }
.nav-links a          { color: rgba(255,255,255,0.7); }
.section-sub          { color: rgba(255,255,255,0.65); }

/* ═══════════════════════════════════════════
   FALLBACK NAV MOBILE (si JS désactivé)
   Patron <noscript> aussi posé page par page,
   ici on assure que la nav reste accessible
   ═══════════════════════════════════════════ */
.no-js .nav-mobile      { display: flex !important; }
.no-js .nav-burger      { display: none !important; }
@media (max-width: 768px) {
  .no-js .nav-links,
  .no-js .nav-cta       { display: none !important; }
}
