/* =========================================================
   AgriWin Togo — Feuille de style principale
   Charte graphique : vert nature + accent doré (terre/récolte)
   Typographies : Poppins (titres), Inter (texte), Playfair Display Italic (accroches)
   ========================================================= */

:root {
  /* Palette */
  --green-950: #0f3d17;
  --green-900: #1b5e20;
  --green-800: #205e25;
  --green-700: #2e7d32;
  --green-600: #388e3c;
  --green-500: #4e9f3d;
  --green-400: #66bb6a;
  --green-100: #e5f3e1;
  --green-50: #f4f9f1;

  --gold-600: #c98a2b;
  --gold-500: #e0a83d;
  --gold-400: #eab866;
  --gold-700: #8e621e; /* variante foncée pour texte sur fond clair (contraste AA) */

  --focus-ring: #1d6f2b;

  --whatsapp: #25d366;

  --ink-900: #1a2417;
  --ink-700: #364033;
  --ink-500: #5c665a;
  --ink-300: #8a938890;

  --white: #ffffff;
  --bg-soft: #f7faf5;
  --border-soft: #e3ebe0;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(15, 61, 23, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 61, 23, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 61, 23, 0.18);

  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --font-accent: "Playfair Display", Georgia, serif;

  --container: 1180px;
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Accessibilité : focus clavier + saut de navigation ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2.5px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible, .filter-chip:focus-visible, .fab:focus-visible { outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--green-900);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-950);
  line-height: 1.2;
  margin: 0 0 .6em;
}
p { margin: 0 0 1em; color: var(--ink-700); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-green { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: var(--white); }
.bg-green h2, .bg-green h3, .bg-green p { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.bg-green .eyebrow { background: rgba(255,255,255,.15); color: var(--white); }

.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.accent-italic {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold-700);
  font-weight: 500;
}
.bg-green .accent-italic, .hero .accent-italic, .photo-hero .accent-italic { color: var(--gold-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold-500); color: var(--green-950); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-400); box-shadow: var(--shadow-md); }
.btn-green { background: var(--green-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-green:hover { background: var(--green-600); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green-800); }
.btn-outline-green { border-color: var(--green-700); color: var(--green-700); }
.btn-outline-green:hover { background: var(--green-700); color: var(--white); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: #1ebe59; box-shadow: var(--shadow-md); }
.btn-call { background: var(--white); color: var(--green-800); border-color: var(--green-700); }
.btn-call:hover { background: var(--green-700); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.top-bar {
  background: var(--green-950);
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.top-bar a { color: inherit; }
.top-bar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.top-bar-links a { display: inline-flex; align-items: center; gap: 6px; }
.top-bar-social { display: flex; gap: 12px; }
.top-bar-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.top-bar-social a:hover { background: var(--gold-500); color: var(--green-950); }
.top-bar-social svg { width: 14px; height: 14px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--border-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; color: var(--green-900); font-weight: 700; }
.brand-text span { font-family: var(--font-accent); font-style: italic; font-size: 12px; color: var(--ink-500); }

.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-700);
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
  flex: none;
}
.main-nav a:hover, .main-nav a.active { background: var(--green-100); color: var(--green-800); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none; background: var(--green-100);
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--green-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  display: flex;
  align-items: center;
  min-height: 78vh;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero.hero-sm { min-height: 42vh; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,61,23,.55), rgba(15,61,23,.82));
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 7px 16px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
  font-family: var(--font-head);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5.4vw, 56px);
  margin-bottom: .35em;
}
.hero p.lead { color: rgba(255,255,255,.92); font-size: clamp(16px,2vw,19px); max-width: 560px; }
.hero-breadcrumb { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 14px; }
.hero-breadcrumb a { text-decoration: underline; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
  max-width: 560px;
}
.hero-stats div { text-align: left; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 28px; color: var(--gold-400); }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.8); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--green-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 18px; margin-bottom: 2px; }
.card-body p { font-size: 14.5px; margin-bottom: 0; }
.card-tag {
  display: inline-flex; align-self: flex-start;
  font-size: 12px; font-weight: 600; font-family: var(--font-head);
  color: var(--green-700); background: var(--green-100);
  padding: 4px 12px; border-radius: var(--radius-pill);
}

/* Service icon card */
.service-card { padding: 30px 26px; text-align: left; }
.service-icon {
  width: 58px; height: 58px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.service-icon svg { width: 28px; height: 28px; color: var(--white); }
.service-card h3 { font-size: 19px; }
.service-card .service-link {
  margin-top: auto; font-family: var(--font-head); font-weight: 600;
  font-size: 14px; color: var(--green-700); display: inline-flex; align-items: center; gap: 6px;
}
.service-card .service-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* Product card */
.product-card .card-media { position: relative; }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold-500); color: var(--green-950);
  font-family: var(--font-head); font-weight: 700; font-size: 11.5px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: .03em;
}
.product-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.product-price strong { font-family: var(--font-head); font-size: 20px; color: var(--green-800); }
.product-price span { font-size: 12.5px; color: var(--ink-500); }
.product-actions { display: flex; gap: 8px; margin-top: 10px; }
.product-actions .btn {
  flex: 1;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: 24px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  counter-increment: step;
  width: 42px; height: 42px; flex: none;
  border-radius: 50%; background: var(--green-900); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
}
.step-num::before { content: counter(step); }

/* ---------- Testimonials / stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat-item { text-align: center; padding: 20px 10px; }
.stat-item strong { display: block; font-family: var(--font-head); font-size: 34px; color: var(--gold-500); }
.stat-item span { font-size: 13.5px; color: rgba(255,255,255,.85); }

/* ---------- Timeline (about) ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
  background: var(--green-50); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 24px; text-align: center;
}
.value-card .service-icon { margin: 0 auto 14px; }

/* ---------- Catalogue filters ---------- */
.catalogue-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box input {
  width: 100%; padding: 11px 16px 11px 40px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-soft); font-size: 14.5px; background: var(--bg-soft);
}
.search-box input:focus { outline: none; border-color: var(--green-500); background: var(--white); }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-500); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  border: 1.5px solid var(--border-soft); background: var(--white);
  padding: 12px 18px; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-size: 13.5px; font-weight: 500;
  color: var(--ink-700); transition: all .2s ease;
}
.filter-chip:hover { border-color: var(--green-500); }
.filter-chip.active { background: var(--green-700); color: var(--white); border-color: var(--green-700); }

.catalogue-empty { text-align: center; padding: 60px 20px; color: var(--ink-500); display: none; }
.catalogue-empty.show { display: block; }
.results-count { font-size: 13.5px; color: var(--ink-500); margin-bottom: 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--green-900), var(--green-600));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 0; }
.cta-text { max-width: 560px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--ink-900); }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-soft);
  background: var(--bg-soft); font-size: 14.5px; color: var(--ink-900); resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--green-500); background: var(--white);
}
.form-note { font-size: 12.5px; color: var(--ink-500); }
.form-success {
  display: none; background: var(--green-100); border: 1px solid var(--green-400);
  color: var(--green-900); padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 20px;
  font-weight: 500; align-items: center; gap: 10px;
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; flex: none; }

.contact-info-card {
  background: var(--green-950); color: var(--white);
  border-radius: var(--radius-lg); padding: 34px;
}
.contact-info-card h3 { color: var(--white); }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-line .ic {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.contact-line .ic svg { width: 19px; height: 19px; color: var(--gold-400); }
.contact-line strong { display: block; font-family: var(--font-head); font-size: 14.5px; margin-bottom: 2px; }
.contact-line span, .contact-line a { font-size: 14px; color: rgba(255,255,255,.85); }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.78); }
.footer-top { padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand-text strong { color: var(--white); }
.footer-brand .brand-text span { color: rgba(255,255,255,.6); }
.footer-brand p { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 14px; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.72); transition: color .2s ease; }
.footer-col a:hover { color: var(--gold-400); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.footer-social a:hover { background: var(--gold-500); color: var(--green-950); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0; font-size: 13px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--gold-400); }

/* ---------- Floating action buttons ---------- */
.fab-stack {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.fab {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  color: var(--white);
  transition: transform .2s ease;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 27px; height: 27px; }
.fab-whatsapp { background: var(--whatsapp); }
.fab-call { background: var(--green-800); }
.fab-top {
  width: 44px; height: 44px; background: var(--white); color: var(--green-800);
  border: 1px solid var(--border-soft); opacity: 0; pointer-events: none; transform: translateY(10px);
}
.fab-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-top svg { width: 20px; height: 20px; }

/* ---------- Misc ---------- */
.divider-wave { display: block; width: 100%; height: 60px; margin-top: -1px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.placeholder-note {
  font-size: 12.5px; background: var(--gold-500); color: var(--green-950); font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius-pill); display: inline-block;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.img-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.img-frame img { width: 100%; }
.img-badge {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
}
.img-badge strong { display: block; font-family: var(--font-head); font-size: 22px; color: var(--green-800); }
.img-badge span { font-size: 12px; color: var(--ink-500); }

.breadcrumb-strip { background: var(--green-50); border-bottom: 1px solid var(--border-soft); }
.breadcrumb-strip .container { padding-top: 14px; padding-bottom: 14px; font-size: 13.5px; color: var(--ink-500); }
.breadcrumb-strip a { color: var(--green-700); font-weight: 600; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2,1fr); }
  .values-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .col-img { order: -1; }
}

@media (max-width: 1180px) {
  .header-actions .btn-label { display: none; }
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .top-bar-links span.tb-hide-mobile { display: none; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cta-band { flex-direction: column; text-align: center; }
  .cta-band .btn-group { justify-content: center; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .catalogue-toolbar { flex-direction: column; align-items: stretch; padding-right: 88px; }
  .stats-band { grid-template-columns: repeat(2,1fr); }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15,61,23,.55);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(320px, 86vw);
  background: var(--white); padding: 24px; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-nav-close { width: 44px; height: 44px; border: none; background: var(--green-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mobile-nav-close svg { width: 18px; height: 18px; color: var(--green-800); }
.mobile-nav-panel a {
  font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--ink-900);
  padding: 13px 10px; border-radius: var(--radius-sm); border-bottom: 1px solid var(--border-soft);
}
.mobile-nav-panel a.active { color: var(--green-700); }
.mobile-nav-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

/* =========================================================
   Direction photographique — hero et sections en photo réelle
   ========================================================= */

/* ---------- Hero photo plein cadre ---------- */
.photo-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.photo-hero.hero-sm { min-height: 48vh; align-items: center; }
.photo-hero.hero-sm .container { padding-bottom: 0; }
.photo-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 33, 12, 0.25) 0%, rgba(9, 33, 12, 0.55) 55%, rgba(6, 26, 10, 0.92) 100%);
}
.photo-hero.hero-sm::after {
  background: linear-gradient(180deg, rgba(9, 33, 12, 0.45) 0%, rgba(9, 33, 12, 0.72) 100%);
}
.photo-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
}
.photo-hero-content { max-width: 700px; }
.photo-hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5.6vw, 58px);
  margin-bottom: .4em;
}
.photo-hero.hero-sm h1 { font-size: clamp(28px, 4.4vw, 44px); }
.photo-hero p.lead { color: rgba(255,255,255,.92); font-size: clamp(16px,2vw,19px); max-width: 580px; }

.hero-credential {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 28px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  max-width: 260px;
  display: none;
}
@media (min-width: 900px) {
  .hero-credential { display: block; }
}
.hero-credential strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 15px; margin-bottom: 4px; }
.hero-credential span { color: rgba(255,255,255,.8); font-size: 12.5px; }

/* ---------- Bande photo pleine largeur avec texte ---------- */
.photo-band {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.photo-band img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.photo-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,33,12,.88) 0%, rgba(9,33,12,.55) 45%, rgba(9,33,12,.15) 100%);
}
.photo-band.align-right::after {
  background: linear-gradient(270deg, rgba(9,33,12,.88) 0%, rgba(9,33,12,.55) 45%, rgba(9,33,12,.15) 100%);
}
.photo-band .container { position: relative; z-index: 2; }
.photo-band-content { max-width: 480px; }
.photo-band.align-right .photo-band-content { margin-left: auto; }
.photo-band h2 { color: var(--white); }
.photo-band p { color: rgba(255,255,255,.9); }

/* ---------- Portrait + citation ---------- */
.portrait-quote {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--green-50);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.portrait-quote img {
  width: 100%;
  height: auto;
  min-height: 0;
  min-width: 0;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  align-self: start;
}
.portrait-quote blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 25px);
  color: var(--green-950);
  margin: 0 0 18px;
  line-height: 1.5;
}
.portrait-quote cite {
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-700);
  display: block;
}
.portrait-quote cite span { display: block; font-weight: 500; color: var(--ink-500); font-size: 13.5px; margin-top: 2px; }

/* ---------- Galerie ambiance (photos de style, non contractuelles) ---------- */
.mood-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mood-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-sm);
}
.mood-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mood-item:hover img { transform: scale(1.07); }
.mood-item .mood-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(9,33,12,.85));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Services : cartes photo ---------- */
.service-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-photo-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,33,12,.05) 30%, rgba(9,33,12,.88) 100%);
}
.service-photo-card .spc-body { position: relative; z-index: 2; padding: 22px; color: var(--white); }
.service-photo-card .spc-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.service-photo-card .spc-icon svg { width: 22px; height: 22px; color: var(--white); }
.service-photo-card h3 { color: var(--white); font-size: 18px; margin-bottom: 4px; }
.service-photo-card p { color: rgba(255,255,255,.85); font-size: 13.5px; margin-bottom: 0; }

.mood-note {
  font-size: 12.5px;
  color: var(--ink-500);
  text-align: center;
  max-width: 620px;
  margin: 18px auto 0;
}

@media (max-width: 900px) {
  .portrait-quote { grid-template-columns: 1fr; }
  .portrait-quote img { max-width: 200px; margin: 0 auto; }
  .mood-gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-band { min-height: 380px; text-align: center; }
  .photo-band-content, .photo-band.align-right .photo-band-content { margin-left: auto; margin-right: auto; }
}
@media (max-width: 620px) {
  .mood-gallery { grid-template-columns: 1fr; }
  .photo-hero { min-height: 92vh; }
  .photo-hero.hero-sm { min-height: 54vh; }
}

/* ---------- Respect de la préférence "mouvement réduit" ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .service-photo-card:hover { transform: none; }
  .card:hover .card-media img, .mood-item:hover img { transform: none; }
}
