/* ════════════════════════════════════════════════════
   TGF — Technique et Gestion Forestière
   style.css — Feuille de style globale
   Version consolidée — 07/07/2026 — V4 (ombres btn-arrow, texte prestations, tiroir)
   ════════════════════════════════════════════════════ */

/* ══ VARIABLES & RESET ══ */
:root {
  --beige:        #e6e7a0;
  --green-mid:    #629f5c;
  --green-dark:   #407c39;
  --green-somber: #435b41;
  --cream:        #f6f6e9;
  --white:        #fbfbf2;
  --ink:          #20281d;
  --ink-soft:     #46513f;
  --black-green:  #161d14;
  --ff: 'Barlow', Helvetica, sans-serif;
  --px: clamp(28px, 6.5vw, 116px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff); background: var(--cream); color: var(--ink); overflow-x: hidden; }
img { display: block; max-width: 100%; }

/* ══ UTILITAIRES GLOBAUX ══ */
.title-band {
  display: inline-block; background: var(--beige); color: var(--ink);
  font-weight: 600; font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase; padding: 8px 18px; margin-bottom: 26px;
  white-space: nowrap;
}

.page-hero .title-band {
  background: var(--beige);
  color: var(--green-dark);
}

.title-band-inv {
  background: var(--beige);
  color: var(--green-dark);
}
.section-title {
  font-weight: 300; font-size: clamp(40px, 4.6vw, 70px); line-height: 1.08;
  color: var(--ink); letter-spacing: -0.02em; text-wrap: balance;
}
.section-title-inv {
  font-weight: 300; font-size: clamp(40px, 4.6vw, 68px); line-height: 1.08;
  color: var(--white); letter-spacing: -0.02em;
}
.about-lead {
  font-size: clamp(17px, 1.7vw, 21px); line-height: 1.6; font-weight: 300;
  color: var(--ink-soft); margin-top: 28px; max-width: 52ch; text-wrap: pretty;
}
.about-lead strong { font-weight: 500; color: var(--ink); }
.btn-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--green-dark); text-decoration: none;
  border-bottom: 1px solid var(--green-dark); padding-bottom: 7px;
  margin-top: 36px; transition: gap .25s;
}
.btn-arrow::after { content: '→'; font-size: 15px; }
.btn-arrow:hover { gap: 20px; }

/* ══ REVEAL ══ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .80s ease, transform .80s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.d1 { transition-delay: .10s; }
.d2 { transition-delay: .20s; }

/* ══ NAV ══ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--px); transition: background .38s, padding .38s;
  background: rgba(246,246,233,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#nav.scrolled { background: var(--green-somber); padding-top: 14px; padding-bottom: 14px; }
.nav-logo { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.nav-logo-img { height: 50px; width: 50px; transition: filter .38s; }
/* Logo teinté beige au scroll */
#nav.scrolled .nav-logo-img {
  filter: brightness(0) invert(88%) sepia(20%) saturate(500%) hue-rotate(10deg);
}
.nav-brand {
  font-weight: 300; font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; transition: color .38s;
}
#nav:not(.scrolled) .nav-brand { color: var(--ink); }
/* Texte de marque beige au scroll */
#nav.scrolled .nav-brand { color: var(--beige); }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  font-weight: 400; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; opacity: .72;
  white-space: nowrap; transition: opacity .2s, color .38s;
}
#nav:not(.scrolled) .nav-links a { color: var(--ink); }
/* Liens beiges au scroll */
#nav.scrolled .nav-links a { color: var(--beige); }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ══ HAMBURGER MOBILE ══ */
.nav-burger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px; background: none; border: none;
  cursor: pointer; padding: 0; z-index: 600; /* toujours au-dessus du tiroir mobile */
}
.nav-burger span {
  display: block; width: 100%; height: 2px;
  background: var(--ink); transition: background .38s, transform .3s, opacity .3s;
}
#nav.scrolled .nav-burger span { background: var(--beige); }
/* Tiroir ouvert : croix blanche, visible sur le fond vert sombre */
.nav-burger.open span { background: var(--white); }
.nav-burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ══ HERO (index) ══ */
#hero {
  min-height: 100vh; background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 150px var(--px) 96px;
  position: relative; overflow: visible;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  animation: heroFade 42s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 14s; }
.hero-slide:nth-child(3) { animation-delay: 28s; }
/* Animation de fondu fluide + léger zoom (Ken Burns) */
@keyframes heroFade {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  /* L'image apparaît très vite pour couvrir la précédente */
  35% { 
    opacity: 1; 
  }
  /* Elle reste à 100% tout le long de sa présence */
  33.33% {
    opacity: 1;
  }
  /* Elle s'efface doucement PENDANT que la suivante a déjà commencé à s'afficher */
  40% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 0;
  }
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.60) 100%);
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-mark {
  width: 400px;
  height: 400px;
  margin-bottom: 30px;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.75));
}
.hero-label {
  font-weight: 500; font-size: 16px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--green-dark); margin-bottom: 22px;
}
.hero-title {
  font-weight: 400; font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12; color: #ffffff; letter-spacing: -0.01em;
  margin-bottom: 20px; max-width: 22ch; text-wrap: balance;
}
.hero-title strong { font-weight: 600; color: #ffffff; }
.hero-sub {
  font-weight: 500; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55;
  color: #ffffff; max-width: 42ch; margin-bottom: 34px; text-wrap: balance;
}
.hero-intro {
  font-weight: 300; font-size: 15px; line-height: 1.92; color: var(--ink-soft);
  max-width: 64ch; text-wrap: pretty;
  padding-top: 30px; border-top: 1px solid rgba(64,124,57,0.3);
}
.hero-intro strong { font-weight: 500; color: var(--ink); }

/* ══ HERO LISIBILITÉ ══ */
.hero-label, .hero-title, .hero-sub, .hero-intro, .btn-arrow {
  text-shadow: 0 2px 14px rgba(0,0,0,0.75);
}

/* ══ PAGE HERO (pages secondaires) ══ */
.page-hero {
  background: var(--green-somber); padding: 160px var(--px) 80px;
}
.page-hero-inner { max-width: 1380px; margin: 0 auto; }
.page-hero-label {
  font-weight: 500; font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--beige); opacity: .7; margin-bottom: 18px;
}
.page-hero-title {
  font-weight: 300; font-size: clamp(38px, 5vw, 80px); line-height: 1.06;
  color: var(--white); letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance;
}
.page-hero-title strong { font-weight: 600; color: var(--beige); }
.page-hero-sub {
  font-weight: 300; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.65;
  color: rgba(251,251,242,0.75); max-width: 52ch; margin-top: 28px; text-wrap: pretty;
}
.page-hero-line {
  width: 48px; height: 2px; background: var(--beige); margin-top: 40px; opacity: .6;
}

/* ══ NOTRE APPROCHE ══ */
#about { background: var(--cream); padding: 138px var(--px); }
.about-inner { max-width: 1380px; margin: 0 auto; }
.about-head { max-width: 900px; margin-bottom: 64px; }
.about-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 80px; align-items: start;
}
.principles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  border: 1px solid rgba(64,124,57,0.22); background: rgba(64,124,57,0.22);
}
.principle { background: var(--cream); padding: 30px; }
.principle-term { font-weight: 600; font-size: 16px; color: var(--green-dark); margin-bottom: 10px; }
.principle-desc { font-weight: 300; font-size: 13.5px; line-height: 1.74; color: var(--ink-soft); text-wrap: pretty; }
.about-img-wrap { aspect-ratio: 4/5; overflow: hidden; background: var(--green-somber); }

/* ══ PRO SILVA QUINCONCE ══ */
.prosylva-stack {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid rgba(64,124,57,0.22); overflow: hidden;
}
.prosylva-row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(64,124,57,0.22);
}
.prosylva-row:last-child { border-bottom: none; }
.prosylva-row.reverse { direction: rtl; }
.prosylva-row.reverse > * { direction: ltr; }
.prosylva-img { overflow: hidden; aspect-ratio: 16/9; }
.prosylva-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.prosylva-row:hover .prosylva-img img { transform: scale(1.03); }
.prosylva-text {
  padding: 48px 52px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  background: var(--cream);
}
.prosylva-text .principle-term { font-weight: 600; font-size: 20px; color: var(--green-dark); }
.prosylva-text .principle-desc { font-size: 14.5px; line-height: 1.82; color: var(--ink-soft); font-weight: 300; }

/* ══ POUR QUI ══ */
#profiles { background: var(--green-mid); padding: 122px var(--px); }
.profiles-inner { max-width: 1380px; margin: 0 auto; }
.profiles-head { margin-bottom: 58px; }
.profiles-head .section-title { color: var(--white); }
.profiles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid rgba(251,251,242,0.28);
}
.profile-card {
  padding: 46px 38px; border-right: 1px solid rgba(251,251,242,0.28);
  display: flex; flex-direction: column; gap: 16px; transition: background .25s;
}
.profile-card:hover { background: rgba(67,91,65,0.45); }
.profile-icon { width: 36px; height: 2px; background: var(--beige); margin-bottom: 8px; }
.profile-title { font-weight: 600; font-size: 20px; color: var(--white); line-height: 1.22; }
.profile-desc { font-weight: 300; font-size: 14px; line-height: 1.8; color: rgba(251,251,242,0.85); text-wrap: pretty; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.profile-tag {
  font-weight: 500; font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink); background: var(--beige); padding: 6px 12px; white-space: nowrap;
}

/* ══ PRESTATIONS (index) ══ */
#services { background: var(--green-dark); padding: 138px var(--px) 100px; }
.services-inner { max-width: 1380px; margin: 0 auto; }
.services-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(251,251,242,0.28);
}
.services-sub {
  max-width: 320px; font-size: 13px; line-height: 1.85;
  font-weight: 300; color: rgba(251,251,242,0.74); text-wrap: pretty;
}

/* ══ SERVICES QUINCONCE ══ */
.services-grid-stack {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid rgba(251,251,242,0.18);
  overflow: hidden; margin-top: 50px;
}
.svc-row {
  display: grid; grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid rgba(251,251,242,0.18);
  transition: background .25s;
}
.svc-row:last-child { border-bottom: none; }
.svc-row.reverse { grid-template-columns: 2fr 1fr; }
.svc-row.reverse .svc-row-icon { order: 2; }
.svc-row.reverse .svc-row-text { order: 1; }
.svc-row:hover { background: rgba(67,91,65,0.5); }
.svc-row-icon {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px; border-right: 1px solid rgba(251,251,242,0.18); color: var(--beige);
}
.svc-row.reverse .svc-row-icon { border-right: none; border-left: 1px solid rgba(251,251,242,0.18); }
.svc-row-icon img { height: 200px; width: auto; display: block; opacity: .90; }
.svc-row-icon svg { width: 64px; height: 64px; display: block; color: var(--beige); }
.svc-row-text {
  padding: 48px 52px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.svc-row-text .svc-name { font-weight: 500; font-size: 22px; color: var(--white); line-height: 1.22; }
.svc-row-text .svc-points { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.svc-row-text .svc-points li {
  position: relative; padding-left: 20px;
  font-size: 14px; line-height: 1.5; font-weight: 300; color: rgba(251,251,242,0.85);
}
.svc-row-text .svc-points li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 7px; height: 1px; background: var(--beige);
}

/* ══ CARDS PRESTATIONS (page dédiée) ══ */
.svc-card {
  padding: 44px 50px; border-right: 1px solid rgba(251,251,242,0.22);
  border-bottom: 1px solid rgba(251,251,242,0.22); transition: background .25s;
}
.svc-card.full { grid-column: 1 / -1; }
.svc-card:hover { background: rgba(67,91,65,0.5); }
.svc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.svc-icon { color: var(--beige); }
.svc-icon img { height: 80px; width: auto; display: block; }
.svc-icon svg { width: 45px; height: 45px; display: block; }
.svc-name { font-weight: 500; font-size: 22px; color: var(--white); line-height: 1.22; }
.svc-points { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.svc-points li {
  position: relative; padding-left: 20px;
  font-size: 14px; line-height: 1.5; font-weight: 300; color: rgba(251,251,242,0.85);
}
.svc-points li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 7px; height: 1px; background: var(--beige);
}
.svc-card.full .svc-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px 40px; }

/* ══ SECTIONS PAGES SECONDAIRES ══ */
.page-section         { background: var(--cream);        padding: 100px var(--px); }
.page-section-dark    { background: var(--green-dark);   padding: 100px var(--px); }
.page-section-mid     { background: var(--green-mid);    padding: 100px var(--px); }
.page-section-somber  { background: var(--green-somber); padding: 100px var(--px); }
.page-inner { max-width: 1380px; margin: 0 auto; }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.content-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  border: 1px solid rgba(64,124,57,0.22); background: rgba(64,124,57,0.22);
}
.content-card { background: var(--cream); padding: 36px; }
.content-card-title { font-weight: 600; font-size: 17px; color: var(--green-dark); margin-bottom: 12px; }
.content-card-body { font-weight: 300; font-size: 14px; line-height: 1.8; color: var(--ink-soft); text-wrap: pretty; }

.prose { display: flex; flex-direction: column; gap: 22px; }
.prose p { font-weight: 300; font-size: 15px; line-height: 1.92; color: var(--ink-soft); text-wrap: pretty; }
.prose p strong { font-weight: 500; color: var(--ink); }
.prose h3 { font-weight: 500; font-size: 19px; color: var(--green-dark); margin-top: 10px; }

.detail-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.detail-list li {
  position: relative; padding-left: 22px;
  font-size: 14px; line-height: 1.65; font-weight: 300; color: var(--ink-soft);
}
.detail-list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 8px; height: 1px; background: var(--green-dark);
}

.encart {
  border-left: 3px solid var(--green-dark); padding: 28px 36px;
  background: rgba(64,124,57,0.07);
}
.encart p { font-weight: 400; font-size: 15px; line-height: 1.85; color: var(--ink); font-style: italic; }

/* ══ À PROPOS ══ */
#team { background: var(--cream) !important; padding: 100px var(--px) 138px; margin-top: 0; }
.team-inner { max-width: 1380px; margin: 0 auto; }
.team-head { max-width: 900px; margin-bottom: 72px; margin-left: auto; text-align: right; }
.team-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: start; }
.team-col-photo { display: flex; flex-direction: column; gap: 14px; }
.team-photo-label { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--green-dark); font-weight: 500; }
.team-img-wrap { overflow: hidden; background: var(--green-somber); }
.team-col-text { display: flex; flex-direction: column; gap: 40px; }
.team-encart {
  border: 1px solid rgba(64,124,57,0.28); background: #f0f1dc;
  padding: 40px 44px; display: flex; flex-direction: column;
}
.team-encart-label { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--green-dark); font-weight: 500; }
.team-encart-body {
  font-weight: 300; font-size: 15px; line-height: 1.92;
  color: var(--ink-soft); text-wrap: pretty;
  display: flex; flex-direction: column; gap: 16px;
}
.team-encart-body strong { font-weight: 500; color: var(--ink); }

/* ══ CONTACT ══ */
#contact { background: var(--green-somber); padding: 138px var(--px); }
.contact-inner { max-width: 1380px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.contact-inner .section-title-inv { font-size: clamp(34px, 3.4vw, 54px); line-height: 1.16; }
.contact-info { display: flex; flex-direction: column; gap: 30px; margin-top: 40px; }
.ci-label { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--green-mid); font-weight: 500; margin-bottom: 5px; }
.ci-val { font-size: 15px; color: rgba(251,251,242,0.78); font-weight: 300; }

/* ══ FOOTER ══ */
footer {
  background: #0f140d; padding: 40px var(--px);
  display: flex; align-items: center; justify-content: space-between;
}
.foot-logo { display: flex; align-items: center; gap: 12px; }
.foot-logo img { height: 32px; filter: brightness(0) invert(1); opacity: .55; }
.foot-name { font-weight: 300; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(251,251,242,0.46); }
.foot-copy { font-size: 11px; color: rgba(251,251,242,0.34); font-weight: 300; letter-spacing: .08em; }

/* ══ LIENS-CARTES ══ */
a.profile-card { text-decoration: none; color: inherit; }
a.svc-row { text-decoration: none; color: inherit; }
a.prosylva-row { text-decoration: none; color: inherit; }

/* ══ PRO SILVA LISTE TYPO ══ */
.prosylva-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(64,124,57,0.22);
}

.prosylva-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid rgba(64,124,57,0.22);
  text-decoration: none;
  color: inherit;
  transition: background .25s, padding-left .25s;
}

.prosylva-item:hover {
  background: rgba(64,124,57,0.06);
  padding-left: 16px;
}

.prosylva-num {
  font-weight: 200;
  font-size: 36px;
  line-height: 1;
  color: var(--green-dark);
  opacity: .4;
  letter-spacing: -0.02em;
  padding-top: 4px;
}

.prosylva-item-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prosylva-icon {
  width: 120px; /* Ajusté pour calibrer proprement les logos Pro Silva */
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ══ SERVICES LISTE QUINCONCE ══ */
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(251,251,242,0.18);
  margin-top: 50px;
}

.svc-list-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(251,251,242,0.18);
  text-decoration: none;
  color: inherit;
  transition: background .25s, padding-left .25s;
}

.svc-list-row:last-child {
  border-bottom: none;
}

.svc-list-row.reverse {
  grid-template-columns: 1fr 90px;
}
/* Rangées inversées : le texte est aligné à droite, contre l'icône */
.svc-list-row.reverse .svc-list-text { text-align: right; }

.svc-list-row:hover {
  background: rgba(67,91,65,0.5);
  padding-left: 16px;
}

.svc-list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-list-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: .9;
}

.svc-list-svg {
  width: 48px;
  height: 48px;
  color: var(--beige);
}

.svc-list-name {
  font-weight: 500;
  font-size: 17px;
  color: var(--white);
  margin-bottom: 6px;
}

.svc-list-desc {
  font-weight: 300;
  font-size: 14px; /* Légèrement augmenté pour le confort visuel */
  line-height: 1.7;
  color: rgba(251,251,242,0.72);
}

/* ══ AJUSTEMENTS SECTIONS ══ */
#services {
  padding-bottom: 100px;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .profiles-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .team-grid { grid-template-columns: 1fr; gap: 52px; }
  .content-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 900px) {
  .services-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .principles { grid-template-columns: 1fr; }
  .content-grid-3 { grid-template-columns: 1fr; }
  .about-img-wrap { aspect-ratio: 16/9; }
  .contact-inner { gap: 32px; }
  .nav-brand { display: none; }
  footer { flex-direction: column; gap: 18px; text-align: center; }
}
@media (max-width: 768px) {
  /* Le backdrop-filter du bandeau piégeait le tiroir fixed dans le rectangle du nav */
  #nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-burger { display: flex; }
  /* Tiroir latéral : 70 % de largeur, glisse depuis la droite */
  .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 70%; max-width: 320px;
    background: var(--green-somber);
    padding: 100px 32px 40px;
    z-index: 500;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.35);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    display: block;
    color: var(--white) !important;
    font-size: 20px; padding: 34px 0;
    border-bottom: 1px solid rgba(251,251,242,0.12);
    opacity: 1;
  }
  .prosylva-row,
  .prosylva-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .prosylva-img { aspect-ratio: 16/9; }
  .prosylva-text { padding: 32px 28px; }
  .svc-row,
  .svc-row.reverse { grid-template-columns: 1fr; }
  .svc-row.reverse .svc-row-icon { order: 0; border-left: none; border-bottom: 1px solid rgba(251,251,242,0.18); }
  .svc-row-icon { border-right: none; border-bottom: 1px solid rgba(251,251,242,0.18); padding: 32px; }
  .svc-row-text { padding: 32px 28px; }
  .svc-card.full .svc-points { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
 .principle-term,
  .svc-list-name,
  .content-card-title {
    font-size: calc(1em + 4px);
  }
  .prose p,
  .detail-list li,
  .svc-points li,
  .svc-row-text .svc-points li,
  .svc-list-desc,
  .principle-desc,
  .team-encart-body,
  .content-card-body,
  .hero-intro,
  .profile-desc,
  .ci-val {
    font-size: calc(1em + 2px);
  }
  .hero-mark { width: 220px; height: 220px; }
  .profile-tags { flex-direction: column; }
  .profile-tag { white-space: normal; }
  .page-hero { padding: 130px var(--px) 60px; }
  .page-section,
  .page-section-dark,
  .page-section-mid,
  .page-section-somber { padding: 72px var(--px); }
  .prosylva-item {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }
  .prosylva-num {
    font-size: 24px;
  }
  .prosylva-icon {
    width: 180px;
    height: 180px;
  }
  .svc-list-row,
  .svc-list-row.reverse {
    grid-template-columns: 48px 1fr;
  }
  .svc-list-row.reverse .svc-list-icon { order: -1; }
  .svc-list-row.reverse .svc-list-text { order: 1; text-align: left; }
  .svc-list-img {
    width: 40px;
    height: 40px;
  }
  .svc-list-svg {
    width: 28px;
    height: 28px;
  }
}
/* --- CORRECTIF ATTERRISSAGE ANCRES NAV FIXE --- */
#futaie, 
#regeneration, 
#melange, 
#arbre-objectif, 
#biodiversite, 
#production {
  scroll-margin-top: 110px;
}
/* --- CORRECTIF STABILISATION DU MENU BURGER AU CLIC --- */
@media (max-width: 768px) {
  .nav-links a,
  .nav-links a:active,
  .nav-links a:focus,
  .nav-links a.active {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 24px 20px !important; /* Ajustez 24px pour l'espace haut/bas si besoin */
    line-height: 1.5 !important;
    font-size: 20px !important;
  }
}/* --- CORRECTIF TAILLE DU LOGO SUR MOBILE --- */
@media (max-width: 768px) {
  .nav-logo-img {
    width: 468x !important;  /* Ajustez cette taille (ex: 50px ou 60px) selon vos préférences */
    height: auto !important;
    min-width: 45px !important; /* Empêche le navigateur de l'écraser */
    flex-shrink: 0 !important;   /* Force flexbox à respecter la taille de l'image */
  }

  .nav-logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important; /* Espace propre entre le logo et le texte */
  }

  .nav-brand {
    font-size: 14px !important; /* Réduit légèrement le texte du titre pour que tout rentre sur une ligne */
    white-space: nowrap;        /* Évite que le texte ne passe bizarrement à la ligne */
  }
}