/* forbiom.eu — feuille de style unique (pas de framework). */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(../fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(../fonts/manrope-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --green: #59ae28;
  --green-deep: #3d8a17;
  --green-ink: #2c6a10;
  --green-soft: #eef6e7;
  --brown: #6e5244;
  --ink: #1d231b;
  --body: #3c453a;
  --muted: #6b746a;
  --line: #e2e8dd;
  --bg: #ffffff;
  --bg-soft: #f5f8f2;
  --footer: #1c2719;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 35, 27, .10);
  --container: 1160px;
  --gutter: 20px;
  --header-h: 76px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--body); background: var(--bg); overflow-x: hidden; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
svg { width: 1.2em; height: 1.2em; flex: none; }

/* ─── En-tête ─── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(29, 35, 27, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand img { width: auto; height: 46px; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.site-nav a:hover { background: var(--green-soft); text-decoration: none; color: var(--green-ink); }
.site-nav a[aria-current="page"] { color: var(--green-ink); box-shadow: inset 0 -3px 0 var(--green); border-radius: 10px 10px 0 0; }
.site-nav { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.lang-switch > * { padding: 5px 10px; border-radius: 999px; line-height: 1; }
.lang-switch .lang-current { background: var(--ink); color: #fff; }
.lang-switch a { color: var(--ink); }
.lang-switch a:hover { background: var(--green-soft); text-decoration: none; }
.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; }
.nav-toggle-bars { position: relative; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: background .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ─── Boutons ─── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(89, 174, 40, .35); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); }

/* ─── Hero (accueil) ─── */
.hero { position: relative; --figures-h: 112px; min-height: max(420px, calc(100vh - var(--header-h) - var(--figures-h))); min-height: max(420px, calc(100svh - var(--header-h) - var(--figures-h))); display: grid; align-items: end; color: #fff; isolation: isolate; overflow: hidden; background: var(--ink); }
.hero-slides { position: absolute; inset: 0; z-index: -1; }
.hero-slide { position: absolute; inset: 0; opacity: 0; animation: hero-fade 21s infinite; animation-delay: calc(var(--i) * 7s); }
.hero-slide.is-active { animation-name: hero-fade-first; }
.hero-slide picture { position: absolute; inset: 0; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@keyframes hero-fade { 0% { opacity: 0 } 6% { opacity: 1 } 33.3% { opacity: 1 } 40% { opacity: 0 } 100% { opacity: 0 } }
@keyframes hero-fade-first { 0% { opacity: 1 } 33.3% { opacity: 1 } 40% { opacity: 0 } 94% { opacity: 0 } 100% { opacity: 1 } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14, 20, 12, .82) 0%, rgba(14, 20, 12, .35) 55%, rgba(14, 20, 12, .15) 100%); }
.hero-inner { padding-top: clamp(64px, 10vh, 120px); padding-bottom: clamp(32px, 6vh, 96px); max-width: 900px; margin-left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); margin-right: auto; padding-left: 0; }
.hero-kicker { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: clamp(12px, 1.3vw, 14px); color: #d7efc6; margin-bottom: 14px; }
.hero-title { color: #fff; font-size: clamp(34px, min(6vw, 7.5vh), 68px); font-weight: 800; max-width: 14ch; margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-sub { font-size: clamp(16px, 2vw, 20px); color: rgba(255, 255, 255, .88); margin-bottom: clamp(16px, 3vh, 28px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .hero-slide { animation: none; } .hero-slide.is-active { opacity: 1; } html { scroll-behavior: auto; } }

/* ─── Chiffres clés ─── */
.figures { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--body); }
.figures-list { list-style: none; margin: 0; padding: 30px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.figures-list li { display: grid; gap: 6px; padding-left: 18px; border-left: 3px solid var(--green); }
.figures-list strong { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--green-ink); display: flex; align-items: baseline; gap: 6px; }
.figures-list small { font-size: 14px; font-weight: 700; color: var(--green-deep); }
.figures-list span { font-size: 14px; line-height: 1.4; color: var(--muted); }

/* ─── Sections ─── */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-title { font-size: clamp(24px, 3vw, 34px); margin-top: 1.4em; }
.section-title:first-child { margin-top: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--body); }
.intro-section { background: var(--bg-soft); }
.intro-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.tiles { display: grid; gap: 14px; }
.tile { display: grid; grid-template-columns: 120px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; transition: transform .15s, box-shadow .15s; }
.tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.tile-img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.tile-body { display: grid; gap: 4px; padding: 16px 18px; align-content: center; }
.tile-title { font-weight: 800; color: var(--ink); font-size: 18px; }
.tile-text { font-size: 15px; color: var(--muted); }
.tile-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--green-ink); margin-top: 4px; }

/* ─── Bannières des pages intérieures ─── */
.page-banner { position: relative; min-height: clamp(260px, 36vw, 420px); display: grid; align-items: end; color: #fff; isolation: isolate; overflow: hidden; background: var(--ink); }
.page-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.page-banner picture { position: absolute; inset: 0; z-index: -1; }
.page-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14, 20, 12, .8), rgba(14, 20, 12, .2) 70%); }
.page-banner-inner { padding-top: 90px; padding-bottom: clamp(28px, 4vw, 48px); }
.page-banner h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); margin-bottom: .2em; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.crumb { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #d7efc6; margin-bottom: 10px; }
.crumb a { color: inherit; }
.page-intro { font-size: clamp(16px, 1.7vw, 19px); max-width: 60ch; color: rgba(255, 255, 255, .9); margin: 0; }

/* ─── Texte + photo ─── */
.text-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.prose { max-width: 70ch; }
.prose p { text-wrap: pretty; }
.prose h2 + p, .prose h2 + ul { margin-top: 0; }
.side-photo { position: sticky; top: calc(var(--header-h) + 24px); }
.photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.board { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.board li { display: grid; gap: 2px; padding: 12px 16px; background: var(--bg-soft); border-left: 3px solid var(--green); border-radius: 0 10px 10px 0; }
.board strong { color: var(--ink); } .board span { font-size: 15px; color: var(--muted); }
.callout { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--green-soft); border-radius: var(--radius); color: var(--green-ink); font-weight: 600; margin-top: 1.5em; }
.callout svg { width: 1.5em; height: 1.5em; }
.callout a { font-weight: 800; white-space: nowrap; }
.post-date { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 6px; }

/* ─── Cartes (produits / services) ─── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(29, 35, 27, .04); }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 22px 24px 26px; }
.card h2 { font-size: 22px; margin-bottom: 12px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-list svg { color: var(--green); margin-top: .2em; }

/* ─── Valeurs ─── */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.value { padding: 28px 28px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.value-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.value-icon svg { width: 28px; height: 28px; }
.value h2 { font-size: 22px; } .value p { margin: 0; text-wrap: pretty; }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.contact-card h2 { font-size: clamp(22px, 2.6vw, 28px); }
.contact-list { margin: 0 0 22px; display: grid; gap: 16px; }
.contact-list > div { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: start; }
.contact-list svg { grid-row: 1 / span 2; width: 26px; height: 26px; color: var(--green); margin-top: 2px; }
.contact-list dt { grid-column: 2; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { grid-column: 2; margin: 0; font-size: 17px; color: var(--ink); }
.contact-list dd a { font-weight: 600; }
.contact-list .link { font-size: 15px; font-weight: 700; }
.contact-actions { margin-bottom: 14px; }
.contact-note { margin: 0; font-size: 15px; color: var(--muted); }
.contact-note a { font-weight: 700; }

/* ─── Pied de page ─── */
.site-footer { background: var(--footer); color: #cfd8cb; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; padding: 56px 0 36px; }
.footer-brand img { width: 44px; height: auto; margin-bottom: 14px; }
.footer-name { color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.footer-tagline { margin-bottom: 4px; } .footer-sub { font-size: 14px; color: #9fae99; }
.footer-title { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.footer-links a, .footer-contact a { color: #e4ebe0; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { color: var(--green); margin-top: .15em; }
.footer-lang span { color: #fff; font-weight: 700; } .footer-lang a { color: #e4ebe0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0 22px; font-size: 14px; color: #9fae99; }
.footer-bottom p { margin: 0; } .footer-bottom a { color: #cfd8cb; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .figures-list { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { height: 40px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(29, 35, 27, .12); padding: 8px var(--gutter) 16px; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: 13px 12px; font-size: 16px; border-radius: 8px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--green); border-radius: 8px; background: var(--green-soft); }
  .lang-switch { align-self: flex-start; margin: 10px 10px 0; }
  .hero-inner { padding-top: clamp(56px, 9vh, 96px); }
  .text-grid, .contact-grid { grid-template-columns: 1fr; }
  .side-photo { position: static; }
  .side-photo .photo { max-height: 420px; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .figures-list { grid-template-columns: 1fr 1fr; gap: 18px 14px; padding: 24px 0; }
  .figures-list strong { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 28px; }
  .tile { grid-template-columns: 96px 1fr; }
  .btn { padding: 13px 18px; }
  .hero { --figures-h: 170px; }
  .contact-list dd { font-size: 16px; }
}

/* Sélecteur de langue : mêmes dimensions pour la langue courante et l'autre, centrage vertical strict
   (spécificité supérieure à .site-nav a, y compris dans le menu mobile). */
.site-nav .lang-switch > * { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 36px; padding: 0 11px; margin: 0; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .04em; white-space: nowrap; box-shadow: none; }
.site-nav .lang-switch .lang-current { background: var(--ink); color: #fff; }
.site-nav .lang-switch a { color: var(--ink); background: transparent; }
.site-nav .lang-switch a:hover { background: var(--green-soft); color: var(--green-ink); }
