/*
Theme Name:   LBAF Divi Child
Theme URI:    https://www.lbaf.fr
Description:  Thème enfant pour Divi — identité LBAF (sombre, accent pêche, biseaux, typo Archivo). Inclut les variables CSS, utilities et styles spécifiques au site lbaf.fr.
Author:       LBAF
Author URI:   https://www.lbaf.fr
Template:     Divi
Version:      1.0.0
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  lbaf
*/

/* ============================================================
   LBAF — Design tokens
   ============================================================ */
:root {
  --lbaf-bg: #0E0E0E;
  --lbaf-bg-2: #161616;
  --lbaf-bg-3: #1F1F1F;
  --lbaf-ink: #F4F1EC;
  --lbaf-ink-dim: #B5AFA6;
  --lbaf-ink-faint: #6E6962;
  --lbaf-peach: #F2D2B0;
  --lbaf-peach-deep: #E8B98A;
  --lbaf-wood: #A66B3D;
  --lbaf-wood-deep: #7A4A26;
  --lbaf-line: rgba(244,241,236,0.10);
  --lbaf-line-strong: rgba(244,241,236,0.22);
}

/* ============================================================
   Base
   ============================================================ */
body,
body.et_pb_pagebuilder_layout {
  background: var(--lbaf-bg) !important;
  color: var(--lbaf-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#page-container,
#main-content,
.et_pb_section {
  background-color: var(--lbaf-bg);
}

::selection { background: var(--lbaf-peach); color: var(--lbaf-bg); }

a { color: var(--lbaf-peach); transition: color .2s; }
a:hover { color: #fff; }

/* ============================================================
   Typography — overrides
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.et_pb_module h1, .et_pb_module h2, .et_pb_module h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--lbaf-ink);
}
h1 { font-size: clamp(42px, 6.2vw, 92px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(20px, 2vw, 30px); }

p, li, .et_pb_text_inner p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--lbaf-ink-dim);
}

/* ============================================================
   Utility classes — to add via the Divi CSS Class field
   ============================================================ */

/* Surlignage technique (les "01 / Savoir-faire" etc.) */
.lbaf-eyebrow,
.lbaf-eyebrow .et_pb_text_inner,
.lbaf-eyebrow p {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--lbaf-peach) !important;
  line-height: 1.4 !important;
  display: flex;
  gap: 16px;
}


/* Couleur accent pêche */
.lbaf-accent { color: var(--lbaf-peach) !important; }
.lbaf-bg-peach { background: var(--lbaf-peach) !important; color: var(--lbaf-bg) !important; }
.lbaf-bg-wood { background: var(--lbaf-wood-deep) !important; color: var(--lbaf-peach) !important; }
.lbaf-bg-dark { background: var(--lbaf-bg) !important; }
.lbaf-bg-dark-2 { background: var(--lbaf-bg-2) !important; }

/* Coins biseautés — la signature LBAF */
.lbaf-bevel {
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.lbaf-bevel-lg {
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
}
.lbaf-bevel-sm {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

/* Bouton signature LBAF — à appliquer sur un module Bouton Divi */
.et_pb_button.lbaf-btn,
.et_pb_button.lbaf-btn:hover {
  background: var(--lbaf-peach) !important;
  color: var(--lbaf-bg) !important;
  font-family: 'Archivo', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 16px 26px !important;
  border: none !important;
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: all .25s cubic-bezier(.2,.7,.2,1) !important;
}
.et_pb_button.lbaf-btn:hover { background: #fff !important; transform: translateY(-2px); }
.et_pb_button.lbaf-btn:after { display: none !important; }

.et_pb_button.lbaf-btn-ghost,
.et_pb_button.lbaf-btn-ghost:hover {
  background: transparent !important;
  color: var(--lbaf-ink) !important;
  border: 1px solid var(--lbaf-line-strong) !important;
  font-family: 'Archivo', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 16px 26px !important;
  border-radius: 0 !important;
  transition: all .25s !important;
}
.et_pb_button.lbaf-btn-ghost:hover { border-color: var(--lbaf-peach) !important; color: var(--lbaf-peach) !important; }

/* ============================================================
   Divi Nav — transparente, se solidifie au scroll
   ============================================================ */
#main-header {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  padding: 14px 0 !important;
}
.lbaf-nav-scrolled #main-header {
  background: rgba(14,14,14,0.82) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lbaf-line);
}
#et-top-navigation .nav li a,
.nav li a {
  color: var(--lbaf-ink-dim) !important;
  font-family: 'Archivo', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  transition: color .2s;
}
#et-top-navigation .nav li a:hover { color: var(--lbaf-peach) !important; opacity: 1; }

/* Logo en haut */
#logo { max-height: 48px !important; }

/* ============================================================
   Hero — Section régulière avec vidéo de fond (Divi 5)
   À appliquer sur une Section → CSS Class "lbaf-hero"
   ============================================================ */
.lbaf-hero,
.et_pb_section.lbaf-hero {
  min-height: 100vh;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
}
/* Dégradé au-dessus de la vidéo de fond — Divi ne permet pas de placer un
   overlay gradient au-dessus d'une background video, on le pose en ::after. */
.lbaf-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(14,14,14,0.55) 0%,
      rgba(14,14,14,0.25) 30%,
      rgba(14,14,14,0.55) 65%,
      rgba(14,14,14,0.95) 100%),
    linear-gradient(90deg,
      rgba(14,14,14,0.65) 0%,
      rgba(14,14,14,0.10) 60%);
}
/* Et on remet le contenu au-dessus du dégradé */
.lbaf-hero > .et_pb_row,
.lbaf-hero .et_pb_row {
  position: relative;
  z-index: 2;
}
.lbaf-hero > .et_pb_row {
  padding: 140px 24px 80px !important;
  max-width: 1440px !important;
  width: 100% !important;
}
/* La vidéo Divi 5 — s'assure qu'elle couvre tout */
.lbaf-hero .et_pb_section_video_bg,
.lbaf-hero video.et_pb_section_video_bg,
.lbaf-hero .et_pb_background_video,
.lbaf-hero .et_pb_background_video_container video {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}
/* Titre du hero */
.lbaf-hero h1 {
  font-size: clamp(44px, 6.4vw, 96px) !important;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
  margin-bottom: 28px;
}
.lbaf-hero h1 .lbaf-accent { color: var(--lbaf-peach); }
.lbaf-hero p {
  color: rgba(244,241,236,0.88) ;
  max-width: 480px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* ============================================================
   Marquee — défilement des essences
   ============================================================ */
.lbaf-marquee {
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--lbaf-line);
  border-bottom: 1px solid var(--lbaf-line);
  background: var(--lbaf-bg);
}
.lbaf-marquee-track {
  display: flex;
  gap: 64px;
  animation: lbaf-marquee 40s linear infinite;
  white-space: nowrap;
}
.lbaf-marquee-item {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lbaf-ink-dim);
  display: flex; align-items: center; gap: 64px;
}
.lbaf-marquee-item::after {
  content: ""; width: 8px; height: 8px;
  background: var(--lbaf-peach); border-radius: 50%;
}
@keyframes lbaf-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Process — grille des 7 étapes
   ============================================================ */
.lbaf-process-chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.lbaf-process-step {
  position: relative;
  padding: 22px 16px;
  background: var(--lbaf-wood-deep);
  color: var(--lbaf-peach);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  aspect-ratio: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
  transition: transform .25s, background .25s, color .25s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.lbaf-process-step.alt { background: var(--lbaf-peach); color: var(--lbaf-wood-deep); }
.lbaf-process-step:hover { transform: translateY(-4px); background: var(--lbaf-wood); color: #fff; }
.lbaf-process-step .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  opacity: 0.7;
}
@media (max-width: 768px) {
  .lbaf-process-chain { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Products / cards
   ============================================================ */
.lbaf-product-specs {
  list-style: none !important;
  padding: 0 !important;
  border-top: 1px solid var(--lbaf-line);
  margin: 0 0 28px !important;
}
.lbaf-product-specs li {
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--lbaf-line);
  display: flex; align-items: center; gap: 14px;
  font-size: 14px !important;
  color: var(--lbaf-ink) !important;
}
.lbaf-product-specs li::before {
  content: ""; width: 6px; height: 6px;
  background: var(--lbaf-peach); flex-shrink: 0;
}
.lbaf-product-specs strong {
  color: var(--lbaf-peach);
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  min-width: 88px;
}

/* ============================================================
   Stats / counters
   ============================================================ */
.lbaf-stat-num {
  font-family: 'Archivo', sans-serif !important;
  font-weight: 800 !important;
  font-size: 44px !important;
  letter-spacing: -0.02em !important;
  color: var(--lbaf-peach) !important;
  line-height: 1 !important;
}
.lbaf-stat-label {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--lbaf-ink-faint) !important;
  margin-top: 10px !important;
  margin-bottom: -40px;
}

/* ============================================================
   CTA final pêche
   ============================================================ */
.lbaf-cta-final {
  background: var(--lbaf-peach) !important;
  color: var(--lbaf-bg) !important;
}
.lbaf-cta-final h2,
.lbaf-cta-final h3,
.lbaf-cta-final p {
  color: var(--lbaf-bg) !important;
}

/* ============================================================
   Footer
   ============================================================ */
#main-footer {
  background: var(--lbaf-bg) !important;
  border-top: 1px solid var(--lbaf-line);
}
#footer-info, #footer-bottom { background: var(--lbaf-bg) !important; }
#footer-widgets .footer-widget h4 {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--lbaf-ink-faint) !important;
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
[data-lbaf-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
[data-lbaf-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   Scroll progress bar
   ============================================================ */
#lbaf-scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--lbaf-peach);
  z-index: 99999;
  transition: width .05s linear;
  pointer-events: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .lbaf-hero .et_pb_fullwidth_header_container { padding: 100px 24px 60px; }
  h1 { font-size: clamp(40px, 12vw, 64px) !important; }
}
