@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700&family=Onest:wght@400;500;600;700&display=swap');

/* ============================================
   CHARTE BÛCHES ET BOIS — « Pop forêt »
   Sapin profond + jaune soleil, coins très arrondis
   ============================================ */
:root {
  --color-primary: #0E3B2C;      /* Sapin — fonds forts, titres */
  --color-secondary: #1A6B4E;    /* Feuillage — liens, icônes */
  --color-secondary-hover: #0E3B2C;
  --color-accent: #FFC93C;       /* Soleil — boutons, pastilles, prix */
  --color-accent-hover: #FFB703;
  --color-leaf: #1A5A44;         /* Vert intermédiaire sur fond sapin */
  --color-mint: #B9D3C3;         /* Texte secondaire sur fond sapin */

  --color-bg-main: #F7F8F3;      /* Blanc nature */
  --color-bg-alt: #EAF1E8;       /* Sauge très clair */
  --color-border: #DCE6DA;

  --color-text-main: #12261E;
  --color-text-light: #4F6B5E;
  --color-white: #FFFFFF;

  --color-error: #B71C1C;
  --color-success: #2E7D32;

  --font-heading: 'Unbounded', 'Arial Black', Arial, sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 6px rgba(14, 59, 44, 0.06);
  --shadow-md: 0 10px 24px -8px rgba(14, 59, 44, 0.16);
  --shadow-lg: 0 24px 40px -12px rgba(14, 59, 44, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Animations au scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Typographie Premium */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 36px;
}

p {
  letter-spacing: 0.01em;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, #E3ECE1 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Header */
.header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* Navigation Animation */
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a:not(.btn) {
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-secondary);
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--color-text-main);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 6px 0;
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white) !important;
}

.btn-primary:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--color-primary); /* Fallback solid color */
  color: var(--color-white);
  text-align: center;
  padding: 140px 20px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 59, 44, 0.55) 0%, rgba(14, 59, 44, 0.88) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #DCE6DA;
}

.hero-stats span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-stats strong {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 18px;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px;
  height: 22px;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  transform: translateX(-50%) rotate(45deg);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { margin-top: 0; opacity: 0.6; }
  50% { margin-top: 10px; opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero h1 {
  color: var(--color-white);
  font-size: 56px;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 22px;
  margin-bottom: 48px;
  font-weight: 300;
  color: #DCE6DA;
}

/* Features (Réassurance) */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.feature-card {
  background-color: var(--color-white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-secondary);
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 15px;
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Effet zoom sur image au survol */
.product-image-container {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 26px;
  margin-bottom: 12px;
}

.product-desc {
  color: var(--color-text-light);
  margin-bottom: 24px;
  flex-grow: 1;
  font-size: 15px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--color-text-light);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.product-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-meta-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 20px;
  margin-top: 4px;
}

.product-price .price-amount {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.product-price .price-cents {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  align-self: flex-start;
  margin-top: 4px;
  opacity: 0.85;
}

.product-price .price-unit {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-light);
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Badge sur cartes produit */
.product-image-container {
  position: relative;
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* Avis clients */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.star-rating {
  color: var(--color-accent);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-quote {
  color: var(--color-text-main);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-light);
}

/* Bouton retour en haut */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 500;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background-color: var(--color-secondary);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Steps (Comment ça marche) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.step {
  text-align: center;
  position: relative;
}

/* Ligne connectrice entre les étapes (seulement desktop) */
@media (min-width: 901px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 35px;
    right: -20%;
    width: 40%;
    height: 1px;
    background-color: var(--color-border);
  }
}

.step-number {
  width: 70px;
  height: 70px;
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-sm);
}

.step h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.step p {
  color: var(--color-text-light);
  font-size: 15px;
}

/* Forms */
.form-container {
  max-width: 780px;
  margin: -60px auto 60px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Cartes de formulaire */
.form-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.form-card:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 107, 78, 0.25);
}

.form-card-header {
  background-color: var(--color-primary);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-card-header h2 {
  color: var(--color-white);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.form-card-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-card-body {
  padding: 32px;
}

/* Zone de soumission */
.form-submit-container {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: 32px;
}

.form-group {
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--color-text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-main);
  background-color: var(--color-white);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(26, 107, 78, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.price-estimate {
  background-color: var(--color-bg-alt);
  padding: 24px 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-estimate-label {
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-estimate-value {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-secondary);
  transition: transform 0.25s ease;
}

.price-estimate-value.pulse {
  transform: scale(1.12);
}

.form-disclaimer {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 20px;
  line-height: 1.6;
}

/* Boutons radio en carte (longueur des bûches) */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.radio-card {
  cursor: pointer;
  position: relative;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-alt);
  transition: all 0.2s ease;
  min-height: 70px;
}

.radio-card input[type="radio"]:checked + .radio-content {
  border-color: var(--color-secondary);
  background-color: #EAF4EC;
  box-shadow: 0 0 0 3px rgba(26, 107, 78, 0.12);
}

.radio-card:hover .radio-content {
  border-color: var(--color-secondary);
  background-color: #F3F8F2;
}

.radio-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.radio-card input[type="radio"]:checked + .radio-content .radio-title {
  color: var(--color-secondary);
}

/* Masquer le champ longueur pour les granulés */
#longueur-container.hidden {
  display: none;
}

/* Messages */
.alert {
  padding: 16px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  display: none;
  font-weight: 500;
}

.alert-success {
  background-color: #F1F8F1;
  color: var(--color-success);
  border: 1px solid #D7EAD8;
  align-items: center;
  gap: 14px;
}

.alert-icon-check {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.alert-icon-check circle {
  stroke: var(--color-success);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 76;
  stroke-dashoffset: 76;
  animation: draw-circle 0.5s ease forwards;
}

.alert-icon-check path {
  stroke: var(--color-success);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: draw-check 0.3s ease forwards 0.45s;
}

@keyframes draw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.alert-error {
  background-color: #FDF1F1;
  color: var(--color-error);
  border: 1px solid #F5D3D3;
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-details h3 {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 80px 0 30px;
  border-top: 4px solid var(--color-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-title {
  color: var(--color-white);
  margin-bottom: 24px;
  font-size: 22px;
}

.footer-text {
  color: #B9D3C3;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #B9D3C3;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: #8FB3A1;
  font-size: 14px;
}

/* Page Header */
.page-header {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 100px 20px 140px; /* Plus de padding en bas pour le chevauchement du formulaire */
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 16px;
  font-size: 48px;
}

.page-header p {
  color: #DCE6DA;
  font-size: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .features, .steps, .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 18px 28px;
  }

  .scroll-indicator {
    display: none;
  }
  
  .features {
    margin-top: 20px;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .page-header {
    padding-bottom: 100px;
  }
  
  .form-container {
    margin-top: -40px;
  }

  .form-card-body {
    padding: 24px;
  }

  .form-submit-container {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    border-top: 1px solid var(--color-border);
    gap: 4px;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Hero accueil */
  .hero h1 {
    font-size: 34px;
    line-height: 1.25;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-stats {
    gap: 14px 20px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Page header (catalogue, contact) */
  .page-header {
    padding: 48px 0 80px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  /* Sections */
  .section {
    padding: 48px 0;
  }

  /* Grille produits catalogue */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Formulaire (ancien form contact/devis global) */
  .form-row {
    grid-template-columns: 1fr;
  }

  .radio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Empêcher zoom iOS sur les champs */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer {
    padding: 40px 0 20px;
  }

  /* Contact */
  .contact-info {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Page confirmation */
  .confirmation-wrapper {
    padding: 0 16px;
  }

  .confirmation-title {
    font-size: 26px;
  }

  .actions-row {
    flex-direction: column;
    gap: 12px;
  }

  .actions-row .btn {
    width: 100%;
    text-align: center;
  }

  /* Back to top */
  .back-to-top {
    bottom: 20px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  /* Footer colonne unique */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Hero encore plus compact */
  .hero h1 {
    font-size: 28px;
  }

  .price-estimate {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Page header compact */
  .page-header h1 {
    font-size: 24px;
  }

  /* Produits catalogue */
  .product-card {
    margin: 0;
  }
}


/* ========================
   Section Label (chapeau)
   ======================== */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 16px;
  padding: 6px 14px;
  background-color: rgba(26, 107, 78, 0.1);
  border-radius: 999px;
}

/* ========================
   Section Notre Histoire (About)
   ======================== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about-text h2 {
  margin-bottom: 20px;
  font-size: 34px;
  margin-top: 12px;
}

.about-text p {
  color: var(--color-text-light);
  line-height: 1.8;
}

.about-values {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about-value-icon {
  width: 44px;
  height: 44px;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-value-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-secondary);
}

.about-value-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.about-value-item p {
  font-size: 14px;
  color: var(--color-text-light);
  margin: 0;
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-badge {
    bottom: -14px;
    right: -10px;
    font-size: 15px;
    padding: 12px 18px;
  }
}

/* ========================
   Testimonials Full (avec photo)
   ======================== */
.testimonials-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 20px;
}

.testimonials-image {
  position: sticky;
  top: 110px;
}

.testimonial-hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
}

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 900px) {
  .testimonials-full {
    grid-template-columns: 1fr;
  }

  .testimonials-image {
    position: static;
  }

  .testimonial-hero-img {
    aspect-ratio: 16/9;
    object-position: center center;
  }
}

/* ========================
   Catalogue Intro & Trust Bar
   ======================== */
.catalogue-intro {
  max-width: 860px;
}

.catalogue-intro-text h2 {
  margin-bottom: 20px;
  font-size: 34px;
  margin-top: 12px;
}

.catalogue-intro-text p {
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 16px;
}

.catalogue-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.catalogue-trust-item {
  flex: 1;
  min-width: 140px;
  padding: 24px 28px;
  background-color: var(--color-white);
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.catalogue-trust-item:last-child {
  border-right: none;
}

.catalogue-trust-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-secondary);
  margin-bottom: 4px;
}

.catalogue-trust-item span {
  font-size: 13px;
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .catalogue-trust-bar {
    flex-direction: column;
  }

  .catalogue-trust-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .catalogue-trust-item:last-child {
    border-bottom: none;
  }
}


/* ─────────────────────────────────────────────
   MODAL DE CHARGEMENT (Génération PDF)
   ───────────────────────────────────────────── */
#loading-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 59, 44, 0.85);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

#loading-modal .modal-inner {
  background: #ffffff;
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 24px 48px rgba(0,0,0,0.25);
}

#loading-modal .modal-spinner {
  width: 52px;
  height: 52px;
  border: 5px solid #DCE6DA;
  border-top-color: #1A6B4E;
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.9s linear infinite;
}

#loading-modal h3 {
  font-family: 'Unbounded', Arial, sans-serif;
  font-size: 22px;
  color: #0E3B2C;
  margin-bottom: 12px;
}

#loading-modal p {
  font-size: 15px;
  color: #4F6B5E;
  line-height: 1.6;
}


/* ═════════════════════════════════════════════
   POP FORÊT — habillage des composants
   (placé en fin de fichier : remplace les styles précédents)
   ═════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}
h2 { font-size: 32px; }

/* ---- En-tête ---- */
.header {
  background-color: var(--color-primary);
  border-bottom: 0;
}
.header-inner { height: 80px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: var(--color-white);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--color-white); }
.logo-mark { width: 36px; height: 36px; flex: none; display: block; }
.nav-links a:not(.btn),
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active { color: var(--color-mint); }
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active { color: var(--color-white); }
.nav-links a:not(.btn)::after { background-color: var(--color-accent); height: 3px; border-radius: 3px; }
.mobile-menu-btn span { background-color: var(--color-white); border-radius: 2px; }

/* ---- Boutons ---- */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  letter-spacing: 0;
}
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary) !important;
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-primary) !important;
}
.btn-secondary {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.btn-ghost-light {
  background-color: var(--color-leaf);
  color: var(--color-white);
}
.btn-ghost-light:hover { background-color: #22704F; color: var(--color-white); }

/* ---- Hero accueil : texte à gauche, photo arrondie à droite ---- */
.hero {
  background-color: var(--color-primary);
  text-align: left;
  padding: 24px 0 96px;
}
.hero::before { display: none; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero-content { max-width: none; margin: 0; padding: 32px 0; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--color-accent); }
.hero p {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-mint);
  margin-bottom: 32px;
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  justify-content: flex-start;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-mint);
}
.hero-stats strong { color: var(--color-accent); font-size: 17px; }
.hero-visual { position: relative; }
.hero-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
}
.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  box-shadow: var(--shadow-md);
}
.sticker-1 {
  width: 116px; height: 116px; font-size: 14px;
  top: 18px; right: 18px;
  background: var(--color-accent); color: var(--color-primary);
  transform: rotate(10deg);
}
.sticker-2 {
  width: 104px; height: 104px; font-size: 13px;
  bottom: 22px; left: -18px;
  background: var(--color-bg-main); color: var(--color-primary);
  transform: rotate(-8deg);
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero { padding-bottom: 56px; }
  .hero-img { aspect-ratio: 4 / 3; }
  .sticker-2 { left: 14px; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; line-height: 1.1; }
  .hero p { font-size: 16px; }
  .sticker-1 { width: 92px; height: 92px; font-size: 12px; }
  .sticker-2 { width: 86px; height: 86px; font-size: 11px; }
  .nav-links { background-color: var(--color-primary); top: 80px; border-top: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
}

/* ---- Réassurance ---- */
.feature-card { border-radius: var(--radius-lg); border-color: var(--color-border); }
.feature-icon { background-color: var(--color-accent); border-radius: 18px; }
.feature-icon svg { stroke: var(--color-primary); }
.feature-card h3 { font-size: 18px; }

/* ---- Cartes produit ---- */
.product-card {
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: none;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-image-container { border-radius: 18px; height: 240px; }
.product-content { padding: 20px 16px 16px; }
.product-title { font-size: 20px; }
.product-price .price-amount,
.product-price .price-cents,
.product-price .price-unit { font-family: var(--font-body); }
.product-price .price-amount { color: var(--color-primary); font-size: 34px; }
.badge {
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.02em;
  transform: rotate(-4deg);
}

/* ---- Étiquettes, étapes, badges ---- */
.section-label {
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.step-number {
  background-color: var(--color-accent);
  border: 0;
  color: var(--color-primary);
  font-size: 26px;
  transform: rotate(-6deg);
}
.step h3 { font-size: 18px; }
.about-img, .testimonial-hero-img { border-radius: var(--radius-lg); }
.about-badge {
  width: 124px; height: 124px;
  display: grid; place-items: center; text-align: center;
  padding: 0;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-size: 14px;
  line-height: 1.15;
  transform: rotate(10deg);
}
@media (max-width: 900px) {
  .about-badge { width: 100px; height: 100px; font-size: 12px; padding: 0; }
}
.testimonial-card { border-radius: var(--radius-lg); }
.testimonial-quote { font-style: normal; }
.star-rating { color: #F2B705; }

/* ---- Formulaires ---- */
.form-card-number { background-color: var(--color-accent); color: var(--color-primary); }
.price-estimate-value { color: var(--color-primary); }

/* ---- Bandeaux de page et pied de page ---- */
.page-header p { color: var(--color-mint); }
.footer { border-top: 6px solid var(--color-accent); }
.footer-title { font-size: 16px; }
.footer-text, .footer-links a { color: var(--color-mint); }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom { color: #8FB3A1; }
.back-to-top:hover { background-color: var(--color-accent); color: var(--color-primary); }
.catalogue-trust-item strong { font-size: 19px; letter-spacing: -0.02em; }

/* Notre Histoire : photo au format vertical */
.about-image-wrap { max-width: 460px; width: 100%; justify-self: center; }
.about-img { aspect-ratio: 4 / 5; object-position: center 30%; }

/* Questions fréquentes */
.faq-wrap { max-width: 820px; }
.faq-wrap h2 { margin: 12px 0 28px; }
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 22px;
}
.faq details[open] { border-color: var(--color-secondary); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-accent); color: var(--color-primary);
  font-size: 18px; line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 20px; color: var(--color-text-light); line-height: 1.7; }

/* Menu des langues : drapeau + code, liste déroulante */
.header-inner { gap: 16px; }
.lang-menu { position: relative; flex: none; }
.lang-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: rgba(255, 255, 255, 0.14); }
.lang-menu .flag {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  flex: none;
  display: block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.lang-menu .chevron { width: 14px; height: 14px; transition: transform 0.2s ease; }
.lang-menu[open] .chevron { transform: rotate(180deg); }
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}
.lang-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--color-text-main);
  font-size: 14px;
  font-weight: 500;
}
.lang-list a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.lang-list a.active { background: var(--color-accent); color: var(--color-primary); font-weight: 600; }
@media (max-width: 768px) {
  .lang-menu { margin-left: auto; order: 2; }
  .mobile-menu-btn { order: 3; }
}


/* ── Mobile et tablette ── */
/* Titres : les mots très longs (ex. « Geschäftsbedingungen ») passent à la ligne au lieu de déborder */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
/* Tableau de la politique de confidentialité : défile dans son cadre sur petit écran */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.table-scroll .data-table { margin: 0; min-width: 560px; }
/* Les étapes des pages légales n'ont pas le trait de liaison de l'accueil */
.legal-page .step::after { display: none; }

/* Logo sur une seule ligne sur petit téléphone */
.logo span { white-space: nowrap; }
@media (max-width: 420px) {
  .logo { font-size: 15px; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .lang-menu summary { padding: 6px 8px 6px 6px; gap: 6px; }
}

/* Formulaire de commande : même espacement entre tous les champs, sur une ou deux colonnes */
.field-row { row-gap: 20px; margin-bottom: 20px; }
.field-row:last-child { margin-bottom: 0; }
.field-row .field-group { margin-bottom: 0; }
