html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #faf7f2;
}
h1, h2 { font-family: 'Libre Baskerville', Georgia, serif; }
h1, h2, h3, h4 { letter-spacing: 0; }

/* ---- Hero ---- */
.hero-bg {
  background:
    linear-gradient(105deg, rgba(15,61,33,0.96) 0%, rgba(23,36,43,0.88) 48%, rgba(30,107,58,0.68) 100%),
    url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1920&q=80') center/cover no-repeat;
}
.hero-panel {
  background: rgba(12, 28, 20, 0.54);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
}
.metric-strip > div + div { border-left: 1px solid rgba(255,255,255,0.12); }
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ---- Nav ---- */
.nav-scrolled {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: #1a4d2e;
  transition: width 0.28s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.btn-primary {
  background: #1a4d2e;
  color: white;
  box-shadow: 0 12px 28px rgba(26,77,46,0.24);
}
.btn-primary:hover { background: #143d24; }
.btn-secondary {
  background: white;
  color: #143d24;
  border: 1px solid rgba(20,83,45,0.18);
}
.btn-secondary:hover { background: #f5f8f6; }
.card-hover {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}
.card-hover.revealed {
  opacity: 1;
  transform: translateY(0);
}
.card-hover.revealed:hover { transform: translateY(-4px); }
.surface-card {
  border-radius: 12px;
  border: 1px solid rgba(49,66,77,0.10);
  box-shadow: 0 10px 30px rgba(23,36,43,0.06);
}
.surface-card:hover { box-shadow: 0 18px 42px rgba(23,36,43,0.11); }
.accent-top { border-top: 4px solid #c45c26; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #c45c26;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
}
.section-kicker::before {
  content: '';
  width: 28px;
  height: 2px;
  background: #c45c26;
  display: inline-block;
}
.orientation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: stretch;
}
.orientation-divider {
  background: #e7ecef;
  width: 1px;
  height: 72px;
  align-self: center;
}
@media (max-width: 767px) {
  .orientation-card { grid-template-columns: 1fr; }
  .orientation-divider { width: 100%; height: 1px; }
}

/* ---- Methode timeline ---- */
.method-timeline {
  position: relative;
}
.method-timeline-track,
.method-timeline-fill {
  position: absolute;
  left: 22px;
  top: 18px;
  width: 2px;
  border-radius: 999px;
}
.method-timeline-track {
  bottom: 18px;
  background: #e7ecef;
}
.method-timeline-fill {
  height: 0;
  background: linear-gradient(to bottom, #1a4d2e 0%, #1a4d2e 72%, #c45c26 100%);
  transition: height 0.25s ease;
}
.method-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 1rem;
}
.method-step-marker {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #f6f8f9;
  border: 1px solid #dbe2e7;
  color: #64747f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  z-index: 2;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.method-step.active .method-step-marker {
  background: #1a4d2e;
  color: white;
  border-color: #c45c26;
  box-shadow: 0 10px 22px rgba(26,77,46,0.22);
}
.method-step-card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.method-step.active .method-step-card {
  border-color: rgba(26,77,46,0.34);
  box-shadow: 0 16px 32px rgba(23,36,43,0.08);
  transform: translateY(-1px);
}
@media (max-width: 639px) {
  .method-timeline-track,
  .method-timeline-fill {
    left: 17px;
  }
  .method-step {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }
  .method-step-marker {
    width: 38px;
    height: 38px;
  }
}

/* ---- Icones secteurs ---- */
.sector-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: #f0f5f2;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.sector-card:hover .sector-icon { background: #1a4d2e; }
.sector-card:hover .sector-icon svg { color: white; }
.expertise-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.25rem 0.1rem 1rem;
}
.expertise-carousel::-webkit-scrollbar { display: none; }
.expertise-carousel .surface-card { box-shadow: none; }
.expertise-carousel .surface-card:hover { box-shadow: 0 8px 18px rgba(23,36,43,0.08); }
.expertise-slide {
  scroll-snap-align: start;
  min-height: 190px;
}
.expertise-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  background: #f0f5f2;
  color: #1a4d2e;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(49,66,77,0.14);
  background: white;
  color: #1a4d2e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(23,36,43,0.08);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.carousel-btn:hover {
  transform: translateY(-2px);
  background: #1a4d2e;
  color: white;
}
@media (min-width: 640px) {
  .expertise-carousel { grid-auto-columns: calc((100% - 1rem) / 2); }
}
@media (min-width: 1024px) {
  .expertise-carousel { grid-auto-columns: calc((100% - 2rem) / 3); }
}
.tab-btn {
  border: 1px solid #d1d5db;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}
.tab-btn.active {
  background: #1a4d2e;
  color: white;
  border-color: #1a4d2e;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Formulaires ---- */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,77,46,0.25);
  border-color: #1a4d2e !important;
  background: white !important;
}
input, textarea, select { border-radius: 10px !important; }

/* ---- Hero animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.65s ease forwards; }
.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }

/* ---- Mobile menu ---- */
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mobile-menu.open { max-height: 400px; }

/* ---- Accessibilite : desactive les animations si demande par l'OS ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .expertise-carousel { scroll-behavior: auto; }
}

/* ---- Accordion offres ---- */
.offer-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.offer-body.open {
  max-height: 1400px;
  opacity: 1;
}
.chevron { transition: transform 0.3s ease; flex-shrink: 0; }
.offer-row.open .chevron { transform: rotate(180deg); }

.desc-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-row {
  border-bottom: 1px solid #e7ecef;
  border-left: 4px solid transparent;
  transition: background 0.18s, border-color 0.18s;
}
.offer-row:last-child { border-bottom: none; }
.offer-row:hover { background: #faf7f2; border-left-color: #c45c26; }
.offer-row.open { background: #faf7f2; border-left-color: #1a4d2e; }

.det-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a4d2e;
  margin-bottom: 0.35rem;
}
.det-text {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.75;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.offers-wrap {
  animation: fadeIn 0.35s ease both;
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(23,36,43,0.08);
}

/* ---- Prose (pages légales) ---- */
.prose h2 { font-size: 1.25rem; font-weight: 700; color: #1a4d2e; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1rem; font-weight: 600; color: #1a4d2e; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 0.875rem; line-height: 1.75; color: #374151; }
.prose ul { margin-bottom: 0.875rem; padding-left: 1.5rem; list-style-type: disc; color: #374151; }
.prose ul li { margin-bottom: 0.375rem; line-height: 1.7; }
.prose a { color: #1a4d2e; text-decoration: underline; }
.prose a:hover { color: #1a4d2e; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.9rem; }
.prose table th { background: #e8f2ec; color: #1a4d2e; text-align: left; padding: 0.6rem 0.875rem; font-weight: 600; border: 1px solid #c8dfd2; }
.prose table td { padding: 0.6rem 0.875rem; border: 1px solid #e5e7eb; color: #374151; vertical-align: top; }
.prose table tr:nth-child(even) td { background: #f9fafb; }
