/* ============================================
   STM INGÉNIERIE & ENVIRONNEMENT
   Feuille de style principale
   Palette : Vert sauge sobre & élégant
============================================ */

/* VARIABLES */
:root {
  --sage-dark:  #1e3d2f;
  --sage-mid:   #2e5240;
  --sage-soft:  #b8c9b0;
  --sage-pale:  #e8ede4;
  --cream:      #f5f4f0;
  --text-dark:  #1a2a1e;
  --text-mid:   #4a5a4e;
  --text-light: #7a8a7e;
  --footer-bg:  #111a14;
  --white:      #ffffff;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: Arial, sans-serif; background: var(--cream); color: var(--text-dark); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================
   NAVIGATION
============================================ */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--cream);
  border-bottom: 1px solid #d4ddd0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 82px;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--text-mid); font-weight: 500; transition: color .2s;
}
.nav-links a:hover, .nav-links a.w--current { color: var(--sage-dark); }
.nav-logo { text-align: center; }
.nav-logo-img { height: 70px; width: auto; }
.nav-tel {
  border: 1.5px solid var(--sage-dark); color: var(--sage-dark); padding: 9px 18px;
  font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
  display: flex; align-items: center; gap: 7px; transition: all .2s;
}
.nav-tel:hover { background: var(--sage-dark); color: var(--cream); }

/* ============================================
   HERO ACCUEIL
============================================ */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 540px; }
.hero-photo { background: #c0c8b8; min-height: 400px; position: relative; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-text {
  background: var(--sage-dark); color: var(--cream);
  padding: 72px 60px; display: flex; flex-direction: column; justify-content: center;
}
.overline {
  font-size: 9.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--sage-soft); margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.overline::before { content: ''; display: block; width: 36px; height: 1px; background: var(--sage-soft); flex-shrink: 0; }
.hero-h1 {
  font-family: Georgia, serif; font-size: 28px; font-weight: 700; line-height: 1.4;
  color: var(--cream); margin-bottom: 24px;
}
.hero-desc { font-size: 14px; line-height: 1.8; color: rgba(245,244,240,.68); margin-bottom: 38px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sage-soft); color: var(--text-dark); padding: 13px 26px;
  font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700;
  width: fit-content; transition: background .2s;
}
.btn-primary:hover { background: #ccdac4; }

/* ============================================
   HERO PAGES INTÉRIEURES
============================================ */
.hero-interior {
  background: var(--sage-dark); padding: 80px 60px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px;
}
.hero-interior .overline { justify-content: center; }
.hero-interior .overline::before { display: none; }
.hero-interior .overline::after { content: ''; display: block; width: 36px; height: 1px; background: var(--sage-soft); flex-shrink: 0; }
.hero-interior h1 { font-family: Georgia, serif; font-size: 32px; font-weight: 700; color: var(--cream); margin-bottom: 16px; }
.hero-interior p { font-size: 15px; color: rgba(245,244,240,.68); max-width: 600px; line-height: 1.8; }

/* ============================================
   BARRE STATS
============================================ */
.stats-bar { background: var(--sage-mid); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 28px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: Georgia, serif; font-size: 34px; font-weight: 700; color: var(--cream); line-height: 1; }
.stat-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sage-soft); margin-top: 7px; }

/* ============================================
   SECTIONS
============================================ */
.section { padding: 80px 60px; }
.section-pale { background: var(--sage-pale); }
.section-dark { background: var(--sage-dark); }
.section-cream { background: var(--cream); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-overline {
  font-size: 9.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--sage-mid);
  margin-bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 14px;
}
.section-overline::before, .section-overline::after { content: ''; display: block; width: 36px; height: 1px; background: var(--sage-soft); }
.section-overline.left { justify-content: flex-start; }
.section-overline.left::after { display: none; }
.section-overline.white { color: var(--sage-soft); }
.section-overline.white::before, .section-overline.white::after { background: var(--sage-soft); }
h2.section-title { font-family: Georgia, serif; font-size: 26px; font-weight: 700; color: var(--text-dark); line-height: 1.35; }
h2.section-title.white { color: var(--cream); }

/* ============================================
   CARTES EXPERTISE
============================================ */
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.expertise-card {
  background: var(--cream); padding: 40px 32px; position: relative; overflow: hidden;
  transition: all .25s; cursor: pointer; border-top: 2px solid transparent;
}
.expertise-card:hover { background: var(--sage-dark); border-top-color: var(--sage-soft); }
.expertise-card:hover .card-title { color: var(--cream); }
.expertise-card:hover .card-text { color: rgba(245,244,240,.62); }
.expertise-card:hover .card-num { color: rgba(245,244,240,.06); }
.expertise-card:hover .card-line { background: var(--sage-soft); }
.card-num { font-family: Georgia, serif; font-size: 60px; font-weight: 800; color: rgba(30,61,47,.07); position: absolute; top: 14px; right: 20px; line-height: 1; transition: color .25s; }
.card-line { width: 28px; height: 2px; background: var(--sage-mid); margin-bottom: 20px; transition: background .25s; }
.card-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 14px; line-height: 1.3; transition: color .25s; }
.card-text { font-size: 13px; color: #5a6a5e; line-height: 1.75; transition: color .25s; }

/* ============================================
   CE QUI NOUS DISTINGUE
============================================ */
.distingue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.distingue-left h2 { font-family: Georgia, serif; font-size: 25px; font-weight: 700; color: var(--cream); line-height: 1.4; margin-bottom: 20px; }
.distingue-left p { font-size: 14px; color: rgba(245,244,240,.6); line-height: 1.8; margin-bottom: 34px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(245,244,240,.35); color: var(--cream); padding: 12px 24px;
  font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 600; transition: all .2s;
}
.btn-outline:hover { border-color: var(--sage-soft); color: var(--sage-soft); }
.distingue-items { display: flex; flex-direction: column; gap: 14px; }
.distingue-item { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); transition: border-color .2s; }
.distingue-item:hover { border-color: var(--sage-soft); }
.di-icon { width: 38px; height: 38px; background: rgba(184,201,176,.18); flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(184,201,176,.3); }
.di-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--sage-soft); stroke-width: 1.8; }
.di-title { font-size: 13px; font-weight: 700; color: var(--cream); margin-bottom: 4px; }
.di-text { font-size: 12px; color: rgba(245,244,240,.52); line-height: 1.6; }

/* ============================================
   AMIANTE / 2 COLONNES
============================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.col-photo { background: #c0c8b8; min-height: 320px; position: relative; overflow: hidden; }
.col-photo img { width: 100%; height: 100%; object-fit: cover; }
.col-photo-placeholder { width: 100%; height: 100%; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,.55); gap: 12px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.col-photo-placeholder svg { width: 38px; height: 38px; fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.5; }
.col-content h2 { font-family: Georgia, serif; font-size: 24px; font-weight: 700; color: var(--text-dark); line-height: 1.4; margin-bottom: 16px; }
.col-content p { font-size: 14px; color: var(--text-mid); line-height: 1.8; margin-bottom: 30px; }
.btn-dark { display: inline-flex; align-items: center; gap: 10px; background: var(--sage-dark); color: var(--cream); padding: 13px 26px; font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 600; transition: background .2s; }
.btn-dark:hover { background: var(--sage-mid); }

/* ============================================
   CLIENTS
============================================ */
.clients-bar { background: var(--sage-dark); padding: 48px 60px; text-align: center; }
.clients-label { font-size: 9.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--sage-soft); margin-bottom: 32px; }
.clients-logos { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.client-logo { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: rgba(245,244,240,.45); text-transform: uppercase; padding: 10px 18px; border: 1px solid rgba(255,255,255,.1); transition: all .2s; }
.client-logo:hover { color: var(--cream); border-color: rgba(255,255,255,.3); }

/* ============================================
   EXPERTISE DÉTAIL
============================================ */
.expertise-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.expertise-detail-item { padding: 48px 44px; }
.expertise-detail-item:nth-child(odd) { background: var(--cream); }
.expertise-detail-item:nth-child(even) { background: var(--sage-pale); }
.expertise-num { font-family: Georgia, serif; font-size: 48px; font-weight: 800; color: rgba(30,61,47,.1); line-height: 1; margin-bottom: 16px; }
.expertise-detail-title { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 14px; }
.expertise-detail-text { font-size: 13px; color: var(--text-mid); line-height: 1.8; }
.expertise-list { margin-top: 14px; list-style: none; }
.expertise-list li { font-size: 13px; color: var(--text-mid); line-height: 1.75; padding: 4px 0 4px 16px; position: relative; }
.expertise-list li::before { content: '—'; position: absolute; left: 0; color: var(--sage-soft); }

/* ============================================
   MÉTHODE STEPS
============================================ */
.methode-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.methode-step { background: rgba(255,255,255,.06); padding: 32px 28px; border-top: 2px solid rgba(184,201,176,.3); transition: border-color .2s; }
.methode-step:hover { border-top-color: var(--sage-soft); }
.methode-num { font-family: Georgia, serif; font-size: 40px; font-weight: 800; color: rgba(184,201,176,.25); line-height: 1; margin-bottom: 14px; }
.methode-title { font-size: 14px; font-weight: 700; color: var(--cream); margin-bottom: 10px; }
.methode-text { font-size: 12px; color: rgba(245,244,240,.55); line-height: 1.7; }

/* ============================================
   SPÉCIFICITÉ
============================================ */
.atouts-container { max-width: 800px; margin: 0 auto; }
.atout-item { display: grid; grid-template-columns: 80px 1fr; gap: 32px; align-items: start; padding: 40px 0; border-bottom: 1px solid #d4ddd0; }
.atout-item:last-child { border-bottom: none; }
.atout-num { font-family: Georgia, serif; font-size: 48px; font-weight: 800; color: rgba(30,61,47,.12); line-height: 1; }
.atout-content h3 { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.atout-content p { font-size: 14px; color: var(--text-mid); line-height: 1.8; }
.citation-block { background: var(--sage-dark); padding: 60px; text-align: center; border-top: 3px solid var(--sage-soft); border-bottom: 3px solid var(--sage-soft); }
.citation-text { font-family: Georgia, serif; font-size: 22px; font-style: italic; color: var(--cream); line-height: 1.6; max-width: 700px; margin: 0 auto; }
.citation-author { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage-soft); margin-top: 20px; }

/* ============================================
   VALEURS (QUI SOMMES-NOUS)
============================================ */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.value-item { background: var(--cream); padding: 28px 24px; border-top: 2px solid transparent; transition: border-color .2s; }
.value-item:hover { border-top-color: var(--sage-soft); }
.value-icon { width: 36px; height: 36px; margin-bottom: 14px; }
.value-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--sage-mid); stroke-width: 1.5; }
.value-title { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.value-text { font-size: 13px; color: #5a6a5e; line-height: 1.7; }

/* ============================================
   ÉQUIPE
============================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.team-card { text-align: center; }
.team-photo { background: #c0c8b8; height: 200px; margin-bottom: 16px; position: relative; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-name { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.team-role { font-size: 12px; color: var(--text-light); }

/* ============================================
   CONTACT
============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-field { margin-bottom: 28px; }
.form-field label { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage-mid); margin-bottom: 8px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 12px 0; background: transparent; border: none; border-bottom: 1px solid var(--sage-soft); outline: none; font-family: Arial, sans-serif; font-size: 14px; color: var(--text-dark); transition: border-color .2s; }
.form-field input:focus, .form-field textarea:focus { border-bottom-color: var(--sage-dark); }
.form-field textarea { resize: vertical; min-height: 120px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-info-icon { width: 40px; height: 40px; background: var(--sage-pale); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.contact-info-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--sage-mid); stroke-width: 1.8; }
.contact-info-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); margin-bottom: 4px; font-weight: 700; }
.contact-info-value { font-size: 14px; color: var(--text-dark); font-weight: 600; }

/* ============================================
   FOOTER
============================================ */
footer { background: var(--footer-bg); padding: 56px 60px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 26px; font-weight: 800; letter-spacing: 5px; color: var(--cream); margin-bottom: 10px; }
.footer-rule { width: 24px; height: 1.5px; background: var(--sage-soft); margin-bottom: 14px; }
.footer-desc { font-size: 12px; line-height: 1.85; color: rgba(245,244,240,.4); max-width: 220px; }
.footer-col-title { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--sage-soft); margin-bottom: 18px; font-weight: 700; }
.footer-link { display: block; font-size: 12px; color: rgba(245,244,240,.42); margin-bottom: 10px; transition: color .2s; }
.footer-link:hover { color: var(--sage-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(245,244,240,.28); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .hero, .two-col, .distingue-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-text { padding: 48px 32px; }
  .section { padding: 56px 32px; }
  .expertise-grid, .methode-steps, .values-grid { grid-template-columns: 1fr 1fr; }
  .expertise-detail { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-interior { padding: 56px 32px; }
  .atout-item { grid-template-columns: 60px 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .expertise-grid, .methode-steps, .values-grid, .team-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .clients-logos { gap: 12px; }
  .hero-h1 { font-size: 22px; }
  .citation-block { padding: 40px 32px; }
  .citation-text { font-size: 18px; }
}
