/* =====================
   RESET & BASE
===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark: #1a3a1e;
  --green-deep: #12291a;
  --green:      #2d6a31;
  --green-light:#4caf50;
  --brown:      #6b3a1f;
  --wood:       #a0662d;
  --gold:       #d4a017;
  --gold-light: #e8b923;
  --cream:      #f6f2ea;
  --white:      #ffffff;
  --gray:       #45463f;
  --text:       #1f241f;
  --radius:     12px;
  --shadow:     0 6px 24px rgba(0,0,0,0.08);
  --nav-h:      78px;
}

html {
  font-size: 106.25%; /* 17px */
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  text-wrap: balance;
  font-family: 'Oswald', sans-serif;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }

/* Icônes dessinées (SVG) */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  vertical-align: -0.2em;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================
   NAVBAR
===================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(18, 41, 26, 0.55);
  backdrop-filter: blur(8px);
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(18, 41, 26, 0.97);
  padding: 8px 24px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  width: 52px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  transition: width 0.3s;
}

.navbar.scrolled .logo img { width: 44px; }

.logo-words {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
}

.logo-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.88);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 18px;
}

.nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--green-dark);
  padding: 9px 16px;
  border-radius: 30px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
}

.nav-cta a::after { display: none; }
.nav-cta a:hover { background: var(--gold-light); color: var(--green-dark); }

.hamburger .icon { width: 30px; height: 30px; vertical-align: middle; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* =====================
   HERO
===================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding: 110px 24px 44px;
  background: var(--green-deep);
  overflow: hidden;
}

/* Image de forêt sur un calque séparé : léger zoom arrière au chargement */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/foret.jpg') center center / cover no-repeat;
  animation: heroZoom 14s ease-out both;
}

@keyframes heroZoom {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}

/* Voile : sombre à gauche (texte lisible), la forêt respire à droite */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,20,11,0.92) 0%, rgba(8,20,11,0.72) 45%, rgba(8,20,11,0.3) 100%),
    linear-gradient(to top, rgba(8,20,11,0.9) 0%, rgba(8,20,11,0) 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.hero-content {
  color: var(--white);
  max-width: 680px;
  animation: heroIn 0.9s ease both;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.sans-coupure { white-space: nowrap; }

.hero-kicker::before {
  content: '';
  width: 42px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  text-shadow: 2px 3px 18px rgba(0,0,0,0.45);
  margin-bottom: 20px;
}

.hero-content h1 span {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.6em;
  letter-spacing: 3px;
}

.hero-tagline {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(255,255,255,0.92);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-atouts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-atouts li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-atouts .icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  vertical-align: 0;
}

/* Médaillon : logo dans un disque blanc, texte circulaire doré */
.hero-medaillon {
  position: relative;
  width: 330px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(212,160,23,0.45);
  background: rgba(8,20,11,0.35);
  backdrop-filter: blur(2px);
  animation: heroIn 0.9s 0.2s ease both;
}

.hero-medaillon::before {
  content: '';
  position: absolute;
  inset: 62px;
  border-radius: 50%;
  background: var(--white);
  border: 5px solid var(--gold);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}

.medaillon-texte {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.medaillon-texte text {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  fill: var(--gold);
}

.hero-medaillon img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  transform: translate(-50%, -52%);
}

/* Flèche « Découvrir » */
.hero-scroll {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  width: fit-content;
  margin: 0 auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  transition: opacity 0.4s, visibility 0.4s;
  animation: heroIn 0.9s 0.9s ease both;
}

.hero-scroll .icon {
  width: 46px;
  height: 46px;
  padding: 9px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(18,41,26,0.35);
  vertical-align: 0;
  animation: scrollBounce 1.8s ease-in-out infinite;
  transition: background 0.2s, color 0.2s;
}

.hero-scroll:hover { color: var(--gold); }
.hero-scroll:hover .icon { background: var(--gold); color: var(--green-dark); }

.hero-scroll.cache {
  opacity: 0;
  visibility: hidden;
}

/* Écrans assez hauts : on laisse la place à la flèche */
@media (min-height: 950px) and (min-width: 769px) {
  .hero { padding-bottom: 130px; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================
   BUTTONS
===================== */
.btn-primary,
.btn-outline {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 34px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.35);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.5);
}

.btn-outline .icon { margin-right: 4px; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--green-dark);
  transform: translateY(-2px);
}

.btn-outline.dark {
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-outline.dark:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* =====================
   SECTION TITLES
===================== */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-title.white { color: var(--white); }

p { text-wrap: pretty; }

.section-intro {
  text-wrap: balance;
  text-align: center;
  color: var(--gray);
  max-width: 720px;
  margin: 0 auto 50px;
  font-size: 1.08rem;
}

.section-intro strong { color: var(--green-dark); }
.section-intro.light { color: rgba(255,255,255,0.9); }
.section-intro.light strong { color: var(--gold); }

.sub-title {
  font-size: 1.6rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-dark);
  margin: 80px 0 30px;
}

/* Listes à coche */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-list.light li { color: rgba(255,255,255,0.92); }
.check-list.light li strong { color: var(--white); }
.check-list.light li::before { background: var(--gold); color: var(--green-dark); }

/* =====================
   BANDEAU CONTACT
===================== */
.bandeau {
  background: var(--gold);
  padding: 22px 0;
}

.bandeau-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
}

.bandeau-text {
  display: flex;
  flex-direction: column;
  color: var(--green-dark);
  line-height: 1.4;
}

.bandeau-text strong {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bandeau-text span {
  font-size: 1rem;
  font-weight: 600;
}

.bandeau-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bandeau-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 12px 24px;
  border-radius: 6px;
  color: var(--white);
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s;
}

.bandeau-btn:hover { transform: translateY(-2px); }
.bandeau-btn.phone { background: var(--green-dark); }
.bandeau-btn.phone:hover { background: var(--green); }
.bandeau-btn.whatsapp { background: #15803d; }
.bandeau-btn.whatsapp:hover { background: #166534; }

/* =====================
   SERVICES (tuiles photo de l'accueil)
===================== */
.hero-activites {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  animation: heroIn 0.9s 0.35s ease both;
}

.hero-activites-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}

.hero-activites-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(212,160,23,0.7), rgba(212,160,23,0));
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  outline: 1px solid rgba(255,255,255,0.12);
  outline-offset: -1px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.5);
}

.service-img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img img { transform: scale(1.06); }

/* dégradé sombre pour lire le texte sur la photo */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8,20,11,0.92) 0%, rgba(8,20,11,0.45) 40%, rgba(8,20,11,0) 65%);
  transition: background 0.3s;
}

.service-body {
  padding: 16px 18px 16px;
}

.service-body::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  margin-bottom: 10px;
  transition: width 0.3s ease;
}

.service-card:hover .service-body::before { width: 48px; }

.service-card h3 {
  font-size: 1.12rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.service-card p {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.service-link {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--gold);
}

.service-link .fleche { display: inline-block; transition: transform 0.25s ease; }
.service-card:hover .service-link .fleche { transform: translateX(5px); }

/* =====================
   BOIS DE CHAUFFAGE
===================== */
.bois {
  padding: 100px 0;
  background:
    linear-gradient(rgba(18,41,26,0.94), rgba(18,41,26,0.97)),
    url('img/fond-bois.jpg') center / cover;
}

.bois-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}

/* Carte des prix */
.prix-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  overflow: hidden;
}

.prix-card-title {
  background: var(--green);
  color: var(--white);
  font-size: 1.25rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 16px 20px;
}

.prix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  table-layout: fixed;
}

.prix-table th,
.prix-table td {
  border: 1px solid #d6cdb8;
}

.prix-table tr > :first-child { border-left: none; }
.prix-table tr > :last-child { border-right: none; }
.prix-table thead th { border-top: none; }

.prix-table thead th:first-child { width: 30%; }

.prix-table thead th {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--green-dark);
  padding: 16px 10px 12px;
  border-bottom: 3px solid var(--gold);
  vertical-align: middle;
}

.prix-table thead th small {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray);
  margin-top: 2px;
}

.prix-table thead th:first-child { text-align: left; padding-left: 24px; }

.prix-table tbody th {
  text-align: left;
  padding-left: 24px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
}

.prix-table td,
.prix-table tbody th {
  padding-top: 14px;
  padding-bottom: 14px;
}

.prix-table td {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
}

.prix-table td.col-sec { color: var(--green); }
.prix-table td.col-misec { color: var(--brown); }
.prix-table th.col-sec { background: #eef5ee; }
.prix-table th.col-misec { background: #f7efe6; }

.prix-table tbody tr:nth-child(even) { background: #fbf9f4; }
.prix-table tbody tr:hover { background: #fdf6df; }

.prix-table tbody tr:last-child > * { border-bottom: 2px solid #d6cdb8; }

.prix-conditions {
  list-style: none;
  padding: 18px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prix-conditions li {
  position: relative;
  padding-left: 32px;
  font-size: 1rem;
  color: var(--text);
}

.prix-conditions li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prix-conditions li.remise {
  background: #fdf3d3;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 10px 14px 10px 46px;
  margin-top: 4px;
}

.prix-conditions li.remise::before {
  content: '%';
  background: var(--gold);
  color: var(--green-dark);
  left: 14px;
  top: 11px;
}

.prix-conditions strong { color: var(--green-dark); }

/* Photo + fiche */
.bois-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bois-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  border: 3px solid rgba(212,160,23,0.6);
}

.bois-fiche {
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
}

.bois-fiche > div {
  padding: 12px 0;
  border-bottom: 1px solid #ece6d8;
}

.bois-fiche > div:last-child { border-bottom: none; }

.bois-fiche dt {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 4px;
}

.bois-fiche dd {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

.essences {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.essences span {
  background: #eef5ee;
  color: var(--green-dark);
  border: 1px solid #cfe0cf;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.95rem;
}

/* Sec ou mi-sec */
.choix-bois {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  padding: 28px 30px 24px;
  margin-bottom: 40px;
}

.choix-bois h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 22px;
}

.choix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.choix-item {
  border-radius: 10px;
  padding: 20px 22px;
  border-top: 5px solid var(--green);
  background: #eef5ee;
}

.choix-item.misec {
  border-top-color: var(--brown);
  background: #f7efe6;
}

.choix-item h4 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green);
  margin-bottom: 10px;
}

.choix-item.misec h4 { color: var(--brown); }

.choix-item h4 span {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray);
}

.choix-item p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 10px;
}

.choix-item strong { color: var(--green-dark); }

.choix-conseil .icon { color: var(--green); margin-right: 4px; }
.choix-item.misec .choix-conseil .icon { color: var(--brown); }

.choix-conseil {
  margin-bottom: 0 !important;
  font-weight: 600;
}

.choix-note {
  margin-top: 18px;
  text-align: center;
  color: var(--gray);
  font-size: 0.95rem;
}

/* Stère et volume (coefficient de conversion) */
.stere-bloc {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  padding: 28px 30px 24px;
  margin-bottom: 40px;
}

.stere-bloc h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 10px;
}

.stere-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 22px;
  color: var(--text);
}

.stere-intro strong { color: var(--green-dark); }

.defs-buches { position: absolute; width: 0; height: 0; overflow: hidden; }

.stere-schema {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

.stere-item {
  flex: 1;
  max-width: 220px;
  margin: 0;
  text-align: center;
}

.stere-item svg { width: 100%; height: auto; display: block; overflow: visible; }

.stere-item figcaption span {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
}

.stere-item figcaption strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  line-height: 1.15;
  color: var(--green);
}

.stere-item figcaption sup { font-size: 0.55em; color: var(--gray); }

.stere-egal {
  flex: 0 0 34px;
  height: 34px;
  margin-top: 92px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-dark);
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stere-note {
  max-width: 760px;
  margin: 20px auto 0;
  text-align: center;
  color: var(--text);
}

.stere-note small {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--gray);
}

/* dessin des cubes */
.c-vide   { fill: rgba(212,160,23,0.16); }
.c-cache  { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 4 4; }
.c-dessus { fill: #a8733f; }
.c-fine   { stroke: rgba(50,25,8,0.45); stroke-width: 0.7; }
.c-joint  { stroke: #3f220f; stroke-width: 2; }
.c-bord   { stroke: #3f220f; stroke-width: 0.8; }
.c-repere { fill: none; stroke: var(--gold); stroke-width: 2.2; }
.c-mesure { fill: none; stroke: var(--green-dark); stroke-width: 1.5; }
.c-arete  { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
.c-cote-txt { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600; fill: var(--green-dark); }

/* Simulateur : préparer sa commande */
.simu {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  margin-bottom: 40px;
}

.bois .container > :last-child { margin-bottom: 0; }

.simu h3 {
  grid-column: 1 / -1;
  background: var(--green);
  color: var(--white);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 16px 28px;
}

.simu-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 28px;
}

.simu-ligne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.simu-ligne label,
.simu-distance {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.simu-form label,
.simu-form legend {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
}

.simu-form select,
.simu-form input[type="number"] {
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  padding: 11px 14px;
  border: 1.5px solid #d8d4c8;
  border-radius: 6px;
  background: var(--white);
  outline: none;
  width: 100%;
}

.simu-form select:focus,
.simu-form input:focus { border-color: var(--gold); }

.simu-form [hidden] { display: none; }

.sur-mobile { display: none; }

/* choix sous forme de boutons */
.simu-choix {
  border: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.simu-choix.trois { grid-template-columns: repeat(3, 1fr); }

.simu-choix legend {
  padding: 0;
  margin-bottom: 6px;
}

.simu-choix label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 10px 6px;
  border: 1.5px solid #d8d4c8;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.simu-choix label strong {
  font-family: 'Oswald', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--green-dark);
}

.simu-choix label small {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--gray);
}

/* le bouton radio reste accessible au clavier mais n'est pas affiché */
.simu-choix input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.simu-choix label:hover { border-color: var(--gold); }

.simu-choix label:has(input:checked) {
  border-color: var(--green);
  background: #eef5ee;
  box-shadow: inset 0 0 0 1px var(--green);
}

.simu-choix label:has(input:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.simu-aide {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: underline;
}

/* résultat */
.simu-result {
  background: #f9f6ee;
  border-left: 1px solid #ece6d8;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.simu-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(0,0,0,0.15);
}

.simu-line span:last-child {
  white-space: nowrap;
  font-weight: 700;
}

.simu-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.simu-total span {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-dark);
}

.simu-total strong {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  color: var(--green);
}

.simu-place {
  font-size: 0.95rem;
  background: #eef5ee;
  border-radius: 8px;
  padding: 8px 12px;
}

.simu-place strong { color: var(--green-dark); }
.simu-place a { font-size: 0.85rem; color: var(--green); text-decoration: underline; white-space: nowrap; }

.simu-note {
  font-size: 0.82rem;
  color: var(--gray);
}

.simu-commander {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.simu-commander .fleche { display: inline-block; transition: transform 0.25s ease; }
.simu-commander:hover .fleche { transform: translateX(5px); }

/* =====================
   EXPLOITATION FORESTIÈRE
===================== */
.exploitation {
  padding: 100px 0;
  background: var(--white);
}

.activite {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 70px;
}

.activite.reverse .activite-photo { order: 2; }

.activite-photo {
  position: relative;
}

.activite-photo::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  z-index: 0;
}

.activite.reverse .activite-photo::before { inset: 18px 18px -18px -18px; }

.activite-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.activite-num {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(212,160,23,0.35);
}

.activite-text h3 {
  font-size: 1.7rem;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 4px 0 16px;
}

.activite-text p {
  color: var(--gray);
  margin-bottom: 20px;
}

.activite-text .check-list li { color: var(--text); font-weight: 600; }

.engagements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.engagement {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  border-bottom: 4px solid var(--green);
  transition: transform 0.3s, box-shadow 0.3s;
}

.engagement:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.engagement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.engagement-icon .icon { width: 34px; height: 34px; color: var(--green); vertical-align: 0; }

.engagement h4 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.engagement p {
  color: var(--gray);
  font-size: 0.98rem;
}

.devis-banner {
  margin-top: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(120deg, #fbf3dc, #f3e6c4);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 34px 40px;
}

.devis-banner h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.devis-banner p {
  color: var(--text);
  max-width: 620px;
}

.devis-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* =====================
   SCIAGE & FENDAGE
===================== */
.sciage {
  padding: 100px 0;
  background: var(--green-dark);
  color: var(--white);
}

.sciage-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.sciage-hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.sciage-prix {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: var(--gold);
  color: var(--green-dark);
  border-radius: 50%;
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border: 4px solid var(--white);
  transform: rotate(-6deg);
}

.sciage-prix span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sciage-prix strong {
  font-family: 'Oswald', sans-serif;
  font-size: 2.6rem;
  line-height: 1;
}

.sciage-prix em {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
}

.sciage-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: -1px 0 50px;
  padding: 26px 20px;
  border-bottom: 1px solid rgba(212,160,23,0.4);
  text-align: center;
}

.stat strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1.15;
}

.stat span {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.sciage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sciage-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
}

.sciage-card h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--gold);
}

.sciage-card p {
  color: var(--text);
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.sciage-card .check-list li { font-size: 0.98rem; color: var(--text); }
.sciage-card .check-list li strong { color: var(--green-dark); }
.sciage-card .check-list li::before { background: var(--green); color: var(--white); }



.sciage-cta {
  text-align: center;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sciage-cta p {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  max-width: 600px;
}

/* =====================
   GALERIE
===================== */
.galerie {
  padding: 100px 0;
  background: var(--cream);
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: 14px;
}

.galerie-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: none;
  padding: 0;
  background: var(--green-dark);
  font: inherit;
}

.galerie-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.galerie-item.wide { grid-column: span 2; }

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galerie-item:hover img,
.galerie-item:focus-visible img { transform: scale(1.07); }

.galerie-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,41,26,0.85) 0%, rgba(18,41,26,0) 55%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.galerie-item:hover .galerie-overlay,
.galerie-item:focus-visible .galerie-overlay { opacity: 1; }

.galerie-overlay span {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  transform: translateY(10px);
  transition: transform 0.35s ease;
}

.galerie-item:hover .galerie-overlay span { transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 18, 10, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
}

.lightbox[hidden] { display: none; }

.lightbox figure {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox figcaption {
  color: rgba(255,255,255,0.85);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  text-align: center;
}

.lb-close,
.lb-nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lb-close:hover,
.lb-nav:hover { background: var(--gold); color: var(--green-dark); }

.lb-close { top: 16px; right: 16px; }
.lb-close .icon { width: 26px; height: 26px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* =====================
   À PROPOS
===================== */
.apropos {
  padding: 100px 0;
  background:
    linear-gradient(rgba(18,41,26,0.93), rgba(18,41,26,0.93)),
    url('img/fond-apropos.jpg') center / cover;
}

.apropos-content {
  display: flex;
  align-items: center;
  gap: 70px;
}

.apropos-text {
  flex: 1;
}

.apropos-text .section-title {
  text-align: left;
  color: var(--white);
}

.apropos-text .section-title::after { margin-left: 0; }

.apropos-text p {
  color: rgba(255,255,255,0.92);
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.apropos-text strong { color: var(--gold); }

/* Portrait de Patrice */
.apropos-portrait {
  position: relative;
  flex-shrink: 0;
  width: 340px;
  margin: 0 0 24px;
}

.portrait-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid var(--gold);
  box-shadow: 0 18px 44px rgba(0,0,0,0.5);
}

/* petit médaillon Marmotte posé sur le coin */
.portrait-logo {
  position: absolute;
  top: -22px;
  left: -22px;
  width: 92px;
  height: 92px;
  object-fit: contain;
  padding: 10px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--gold);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* plaque dorée avec le nom */
.apropos-portrait figcaption {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--gold);
  color: var(--green-dark);
  padding: 8px 22px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  text-align: center;
  line-height: 1.2;
}

.apropos-portrait figcaption strong {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-dark);
}

.apropos-portrait figcaption span {
  font-size: 0.85rem;
  font-weight: 600;
}

.siret .icon { margin-right: 4px; }

.siret {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75) !important;
  margin-bottom: 22px !important;
}

/* =====================
   ZONE D'INTERVENTION
===================== */
.zone {
  padding: 100px 0;
  background: var(--white);
}

.zone-content {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}

.zone-listes {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #ece6d8;
}

.zone-map iframe {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rayons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rayon {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 16px;
  border-left: 4px solid var(--gold);
}

.rayon strong {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  color: var(--green-dark);
  min-width: 86px;
}

.rayon span {
  font-size: 0.95rem;
  color: var(--gray);
}

.zone-liste h3 {
  font-size: 1.1rem;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.zone-liste h3 small {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray);
}

.communes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.commune-tag {
  background: var(--white);
  color: var(--green-dark);
  border: 1px solid rgba(26,58,30,0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}

.commune-tag:hover {
  background: rgba(212,160,23,0.15);
  border-color: var(--gold);
}

.zone-note {
  margin-top: 28px;
  text-align: center;
  color: var(--gray);
  font-size: 0.95rem;
}

/* =====================
   CONTACT
===================== */
.contact {
  padding: 100px 0;
  background: var(--green-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-icon .icon { width: 26px; height: 26px; color: var(--gold); vertical-align: 0; }

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
}

.contact-item a,
.contact-item span {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
}

.contact-item a:hover { color: var(--gold); }

.contact-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-call-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.btn-call-big:hover {
  background: #3a8a3f;
  transform: translateY(-2px);
}

.btn-whatsapp { background: #15803d; }
.btn-whatsapp:hover { background: #166534; }

/* Formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.65);
}

.contact-form select option {
  background: var(--green-dark);
  color: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.contact-form textarea { resize: vertical; }

.contact-form .btn-primary { align-self: flex-start; }

.form-success,
.form-error {
  display: none;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.93rem;
  font-weight: 600;
}

.form-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-info {
  display: none;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff8e1;
  color: #4a3b00;
  border: 1px solid var(--gold);
}

.form-info a { color: var(--green-dark); font-weight: 700; text-decoration: underline; }

.form-rgpd {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.form-rgpd a { color: var(--gold); text-decoration: underline; }

.form-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* =====================
   FOOTER
===================== */
footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.88);
  padding: 56px 0 30px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-content img { width: 80px; height: auto; margin-bottom: 4px; }

.footer-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 6px;
}

footer a { color: var(--gold); }
footer a:hover { text-decoration: underline; }

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 14px 0 4px;
  font-size: 0.9rem;
}

.footer-links a { color: rgba(255,255,255,0.9); }
.footer-links a:hover { color: var(--gold); }

.footer-siret {
  font-size: 0.88rem;
  opacity: 0.8;
  margin-top: 6px;
}

.footer-copy {
  margin-top: 12px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* =====================
   BOUTONS FLOTTANTS (mobile)
===================== */
.floating-buttons {
  position: fixed;
  bottom: 22px;
  right: 18px;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.floating-btn:hover { transform: scale(1.05); }

.floating-btn span { font-size: 0.9rem; }
.floating-btn .icon { width: 20px; height: 20px; }

.floating-phone {
  background: var(--green);
  animation: pulse-green 2s infinite;
}

.floating-whatsapp {
  background: #15803d;
  animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 6px 20px rgba(45,106,49,0.4); }
  50%       { box-shadow: 0 6px 30px rgba(45,106,49,0.75); }
}

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 6px 30px rgba(37,211,102,0.7); }
}

/* =====================
   BOUTON RETOUR EN HAUT
===================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 998;
  width: 50px;
  height: 50px;
  background: var(--green-dark);
  color: var(--white);
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-to-top .icon { width: 22px; height: 22px; }

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover { background: var(--green); }

/* =====================
   ANIMATIONS AU SCROLL
   (uniquement si JavaScript est actif)
===================== */
.js .reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal:not(.vu) {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  /* Exception : la petite flèche « Découvrir » continue de rebondir */
  .hero-scroll .icon { animation: scrollBounce 1.8s ease-in-out infinite !important; }
  /* Apparitions : simple fondu, sans mouvement */
  .js .reveal { transition: opacity 0.6s ease !important; }
  .js .reveal:not(.vu) { transform: none; }
}

/* =====================
   RESPONSIVE
===================== */
/* Menu hamburger dès que les liens ne tiennent plus sur une ligne */
@media (max-width: 1260px) {
  .hamburger { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--green-deep);
    padding: 10px 0 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 14px 30px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links a::after { display: none; }
  .nav-links li a.active { box-shadow: inset 4px 0 0 var(--gold); background: rgba(212,160,23,0.08); }

  .nav-cta { padding: 14px 24px 0; }
  .nav-cta a { text-align: center; border-bottom: none !important; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-medaillon { display: none; }
  .service-card { aspect-ratio: 16 / 9; }
  .bois-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .simu { grid-template-columns: 1fr; }
  .simu-result { border-left: none; border-top: 1px solid #ece6d8; }
  .sciage-grid { grid-template-columns: 1fr 1fr; }
  .sciage-card.conditions { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 66px; }

  .navbar,
  .navbar.scrolled { padding: 8px 18px; }

  .logo img { width: 44px; }
  .logo-text { font-size: 1.35rem; }

  .bois,
  .exploitation,
  .sciage,
  .galerie,
  .apropos,
  .zone,
  .contact { padding: 70px 0; }

  .section-intro { margin-bottom: 36px; font-size: 1rem; }


  .bandeau { display: none; } /* la barre Appeler / WhatsApp est déjà fixée en bas */

  .hero::before { background-image: url('img/foret-mobile.jpg'); }
  .hero { padding: 96px 18px 36px; gap: 36px; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(8,20,11,0.75) 0%, rgba(8,20,11,0.6) 45%, rgba(8,20,11,0.92) 100%); }
  .choix-grid { grid-template-columns: 1fr; }
  .stere-bloc { padding: 22px 16px; }
  .stere-bloc h3 { font-size: 1.25rem; }
  .stere-schema { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .stere-item { max-width: none; }
  .stere-egal { display: none; }
  .stere-item figcaption strong { font-size: 1.5rem; }
  .c-cote-txt { font-size: 21px; }
  .choix-bois { padding: 22px 18px; }
  .choix-bois h3 { font-size: 1.25rem; }
  .bois-grid { grid-template-columns: 1fr; }
  .bois-side { flex-direction: column-reverse; }
  .bois-photo { aspect-ratio: 16 / 10; }

  .simu-form { padding: 18px 16px; gap: 14px; }
  .simu-result { padding: 18px 16px; }
  .simu h3 { padding: 12px 16px; font-size: 1.1rem; }
  .simu-total strong { font-size: 2rem; }
  .sur-ordi { display: none; }
  .sur-mobile { display: inline; }
  .bois .container { display: flex; flex-direction: column; }
  .bois-grid { display: contents; }
  .prix-card { order: 1; margin-bottom: 20px; }
  /* téléphone : seulement les essences, en encadré compact, sous les prix (sans photo) */
  .bois-side { order: 2; margin-bottom: 28px; }
  .simu { order: 3; }
  .bois-photo { display: none; }
  .bois-fiche { padding: 12px 16px 14px; }
  .bois-fiche > div { padding: 0; border-bottom: none; }
  .bois-fiche > div:not(:first-child) { display: none; }
  .bois-fiche dt { margin-bottom: 8px; }
  .essences { gap: 6px; }
  .essences span { font-size: 0.85rem; padding: 3px 11px; }
  .choix-bois { order: 4; }
  .stere-bloc { order: 5; }
  .bois .section-title, .bois .section-intro { order: 0; }
  .simu-result { gap: 8px; }
  .simu-line { font-size: 0.92rem; padding-bottom: 6px; }
  .simu-place { font-size: 0.9rem; padding: 6px 10px; }
  .simu-note { font-size: 0.78rem; }

  .activite,
  .activite.reverse { grid-template-columns: 1fr; gap: 36px; margin-bottom: 56px; }
  .activite.reverse .activite-photo { order: 0; }
  .activite-photo::before,
  .activite.reverse .activite-photo::before { inset: 12px -10px -12px 10px; }

  .engagements { grid-template-columns: 1fr; }

  .devis-banner { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .devis-btns { width: 100%; }

  .sciage-hero img { aspect-ratio: 16 / 9; }
  .sciage-prix { width: 112px; height: 112px; right: 12px; bottom: 12px; }
  .sciage-prix strong { font-size: 1.9rem; }
  .sciage-stats { grid-template-columns: repeat(2, 1fr); }
  .sciage-grid { grid-template-columns: 1fr; }

  .galerie-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .galerie-overlay { opacity: 1; padding: 12px; }
  .galerie-overlay span { font-size: 0.9rem; letter-spacing: 1px; transform: none; }

  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }

  .apropos-content { flex-direction: column; text-align: center; gap: 50px; }
  .apropos-text .section-title { text-align: center; }
  .apropos-text .section-title::after { margin: 14px auto 0; }

  .zone-content { grid-template-columns: 1fr; }
  .zone-listes { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; padding-top: 30px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  /* Boutons flottants visibles sur mobile */
  /* Barre d'appel fixe en bas de l'écran (ne recouvre plus le texte) */
  .floating-buttons {
    display: flex;
    flex-direction: row;
    gap: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: stretch;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
  }
  .floating-btn {
    flex: 1;
    justify-content: center;
    border-radius: 0;
    padding: 15px 10px;
    font-size: 1.1rem;
    box-shadow: none;
    animation: none;
  }
  .floating-btn:hover { transform: none; }
  .floating-btn span { font-size: 1rem; }
  body { padding-bottom: 58px; }
  .back-to-top { display: none; }
  .floating-top { display: none; flex: 0 0 58px; padding: 0; background: var(--green-deep); }
  .floating-buttons.avec-haut .floating-top { display: flex; }
  .floating-top .icon { width: 22px; height: 22px; }

  /* 3. Cadre doré des photos : symétrique sur mobile */
  .activite-photo::before,
  .activite.reverse .activite-photo::before { inset: 10px -8px -10px -8px; }

  /* 4. Encadré Tarifs & devis centré */
  .devis-banner { align-items: stretch; text-align: center; }

  /* 1. Boutons Appeler / WhatsApp de la section Contact : côte à côte, même largeur */
  .contact-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn-call-big { justify-content: center; padding: 14px 8px; font-size: 1rem; }
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: 1 / 1; }
  .service-body { padding: 12px; }
  .service-card h3 { font-size: 0.95rem; }
  .service-link { display: none; }
  .services-grid { gap: 10px; }
  .hero-atouts { flex-direction: column; gap: 8px; }
  .simu-ligne { gap: 10px; }
  .simu-choix label { padding: 8px 3px; }
  .simu-choix label strong { font-size: 0.92rem; }
  .simu-choix label small { font-size: 0.72rem; }
  .simu-commander { padding: 14px 10px; }
  .hero-kicker { font-size: 0.74rem; letter-spacing: 1px; }
  .hero-kicker::before { display: none; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .apropos-portrait { width: min(300px, 80vw); }
  .portrait-logo { width: 74px; height: 74px; top: -16px; left: -12px; padding: 8px; }
  .prix-table td { font-size: 1.35rem; }
  .prix-table thead th:first-child,
  .prix-table tbody th { padding-left: 14px; }
  .prix-table thead th { font-size: 1rem; }
  .prix-conditions { padding: 16px 16px 18px; }
  .rayon { flex-direction: column; align-items: flex-start; gap: 2px; }
  .communes-grid { gap: 6px; }
  .commune-tag { font-size: 0.8rem; padding: 3px 10px; }
}

/* =====================
   PAGE MENTIONS LÉGALES
===================== */
.page-legale { background: var(--cream); }

.legal-retour {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.legal-retour:hover { color: var(--gold); }

.legal {
  max-width: 820px;
  padding-top: 130px;
  padding-bottom: 80px;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-dark);
  margin-bottom: 30px;
}

.legal h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-dark);
  margin: 34px 0 10px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

.legal p {
  color: var(--text);
  margin-bottom: 12px;
}

.legal a { color: var(--green); text-decoration: underline; }
.legal .btn-primary { text-decoration: none; color: var(--green-dark); }
.legal-retour-bas { margin-top: 40px; }

/* Repère visuel pour les informations à compléter avant la mise en ligne */
.a-completer {
  background: #fff3b0;
  color: #6b4e00;
  padding: 0 4px;
  border-radius: 3px;
}
