/* ==========================================================================
   OKJAFE — clone statique du design Enfold actuel (FR + PT)
   Reproduit fidèlement : header sticky-shrink, méga-menu au survol,
   slideshow hero, bannière orange, grilles produits, footer 3 colonnes.
   ========================================================================== */

:root {
  --navy: #2b2f36;
  --navy-dark: #1f2227;
  --orange: #f2a71b;
  --orange-dark: #d88f0f;
  --orange-a11y: #98650a; /* variante d'orange plus foncée, contraste 5:1 sur blanc (WCAG AA) — usage texte uniquement */
  --white: #ffffff;
  --ink: #333333;
  --ink-soft: #666666;
  --line: #e5e5e5;
  --bg-alt: #f7f7f7;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1200px;
  --header-h: 130px;
  --header-h-shrunk: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  font-size: 16px; line-height: 1.6; background: var(--white);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; margin: 0 0 .5em; color: #3d3d3d; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.tbc { background: var(--bg-alt); padding: 0 4px; border-radius: 2px; font-style: italic; }

/* ---------- topbar ---------- */
.topbar {
  background: var(--white); border-bottom: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-soft);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 20px; padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: inherit; }
.topbar a:hover { color: var(--orange-dark); }
.topbar .phones b { color: var(--ink); }
.topbar .right { display: flex; align-items: center; gap: 18px; }
.topbar .social { display: flex; gap: 12px; }
.topbar .social a { color: var(--navy); }
.topbar .social a:hover { color: var(--orange); }
.topbar .social svg { width: 16px; height: 16px; }
.topbar .langs a { margin-left: 8px; font-weight: 600; }
.topbar .langs a[aria-current="true"] { color: var(--orange-a11y); }

/* ---------- header + nav (regroupés, l'ensemble reste figé au scroll) ---------- */
.head-wrap {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  transition: box-shadow .2s ease;
}
.head-wrap.is-shrunk { box-shadow: 0 2px 10px rgba(0,0,0,.12); }
header.site-header { background: var(--white); }
.site-header .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 26px 0; transition: padding .2s ease;
}
.head-wrap.is-shrunk .header-inner { padding: 10px 0; }
.logo img { height: 78px; width: auto; display: block; transition: height .2s ease; }
.head-wrap.is-shrunk .logo img { height: 44px; }

/* ---------- nav + mega-menu ---------- */
nav.main-nav { background: var(--navy); }
nav.main-nav .container { display: flex; align-items: stretch; }
nav.main-nav ul.top-level {
  list-style: none; display: flex; margin: 0; padding: 0; flex: 1;
}
nav.main-nav ul.top-level > li { position: relative; }
nav.main-nav ul.top-level > li > a {
  display: block; padding: 16px 18px; color: var(--white);
  font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent;
}
nav.main-nav ul.top-level > li > a:hover,
nav.main-nav ul.top-level > li.current > a { border-bottom-color: var(--orange); color: var(--orange); }
nav.main-nav ul.top-level > li.cta-item { margin-left: auto; }
nav.main-nav ul.top-level > li.cta-item > a { background: var(--orange); color: var(--navy-dark); }
nav.main-nav ul.top-level > li.cta-item > a:hover { background: var(--orange-dark); border-bottom-color: transparent; color: var(--white); }

.mega-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--navy-dark); list-style: none; margin: 0; padding: 6px 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}
nav.main-nav ul.top-level > li:hover > .mega-menu,
nav.main-nav ul.top-level > li.menu-open > .mega-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-menu li a {
  display: block; padding: 10px 20px; color: #d8d8d8; font-size: .88rem; font-weight: 500;
}
.mega-menu li a:hover { background: rgba(255,255,255,.06); color: var(--orange); }

/* mobile nav toggle (hidden on desktop) */
.nav-toggle { display: none; }

/* ---------- hero slideshow ---------- */
.hero { position: relative; overflow: hidden; min-height: 560px; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; animation: heroFade 24s infinite;
}
.hero-slide.s1 { animation-delay: 0s; }
.hero-slide.s2 { animation-delay: 8s; }
.hero-slide.s3 { animation-delay: 16s; }
@keyframes heroFade {
  0% { opacity: 0; } 4% { opacity: 1; } 30% { opacity: 1; } 37% { opacity: 0; } 100% { opacity: 0; }
}
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 60px; z-index: 3;
  color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.hero-caption .container { max-width: var(--container); }
.hero-caption h1 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 26ch; }
.hero-caption p { color: #f0f0f0; font-size: 1.05rem; max-width: 52ch; }
.hero-text-box {
  display: inline-block; max-width: 640px;
  background: rgba(0,0,0,.6); padding: 1.4rem 1.7rem; border-radius: 8px;
}
.hero-text-box h1, .hero-text-box p { max-width: none; }
.hero-text-box h1 { margin: 0 0 .6rem; }
.hero-text-box p { margin: 0; }
@media (max-width: 680px) { .hero-text-box { max-width: 100%; padding: 1.1rem 1.3rem; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.05) 55%);
}
.hero-caption { z-index: 2; }

/* ---------- bannière orange "Pour les Pros" ---------- */
.pro-banner { background: var(--orange); padding: 22px 0; }
.pro-banner .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.pro-banner p { margin: 0; color: var(--navy-dark); font-size: 1.2rem; font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px;
  border-radius: 999px; font-weight: 700; font-size: .92rem; border: 2px solid transparent;
  white-space: nowrap; cursor: pointer;
}
.btn-solid { background: var(--navy-dark); color: var(--white); }
.btn-solid:hover { background: var(--navy); }
.btn-outline-dark { border-color: var(--navy-dark); color: var(--navy-dark); background: transparent; }
.btn-outline-dark:hover { background: var(--navy-dark); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--navy-dark); }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 1.5rem; letter-spacing: .03em; }
.section-head .rule { width: 46px; height: 3px; background: var(--orange); margin: 10px auto 0; }

/* ---------- product grid (page statique, non carrousel) ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.card { text-align: center; }

/* ---------- carrousel produits (accueil : 4 visibles + flèches) ---------- */
.carousel { position: relative; display: flex; align-items: center; gap: 12px; }
.carousel-viewport { overflow: hidden; flex: 1; }
.carousel-track { display: flex; gap: 30px; transition: transform .35s ease; }
.carousel-track .card { flex: 0 0 calc((100% - 3 * 30px) / 4); min-width: 0; }
.carousel-btn {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  font-size: 1.3rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  color: var(--navy); transition: background .15s, color .15s, border-color .15s;
}
.carousel-btn:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }
.carousel-btn[disabled] { opacity: .3; cursor: default; pointer-events: none; }
.carousel-btn.hidden { visibility: hidden; }
.card .thumb {
  height: 180px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .thumb img { max-height: 100%; width: auto; margin: 0 auto; }
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card .rule { width: 32px; height: 2px; background: var(--orange); margin: 0 auto 10px; }
.card p { font-size: .88rem; margin: 0; }
.badge {
  display: inline-block; vertical-align: middle; white-space: nowrap;
  background: #fcb900; color: #1a1a1a;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: 4px 11px; border-radius: 999px; margin-left: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.card .badge { margin-left: 0; margin-top: 8px; }

/* ---------- pourquoi nous choisir (fond navy) ---------- */
.why { background: var(--navy-dark); color: var(--white); }
.why .section-head h2 { color: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-item .icon {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center;
}
.why-item .icon svg { width: 24px; height: 24px; color: var(--white); }
.why-item h3 { color: var(--white); font-size: 1rem; margin-bottom: 6px; }
.why-item p { color: #c7c9cc; font-size: .9rem; margin: 0; }
.why-item p a { color: #c7c9cc; text-decoration: underline; }
.why-item p a:hover { color: var(--orange); }

/* ---------- redirect box (particuliers FR / estores PT) ---------- */
.redirect-box {
  background: var(--navy); color: var(--white); border-radius: 6px;
  padding: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center;
}
.redirect-box h2, .redirect-box p { color: var(--white); }
.redirect-box .partners { display: flex; flex-direction: column; gap: 12px; }
.partner-link {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px; padding: 13px 18px; display: flex; justify-content: space-between;
  align-items: center; color: var(--white); font-weight: 700;
}
.partner-link:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- trust line ---------- */
.trustline { text-align: center; padding: 30px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trustline strong { color: var(--orange-a11y); }

/* ---------- footer ---------- */
footer.site-footer { background: var(--navy-dark); color: #c7c9cc; padding: 50px 0 22px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-bottom: 30px; }
.footer-grid h4 { color: var(--white); font-size: .95rem; margin-bottom: 12px; letter-spacing: .03em; }
.footer-grid p { color: #b7b9bc; font-size: .9rem; margin: 0 0 .4em; }
.footer-grid a { color: #d8d8d8; text-decoration: underline; }
.footer-grid a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.footer-social a:hover { background: var(--orange); }
.footer-social svg { width: 16px; height: 16px; color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: .8rem; color: #9a9c9f;
}
.footer-bottom a { color: #9a9c9f; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.28); transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 28px; height: 28px; color: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .carousel-track .card { flex-basis: calc((100% - 30px) / 2); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .redirect-box { grid-template-columns: 1fr; }
  nav.main-nav ul.top-level { display: none; }
  .nav-toggle {
    display: block; margin-left: auto; background: none; border: none;
    color: var(--white); padding: 14px 18px; font-size: 1.4rem; cursor: pointer;
  }
  nav.main-nav.mobile-open ul.top-level {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); z-index: 40;
  }
  nav.main-nav.mobile-open .mega-menu { position: static; opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 600px) {
  .grid-cards { grid-template-columns: 1fr; }
  .carousel-track .card { flex-basis: 100%; }
  .carousel-btn { width: 34px; height: 34px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pro-banner .container { flex-direction: column; text-align: center; }
  .hero { min-height: 460px; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}

/* ==========================================================================
   Formulaires (Contact, Devis)
   ========================================================================== */
.okform { max-width: 640px; }
.okform .form-row { margin-bottom: 16px; }
.okform .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.okform label { display: block; font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; letter-spacing: .01em; }
.okform label .opt { font-weight: 400; color: var(--ink-soft); text-transform: none; }
.okform input[type="text"],
.okform input[type="email"],
.okform input[type="tel"],
.okform select,
.okform textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 5px;
  font-family: var(--font); font-size: .95rem; color: var(--ink); background: #fff;
}
.okform input:focus, .okform select:focus, .okform textarea:focus {
  outline: none; border-color: var(--orange-dark);
}
.okform textarea { resize: vertical; min-height: 110px; }
.okform .check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); margin-bottom: 12px; }
.okform .check-row input { margin-top: 3px; }
.okform .check-group { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.okform .check-group label { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: .9rem; color: var(--ink); text-transform: none; }
.okform .check-group input { width: auto; }
.okform .required-note { font-size: .78rem; color: var(--ink-soft); margin: 4px 0 20px; }
.okform .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-tabs { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.form-tabs a { padding: 10px 4px; font-weight: 700; font-size: .95rem; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.form-tabs a.active { color: var(--navy-dark); border-bottom-color: var(--orange-dark); }
@media (max-width: 620px) { .okform .form-grid { grid-template-columns: 1fr; } }

/* ---------- lightbox simple (fiches produit : galerie, nuanciers, image principale) ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(10,14,20,.92); z-index: 999;
  display: flex; align-items: center; justify-content: center; padding: 48px;
  opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 18px; right: 24px; color: #fff; font-size: 2.1rem; line-height: 1;
  cursor: pointer; background: none; border: none; padding: 6px 10px;
}
.lightbox-close:hover { color: var(--orange); }
a.lightbox-trigger { cursor: zoom-in; }
