/* ================================================================
   UNIQUE & ONE ENERGY — Premium Design System
   Vert #6CBF2F · Jaune #F5C400 · Rouge #CC1C1C · Dark #0e1a06
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,700&display=swap');

/* ── TOKENS ── */
:root {
  --g:      #6CBF2F;
  --g-d:    #3d7a0a;
  --g-dd:   #1f4205;
  --g-l:    #e8f7d4;
  --y:      #F5C400;
  --y-d:    #c99f00;
  --y-l:    #fffae0;
  --r:      #CC1C1C;
  --dk:     #0e1a06;
  --dk2:    #172809;
  --dk3:    #1e3710;
  --mid:    #2e5010;
  --bg:     #f6f8f2;
  --bg2:    #eef2e6;
  --border: #dbe8ca;
  --tx:     #141e09;
  --tx2:    #3d5420;
  --tx3:    #627a45;
  --white:  #ffffff;

  --ff: 'Barlow', 'Clan Pro', system-ui, sans-serif;
  --r-xs: 4px; --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-2xl: 40px;
  --sh-xs: 0 1px 4px rgba(0,0,0,.06);
  --sh-sm: 0 4px 16px rgba(0,0,0,.08);
  --sh-md: 0 8px 32px rgba(0,0,0,.12);
  --sh-lg: 0 20px 60px rgba(0,0,0,.16);
  --t: .26s cubic-bezier(.4,0,.2,1);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--ff); color: var(--tx); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--ff); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: var(--ff); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dk); }
::-webkit-scrollbar-thumb { background: var(--g); border-radius: 4px; }

/* ── LAYOUT ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
section { padding: 96px 0; }

/* ── TYPE ── */
.t-d1 { font-size: clamp(3.2rem,5.5vw,5.2rem); font-weight: 900; line-height: .98; letter-spacing: -.04em; }
.t-d2 { font-size: clamp(2.4rem,4vw,3.8rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; }
.t-d3 { font-size: clamp(1.8rem,2.8vw,2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.t-h4 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.t-body { font-size: 1.05rem; line-height: 1.75; }
.t-sm { font-size: .875rem; line-height: 1.65; }
.t-xs { font-size: .775rem; line-height: 1.5; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--g);
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; border-radius: 2px; flex-shrink: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .88rem; letter-spacing: .02em; white-space: nowrap;
  padding: 13px 26px; border-radius: 50px; transition: var(--t); cursor: pointer; border: none;
}
.btn-g   { background: var(--g);  color: #fff; }
.btn-g:hover  { background: var(--g-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,191,47,.35); }
.btn-y   { background: var(--y);  color: var(--dk); font-weight: 800; }
.btn-y:hover  { background: var(--y-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,196,0,.4); }
.btn-dk  { background: var(--dk); color: #fff; }
.btn-dk:hover { background: var(--dk2); transform: translateY(-2px); }
.btn-ol  { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn-ol:hover { border-color: var(--y); color: var(--y); transform: translateY(-2px); }
.btn-ol-g { background: transparent; color: var(--g); border: 1.5px solid var(--g); }
.btn-ol-g:hover { background: var(--g); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: .95rem; }
.btn-sm { padding: 9px 18px; font-size: .8rem; }

/* ── BADGE ── */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 50px; }
.badge-g  { background: var(--g-l); color: var(--g-dd); }
.badge-y  { background: var(--y-l); color: var(--y-d); }
.badge-r  { background: #fde; color: var(--r); }
.badge-dk { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.badge-promo { background: var(--r); color: #fff; }

/* ── NAVBAR ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 92px;
  background: rgba(14,26,6,.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(108,191,47,.18);
  transition: height var(--t), box-shadow var(--t);
}
#nav.scrolled { height: 74px; box-shadow: 0 4px 40px rgba(0,0,0,.45); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 48px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-circle {
  width: 62px; height: 62px; border-radius: 50%;
  background: #fff;
  border: 3px solid var(--g);
  box-shadow: 0 0 0 5px rgba(108,191,47,.18), 0 4px 16px rgba(0,0,0,.35);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform var(--t), box-shadow var(--t);
}
.nav-logo-circle:hover { transform: scale(1.07); box-shadow: 0 0 0 7px rgba(108,191,47,.28), 0 6px 24px rgba(0,0,0,.4); }
.nav-logo-circle img { width: 52px; height: 52px; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-text strong { color: #fff; font-size: .95rem; font-weight: 900; letter-spacing: .02em; }
.nav-logo-text span { color: var(--y); font-size: .65rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

/* ── NAV LINKS — Desktop uniquement ── */
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: rgba(255,255,255,.65); font-size: .85rem; font-weight: 600; letter-spacing: .03em;
  padding: 7px 15px; border-radius: var(--r-sm); transition: color var(--t), background var(--t);
  position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 18px; height: 2px; background: var(--g); border-radius: 2px; }
.nav-cta { background: var(--y) !important; color: var(--dk) !important; font-weight: 800 !important; padding: 9px 20px !important; border-radius: 50px !important; font-size: .83rem !important; transition: var(--t) !important; }
.nav-cta:hover { background: var(--y-d) !important; transform: scale(1.04); }
.nav-cta::after { display: none !important; }
.ham { display: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; background: none; border: none; }
.ham span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--t); }

/* ════════════════════════════════════════════════════
   MENU MOBILE — #mobileMenu + #mobileOverlay
   Injectés directement dans <body> via JS
   → complètement au-dessus des animations du hero
   ════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   MENU MOBILE — <dialog> rendu dans le TOP LAYER du navigateur
   Aucun z-index, animation ou backdrop-filter ne peut passer
   par-dessus le top layer. Solution définitive.
   ══════════════════════════════════════════════════════════ */

/* Reset dialog natif */
#mobileDialog {
  all: unset;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: #0a1305;
  border: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  flex-direction: column;
}
/* showModal() met display sur 'revert' — on le force en flex */
#mobileDialog[open] { display: flex; }

/* Fond semi-transparent (::backdrop = natif du dialog) */
#mobileDialog::backdrop {
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Contenu intérieur */
.md-inner {
  display: flex; flex-direction: column;
  min-height: 100%; padding: 0 0 32px;
}

/* En-tête */
.md-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(108,191,47,.2);
  background: rgba(108,191,47,.05);
  flex-shrink: 0;
}
.md-brand { display: flex; align-items: center; gap: 12px; }
.md-logo-circle { width: 48px !important; height: 48px !important; flex-shrink: 0; }
.md-logo-circle img { width: 38px !important; height: 38px !important; }

#mdClose {
  background: rgba(255,255,255,.08); border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  color: rgba(255,255,255,.7); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s; flex-shrink: 0;
}
#mdClose:hover { background: rgba(255,255,255,.18); color: #fff; }

/* Liens de navigation */
.md-links {
  display: flex; flex-direction: column;
  flex: 1; padding: 8px 0;
}
.md-links a {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 28px;
  color: rgba(255,255,255,.75); font-size: 1.1rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .2s, color .2s, padding-left .2s;
}
.md-links a i {
  color: var(--g); font-size: 1rem;
  width: 20px; text-align: center; flex-shrink: 0;
}
.md-links a:hover  { background: rgba(108,191,47,.1); color: #fff; padding-left: 36px; }
.md-links a.active { background: rgba(108,191,47,.12); color: var(--y); }
.md-links a.active i { color: var(--y); }

/* Bouton CTA */
.md-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 28px 24px 0;
  padding: 16px; border-radius: 50px;
  background: var(--y); color: var(--dk);
  font-weight: 800; font-size: 1rem;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.md-cta:hover { background: var(--y-d); transform: translateY(-2px); }

/* Contact en pied */
.md-contacts {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px 28px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 28px;
}
.md-contacts a, .md-contacts span {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.5); font-size: .9rem; font-weight: 600;
  transition: color .2s;
}
.md-contacts a:hover { color: #fff; }
.md-contacts a:first-child i { color: var(--g); }
.md-contacts a:nth-child(2) i { color: #25D366; }
.md-contacts span i { color: var(--y); }

/* ── FOOTER ── */
#footer { background: var(--dk); color: rgba(255,255,255,.5); }
.footer-top { padding: 72px 0 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.fg-logo img { height: 50px; margin-bottom: 1.2rem; }
.fg-tag { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--y); margin-bottom: .9rem; }
.fg-desc { font-size: .84rem; line-height: 1.72; color: rgba(255,255,255,.4); max-width: 260px; }
.fg-socials { display: flex; gap: 8px; margin-top: 1.4rem; }
.soc-btn { width: 36px; height: 36px; border-radius: var(--r-sm); background: rgba(255,255,255,.07); color: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: var(--t); }
.soc-btn:hover { background: var(--g); color: #fff; }
.fc-title { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.9); margin-bottom: 1.1rem; }
.fc-list li { margin-bottom: .55rem; }
.fc-list a { font-size: .84rem; color: rgba(255,255,255,.4); transition: color var(--t); }
.fc-list a:hover { color: var(--y); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.25); }
.footer-bottom span { color: var(--g); }

/* ── WHATSAPP BUBBLE ── */
#wa-bubble {
  position: fixed; bottom: 82px; right: 24px; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: var(--t);
  text-decoration: none;
}
#wa-bubble:hover { background: #1ebe5d; transform: scale(1.12) translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,.6); }
#wa-bubble::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.4);
  animation: pulseRing 2s ease-out infinite;
}
.wa-tooltip {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%);
  background: var(--dk); color: #fff; font-size: .75rem; font-weight: 700;
  white-space: nowrap; padding: 6px 12px; border-radius: var(--r-md);
  opacity: 0; pointer-events: none; transition: opacity var(--t);
  box-shadow: var(--sh-sm);
}
.wa-tooltip::after { content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: var(--dk); }
#wa-bubble:hover .wa-tooltip { opacity: 1; }

/* ── SCROLL TO TOP ── */
#stt { position: fixed; bottom: 24px; right: 24px; z-index: 800; width: 46px; height: 46px; border-radius: 50%; background: var(--y); color: var(--dk); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: 0 4px 20px rgba(245,196,0,.4); opacity: 0; transform: translateY(16px); transition: var(--t); pointer-events: none; }
#stt.show { opacity: 1; transform: none; pointer-events: all; }
#stt:hover { background: var(--y-d); transform: translateY(-3px) !important; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }

.anim { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.anim.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s !important; } .d2 { transition-delay: .18s !important; }
.d3 { transition-delay: .26s !important; } .d4 { transition-delay: .34s !important; }
.d5 { transition-delay: .42s !important; } .d6 { transition-delay: .50s !important; }

/* ── PAGE HERO ── */
.page-hero {
  min-height: 400px; display: flex; align-items: flex-end; padding-bottom: 64px; padding-top: 136px;
  position: relative; overflow: hidden;
  background: linear-gradient(130deg, var(--dk) 0%, var(--dk3) 100%);
}
.ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .15; filter: saturate(.5); }
.ph-overlay { position: absolute; inset: 0; background: linear-gradient(130deg, rgba(14,26,6,.92) 0%, rgba(30,55,16,.7) 100%); }
.ph-content { position: relative; z-index: 2; }
.ph-content h1 { color: #fff; margin: .6rem 0; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.4); }
.breadcrumb a { color: var(--y); }
.breadcrumb sep { color: rgba(255,255,255,.2); }

/* ── FORM ── */
.f-group { margin-bottom: 16px; }
.f-label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tx); margin-bottom: 5px; }
.f-in, .f-sel, .f-ta {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--bg); font-family: var(--ff); font-size: .93rem; color: var(--tx);
  outline: none; transition: border-color var(--t), box-shadow var(--t);
}
.f-in:focus, .f-sel:focus, .f-ta:focus { border-color: var(--g); background: #fff; box-shadow: 0 0 0 3px rgba(108,191,47,.12); }
.f-ta { min-height: 110px; resize: vertical; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── SWIPER OVERRIDES ── */
.swiper-pagination-bullet { background: var(--border); opacity: 1; width: 7px; height: 7px; }
.swiper-pagination-bullet-active { background: var(--g); width: 22px; border-radius: 4px; }
.swiper-button-next, .swiper-button-prev {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm);
  color: var(--tx) !important; transition: var(--t);
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 13px !important; font-weight: 900 !important; }
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--g); color: #fff !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) { .wrap { padding: 0 32px; } }

/* ══════════════════════════════════════════════════════════
   MOBILE ≤ 900px
   On coupe toutes les animations/transitions du hero pour
   éliminer les couches GPU qui bloquent le menu mobile.
   Les slides changent instantanément — le contenu reste visible.
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  section { padding: 72px 0; }

  /* ── Désactivation complète des animations hero sur mobile ── */

  /* 1. Slides fond — plus de fondu, changement instantané */
  .hs {
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
  }

  /* 2. Slides contenu — plus de fadeUp */
  .hc, .hc.on {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }

  /* 3. Ticker — pause de l'animation défilante */
  .ticker-track {
    animation-play-state: paused !important;
  }

  /* 4. Scroll hint flottant */
  .hero-scroll-hint i {
    animation: none !important;
  }

  /* 5. Éléments .anim — déjà visibles sans délai */
  .anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* 6. Force le hero à ne pas créer de stacking context GPU */
  .hero {
    transform: none !important;
    will-change: auto !important;
    isolation: auto !important;
  }
  .hero-slides, .hero-overlay, .hero-content-slides {
    transform: none !important;
    will-change: auto !important;
  }

  /* Cache les liens desktop et le texte logo — le menu mobile prend le relais */
  .nav-links { display: none !important; }
  .nav-logo-text { display: none; }
  .ham { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .f-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 20px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 20px; }
}
