/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --gray: #333333;
  --gray2: #555555;
  --gray3: #888888;
  --light: #cccccc;
  --white: #f5f5f5;
  --accent: #c8a96e;
  --accent2: #e8c97e;
  --accent-dark: #8a7040;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--black);
  color: var(--light);
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 1.2rem 0;
  background: transparent;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(10,10,10,0.97);
  border-bottom-color: rgba(200,169,110,0.2);
  padding: 0.8rem 0;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 0; text-decoration: none; line-height: 1; }
.logo-img { height: 52px; filter: brightness(0) invert(1); }
.footer-brand .logo-img { height: 44px; }

.nav-links { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--light); font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }

.btn-nav {
  background: var(--accent) !important;
  color: var(--black) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
  font-weight: 700 !important;
  transition: background 0.3s !important;
}
.btn-nav:hover { background: var(--accent2) !important; color: var(--black) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--accent); transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  background: linear-gradient(160deg, #0a0a0a 0%, #111 40%, #0d0d0d 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(200,169,110,0.08) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px);
}

.hero::after {
  content: 'DIREX';
  position: absolute; right: -2rem; bottom: 5rem;
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 18vw;
  color: rgba(255,255,255,0.02); line-height: 1; pointer-events: none;
  letter-spacing: -1rem;
}

.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
}

.hero-tagline {
  font-size: 0.8rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem; font-weight: 600;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  line-height: 1.05; color: var(--white);
  margin-bottom: 2rem;
}

.accent { color: var(--accent); }

.hero-desc {
  max-width: 550px; font-size: 1.05rem; line-height: 1.8;
  color: var(--gray3); margin-bottom: 3rem;
}

.hero-btns { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-block; padding: 1rem 2.5rem;
  background: var(--accent); color: var(--black);
  text-decoration: none; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 2px; transition: all 0.3s;
  border: 2px solid var(--accent);
}
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(200,169,110,0.3); }

.btn-outline {
  display: inline-block; padding: 1rem 2.5rem;
  background: transparent; color: var(--white);
  text-decoration: none; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 2px; border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-stats {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 2rem 2rem 4rem;
  display: flex; align-items: center; gap: 3rem;
}

.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 2.2rem; color: var(--white); }
.stat-label { font-size: 0.75rem; letter-spacing: 1px; color: var(--gray3); text-transform: uppercase; }
.stat-divider { width: 1px; height: 50px; background: rgba(200,169,110,0.3); }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag { font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); font-weight: 600; display: block; margin-bottom: 1rem; }
.section-header h2 { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 1.2rem; }
.underline { width: 60px; height: 3px; background: var(--accent); margin: 0 auto; }

/* ===== SERVICES ===== */
.services { padding: 6rem 0; background: var(--dark); }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px;
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.1);
}

.service-card {
  background: var(--dark2); padding: 3rem 2rem;
  transition: all 0.3s; cursor: default;
  position: relative; overflow: hidden;
}

.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 3px; background: var(--accent);
  transition: width 0.4s ease;
}

.service-card:hover { background: var(--dark3); transform: translateY(-3px); }
.service-card:hover::before { width: 100%; }
.service-card.featured { background: var(--dark3); }
.service-card.featured::before { width: 100%; }

.service-icon { font-size: 2.2rem; color: var(--accent); margin-bottom: 1.5rem; display: block; }
.service-card h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: 1rem; }
.service-card p { font-size: 0.9rem; line-height: 1.8; color: var(--gray3); }

/* ===== CHIFFRES ===== */
.chiffres {
  padding: 5rem 0;
  background: var(--accent);
}

.chiffres-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.chiffre-num { display: block; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 3rem; color: var(--black); }
.chiffre-label { display: block; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(0,0,0,0.6); margin-top: 0.5rem; font-weight: 600; }

/* ===== PROJETS ===== */
.projets { padding: 6rem 0; background: var(--black); }

.projets-construction { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; padding: 4rem 0; color: var(--gray3); font-size: 0.9rem; letter-spacing: 1.5px; text-transform: uppercase; }

.projets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.projet-card.large { grid-column: span 2; }

.projet-img {
  height: 300px; position: relative; overflow: hidden;
  border: 1px solid var(--gray);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.projet-card.large .projet-img { height: 350px; }

.projet-icon { font-size: 4rem; opacity: 0.15; transition: opacity 0.3s; }
.projet-card:hover .projet-icon { opacity: 0.05; }

.projet-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, transparent 100%);
  transform: translateY(30px); opacity: 0.7;
  transition: all 0.4s;
}

.projet-card:hover .projet-overlay { transform: translateY(0); opacity: 1; }

.projet-tag { display: inline-block; background: var(--accent); color: var(--black); font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 0.2rem 0.7rem; margin-bottom: 0.7rem; }
.projet-overlay h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: 0.3rem; }
.projet-overlay p { font-size: 0.8rem; color: var(--gray3); margin-bottom: 0.8rem; }

.btn-projet { color: var(--accent); font-size: 0.8rem; font-weight: 700; text-decoration: none; letter-spacing: 1px; transition: color 0.3s; }
.btn-projet:hover { color: var(--accent2); }

/* ===== PROCESSUS ===== */
.processus { padding: 6rem 0; background: var(--dark); }

.processus-steps {
  display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
  justify-content: center; margin-top: 1rem;
}

.step {
  flex: 1; min-width: 180px; max-width: 220px;
  background: var(--dark2); padding: 2.5rem 1.5rem;
  border: 1px solid var(--gray);
  border-top: 3px solid var(--accent);
  transition: all 0.3s;
}
.step:hover { background: var(--dark3); transform: translateY(-5px); }

.step-num {
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 3rem;
  color: rgba(200,169,110,0.15); line-height: 1; margin-bottom: 1rem; display: block;
}
.step h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--white); margin-bottom: 0.8rem; }
.step p { font-size: 0.85rem; line-height: 1.7; color: var(--gray3); }

.step-arrow { color: var(--accent); font-size: 1.5rem; margin-top: 4rem; opacity: 0.5; }

/* ===== EQUIPE ===== */
.equipe { padding: 6rem 0; background: var(--black); }

.equipe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.equipe-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 700px; width: 100%; margin-left: auto; margin-right: auto; }

.membre-card {
  background: var(--dark2); padding: 2.5rem 1.5rem; text-align: center;
  border: 1px solid var(--gray); transition: all 0.3s;
  position: relative; overflow: hidden;
}
.membre-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.4s;
}
.membre-card:hover { transform: translateY(-5px); border-color: rgba(200,169,110,0.3); }
.membre-card:hover::after { transform: scaleX(1); }

.membre-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--gray); color: var(--accent);
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem; border: 2px solid rgba(200,169,110,0.3);
}
.membre-card h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; color: var(--white); margin-bottom: 0.3rem; }
.membre-role { font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-weight: 600; display: block; margin-bottom: 1rem; }
.membre-desc { font-size: 0.82rem; line-height: 1.7; color: var(--gray3); margin-bottom: 1.2rem; }
.membre-socials a { display: inline-block; width: 32px; height: 32px; border: 1px solid var(--gray); color: var(--gray3); font-size: 0.7rem; font-weight: 700; text-decoration: none; line-height: 32px; transition: all 0.3s; }
.membre-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ===== TEMOIGNAGES ===== */
.temoignages { padding: 6rem 0; background: var(--dark); }

.temoignages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.temoignage-card {
  background: var(--dark2); padding: 2.5rem;
  border: 1px solid var(--gray); position: relative;
  transition: all 0.3s;
}
.temoignage-card:hover { border-color: rgba(200,169,110,0.3); transform: translateY(-3px); }

.quote-icon { font-size: 4rem; color: var(--accent); opacity: 0.3; line-height: 1; font-family: Georgia, serif; margin-bottom: -1rem; display: block; }
.temoignage-card > p { font-size: 0.9rem; line-height: 1.8; color: var(--gray3); margin-bottom: 2rem; font-style: italic; }

.temoignage-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 45px; height: 45px; border-radius: 50%; background: var(--gray); color: var(--accent); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.temoignage-author strong { display: block; color: var(--white); font-size: 0.9rem; }
.temoignage-author span { font-size: 0.75rem; color: var(--gray3); }

/* ===== CONTACT ===== */
.contact { padding: 6rem 0; background: var(--black); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: start; }

.contact-info .section-tag { text-align: left; }
.contact-info h2 { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--white); margin-bottom: 1.2rem; }
.contact-info .underline { margin: 0 0 2rem; }
.contact-desc { font-size: 0.95rem; line-height: 1.8; color: var(--gray3); margin-bottom: 2.5rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(200,169,110,0.1); border: 1px solid rgba(200,169,110,0.25); border-radius: 8px; flex-shrink: 0; color: var(--accent); }
.contact-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-item strong { display: block; color: var(--white); font-size: 0.85rem; margin-bottom: 0.2rem; font-weight: 700; letter-spacing: 0.5px; }
.contact-item p { font-size: 0.85rem; color: var(--gray3); }
.contact-item a { text-decoration: none; color: var(--white); transition: color 0.2s; }
.contact-item a:hover { color: var(--accent); }

.contact-form { background: var(--dark2); padding: 3rem; border: 1px solid var(--gray); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.form-group label { font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray3); font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark); border: 1px solid var(--gray);
  color: var(--white); padding: 0.85rem 1rem;
  font-family: 'Raleway', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.3s; border-radius: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--dark2); }
.form-group textarea { resize: vertical; }
.btn-full { width: 100%; text-align: center; cursor: pointer; font-family: 'Raleway', sans-serif; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); border-top: 1px solid rgba(200,169,110,0.2); padding: 4rem 0 0; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }

.footer-brand .logo { margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; color: var(--gray3); margin: 1.2rem 0 1.5rem; max-width: 280px; }
.footer-socials { display: flex; gap: 0.7rem; }
.footer-socials a { display: inline-block; width: 36px; height: 36px; border: 1px solid var(--gray); color: var(--gray3); font-size: 0.7rem; font-weight: 700; text-decoration: none; line-height: 36px; text-align: center; text-transform: uppercase; transition: all 0.3s; }
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }

.footer-links h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { text-decoration: none; font-size: 0.85rem; color: var(--gray3); transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--gray); padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--gray3); }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { font-size: 0.8rem; color: var(--gray3); text-decoration: none; transition: color 0.3s; }
.footer-legal a:hover { color: var(--accent); }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .equipe-grid { grid-template-columns: repeat(2, 1fr); }
  .chiffres-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,10,10,0.98); padding: 2rem; gap: 1.5rem; border-top: 1px solid rgba(200,169,110,0.2); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .projets-grid { grid-template-columns: 1fr; }
  .projet-card.large { grid-column: span 1; }
  .temoignages-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .processus-steps { flex-direction: column; align-items: center; }
  .step-arrow { display: none; }
  .equipe-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .equipe-grid { grid-template-columns: 1fr; }
  .chiffres-grid { grid-template-columns: 1fr; }
}
