/* ACCSLive — styles globaux (reset léger, layout, header, footer chrome, primitives partagées) */

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Réserve en permanence la gouttière de scrollbar : pas de saut horizontal
     quand le scroll est verrouillé (menu mobile) ou que le contenu change. */
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  font-family: var(--acc-font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--acc-ink);
  background: var(--acc-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* neutralise les débordements décoratifs (halo 100vw) sans bloquer le scroll vertical */
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Wrapper */
.acc-wrap {
  max-width: var(--acc-max);
  margin-inline: auto;
  padding-inline: var(--acc-wrap-px);
}

/* Titres */
.acc-h1 {
  font-family: var(--acc-font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.02em;
  margin: 0;
}
.acc-h2 {
  font-family: var(--acc-font-display);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.02em;
  margin: 0;
}
.acc-h3 {
  font-family: var(--acc-font-display);
  font-size: 25px; font-weight: 800; line-height: 1.04; margin: 0;
}
.acc-lead { font-size: 19px; color: var(--acc-muted); max-width: 54ch; margin: 0; }

/* Surbrillance « marqueur tracé » sous les mots orange */
.acc-hl {
  color: var(--acc-orange); position: relative; white-space: nowrap;
}
.acc-hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 0.06em; height: 0.34em; z-index: -1;
  background: rgba(252,120,6,0.22); border-radius: 0.2em;
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(0.5,0.1,0.2,1);
}
.acc-in-view .acc-hl::after, .acc-hl:hover::after { transform: scaleX(1); }

/* Eyebrow — sur-titre en capitales espacées */
.acc-eyebrow {
  font-family: var(--acc-font-display);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--acc-ink-2);
  display: inline-flex; align-items: center; gap: 10px;
}

/* Révélation au scroll (pilotée par JS via .acc-in-view) */
.acc-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.5,0.1,0.2,1); }
.acc-reveal.acc-in-view { opacity: 1; transform: none; }


/* Boutons — pilules arrondies avec balayage lumineux (spot) */
.acc-btn {
  position: relative; overflow: hidden;
  font-family: var(--acc-font-display);
  font-weight: 700; font-size: 15px;
  padding: 15px 28px; border-radius: var(--acc-r-pill);
  border: 1.5px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none;
  transition: background var(--acc-t-base), color var(--acc-t-base), border-color var(--acc-t-base), transform var(--acc-t-fast), box-shadow var(--acc-t-base);
  will-change: transform;
}
/* Balayage de lumière qui traverse le bouton au survol (faisceau scéno) */
.acc-btn::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.acc-btn:hover::after { left: 130%; }
.acc-btn .arw { transition: transform var(--acc-t-fast); display: inline-block; }
.acc-btn:hover .arw { transform: translateX(5px); }
.acc-btn:active { transform: scale(0.97); }
.acc-btn-primary { background: var(--acc-orange); color: #fff; }
.acc-btn-primary:hover { background: var(--acc-orange-ink); box-shadow: var(--acc-sh-play); transform: translateY(-2px); }
.acc-btn-dark { background: var(--acc-ink); color: #fff; }
.acc-btn-dark:hover { background: #000; transform: translateY(-2px); }
.acc-btn-ghost { background: transparent; border-color: var(--acc-line-2); color: var(--acc-ink); }
.acc-btn-ghost:hover { background: var(--acc-ink); color: #fff; border-color: var(--acc-ink); transform: translateY(-2px); }
.acc-btn-lg { padding: 18px 32px; font-size: 16px; }

/* Tag */
.acc-tag {
  font-family: var(--acc-font-display);
  font-weight: 600; font-size: 13px; padding: 8px 15px;
  border: 1px solid var(--acc-line-2); border-radius: var(--acc-r-pill);
  display: inline-block;
}

/* Header — navbar « pilule » flottante centrée */
.acc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  padding-top: 18px;
  pointer-events: none; /* seule la pilule capte les clics */
}

.acc-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 18px;
  max-width: calc(100vw - 2 * var(--acc-wrap-px));
  border-radius: var(--acc-r-pill);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--acc-line);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 10px 34px -20px rgba(0,0,0,0.35);
  transition: gap var(--acc-t-base), padding var(--acc-t-base), box-shadow var(--acc-t-base), background var(--acc-t-base);
}
.acc-header.scrolled .acc-pill {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 14px 40px -22px rgba(0,0,0,0.5);
}

.acc-brand {
  font-family: var(--acc-font-display); font-weight: 900; font-size: 18px;
  letter-spacing: -0.01em; text-decoration: none; color: var(--acc-ink);
  display: inline-flex; align-items: center; gap: 8px; padding-right: 6px;
}
.acc-brand b { color: var(--acc-orange); font-weight: 900; }
/* Logo image (custom-logo) : remplace le texte de marque dans la pilule */
.acc-brand--logo { padding-right: 6px; }
.acc-brand--logo .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.acc-brand--logo .custom-logo {
  height: 36px; width: auto; max-width: 160px; display: block;
}

/* Liens + indicateur glissant */
.acc-nav {
  position: relative;
  display: flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: var(--acc-r-pill);
}
.acc-nav a {
  position: relative; z-index: 1;
  font-family: var(--acc-font-display); font-weight: 600; font-size: 14.5px;
  color: var(--acc-ink-2); text-decoration: none;
  padding: 9px 16px; border-radius: var(--acc-r-pill);
  transition: color var(--acc-t-base);
}
.acc-nav a:hover { color: var(--acc-ink); }
.acc-nav a.is-active { color: var(--acc-orange); }

/* Listes de menus (wp_nav_menu) — réinitialisation puces + report du layout flex */
.acc-nav-list, .acc-mobile-list, .acc-foot-list {
  list-style: none; margin: 0; padding: 0; display: flex;
}
.acc-nav-list { align-items: center; gap: 2px; }
.acc-mobile-list { flex-direction: column; gap: 8px; }
.acc-foot-list { gap: var(--acc-md); flex-wrap: wrap; }
.acc-nav-list li, .acc-mobile-list li, .acc-foot-list li { margin: 0; }
.acc-nav-list a, .acc-mobile-list a, .acc-foot-list a { display: block; }
.acc-nav-marker {
  position: absolute; top: 4px; left: 0; z-index: 0;
  height: calc(100% - 8px); width: 0;
  background: var(--acc-bg-soft-2); border-radius: var(--acc-r-pill);
  opacity: 0; transform: translateX(0);
  transition: transform var(--acc-t-slow), width var(--acc-t-slow), opacity var(--acc-t-base);
}

/* Bouton devis compact intégré à la pilule */
.acc-pill-cta {
  font-family: var(--acc-font-display); font-weight: 700; font-size: 14px;
  color: #fff; background: var(--acc-ink); text-decoration: none;
  padding: 11px 20px; border-radius: var(--acc-r-pill);
  transition: background var(--acc-t-base), transform var(--acc-t-fast);
}
.acc-pill-cta:hover { background: var(--acc-orange); transform: translateY(-1px); }

/* Burger (2 traits) + menu mobile */
.acc-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border-radius: 50%; background: var(--acc-ink); border: 0; cursor: pointer; align-items: center; }
.acc-burger span { width: 18px; height: 2px; background: #fff; transition: transform var(--acc-t-fast), opacity var(--acc-t-fast); }
.acc-burger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.acc-burger.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.acc-mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 320px; max-width: 86vw; z-index: 60;
  background: #fff; box-shadow: var(--acc-sh-menu);
  transform: translateX(100%); transition: transform var(--acc-t-slow), visibility var(--acc-t-slow);
  visibility: hidden; /* hors du flux de tabulation quand fermé (complète inert) */
  display: flex; flex-direction: column; gap: 4px; padding: 80px 28px 28px;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.acc-mobile-menu.open { transform: translateX(0); visibility: visible; }
.acc-mobile-menu a { font-family: var(--acc-font-display); font-weight: 700; font-size: 20px; color: var(--acc-ink); text-decoration: none; display: flex; align-items: center; min-height: 48px; padding: 10px 0; border-bottom: 1px solid var(--acc-line); }
.acc-mobile-menu a:hover { color: var(--acc-orange); }
.acc-mobile-menu .acc-mobile-cta { justify-content: center; margin-top: 16px; border-bottom: 0; color: #fff; background: var(--acc-ink); border-radius: var(--acc-r-pill); text-align: center; padding: 14px; }
.acc-mobile-menu .acc-mobile-cta:hover { color: #fff; background: #000; }

/* Bouton de fermeture (croix) — cible tactile ≥ 44px */
.acc-mobile-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 50%; color: var(--acc-ink);
  cursor: pointer; transition: background var(--acc-t-fast), color var(--acc-t-fast);
}
.acc-mobile-close:hover { background: var(--acc-bg-soft); color: var(--acc-orange); }

/* Focus visible au clavier (drawer + déclencheurs) */
.acc-burger:focus-visible,
.acc-mobile-close:focus-visible,
.acc-mobile-menu a:focus-visible {
  outline: 2px solid var(--acc-orange); outline-offset: 3px; border-radius: 6px;
}
.acc-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity var(--acc-t-base); z-index: 55; }
.acc-scrim.open { opacity: 1; pointer-events: auto; }

/* Décalage pour la pilule flottante (pages internes : 404, mentions légales…).
   Sur la home, le hero gère lui-même son espace haut → pas de décalage. */
.acc-site-main { padding-top: var(--acc-header-h); }
body.home .acc-site-main { padding-top: 0; }

/* Section générique */
.acc-sec { padding-block: var(--acc-section-py); }
.acc-sec.alt { background: var(--acc-bg-soft); }
.acc-sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }

/* Placeholder média (trame rayée) */
.acc-ph {
  position: relative; border-radius: var(--acc-r-card); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, var(--acc-bg-soft-2) 0 14px, var(--acc-bg-soft) 14px 28px);
  border: 1px solid var(--acc-line);
  display: flex; align-items: center; justify-content: center;
}
.acc-ph-label {
  font-family: var(--acc-font-body); font-size: 13px; color: var(--acc-muted);
  background: rgba(255,255,255,0.7); padding: 6px 12px; border-radius: var(--acc-r-base);
}

/* Footer (codé en dur dans footer.php) */
.acc-footer { background: #000; color: var(--acc-on-dark-text); padding-block: var(--acc-xl); }
.acc-foot-top { display: flex; align-items: center; justify-content: space-between; gap: var(--acc-md); flex-wrap: wrap; padding-bottom: var(--acc-md); border-bottom: 1px solid var(--acc-on-dark-border); }
.acc-foot-brand { font-family: var(--acc-font-display); font-weight: 900; font-size: 24px; }
.acc-foot-brand b { color: var(--acc-orange); }
.acc-foot-nav { display: flex; gap: var(--acc-md); flex-wrap: wrap; }
.acc-foot-nav a { color: var(--acc-on-dark-muted); text-decoration: none; font-family: var(--acc-font-display); font-weight: 600; font-size: 15px; transition: color var(--acc-t-fast); }
.acc-foot-nav a:hover { color: #fff; }
.acc-foot-bot { display: flex; align-items: center; justify-content: space-between; gap: var(--acc-md); flex-wrap: wrap; padding-top: var(--acc-md); }
.acc-foot-copy, .acc-foot-tagline, .acc-foot-legal { color: var(--acc-on-dark-subtle); font-size: 14px; }
.acc-foot-legal a { color: var(--acc-on-dark-muted); text-decoration: none; transition: color var(--acc-t-fast); }
.acc-foot-legal a:hover { color: #fff; }

/* Page 404 — centrée, généreuse, chiffre géant en filigrane */
.acc-404 { display: flex; align-items: center; min-height: calc(100vh - 200px); }
.acc-404-inner { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; max-width: 640px; }
.acc-404-code {
  font-family: var(--acc-font-display);
  font-weight: 900; line-height: 0.9; letter-spacing: -0.04em;
  font-size: clamp(96px, 18vw, 180px);
  margin: 4px 0 0;
}
.acc-404-zero { color: var(--acc-orange); }
.acc-404-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* Responsive */
@media (max-width: 960px) {
  .acc-nav, .acc-pill-cta { display: none; }
  .acc-burger { display: flex; }
  /* Marges latérales reportées sur le header (la pilule devient pleine largeur) */
  .acc-header { padding-inline: var(--acc-wrap-px); }
  /* Pilule pleine largeur : marque à gauche, burger à droite */
  .acc-pill {
    width: 100%;
    max-width: none;
    justify-content: space-between;
    padding: 7px 7px 7px 16px;
  }
}

@media (max-width: 560px) {
  .acc-header { padding-inline: var(--acc-wrap-px-mobile); }
  .acc-wrap { padding-inline: var(--acc-wrap-px-mobile); }
  .acc-sec { padding-block: var(--acc-section-py-mobile); }
}

/* Respect de la préférence « animations réduites » */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .acc-mobile-menu, .acc-scrim, .acc-burger span { transition: none; }
}
