/* =========================================================
   Smart Services Sarl — Design system "Forêt du Congo"
   ========================================================= */

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

:root {
  --canopy:   #0E3B2E;   /* vert canopée profond */
  --leaf:     #3A9D63;   /* vert feuille vivant   */
  --leaf-dk:  #2b7a4b;
  --bark:     #8A5A3B;   /* bois / écorce         */
  --mist:     #F3F6F1;   /* brume claire          */
  --paper:    #ffffff;
  --ink:      #13211B;   /* encre                 */
  --ink-soft: #45564e;
  --logo-blue:#1E2C8C;   /* bleu du logo (touche) */

  --line: rgba(14,59,46,.14);
  --shadow-soft: 0 18px 40px -24px rgba(14,59,46,.45);

  --maxw: 1160px;
  --radius: 14px;

  --f-serif: "Lora", Georgia, "Times New Roman", serif;
  --f-sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;  /* Inter : chiffres/lettres plus nets */
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-serif); font-weight: 600; line-height: 1.14;
  color: var(--canopy); letter-spacing: -.015em; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 600; }
p  { max-width: 68ch; }
.lead { font-size: clamp(1.12rem, 1.9vw, 1.35rem); color: var(--ink-soft); line-height: 1.6; font-weight: 400; }

/* section rhythm */
.section { padding-block: clamp(68px, 9vw, 120px); }
.section-mist { background: var(--mist); }
.section-canopy { background: var(--canopy); color: var(--mist); }
.section-canopy h2, .section-canopy h3 { color: #fff; }

/* eyebrow — a leaf vein rule, not an all-caps label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-serif); font-style: italic;
  font-size: 1.05rem; color: var(--leaf-dk); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 42px; height: 2px;
  background: linear-gradient(90deg, var(--leaf), transparent);
}
.section-canopy .eyebrow { color: #9fe3b8; }
.section-canopy .eyebrow::before { background: linear-gradient(90deg, #9fe3b8, transparent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-sans); font-weight: 600; font-size: 1rem;
  padding: 15px 28px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover { background: var(--leaf-dk); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-outline { border-color: var(--canopy); color: var(--canopy); }
.btn-outline:hover { background: var(--canopy); color: #fff; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(12px)) {
  .site-header { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
}

/* ---- Barre de contact supérieure ---- */
.topbar { background: var(--canopy); color: rgba(243,246,241,.9); font-size: .84rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; }
.topbar-left { display: flex; align-items: center; gap: 24px; min-width: 0; }
.topbar a, .topbar span.ti { display: inline-flex; align-items: center; gap: 7px; color: rgba(243,246,241,.9); white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; flex: none; color: var(--leaf); }
.topbar-right { display: flex; align-items: center; gap: 8px; color: rgba(243,246,241,.65); white-space: nowrap; }
.topbar .ti-loc { overflow: hidden; text-overflow: ellipsis; }
/* la topbar disparaît en douceur quand on défile */
.topbar { overflow: hidden; max-height: 40px; transition: max-height .3s ease, opacity .3s ease; }
.site-header.scrolled .topbar { max-height: 0; opacity: 0; }

/* ---- Barre principale ---- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; transition: height .3s ease; }
.site-header.scrolled .nav { height: 64px; }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(14,59,46,.4); }

/* ---- Logo (image réelle) ---- */
.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand-logo {
  height: 52px; width: auto; display: block; border-radius: 8px;
  /* proportions fixes (600x386) : le logo ne peut plus grossir sur mobile (Safari/flex) */
  aspect-ratio: 600 / 386; max-width: none; object-fit: contain; flex: none;
  transition: height .3s ease;
}
.site-header.scrolled .brand-logo { height: 42px; }
/* dans le pied de page (fond sombre), le logo s'intègre naturellement */
.site-footer .brand-logo { height: 64px; }

/* ---- Liens avec soulignement animé ---- */
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-toggle { flex: none; }
.nav-links a {
  position: relative; font-weight: 600; font-size: .97rem; color: var(--ink-soft);
  padding: 10px 16px; border-radius: 8px; transition: color .18s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
  background: var(--leaf); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover { color: var(--canopy); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--canopy); font-weight: 700; }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 12px; }
.nav-cta a::after { display: none; }   /* pas de soulignement sous le bouton */

/* sélecteur de langue FR | EN — bascule à glissière */
.lang-switch {
  position: relative; display: inline-flex; align-items: center;
  margin-left: 12px; padding: 3px;
  background: var(--mist); border: 1px solid var(--line); border-radius: 100px;
  font-weight: 700; font-size: .8rem; letter-spacing: .02em;
  isolation: isolate;
}
.lang-switch .sep { display: none; }               /* séparateur devenu inutile */
.lang-switch a {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; padding: 6px 10px; border-radius: 100px;
  color: var(--ink-soft); transition: color .25s ease;
}
.lang-switch a:hover { color: var(--canopy); }
.lang-switch a.current { color: #fff; }             /* texte blanc sur la pastille verte */
/* la pastille coulissante : positionnée sous le lien actif */
.lang-switch::before {
  content: ""; position: absolute; z-index: 1; top: 3px; bottom: 3px;
  width: calc(50% - 3px); border-radius: 100px;
  background: var(--leaf);
  box-shadow: 0 2px 6px -1px rgba(14,59,46,.35);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
/* page FR : 1er lien actif -> pastille à gauche ; page EN : 2e actif -> à droite */
.lang-switch.is-en::before { transform: translateX(100%); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--canopy); margin: 5px 0; transition: .25s; border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO (accueil) — canopée SVG en couches
   ========================================================= */
.hero { position: relative; background: var(--canopy); color: var(--mist); overflow: hidden; }
.hero-canopy { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Variante avec photo de fond réelle */
.hero.has-photo .hero-canopy { display: none; }           /* on masque le SVG animé */
.hero.has-photo .hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0; pointer-events: none;
}
/* voile dégradé pour la lisibilité du texte blanc (plus dense à gauche et en bas) */
.hero.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,44,34,.88) 0%, rgba(10,44,34,.55) 45%, rgba(10,44,34,.18) 100%),
    linear-gradient(0deg, rgba(10,44,34,.75) 0%, rgba(10,44,34,0) 45%);
}
.hero-light {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 90%;
  background: radial-gradient(60% 55% at 50% 0%, rgba(159,227,184,.30), transparent 70%);
  pointer-events: none;
  animation: breathe-light 7s ease-in-out infinite;
}

/* --- Bannière vivante : balancement du feuillage + respiration de la lumière --- */
.canopy-layer { transform-box: fill-box; transform-origin: 50% 0%; will-change: transform; }
.canopy-far  { animation: sway-far 11s ease-in-out infinite; }
.canopy-mid  { animation: sway-mid 8.5s ease-in-out infinite; }
.canopy-near { animation: sway-near 6.5s ease-in-out infinite; }

@keyframes sway-far  { 0%,100% { transform: translateX(0) rotate(0deg); } 50% { transform: translateX(8px) rotate(.5deg); } }
@keyframes sway-mid  { 0%,100% { transform: translateX(0) rotate(0deg); } 50% { transform: translateX(-10px) rotate(-.6deg); } }
@keyframes sway-near { 0%,100% { transform: translateX(0) rotate(0deg); } 50% { transform: translateX(12px) rotate(.7deg); } }
@keyframes breathe-light { 0%,100% { opacity: .75; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.hero-inner { position: relative; z-index: 2; padding-block: clamp(90px, 15vw, 180px); max-width: 760px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: #9fe3b8; }
.hero .lead { color: rgba(243,246,241,.82); margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px 44px; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.16); }
.hero-meta .stat .n { font-family: var(--f-serif); font-size: 2.3rem; color: #fff; line-height: 1; }
.hero-meta .stat .l { font-size: .9rem; color: rgba(243,246,241,.7); margin-top: 6px; max-width: 20ch; }

/* page hero (sous-pages) */
.page-hero { position: relative; background: var(--canopy); color: var(--mist); overflow: hidden; }
.page-hero .hero-light { opacity: .8; }

/* Variante avec photo de fond */
.page-hero.has-photo .hero-canopy { display: none; }
.page-hero.has-photo .hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0; pointer-events: none;
}
.page-hero.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,44,34,.90) 0%, rgba(10,44,34,.60) 50%, rgba(10,44,34,.30) 100%),
    linear-gradient(0deg, rgba(10,44,34,.55) 0%, rgba(10,44,34,0) 60%);
}

.page-hero-inner { position: relative; z-index: 2; padding-block: clamp(70px, 10vw, 120px); }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero p { color: rgba(243,246,241,.82); margin-top: 18px; }
.breadcrumb { font-size: .9rem; color: rgba(243,246,241,.6); margin-bottom: 22px; }
.breadcrumb a:hover { color: #9fe3b8; }

/* =========================================================
   GENERIC LAYOUT HELPERS
   ========================================================= */
.grid { display: grid; gap: 32px; }
.two { grid-template-columns: 1fr 1fr; }
.three { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.section-head { max-width: 60ch; margin-bottom: 54px; }

/* =========================================================
   LEAF-VEIN CARD (services) — bordé, pas d'ombre générique
   ========================================================= */
.service {
  position: relative; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--leaf), var(--bark)); opacity: .0; transition: opacity .2s;
}
.service:hover { border-color: var(--leaf); transform: translateY(-3px); }
.service:hover::before { opacity: 1; }
.service .idx { font-family: var(--f-serif); font-style: italic; color: var(--leaf-dk); font-size: 1.1rem; }
.service h3 { margin: 12px 0 10px; }
.service p { color: var(--ink-soft); font-size: .98rem; }
.service .leaf-ico { width: 46px; height: 46px; margin-bottom: 4px; color: var(--leaf); }

/* =========================================================
   À PROPOS — bloc expertise
   ========================================================= */
.expertise { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px 40px; margin-top: 10px; }
.expertise li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.expertise li svg { width: 22px; height: 22px; color: var(--leaf); flex: none; margin-top: 3px; }
.expertise li strong { display: block; color: var(--canopy); font-family: var(--f-serif); font-weight: 500; font-size: 1.1rem; }
.expertise li span { color: var(--ink-soft); font-size: .95rem; }

.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.values .v { background: var(--paper); padding: 30px 26px; }
.section-canopy .values { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.18); }
.section-canopy .values .v { background: rgba(255,255,255,.04); }
.values .v h3 { font-size: 1.25rem; margin-bottom: 8px; }
.values .v p { font-size: .95rem; color: var(--ink-soft); }
.section-canopy .values .v p { color: rgba(243,246,241,.8); }

/* media frame */
.media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); background: var(--canopy); aspect-ratio: 4/3;
}
.media svg, .media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.media .tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  background: rgba(255,255,255,.92); color: var(--canopy);
  font-weight: 600; font-size: .85rem; padding: 8px 16px; border-radius: 100px;
}

/* =========================================================
   CLIENTS strip
   ========================================================= */
.clients-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.client-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; background: var(--paper); }
.client-card .k { font-family: var(--f-serif); font-size: 1.3rem; color: var(--canopy); margin-bottom: 6px; }
.client-card p { font-size: .95rem; color: var(--ink-soft); }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { background: var(--bark); color: #fff; border-radius: 20px; padding: clamp(40px, 6vw, 68px); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.85); margin: 16px 0 28px; }
.cta-band .btn-primary { background: #fff; color: var(--bark); }
.cta-band .btn-primary:hover { background: var(--mist); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ico { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--mist); display: grid; place-items: center; color: var(--leaf-dk); }
.info-item .ico svg { width: 22px; height: 22px; }
.info-item h4 { font-family: var(--f-sans); font-weight: 700; font-size: .82rem; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 4px; }
.info-item a, .info-item p { font-size: 1.05rem; color: var(--canopy); font-weight: 600; }
.info-item a:hover { color: var(--leaf-dk); }

.form-card { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--canopy); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--f-sans); font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(58,157,99,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .88rem; color: var(--ink-soft); margin-top: 14px; }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); margin-top: 28px; filter: saturate(.9); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(243,246,241,.78); padding-block: 64px 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand .name { color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--f-sans); font-weight: 700; font-size: .82rem; letter-spacing: .08em; margin-bottom: 18px; }
.site-footer a:hover { color: #9fe3b8; }
.footer-links li { margin-bottom: 10px; font-size: .96rem; }
.footer-contact li { margin-bottom: 12px; font-size: .96rem; display: flex; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--leaf); flex: none; margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: .85rem; color: rgba(243,246,241,.55); }

/* =========================================================
   TÉMOIGNAGES
   ========================================================= */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px 28px;
}
.testi .quote-mark { font-family: var(--f-serif); font-size: 3.2rem; line-height: .6; color: var(--leaf); opacity: .35; }
.testi blockquote { font-size: 1.02rem; color: var(--ink); line-height: 1.6; margin: 10px 0 22px; }
.testi .who { display: flex; align-items: center; gap: 13px; border-top: 1px solid var(--line); padding-top: 18px; }
.testi .av {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--canopy); color: var(--leaf);
  display: grid; place-items: center; font-family: var(--f-serif); font-weight: 600; font-size: 1.1rem;
}
.testi .who .n { display: block; font-family: var(--f-serif); font-weight: 500; color: var(--canopy); font-size: 1.05rem; line-height: 1.1; }
.testi .who .r { display: block; font-size: .86rem; color: var(--ink-soft); margin-top: 2px; }
.section-canopy .testi { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.section-canopy .testi blockquote { color: var(--mist); }
.section-canopy .testi .who { border-color: rgba(255,255,255,.16); }
.section-canopy .testi .who .n { color: #fff; }
.section-canopy .testi .who .r { color: rgba(243,246,241,.7); }

/* =========================================================
   FAQ (accordéon)
   ========================================================= */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; font-family: var(--f-serif); font-weight: 500; font-size: 1.18rem;
  color: var(--canopy); transition: color .15s;
}
.faq-q:hover { color: var(--leaf-dk); }
.faq-q .pm { flex: none; width: 26px; height: 26px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--leaf); border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
}
.faq-q .pm::before { width: 15px; height: 2.5px; }
.faq-q .pm::after  { width: 2.5px; height: 15px; }
.faq-item.open .faq-q .pm::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq-a .inner { padding: 0 4px 24px; color: var(--ink-soft); font-size: 1rem; max-width: 70ch; }

/* =========================================================
   RÉALISATIONS
   ========================================================= */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--leaf); }
.work .thumb { aspect-ratio: 16/10; background: var(--canopy); overflow: hidden; }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; }
.work .thumb svg { width: 100%; height: 100%; }
.work .body { padding: 22px 22px 24px; }
.work .cat { font-weight: 700; font-size: .76rem; letter-spacing: .06em; color: var(--leaf-dk); text-transform: uppercase; }
.work h3 { font-size: 1.2rem; margin: 8px 0 8px; }
.work p { font-size: .95rem; color: var(--ink-soft); }

/* =========================================================
   REVEAL animation (une seule orchestration douce)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE — approche "mobile-friendly" multi-paliers
   ========================================================= */

/* Confort de lecture : largeur de ligne fluide sur grands écrans */
@media (min-width: 1400px) {
  :root { --maxw: 1240px; }
}

/* ---- Petit desktop / grande tablette paysage (≤ 1080px) ---- */
@media (max-width: 1080px) {
  .wrap { padding-inline: 28px; }
  .split { gap: 48px; }
  .three { grid-template-columns: repeat(2, 1fr); }        /* 3 -> 2 colonnes */
  .clients-grid { grid-template-columns: repeat(2, 1fr); } /* clients 3 -> 2 */
  .expertise { gap: 14px 32px; }
}

/* ---- Bascule du menu burger (≤ 980px) : évite tout chevauchement des liens ---- */
@media (max-width: 980px) {
  .nav-links {
    position: fixed; top: 116px; left: 0; right: 0; bottom: auto;   /* 36px topbar + 80px nav */
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;                       /* opaque : rien ne transparaît derrière */
    border-bottom: 1px solid var(--line); padding: 8px 24px 22px;
    transform: translateY(-130%);
    transition: transform .3s ease, visibility .3s;
    box-shadow: var(--shadow-soft);
    max-height: calc(100dvh - 116px); overflow-y: auto;
    visibility: hidden;                     /* non cliquable tant que fermé */
  }
  .site-header.scrolled .nav-links { top: 64px; max-height: calc(100dvh - 64px); }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { display: block; padding: 15px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a::after { display: none; }  /* pas de soulignement animé en version empilée */
  .nav-links a.active { color: var(--canopy); }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { display: flex; width: 100%; justify-content: center; color: #fff; border-bottom: 0; border-radius: 100px; }
  .nav-toggle { display: block; }
  .lang-switch { margin: 16px auto 0; }   /* centré sous les liens dans le menu mobile */

  /* topbar allégée : on garde le téléphone, on masque le reste */
  .topbar .wrap { height: 36px; }
  .topbar-right, .topbar .ti-mail { display: none; }
  .topbar-left { gap: 16px; }
}
@media (max-width: 560px) {
  .topbar { display: none; }   /* trop étroit : la topbar disparaît, infos déjà dans le menu/pied de page */
  /* en-tête plus compact : logo réduit, le menu s'ouvre juste sous la barre */
  .nav { height: 68px; }
  .brand-logo { height: 44px; }
  .nav-links { top: 68px; max-height: calc(100dvh - 68px); }
}

/* ---- Tablette (≤ 900px) : colonnes empilées ---- */
@media (max-width: 900px) {

  /* la colonne média passe sous le texte, dans l'ordre logique */
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .values { grid-template-columns: 1fr; }
  .two, .expertise { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }

  /* la "fiche média" ne doit pas devenir géante une fois pleine largeur */
  .media { max-width: 560px; }
  .media:not(.full) { margin-inline: auto; }

  .hero-meta { gap: 22px 32px; }
}

/* grilles de contenu : 3 -> 2 colonnes sur petit desktop/tablette */
@media (max-width: 1080px) {
  .testi-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Grand mobile / petite tablette portrait (≤ 680px) ---- */
@media (max-width: 680px) {
  .wrap { padding-inline: 22px; }
  .three, .clients-grid, .testi-grid, .work-grid { grid-template-columns: 1fr; }  /* tout en une colonne */
  .section { padding-block: clamp(52px, 11vw, 80px); }
  .section-head { margin-bottom: 36px; }
  .hero-meta { gap: 20px; }
  .hero-meta .stat { flex: 1 1 42%; }        /* 2 par ligne au lieu de s'étirer */
  .hero-meta .stat .n { font-size: 1.9rem; }
  .map-embed { height: 260px; }
  .cta-band { padding: 34px 26px; border-radius: 16px; }
}

/* ---- Mobile (≤ 560px) ---- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn { width: 100%; justify-content: center; }       /* boutons pleine largeur = cibles tactiles larges */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { flex-direction: column; gap: 20px; }
  .hero-meta .stat { flex: none; }
  .service { padding: 28px 22px 24px; }
  .info-item { gap: 13px; }
  .form-card { padding: 24px 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ---- Très petit mobile (≤ 380px) : garde-fous anti-débordement ---- */
@media (max-width: 380px) {
  .wrap { padding-inline: 16px; }
  h1 { font-size: 2.3rem; }
  .brand .name { font-size: 1.12rem; }
  .brand .name small { letter-spacing: .16em; }
  .hero-meta .stat .n { font-size: 1.7rem; }
}

/* Confort tactile : liens de nav plus hauts sur appareils sans survol précis */
@media (hover: none) and (pointer: coarse) {
  .nav-links a { padding-block: 16px; }
  .service:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service:hover { transform: none; }
  .canopy-layer, .hero-light { animation: none !important; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px;
}

/* =========================================================
   ÉQUIPE DIRIGEANTE
   ========================================================= */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.member {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;   /* permet au pied de carte de se caler en bas */
}
.member:hover { transform: translateY(-4px); border-color: var(--leaf); box-shadow: var(--shadow-soft); }
/* zone photo : image réelle OU placeholder à initiales — ratio portrait 3:4 */
.member .photo {
  position: relative; aspect-ratio: 3 / 4; min-height: 380px; background: var(--canopy);
  display: grid; place-items: center; overflow: hidden;
}
.member .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.member .photo .initials {
  font-family: var(--f-serif); font-weight: 600; font-size: 2.6rem; color: var(--leaf);
  letter-spacing: .02em;
}
.member .photo .initials::after {
  content: "Photo à venir"; position: absolute; left: 0; right: 0; bottom: 12px;
  font-family: var(--f-sans); font-weight: 500; font-size: .72rem; letter-spacing: .06em;
  color: rgba(255,255,255,.55); text-align: center;
}
.member .info { padding: 20px 20px 22px; display: flex; flex-direction: column; height: calc(100% - 0px); }
.member .info .bio { flex: 1 1 auto; }  /* pousse le pied de carte en bas : boutons alignés sur toutes les cartes */
.member .info .nm { font-family: var(--f-serif); font-weight: 500; font-size: 1.22rem; color: var(--canopy); line-height: 1.15; }
.member .info .role { font-weight: 600; font-size: .86rem; color: var(--leaf-dk); margin-top: 4px; }
.member .info .bio { font-size: .92rem; color: var(--ink-soft); margin-top: 12px; }
.member .info .m-contact { display: flex; align-items: center; gap: 10px; }
.member .info .m-contact a {
  width: 38px; height: 38px; border-radius: 10px; background: var(--mist);
  display: inline-grid; place-items: center; color: var(--leaf-dk);
  border: 1px solid var(--line); transition: background .15s, color .15s, border-color .15s;
}
.member .info .m-contact a:hover { background: var(--leaf); color: #fff; border-color: var(--leaf); }
.member .info .m-contact svg { width: 17px; height: 17px; }

/* pied de carte : coordonnées à gauche + bouton Infos à droite, tous alignés */
.member .info .m-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.btn-info {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; box-sizing: border-box;
  font-family: var(--f-sans); font-weight: 600; font-size: .9rem;
  color: var(--leaf-dk); background: var(--mist); border: 1px solid var(--line);
  padding: 0 16px; border-radius: 10px; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.btn-info:hover { background: var(--leaf); color: #fff; border-color: var(--leaf); }
.btn-info svg { width: 15px; height: 15px; }

@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .team-grid { grid-template-columns: 1fr; } .member { max-width: 420px; margin-inline: auto; } }

/* =========================================================
   MODALE MEMBRE
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(10,33,27,.6); backdrop-filter: blur(3px); }
.modal-box {
  position: relative; z-index: 2; background: var(--paper); border-radius: 18px;
  max-width: 540px; width: 100%; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 40px 80px -30px rgba(14,59,46,.6);
  transform: translateY(14px) scale(.98); opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.modal.open .modal-box { transform: none; opacity: 1; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--canopy); display: grid; place-items: center;
  transition: background .15s;
}
.modal-close:hover { background: var(--mist); }
.modal-close svg { width: 20px; height: 20px; }
.modal-hero { display: flex; gap: 18px; align-items: center; padding: 28px 28px 20px; border-bottom: 1px solid var(--line); }
.modal-hero img { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; flex: none; }
.modal-hero .nm { font-family: var(--f-serif); font-weight: 600; font-size: 1.5rem; color: var(--canopy); line-height: 1.1; }
.modal-hero .role { font-weight: 600; font-size: .92rem; color: var(--leaf-dk); margin-top: 5px; }
.modal-body { padding: 24px 28px 28px; }
.modal-body p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 14px; }
.modal-body .m-links { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.modal-body .m-links a {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem;
  color: var(--canopy); background: var(--mist); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 100px; transition: background .15s, color .15s;
}
.modal-body .m-links a:hover { background: var(--leaf); color: #fff; border-color: var(--leaf); }
.modal-body .m-links svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .modal-box { transition: opacity .2s; transform: none; } }
@media (max-width: 480px) { .modal-hero { flex-direction: column; text-align: center; } }

/* =========================================================
   BOUTON WHATSAPP FLOTTANT (bas-gauche)
   ========================================================= */
.wa-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #073b23;
  font-family: var(--f-sans); font-weight: 700; font-size: .98rem;
  padding: 13px 20px 13px 15px; border-radius: 100px;
  box-shadow: 0 10px 26px -8px rgba(7,59,35,.5);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-float:hover { background: #1ebe5a; transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(7,59,35,.55); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float .wa-label { white-space: nowrap; }

/* légère pulsation d'appel, respectueuse de prefers-reduced-motion */
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 100px;
  box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

@media (max-width: 560px) {
  /* sur mobile : bouton compact (icône seule) pour ne pas gêner la lecture */
  .wa-float { left: 16px; bottom: 16px; padding: 14px; gap: 0; }
  .wa-float .wa-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
  .wa-float:hover { transform: none; }
}

/* =========================================================
   BOUTON "RETOUR EN HAUT" (bas-droite)
   ========================================================= */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--canopy); color: #fff; border: 0;
  box-shadow: 0 10px 26px -8px rgba(14,59,46,.55);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--leaf-dk); transform: translateY(-2px); }
.to-top svg { width: 22px; height: 22px; }

@media (max-width: 560px) {
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .25s ease, visibility .25s; }
  .to-top:hover { transform: none; }
}
