/* ==========================================================================
   TERRA PRODUCTION — DESIGN SYSTEM
   Des matériaux solides pour bâtir demain.
   --------------------------------------------------------------------------
   Single stylesheet for the whole site. Mobile-first.
   No external fonts (system stack) for maximum performance.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette (extracted from logo) */
  --green-900: #043f1b;
  --green-800: #075326;
  --green-700: #0a6b2f;   /* PRIMARY green */
  --green-600: #0d8138;
  --green-500: #129a44;
  --green-100: #d9efe0;
  --green-50:  #eef8f1;

  --orange-900:#7a3000;
  --orange-800:#a04200;
  --orange-700:#c45100;
  --orange-600:#e35e00;
  --orange-500:#f86800;   /* PRIMARY orange */
  --orange-100:#fde6d4;
  --orange-50: #fff3ea;

  --white:      #ffffff;
  --ink:        #0f231a;   /* near-black, warm */
  --ink-soft:   #3b4d44;
  --muted:      #5f6f66;
  --line:       #e5ece8;
  --surface:    #f6f9f7;
  --surface-2:  #eef3f0;

  /* Gradients / texture */
  --grad-green: linear-gradient(135deg, var(--green-800), var(--green-500));
  --grad-orange: linear-gradient(135deg, var(--orange-700), var(--orange-500));
  --ink-grad: linear-gradient(160deg, #061b10, #0a2a1a);

  /* Typography */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --text-xs: .78rem;
  --text-sm: .9rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.35rem;
  --text-xl: 1.7rem;
  --text-2xl: 2.15rem;
  --text-3xl: 2.9rem;

  /* Spacing */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .85rem;
  --space-4: 1.25rem;
  --space-5: 1.75rem;
  --space-6: 2.5rem;
  --space-7: 3.5rem;
  --space-8: 5rem;

  /* Radii */
  --radius-sm: .4rem;
  --radius: .75rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(6, 27, 16, .06), 0 1px 1px rgba(6, 27, 16, .04);
  --shadow: 0 8px 24px rgba(6, 27, 16, .10);
  --shadow-lg: 0 24px 48px rgba(6, 27, 16, .16);

  /* Layout */
  --container: 1200px;
  --container-narrow: 860px;

  /* Motion */
  --ease: cubic-bezier(.2,.6,.2,1);
  --dur: .22s;

  /* Header */
  --header-h: 74px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; font-weight: 800; color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 2.1vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem); }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 700; }

::selection { background: var(--orange-500); color: #fff; }

/* Accessible focus */
:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   3. LAYOUT HELPERS
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-4); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--space-8); }
.section--tint { background: var(--surface); }
.section--green { background: var(--ink-grad); color: #eaf5ef; }
.section--green h2, .section--green h3, .section--green strong { color: #fff; }
.section--green p { color: #cde1d5; }
.section--sm { padding-block: var(--space-6); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--green-700); color: #fff; padding: .7rem 1.2rem;
  border-radius: var(--radius-sm); z-index: 2000; font-weight: 700;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

/* Section label "topline" */
.topline {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase;
  font-weight: 800; color: var(--orange-600); margin-bottom: var(--space-3);
}
.topline::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--orange-500); }
.section--green .topline { color: #ffb27a; }

.lead { font-size: var(--text-md); color: var(--ink-soft); max-width: 65ch; }
.section-head { max-width: 720px; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .topline::before { margin-inline: auto; }
.section-head--center .lead { margin: var(--space-3) auto 0; }
.grid { display: grid; gap: var(--space-4); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .grid--2, .grid--3 { gap: var(--space-5); }
}

/* --------------------------------------------------------------------------
   4. BUTTONS & LINKS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 700; font-size: var(--text-base); line-height: 1;
  padding: .95rem 1.5rem; border-radius: var(--radius-sm);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
  min-height: 48px; text-align: center; border: 2px solid transparent;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--accent { background: var(--orange-500); color: #2a1200; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--orange-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn--ghost:hover { background: var(--green-50); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--white { background: #fff; color: var(--green-800); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { padding: 1.15rem 2rem; min-height: 56px; font-size: var(--text-md); }
.btn--block { width: 100%; }
.btn--sm { padding: .7rem 1.05rem; font-size: var(--text-sm); min-height: 42px; }
.btn--whatsapp { background: #23b33a; color: #fff; }
.btn--whatsapp:hover { background: #1d9e31; transform: translateY(-2px); box-shadow: var(--shadow); }

/* Text link */
.link { font-weight: 700; color: var(--green-700); display: inline-flex; align-items: center; gap: .4rem; }
.link:hover { color: var(--orange-600); }
.link svg { width: 1em; height: 1em; }
.link--arrow::after { content: "→"; transition: transform var(--dur) var(--ease); }
.link--arrow:hover::after { transform: translateX(4px); }
.section--green .link { color: #7be0a0; }

/* --------------------------------------------------------------------------
   5. BADGES / TAGS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .02em;
  padding: .35rem .7rem; border-radius: var(--radius-pill);
  background: var(--green-100); color: var(--green-800);
}
.badge--orange { background: var(--orange-100); color: var(--orange-800); }
.badge--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--light { background: rgba(255,255,255,.14); color: #fff; }

/* --------------------------------------------------------------------------
   6. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-5); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-100); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); margin-bottom: var(--space-4); flex: none;
}
.card__icon svg { width: 26px; height: 26px; }
.card--orange .card__icon { background: var(--orange-50); color: var(--orange-700); }
.card h3 { margin-bottom: var(--space-2); font-size: var(--text-md); }
.card p { font-size: var(--text-sm); }
.card__list { margin-top: auto; padding-top: var(--space-4); display: grid; gap: .5rem; }
.card__list li { display: flex; gap: .5rem; align-items: flex-start; font-size: var(--text-sm); color: var(--ink-soft); }
.card__list svg { width: 18px; height: 18px; flex: none; color: var(--green-600); margin-top: 2px; }

/* Product card */
.product-card { overflow: hidden; padding: 0; }
.product-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__media .badge { position: absolute; top: 12px; left: 12px; box-shadow: var(--shadow-sm); }
.product-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.product-card__body h3 { margin-bottom: .1rem; }
.product-card__body p { font-size: var(--text-sm); }
.product-card__foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-3); }

/* Feature image card */
.media-card { overflow: hidden; padding: 0; }
.media-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-card__body { padding: var(--space-4); }
.media-card__body p { font-size: var(--text-sm); margin-top: var(--space-2); }

/* Stat card */
.stat { text-align: center; padding: var(--space-5); }
.stat__num { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; color: var(--green-700); line-height: 1; }
.section--green .stat__num { color: var(--orange-500); }
.stat__label { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--muted); }
.section--green .stat__label { color: #b9d4c5; }

/* --------------------------------------------------------------------------
   7. FORMS
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 700; font-size: var(--text-sm); color: var(--ink); }
.field .req { color: var(--orange-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; font-size: var(--text-base);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100);
}
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: #d33; }
.field .error-msg { font-size: var(--text-xs); color: #c62828; display: none; }
.field.is-error .error-msg { display: block; }
.field__hint { font-size: var(--text-xs); color: var(--muted); }
.form-grid { display: grid; gap: var(--space-4); }
.form-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-4); }

/* Form status messages */
.form-status { border-radius: var(--radius); padding: var(--space-4); display: flex; gap: 1rem; align-items: flex-start; }
.form-status svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.form-status--success { background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-800); }
.form-status--error { background: #fdeceb; border: 1px solid #f6c8c5; color: #a1281f; }
.form-status h4 { margin-bottom: .3rem; }

/* Quote summary */
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); }
.summary dl { display: grid; gap: .6rem; }
.summary dt { font-size: var(--text-sm); color: var(--muted); }
.summary dd { font-weight: 700; color: var(--ink); text-align: right; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px dashed var(--line); }
.summary div:last-child { border-bottom: 0; padding-bottom: 0; }

/* --------------------------------------------------------------------------
   8. HEADER / NAV
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: var(--space-4); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 800; }
.brand img { height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text .t { font-size: 1.15rem; color: var(--green-700); letter-spacing: .01em; }
.brand__text .s { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--orange-600); margin-top: .2rem; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: .2rem; }
.nav a {
  display: block; padding: .6rem .75rem; font-weight: 600; font-size: var(--text-sm);
  color: var(--ink-soft); border-radius: var(--radius-sm); position: relative;
}
.nav a:hover { color: var(--green-700); background: var(--green-50); }
.nav a.is-active { color: var(--green-700); }
.nav a.is-active::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .2rem; height: 3px; border-radius: 3px; background: var(--orange-500); }

.header__cta { display: flex; gap: .6rem; align-items: center; }
.header__cta .btn { white-space: nowrap; }

/* Mobile nav */
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: var(--radius-sm); align-items: center; justify-content: center; color: var(--green-700); }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .header__hidden-desktop { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-16px); opacity: 0; pointer-events: none;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav ul { flex-direction: column; padding: var(--space-3); gap: .15rem; }
  .nav a { padding: .95rem 1rem; font-size: var(--text-base); border-radius: var(--radius-sm); }
  .nav a.is-active { background: var(--green-50); }
  .nav a.is-active::after { display: none; }
}

/* --------------------------------------------------------------------------
   9. HERO
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--ink-grad); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,20,12,.92) 0%, rgba(4,20,12,.72) 46%, rgba(4,20,12,.35) 100%); }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 8vw, 7.5rem); max-width: 760px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; font-size: var(--text-sm);
  font-weight: 700; color: #ffcf9e; margin-bottom: var(--space-4);
}
.hero__eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 4px rgba(248,104,0,.3); }
.hero h1 { color: #fff; margin-bottom: var(--space-4); }
.hero h1 .accent { color: var(--orange-500); }
.hero p.lead { color: #d6e6dc; max-width: 60ch; margin-bottom: var(--space-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__stats { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.16); }
.hero__stats > div { display: flex; flex-direction: column; }
.hero__stats b { font-size: 1.5rem; color: #fff; line-height: 1.1; }
.hero__stats span { font-size: var(--text-xs); color: #b9d4c5; text-transform: uppercase; letter-spacing: .08em; }

/* --------------------------------------------------------------------------
   10. SPLIT / FEATURE SECTIONS
   -------------------------------------------------------------------------- */
.split { display: grid; gap: var(--space-6); align-items: center; grid-template-columns: 1fr; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
  .split--reverse .split__media { order: 2; }
}

/* Feature list with check icons */
.check-list { display: grid; gap: var(--space-3); margin-block: var(--space-4); }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--text-base); color: var(--ink-soft); }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--green-600); margin-top: 2px; }
.section--green .check-list li { color: #d6e6dc; }
.section--green .check-list svg { color: #6fd391; }

/* Numbered steps */
.step { display: grid; gap: var(--space-3); }
.step__num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange-500); color: #2a1200; font-weight: 800; font-size: 1.25rem; flex: none;
}
.step h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.step p { font-size: var(--text-sm); }

/* --------------------------------------------------------------------------
   11. CTA BANNER
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--grad-orange); color: #2a1200; padding: clamp(2.5rem, 6vw, 4rem);
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #2a1200; margin-bottom: var(--space-3); }
.cta-banner p { color: #5a2800; max-width: 60ch; margin-bottom: var(--space-5); }
.cta-banner::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255,255,255,.22);
}
.cta-banner::after {
  content: ""; position: absolute; right: 60px; bottom: -80px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255,255,255,.16);
}
.cta-banner > * { position: relative; z-index: 2; }
.cta-banner .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* --------------------------------------------------------------------------
   12. MAP / LOCATION
   -------------------------------------------------------------------------- */
.map { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-2); min-height: 340px; position: relative; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.loc-card { display: flex; gap: 1rem; align-items: flex-start; padding-block: var(--space-3); }
.loc-card svg { width: 26px; height: 26px; flex: none; color: var(--orange-600); margin-top: 2px; }
.loc-card b { display: block; margin-bottom: .15rem; color: var(--ink); }
.loc-card span { font-size: var(--text-sm); color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   13. GALLERY (lightbox-lite)
   -------------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; font-size: var(--text-xs); color: #fff; font-weight: 600; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent); }

/* --------------------------------------------------------------------------
   14. SPEC TABLES (product pages)
   -------------------------------------------------------------------------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.spec-table th, .spec-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--ink); font-weight: 800; width: 42%; background: var(--surface); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.pill-missing { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--text-xs); font-weight: 700; padding: .25rem .6rem; border-radius: var(--radius-pill); background: var(--orange-50); color: var(--orange-700); border: 1px dashed var(--orange-300, #f3c9a5); }

/* --------------------------------------------------------------------------
   15. BREADCRUMB
   -------------------------------------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: var(--text-sm); color: var(--muted); padding-block: var(--space-4); }
.breadcrumb a { color: var(--green-700); font-weight: 600; }
.breadcrumb a:hover { color: var(--orange-600); }
.breadcrumb .sep { opacity: .5; }

/* Page hero (sub-pages) */
.page-hero { background: var(--ink-grad); color: #fff; padding-block: var(--space-7); }
.page-hero .topline { color: #ffb27a; }
.page-hero h1 { color: #fff; margin-bottom: var(--space-3); }
.page-hero p { color: #cde1d5; max-width: 62ch; }
.page-hero .breadcrumb { color: #a5c4b3; padding-block: 0 0 var(--space-4); }
.page-hero .breadcrumb a { color: #7be0a0; }

/* --------------------------------------------------------------------------
   16. TABS (product pages)
   -------------------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: var(--space-5); }
.tab { padding: .8rem 1.1rem; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--green-700); }
.tab.is-active { color: var(--green-700); border-bottom-color: var(--orange-500); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadein .3s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   17. FLOATING WHATSAPP
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: #23b33a; color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
@media (min-width: 1000px) {
  .wa-float { width: 64px; height: 64px; }
}

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.footer { background: linear-gradient(160deg, #0a2418, #0e3323); color: #dcebe2; }
.footer__grid { display: grid; gap: var(--space-6); padding-block: var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
}
.footer a { color: #cde1d5; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-3); }
.footer__about p { font-size: var(--text-sm); margin-top: var(--space-3); color: #ffffff; line-height: 1.7; }
.footer__about .brand__text .t { color: #fff; }
.footer ul li, .footer__contact li { color: #e6f0ea; }
.footer ul { display: grid; gap: .6rem; font-size: var(--text-sm); }
.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--text-sm); }
.footer__contact svg { width: 20px; height: 20px; flex: none; color: var(--orange-500); margin-top: 2px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; font-size: var(--text-xs); color: #8fb0a0; }
.footer__bottom a { color: #8fb0a0; }
.footer__bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   19. UTILITIES
   -------------------------------------------------------------------------- */
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.mb-1 { margin-bottom: var(--space-1); } .mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); } .mb-5 { margin-bottom: var(--space-5); } .mb-6 { margin-bottom: var(--space-6); }
.text-center { text-align: center; }
.text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--muted); }
.flex { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.flex--between { justify-content: space-between; }
.flex--center { justify-content: center; }
.grow { flex: 1; }
.soft { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); }

/* Print / small screens micro */
::placeholder { color: #9aaba2; }

/* --------------------------------------------------------------------------
   20. REVEAL ON SCROLL (opacity fade + slight lift)
   -------------------------------------------------------------------------- */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   21. PUBLIC GALLERY (Réalisations)
   -------------------------------------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-5); }
.filter-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: .55rem 1.1rem; border-radius: var(--radius-pill); font-weight: 700; font-size: var(--text-sm);
  transition: all var(--dur) var(--ease);
}
.filter-btn:hover { border-color: var(--green-600); color: var(--green-700); }
.filter-btn.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-card { padding: 0; position: relative; }
.gallery-card.is-hidden { display: none; }
.gallery-card__media {
  position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2);
  border: 0; padding: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; cursor: pointer; display: block;
}
.gallery-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-card:hover .gallery-card__media img { transform: scale(1.05); }
.gallery-card__play {
  position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--green-800); display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
}
.gallery-card__play svg { width: 30px; height: 30px; margin-left: 3px; }
.gallery-card__cat { position: absolute; top: 10px; left: 10px; box-shadow: var(--shadow-sm); }
.gallery-card__body { padding: var(--space-4); }
.gallery-card__body h3 { font-size: var(--text-md); margin-bottom: .4rem; }
.gallery-card__body p { font-size: var(--text-sm); }
.gallery-card__meta { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--text-xs); color: var(--muted); font-weight: 600; }
.gallery-card__meta span { background: var(--surface); border: 1px solid var(--line); padding: .25rem .6rem; border-radius: var(--radius-pill); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(4,20,12,.92);
  display: grid; place-items: center; padding: var(--space-5);
}
.lightbox[hidden] { display: none; }
.lightbox__media { max-width: 90vw; max-height: 78vh; }
.lightbox__media img, .lightbox__media video { max-width: 100%; max-height: 78vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #000; }
.lightbox__caption { color: #fff; margin-top: var(--space-4); text-align: center; }
.lightbox__close {
  position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; font-size: 1.5rem;
}
.lightbox__close:hover { background: rgba(255,255,255,.28); }

.reveal-btn { margin-top: var(--space-2); }

/* --------------------------------------------------------------------------
   22. ADMIN / MEDIA MANAGER
   -------------------------------------------------------------------------- */
.gate { max-width: 460px; margin: 10vh auto 0; }
.admin-shell, .gate, #app { position: relative; z-index: 1; }
.admin-shell { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 960px) { .admin-shell { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.admin-panel h2, .admin-panel h3 { margin-bottom: var(--space-3); }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: var(--space-4); }
.admin-toolbar .grow { flex: 1 1 auto; }
.admin-list.is-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 600px) { .admin-list.is-grid { grid-template-columns: 1fr 1fr; } }
.admin-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); background: var(--surface); }
.admin-card__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.admin-card__actions { display: flex; gap: .4rem; }
.admin-card h3 { font-size: var(--text-md); }

.media-library { border: 1px dashed var(--line); border-radius: var(--radius); padding: var(--space-3); }
.media-library.is-loaded { border-style: solid; }
.media-library__head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: var(--space-3); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--space-3); }
.media-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.media-item__sel { display: block; position: relative; aspect-ratio: 4/3; background: var(--surface-2); cursor: pointer; }
.media-item__sel img, .media-item__sel video { width: 100%; height: 100%; object-fit: cover; }
.media-item__sel input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; accent-color: var(--green-700); z-index: 2; }
.media-item__row { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .4rem .5rem; }
.media-item__thumb { margin: 0 .5rem .5rem; border-radius: var(--radius-sm); }

.export-media { margin-top: var(--space-4); }
.export-media code { background: var(--surface-2); padding: .1rem .4rem; border-radius: 4px; }

.status-note { font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-3); }
.no-scroll { overflow: hidden; }
