/*
Theme Name: Agrihorsol ProdufaiX
Theme URI: https://agrihorsol.ml
Author: Agrihorsol ProdufaiX
Author URI: https://agrihorsol.ml
Description: Thème WordPress sur mesure pour Agrihorsol ProdufaiX — agriculture hors sol, hydroponie et production de champignons au Mali. Bilingue FR/EN, catalogue produits et formations, calculateur de devis interactif.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agrihorsol
*/

/* =========================================================
   AGRIHORSOL PRODUFAIX — Design System complet
   (fusion de style.css + components.css du prototype statique)
   ========================================================= */

:root {
  /* Charte graphique premium Agrihorsol ProdufaiX (v3) */
  --forest: #184D3B;        /* Vert Canopée Profond */
  --emerald: #2E7D5B;       /* Vert Botanique Premium */
  --sage: #8FAF8B;          /* Vert Sauge Élégant */
  --light-green: var(--emerald);
  --gold: #B38A42;          /* Bronze Végétal (remplace l'accent doré) */
  --gold-light: #C2A168;
  --white: #FFFFFF;
  --charcoal: #2F3136;      /* Graphite Élite */

  /* Derived */
  --bg: #FCFCFA;            /* Blanc Minéral */
  --bg-alt: #F2EFE6;        /* Sable Naturel */
  --ink: var(--charcoal);
  --ink-soft: #6B6E72;
  --line: #E4E0D6;
  --forest-rgb: 24, 77, 59;
  --gold-rgb: 179, 138, 66;
  --footer-bg: #123328;

  /* Gradients */
  --grad-forest: linear-gradient(135deg, var(--forest) 0%, var(--emerald) 100%);
  --grad-gold: linear-gradient(135deg, #96702F 0%, var(--gold) 50%, var(--gold-light) 100%);
  --grad-hero-light: linear-gradient(160deg, var(--bg-alt) 0%, var(--bg) 100%);
  --grad-hero: linear-gradient(180deg, rgba(24,77,59,0.85) 0%, rgba(16,54,42,0.92) 55%, rgba(10,36,28,0.97) 100%);

  /* Type — Titres : General Sans (libre, proche de Neue Haas Grotesk) — Texte : Inter */
  --font-display: 'General Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 10px rgba(47,49,54,0.06);
  --shadow-md: 0 12px 32px -8px rgba(24,77,59,0.18);
  --shadow-lg: 0 24px 60px -16px rgba(24,77,59,0.28);
  --container: 1240px;
  --nav-h: 84px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
section { position: relative; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); color: var(--forest); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px;
  border-radius: var(--radius-full); background: rgba(46,125,91,0.12); color: var(--forest);
  font-size: 0.82rem; font-weight: 700;
}
.text-gold { color: var(--gold); }
svg.ic { width: 24px; height: 24px; display: inline-block; flex-shrink: 0; }
.bg-alt { background: var(--bg-alt); }
.bg-forest { background: var(--grad-forest); color: var(--white); }
.mt-0 { margin-top: 0 !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.95rem;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap; position: relative;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--emerald); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--forest); transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(24,77,59,0.45); }
.btn-outline { background: var(--white); color: var(--emerald); border: 1.5px solid var(--emerald); }
.btn-outline:hover { background: var(--emerald); color: var(--white); transform: translateY(-3px); }
.btn-dark { background: var(--forest); color: var(--white); box-shadow: var(--shadow-md); }
.btn-dark:hover { background: var(--emerald); transform: translateY(-3px); }
.btn-ghost { color: var(--forest); font-weight: 700; padding: 15px 6px; }
.btn-ghost svg { transition: transform .25s ease; }
.btn-ghost:hover svg { transform: translateX(5px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
/* Bouton "Demande de Devis" de la nav : seul CTA en jaune doré, effet premium au survol */
.btn.nav-cta { background: var(--grad-gold); color: var(--charcoal); box-shadow: 0 6px 18px -4px rgba(179,138,66,0.5); }
.btn.nav-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -6px rgba(179,138,66,0.65); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h); display: flex; align-items: center;
  background: var(--forest); box-shadow: 0 1px 0 rgba(255,255,255,0.08);
  transition: box-shadow .3s ease, height .3s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-header.is-solid { height: 76px; box-shadow: 0 12px 30px -18px rgba(0,0,0,0.4); }
.brand { display: flex; align-items: center; gap: 12px; z-index: 2; }
.brand img { height: 46px; width: auto; border-radius: 10px; }
.brand img.brand-logo {
  height: 56px; width: auto; border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > li { position: relative; }
.main-nav a {
  padding: 10px 16px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; color: rgba(255,255,255,0.9);
  border-radius: var(--radius-full); transition: background .28s ease, color .28s ease;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.main-nav a svg { width: 13px; height: 13px; transition: transform .25s ease; }
.main-nav a:hover { background: rgba(255,255,255,0.14); }
.main-nav a.active { color: var(--gold); background: rgba(179,138,66,0.16); }
.main-nav li:hover > a svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 10px; background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); min-width: 240px; padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .28s ease; border: 1px solid var(--line);
}
.main-nav li:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { color: var(--ink); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; transition: background .25s ease, color .25s ease; }
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--forest); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.footer-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; color: rgba(255,255,255,0.85); margin: 4px 0 18px; transition: color .25s ease; }
.footer-phone svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }
.footer-phone:hover { color: var(--gold-light); }
.lang-toggle {
  display: flex; align-items: center; background: rgba(255,255,255,0.14); border-radius: var(--radius-full);
  padding: 4px; gap: 2px; border: 1px solid rgba(255,255,255,0.25);
}
.lang-toggle button {
  padding: 6px 12px; border-radius: var(--radius-full); font-size: 0.76rem; font-weight: 800;
  color: rgba(255,255,255,0.75); transition: all .25s ease; letter-spacing: 0.04em;
}
.lang-toggle button.active { background: var(--gold); color: var(--charcoal); box-shadow: var(--shadow-sm); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; }
.burger span, .burger::before, .burger::after { content: ''; display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s ease; }
.burger { flex-direction: column; gap: 5px; }
.burger::before, .burger::after { position: static; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: 0; background: var(--forest); z-index: 1000;
  display: flex; flex-direction: column; padding: 100px 32px 40px;
  transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav { overflow-y: auto; }
.mobile-nav a { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: space-between; }
.mobile-nav .m-toggle { background: none; }
.mobile-nav .m-sub { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.mobile-nav li.open .m-sub { max-height: 300px; }
.mobile-nav .m-sub a { font-family: var(--font-body); font-size: 1rem; padding: 10px 0 10px 16px; border-bottom: none; color: rgba(255,255,255,0.75); }
.mobile-nav .btn { margin-top: 28px; }
.mobile-lang { margin-bottom: 10px; }
.mobile-close { position: absolute; top: 28px; right: 28px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.4rem; }
body.nav-open { overflow: hidden; }

/* ---------- Hero (generic inner page) ---------- */
.page-hero {
  min-height: 62vh; display: flex; align-items: flex-end; position: relative;
  padding: calc(var(--nav-h) + 60px) 0 90px; background: var(--grad-hero-light); color: var(--ink); overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 820px; color: var(--forest); }
.page-hero p.lead { max-width: 560px; margin-top: 18px; font-size: 1.1rem; color: var(--ink); }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--forest); }
.leaf-decor { position: absolute; opacity: 0.35; pointer-events: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; } .reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; } .reveal-delay-4 { transition-delay: .4s; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,0.75); padding: 90px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.footer-grid a, .footer-grid p { color: rgba(255,255,255,0.6); font-size: 0.92rem; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { display: inline-block; transition: color .28s ease, transform .28s ease; }
.footer-grid a:hover { color: var(--gold); transform: translateX(3px); }
.footer-brand img { height: 76px; width: auto; margin-bottom: 16px; border-radius: var(--radius-md); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.footer-brand p { max-width: 300px; margin-bottom: 20px; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); color: var(--gold); display: flex; align-items: center; justify-content: center; transition: background .28s ease, transform .28s ease; }
.social-row a:hover { background: var(--gold); color: var(--charcoal); transform: translateY(-3px); }
.social-row svg { width: 17px; height: 17px; }
.newsletter-form { display: flex; margin-top: 14px; border-radius: var(--radius-full); background: rgba(255,255,255,0.08); padding: 5px; }
.newsletter-form input { flex: 1; background: transparent; border: none; padding: 10px 16px; color: var(--white); font-size: 0.88rem; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form button { background: var(--grad-gold); color: var(--charcoal); border-radius: var(--radius-full); padding: 10px 18px; font-weight: 700; font-size: 0.85rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.payment-icons { display: flex; gap: 10px; align-items: center; }
.payment-icons span { padding: 5px 12px; border-radius: 6px; background: rgba(255,255,255,0.08); font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.6); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 800;
  width: 62px; height: 62px; border-radius: 50%; background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(37,211,102,0.45);
  animation: wa-pulse 2.6s infinite;
}
.wa-float svg { width: 30px; height: 30px; }
@keyframes wa-pulse { 0%,100% { box-shadow: 0 10px 26px rgba(37,211,102,0.45); } 50% { box-shadow: 0 10px 26px rgba(37,211,102,0.75), 0 0 0 10px rgba(37,211,102,0.12); } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; bottom: 28px; left: 28px; z-index: 800; width: 46px; height: 46px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(10px); pointer-events: none; transition: all .3s ease; color: var(--forest); }
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; color: var(--forest); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--white); transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(46,125,91,0.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .main-nav, .nav-actions .lang-toggle:not(.mobile-lang), .nav-actions .nav-cta { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}

/* =========================================================
   Reusable page components
   =========================================================*/
/* ---------- Home hero ---------- */
.hero-home {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--grad-hero-light); color: var(--ink); overflow: hidden; padding-top: var(--nav-h);
  border-bottom: 1px solid var(--line);
}
.hero-home .hero-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.1; }
.hero-home .hero-overlay { display: none; }
.hero-home .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; padding-top: 40px; padding-bottom: 60px; }
.hero-home h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); color: var(--forest); }
.hero-home .lead { max-width: 520px; margin-top: 20px; font-size: 1.12rem; color: var(--ink); }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 54px; flex-wrap: wrap; }
.hero-badges div b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--forest); }
.hero-badges div span { font-size: 0.8rem; color: var(--ink-soft); }
.hero-visual { position: relative; }
.hero-visual .frame {
  position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid var(--white); transform: rotate(2deg);
}
.hero-visual .frame img { aspect-ratio: 4/5; object-fit: cover; }
.hero-visual .floating-card {
  position: absolute; background: var(--white); color: var(--ink); border-radius: var(--radius-md);
  padding: 16px 20px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  animation: float-y 4.5s ease-in-out infinite;
}
.hero-visual .floating-card svg { width: 30px; height: 30px; color: var(--emerald); flex-shrink: 0; }
.hero-visual .floating-card b { display: block; font-size: 1rem; }
.hero-visual .floating-card span { font-size: 0.76rem; color: var(--ink-soft); }
.hero-visual .fc-1 { top: -18px; right: -20px; }
.hero-visual .fc-2 { bottom: -22px; left: -30px; animation-delay: 1.2s; }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-cue .dot-track { width: 2px; height: 34px; background: rgba(47,49,54,0.14); border-radius: 2px; position: relative; overflow: hidden; }
.scroll-cue .dot-track::after { content: ''; position: absolute; top: -20px; left: 0; width: 100%; height: 20px; background: var(--gold); animation: scroll-dot 1.8s infinite; }
@keyframes scroll-dot { to { top: 40px; } }

/* ---------- Marquee / partners strip ---------- */
.marquee-strip { background: var(--bg-alt); padding: 26px 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 26s linear infinite; align-items: center; }
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink-soft); opacity: 0.6; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 70px 0; }
.stat-item { text-align: center; }
.stat-item b { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.1rem); color: var(--forest); display: block; }
.stat-item span { color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }

/* ---------- Solutions grid ---------- */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.solution-card { padding: 38px 32px; overflow: hidden; position: relative; }
.solution-card .ico-wrap { width: 60px; height: 60px; border-radius: 16px; background: rgba(179,138,66,0.14); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--gold); }
.solution-card .ico-wrap svg { width: 30px; height: 30px; }
.solution-card h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--forest); }
.solution-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 18px; }
.solution-card .learn { font-weight: 700; font-size: 0.88rem; color: var(--emerald); display: inline-flex; align-items: center; gap: 6px; }
.solution-card .learn svg { width: 15px; height: 15px; transition: transform .25s ease; }
.solution-card:hover .learn svg { transform: translateX(5px); }
.solution-card .num { position: absolute; top: 18px; right: 24px; font-family: var(--font-display); font-size: 3rem; color: var(--bg-alt); font-weight: 700; z-index: 0; }

/* ---------- Process / timeline ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding-top: 8px; }
.process-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); display: block; margin-bottom: 10px; }
.process-step h4 { font-size: 1.05rem; margin-bottom: 10px; color: var(--forest); }
.process-step p { font-size: 0.9rem; color: var(--ink-soft); }
.process-step:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 78%; width: 44%; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }

/* ---------- Accordion ---------- */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 4px; font-weight: 700; color: var(--forest); font-size: 1.02rem; }
.accordion-head .chev { width: 20px; height: 20px; transition: transform .3s ease; flex-shrink: 0; }
.accordion-item.open .chev { transform: rotate(135deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-item.open .accordion-body { max-height: 400px; }
.accordion-body p { padding: 0 4px 22px; color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Tabs ---------- */
.tabs-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.tabs-nav button { padding: 12px 22px; border-radius: var(--radius-full); border: 1.5px solid var(--line); font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); transition: all .25s ease; }
.tabs-nav button.active { background: var(--forest); color: var(--white); border-color: var(--forest); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Testimonials ---------- */
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial-card { padding: 34px; }
.testimonial-card .stars { color: var(--gold); display: flex; gap: 3px; margin-bottom: 18px; }
.testimonial-card .stars svg { width: 16px; height: 16px; }
.testimonial-card p.quote { color: var(--ink); font-size: 1rem; margin-bottom: 24px; font-style: italic; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-person .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-forest); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-family: var(--font-display); }
.testimonial-person b { display: block; font-size: 0.92rem; }
.testimonial-person span { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); background: var(--grad-forest); color: var(--white); padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.cta-band h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 480px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-top: 12px; max-width: 460px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Gallery / lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; grid-auto-rows: 200px; }
.gallery-grid .g-item { border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: pointer; }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.08); }
.gallery-grid .g-item .g-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(19,62,47,0.85) 100%); opacity: 0; transition: opacity .3s ease; display: flex; align-items: flex-end; padding: 16px; color: var(--white); font-weight: 700; font-size: 0.9rem; }
.gallery-grid .g-item:hover .g-overlay { opacity: 1; }
.gallery-grid .span-2 { grid-column: span 2; grid-row: span 2; }
.lightbox { position: fixed; inset: 0; background: rgba(12,20,14,0.94); z-index: 1100; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(900px, 90vw); max-height: 82vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox .lb-caption { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--white); font-weight: 700; background: rgba(0,0,0,0.4); padding: 8px 20px; border-radius: var(--radius-full); }
.lightbox .lb-close, .lightbox .lb-nav { position: absolute; color: var(--white); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: background .25s ease; }
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox .lb-close { top: 26px; right: 26px; }
.lightbox .lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card img { height: 210px; width: 100%; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.blog-card .blog-body { padding: 26px; }
.blog-card .blog-meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 12px; align-items: center; }
.blog-card .blog-meta .cat { color: var(--emerald); font-weight: 700; }
.blog-card h3 { font-size: 1.12rem; margin-bottom: 10px; color: var(--forest); }
.blog-card p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Products ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-bar button { padding: 11px 20px; border-radius: var(--radius-full); border: 1.5px solid var(--line); font-weight: 700; font-size: 0.86rem; color: var(--ink-soft); }
.filter-bar button.active { background: var(--emerald); color: var(--white); border-color: var(--emerald); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card { overflow: hidden; }
.product-card .p-img { height: 200px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; position: relative; }
.product-card .p-img svg { width: 70px; height: 70px; color: var(--light-green); opacity: 0.55; }
.product-card .p-badge { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--charcoal); font-size: 0.7rem; font-weight: 800; padding: 5px 12px; border-radius: var(--radius-full); }
.product-card .p-body { padding: 24px; }
.product-card .p-cat { font-size: 0.75rem; font-weight: 700; color: var(--emerald); text-transform: uppercase; letter-spacing: 0.06em; }
.product-card h3 { font-size: 1.08rem; margin: 8px 0 10px; color: var(--forest); }
.product-card p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 16px; }
.product-card .p-foot { display: flex; align-items: center; justify-content: space-between; }
.product-card .p-price { font-weight: 800; color: var(--gold); font-family: var(--font-display); font-size: 1.15rem; }

/* ---------- Devis calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.calc-card { padding: 40px; }
.calc-step { display: none; }
.calc-step.active-step { display: block; animation: calc-fade .4s ease; }
@keyframes calc-fade { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
.calc-step-title { font-size: 1.25rem; color: var(--forest); margin-bottom: 24px; font-family: var(--font-display); }
.calc-nav { display: flex; justify-content: space-between; margin-top: 34px; }
.calc-steps { display: flex; gap: 8px; margin-bottom: 34px; }
.calc-steps .cstep { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.calc-steps .cstep.active, .calc-steps .cstep.done { background: var(--emerald); }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.option-card { border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 20px 16px; text-align: center; transition: all .2s ease; }
.option-card:hover { border-color: var(--light-green); }
.option-card.selected { border-color: var(--emerald); background: rgba(46,125,91,0.08); box-shadow: 0 0 0 3px rgba(46,125,91,0.14); }
.option-card svg { width: 30px; height: 30px; color: var(--emerald); margin: 0 auto 10px; }
.option-card b { display: block; font-size: 0.88rem; }
.option-card span { font-size: 0.76rem; color: var(--ink-soft); }
.range-row { margin: 26px 0; }
.range-row .range-value { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 700; color: var(--forest); }
input[type="range"] { width: 100%; accent-color: var(--emerald); height: 6px; }
.summary-card { position: sticky; top: 110px; background: var(--grad-forest); color: var(--white); padding: 36px; border-radius: var(--radius-lg); }
.summary-card h4 { font-size: 1.1rem; margin-bottom: 22px; }
.summary-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.14); font-size: 0.92rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0; }
.summary-total b { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-light); }
.pay-methods { display: flex; gap: 10px; margin-top: 20px; }
.pay-methods .pm { flex: 1; border: 1.5px solid rgba(255,255,255,0.22); border-radius: var(--radius-sm); padding: 12px 8px; text-align: center; font-size: 0.72rem; font-weight: 700; transition: all .2s ease; }
.pay-methods .pm.selected { background: rgba(255,255,255,0.16); border-color: var(--gold-light); }
.calc-card .pay-methods .pm { cursor: pointer; }
.calc-card .pay-methods .pm.selected { background: rgba(46,125,91,0.12); border-color: var(--emerald) !important; color: var(--forest) !important; }
.option-card { cursor: pointer; }

/* ---------- Team / partners (legacy grid, kept for other uses) ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.partner-logo { aspect-ratio: 2/1; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-family: var(--font-display); font-weight: 600; }

/* ---------- Partners marquee (infinite scroll) ---------- */
.partners-marquee {
  position: relative; overflow: hidden; background: var(--bg-alt);
  border-radius: 24px; padding: 44px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.partners-track {
  display: flex; align-items: center; gap: 56px; width: max-content;
  animation: partners-scroll 34s linear infinite;
  will-change: transform;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
@keyframes partners-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.partners-item {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  height: 96px; width: 176px; background: var(--white); border-radius: 16px;
  border: 1px solid var(--line); padding: 16px 22px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.partners-item:hover {
  transform: scale(1.1) translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--gold); z-index: 2;
}
.partners-item img { max-height: 58px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; }
}
@media (max-width: 720px) {
  .partners-marquee { padding: 30px 0; border-radius: 18px; }
  .partners-item { height: 74px; width: 138px; padding: 10px 16px; }
  .partners-item img { max-height: 42px; }
  .partners-track { gap: 32px; animation-duration: 24s; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 46px; }
.contact-info-card { padding: 34px; }
.contact-info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(46,125,91,0.14); color: var(--forest); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item .ic svg { width: 22px; height: 22px; }
.contact-info-item b { display: block; font-size: 0.92rem; margin-bottom: 3px; }
.contact-info-item span, .contact-info-item a { font-size: 0.88rem; color: var(--ink-soft); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 260px; margin-top: 22px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.85); }

/* ---------- Breadcrumb link on light hero ---------- */
.page-hero .breadcrumbs a { color: var(--ink-soft); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 24px; right: 24px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--forest); color: var(--white); padding: 16px 22px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-size: 0.9rem; font-weight: 600; transform: translateX(120%); transition: transform .4s cubic-bezier(.2,.8,.2,1); max-width: 320px; }
.toast.show { transform: translateX(0); }
.toast svg { width: 20px; height: 20px; color: var(--gold-light); flex-shrink: 0; }

/* ---------- Grid column utilities (responsive-safe, no inline overrides) ---------- */
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; } }

/* ---------- Article content (single.php, the_content) ---------- */
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 1.7rem; color: var(--forest); margin-top: 1.6em; }
.entry-content h3 { font-size: 1.35rem; color: var(--forest); margin-top: 1.4em; }
.entry-content p { color: var(--ink); }
.entry-content a { color: var(--emerald); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content img { border-radius: var(--radius-md); width: 100%; height: auto; }
.entry-content blockquote { border-left: 3px solid var(--gold); padding-left: 20px; color: var(--ink-soft); font-style: italic; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-home .container { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { max-width: 420px; }
  .solutions-grid, .testimonial-track, .blog-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip, .process-steps { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .calc-wrap, .contact-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .solutions-grid, .testimonial-track, .blog-grid, .product-grid, .stats-strip, .process-steps, .option-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .span-2 { grid-column: span 2; grid-row: span 1; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
}
