/* ============================================================
   LECLERCQ TP - Feuille de styles principale
   Charte graphique : Graphite / Bleu grisé / Jaune TP / Mulish
   ============================================================ */

:root {
  --graphite: #252130;
  --grey-blue: #a0b1b7;
  --yellow-tp: #ffc741;
  --white: #ffffff;
  --off-white: #f4f5f6;
  --dark-overlay: rgba(37, 33, 48, 0.88);
  --yellow-soft: rgba(255, 199, 65, 0.12);
}

/* ============ RESET ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Mulish', sans-serif;
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { transition: color 0.2s; }

/* ============ NAVIGATION ============ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--graphite);
  padding: 0 2rem;
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 4px 24px rgba(37, 33, 48, 0.3); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-weight: 900; font-size: 1.5rem; color: var(--white);
  text-decoration: none; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 0.1rem;
}
.nav-logo .dot { color: var(--yellow-tp); font-size: 2rem; line-height: 1; }
.nav-logo .tp  { color: var(--yellow-tp); }

.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a {
  color: var(--grey-blue); text-decoration: none; font-size: 0.88rem;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--yellow-tp);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--yellow-tp) !important; color: var(--graphite) !important;
  padding: 0.55rem 1.4rem !important; border-radius: 4px;
  font-weight: 800 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 199, 65, 0.4);
}
.nav-cta::after { display: none !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; }

/* ============ BOUTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; font-family: 'Mulish', sans-serif;
  font-size: 0.95rem; font-weight: 800; text-decoration: none;
  border: none; cursor: pointer; border-radius: 4px;
  transition: all 0.25s; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-primary {
  background: var(--yellow-tp); color: var(--graphite);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 199, 65, 0.35);
  color: var(--graphite);
}
.btn-secondary {
  background: transparent; color: var(--white);
  border: 2px solid var(--grey-blue);
}
.btn-secondary:hover {
  border-color: var(--yellow-tp); color: var(--yellow-tp);
}
.btn-secondary--dark {
  border-color: var(--graphite); color: var(--graphite);
}
.btn-secondary--dark:hover {
  border-color: var(--yellow-tp); color: var(--graphite);
}

/* ============ SECTIONS COMMUNES ============ */
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--yellow-tp);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before {
  content: ''; width: 32px; height: 3px; background: var(--yellow-tp);
}
.section-label--center { justify-content: center; }

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900;
  color: var(--graphite); line-height: 1.1; margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-title--white { color: var(--white); }

.section-subtitle {
  font-size: 1.1rem; color: var(--grey-blue); max-width: 600px;
  margin-bottom: 3.5rem; font-weight: 400;
}

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--graphite);
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 80px,
      rgba(255, 199, 65, 0.04) 80px,
      rgba(255, 199, 65, 0.04) 82px
    ),
    radial-gradient(ellipse at 70% 30%, rgba(160, 177, 183, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 199, 65, 0.08) 0%, transparent 50%);
}

.hero-lines {
  position: absolute; bottom: 0; left: 0; right: 0; height: 6px;
  background: var(--yellow-tp);
}
.hero-lines::before {
  content: ''; position: absolute; bottom: 14px; left: 0; right: 0;
  height: 2px; background: var(--yellow-tp); opacity: 0.4;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 8rem 2rem 6rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 199, 65, 0.12); border: 1px solid rgba(255, 199, 65, 0.25);
  padding: 0.4rem 1rem; border-radius: 2px; margin-bottom: 2rem;
  font-size: 0.8rem; font-weight: 700; color: var(--yellow-tp);
  text-transform: uppercase; letter-spacing: 0.1em;
  animation: fadeInDown 0.8s ease-out;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px; background: var(--yellow-tp);
  border-radius: 1px; transform: rotate(45deg);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900;
  color: var(--white); line-height: 1.05; margin-bottom: 1.5rem;
  letter-spacing: -0.02em; max-width: 800px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero h1 em {
  font-style: normal; color: var(--yellow-tp);
  position: relative;
}
.hero h1 em::after {
  content: ''; position: absolute; bottom: 0.05em; left: 0; right: 0;
  height: 4px; background: var(--yellow-tp); opacity: 0.3;
}

.hero-baseline {
  font-size: 1.35rem; color: var(--grey-blue); max-width: 600px;
  margin-bottom: 3rem; font-weight: 400; line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
  display: flex; gap: 3rem; margin-top: 4rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(160, 177, 183, 0.2);
  animation: fadeInUp 0.8s ease-out 0.8s both;
}
.hero-stat strong {
  display: block; font-size: 2.2rem; font-weight: 900;
  color: var(--yellow-tp); line-height: 1;
}
.hero-stat span {
  font-size: 0.82rem; color: var(--grey-blue); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ============ SERVICES ============ */
.services {
  padding: 7rem 2rem;
  background: var(--off-white);
  position: relative;
}
.services::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow-tp) 0%, var(--yellow-tp) 30%, transparent 30%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 6px;
  border: 1px solid rgba(160, 177, 183, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37, 33, 48, 0.1);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--yellow-tp);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleY(1); }

.service-icon {
  width: 52px; height: 52px; border-radius: 4px;
  background: var(--yellow-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.2rem; font-weight: 800; margin-bottom: 0.75rem;
  color: var(--graphite);
}
.service-card p {
  font-size: 0.92rem; color: #6b7280; line-height: 1.65;
}

/* ============ ABOUT ============ */
.about {
  padding: 7rem 2rem;
  background: var(--graphite);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.about::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: var(--yellow-tp);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  font-size: 1.05rem; line-height: 1.75; color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.strengths {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}

.strength-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(160, 177, 183, 0.15);
  border-radius: 6px; padding: 1.5rem;
  transition: border-color 0.3s;
}
.strength-item:hover { border-color: var(--yellow-tp); }

.strength-item h4 {
  font-size: 0.95rem; font-weight: 800; color: var(--yellow-tp);
  margin-bottom: 0.5rem;
}
.strength-item p {
  font-size: 0.85rem; color: var(--grey-blue); line-height: 1.5;
  margin-bottom: 0;
}

/* ============ CLIENTS ============ */
.clients {
  padding: 5rem 2rem;
  background: var(--off-white);
  text-align: center;
}

.clients-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap; margin-top: 3rem;
}

.client-logo {
  background: var(--white);
  padding: 1.2rem 2rem;
  border-radius: 6px;
  border: 1px solid rgba(160, 177, 183, 0.2);
  font-weight: 800; font-size: 1rem;
  color: var(--graphite); letter-spacing: 0.02em;
  transition: border-color 0.3s, transform 0.3s;
}
.client-logo:hover {
  border-color: var(--yellow-tp);
  transform: translateY(-2px);
}

/* ============ CTA SECTION ============ */
.cta-section {
  padding: 6rem 2rem;
  background: var(--white);
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px; background: var(--yellow-tp);
}

.cta-section .section-subtitle {
  max-width: 550px; margin-left: auto; margin-right: auto;
}

.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.cta-address {
  margin-top: 2rem; font-size: 0.85rem; color: var(--grey-blue);
}
.cta-address a {
  color: var(--yellow-tp); font-weight: 700; text-decoration: none;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--graphite);
  color: var(--grey-blue);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  font-size: 0.88rem; line-height: 1.6; max-width: 320px;
  color: var(--grey-blue); margin-top: 1rem;
}

.footer-col h4 {
  color: var(--white); font-size: 0.82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--yellow-tp);
  display: inline-block;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: var(--grey-blue); text-decoration: none; font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--yellow-tp); }

.footer-bottom {
  max-width: 1200px; margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(160, 177, 183, 0.15);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
}

/* ============ PAGE GENERIQUE ============ */
.page-content {
  max-width: 800px; margin: 0 auto;
  padding: 8rem 2rem 4rem;
}
.page-content h1 {
  font-size: 2.4rem; font-weight: 900; margin-bottom: 1.5rem;
  color: var(--graphite);
}
.page-content p { margin-bottom: 1rem; line-height: 1.75; }

/* ============ 404 ============ */
.error-404 {
  min-height: 80vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  padding: 2rem;
}
.error-404 h1 {
  font-size: 6rem; font-weight: 900; color: var(--yellow-tp);
  line-height: 1;
}
.error-404 p {
  font-size: 1.2rem; color: var(--grey-blue); margin: 1rem 0 2rem;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex !important; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--graphite); padding: 2rem;
    border-top: 2px solid var(--yellow-tp);
    gap: 1.2rem;
  }
  .services-grid { grid-template-columns: 1fr; }
  .strengths { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
}
