/* ================================================
   SOGETRA BTP — style.css
   Style : Industriel Moderne — Blanc · Acier · Orange
   Lisibilité WCAG AAA prioritaire
   ================================================ */

:root {
  --night:    #1C2B3A;   /* texte principal — ratio 14:1 sur blanc */
  --steel:    #2D3F50;
  --slate:    #4A5568;   /* texte secondaire — ratio 7:1 sur blanc */
  --concrete: #8C9BAB;   /* texte tertiaire — ratio 4.6:1 sur blanc */
  --mist:     #F7F9FC;
  --border:   #E2E8F0;
  --orange:   #E8500A;
  --orange-l: #F26522;
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* === BASE — lisibilité === */
body {
  background: #fff;
  color: var(--night);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Largeur de colonne de texte contrôlée */
.text-readable { max-width: 65ch; }
.text-readable-sm { max-width: 55ch; }

::selection { background: var(--orange); color: #fff; }

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === NAVBAR === */
#navbar {
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(8px);
}
.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--night); }
.nav-link:hover::after { width: 100%; }

/* === BOUTONS === */
.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--orange);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-orange:hover {
  background: var(--orange-l);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 80, 10, 0.3);
}
.btn-orange:active { transform: translateY(0); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--night);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-outline-dark:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* === SECTION LABEL === */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

/* === TITRES === */
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.1;
  color: var(--night);
  letter-spacing: -0.01em;
}
.section-title span { color: var(--orange); }

/* === CARDS SERVICES === */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.service-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(28,43,58,0.08);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(232,80,10,0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* === RÉALISATIONS === */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card:hover img { transform: scale(1.04); }
.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,43,58,0.9) 0%, rgba(28,43,58,0.2) 50%, transparent 100%);
}
.project-card .info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

/* === CHIFFRES === */
.stat-card {
  border-left: 3px solid var(--orange);
  padding-left: 1.5rem;
}
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--night);
}

/* === TÉMOIGNAGES === */
.testimonial {
  background: var(--mist);
  border-radius: 4px;
  padding: 1.75rem;
  border-top: 3px solid var(--orange);
}

/* === FORMULAIRE === */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem; /* 15px - lisible sans être trop grand */
  color: var(--night);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.5;
}
.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,80,10,0.1);
}
.form-input::placeholder {
  color: var(--concrete);
  font-size: 0.875rem;
}

/* === HERO === */
.hero-bg {
  background-image:
    linear-gradient(135deg, rgba(28,43,58,0.92) 0%, rgba(28,43,58,0.75) 50%, rgba(28,43,58,0.88) 100%),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1800&q=85&auto=format');
  background-size: cover;
  background-position: center;
}

/* === BANDE ORANGE === */
.orange-stripe {
  background: var(--orange);
}

/* === MOBILE MENU === */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
}
#mobile-menu.open { transform: translateX(0); }

/* === ACCORDION === */
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-body.open { max-height: 400px; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: var(--concrete); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
