/*
Theme Name: DSC Batim
Theme URI: https://dscbatim.fr
Author: DSC Batim SARL
Author URI: https://dscbatim.fr
Description: Thème professionnel pour D.S.C BATIM SARL — Entreprise de BTP, Électricité et Hydraulique. Design élégant, moderne et clair.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Propriétaire
License URI: https://dscbatim.fr
Text Domain: dsc-batim
Tags: btp, construction, electricite, hydraulique, vitrine, one-page
*/

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

:root {
  --navy:        #1E2D4E;
  --navy-mid:    #243460;
  --navy-light:  #2E4480;
  --sky:         #3AA8D8;
  --sky-light:   #5DC0EE;
  --sky-dim:     rgba(58,168,216,0.12);
  --silver:      #8A9BB0;
  --light:       #F4F7FB;
  --light-2:     #EBF0F7;
  --light-3:     #DDE5F0;
  --light-4:     #CDD8E8;
  --text:        #1A2540;
  --text-muted:  #5A6E8A;
  --white:       #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--light-2); }
::-webkit-scrollbar-thumb { background: var(--sky); }

/* ================================================
   NAVIGATION
================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 60px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-3);
  box-shadow: 0 2px 24px rgba(30,45,78,0.06);
  transition: all 0.3s;
}

.site-header.scrolled {
  padding: 10px 60px;
  box-shadow: 0 4px 32px rgba(30,45,78,0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-dsc {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.2em;
  color: var(--sky);
}
.nav-logo-batim {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--navy);
}

.main-navigation ul {
  display: flex;
  gap: 40px;
}
.main-navigation a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--navy);
  border-bottom-color: var(--sky);
}

.nav-cta {
  padding: 12px 28px;
  background: var(--navy);
  border: none;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}
.nav-cta:hover { background: var(--sky); color: var(--white); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 680px; height: 680px;
  background: radial-gradient(ellipse at 60% 40%, rgba(58,168,216,0.13) 0%, rgba(30,45,78,0.06) 50%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  top: 0; right: 0;
  width: 52%;
  height: 100%;
  background-size: cover;
  background-position: center;
  clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-img-overlay {
  position: absolute;
  top: 0; right: 0;
  width: 52%;
  height: 100%;
  background: linear-gradient(to right, var(--light) 0%, rgba(244,247,251,0.15) 25%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 28px;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 36px; height: 2px;
  background: var(--sky);
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 7.5vw, 112px);
  line-height: 0.93;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin-bottom: 32px;
}
.hero-title em {
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  color: var(--sky);
  font-size: 0.88em;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 52px;
}

.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 52px;
  margin-top: 64px;
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  color: var(--navy);
  line-height: 1;
}
.stat-num span { color: var(--sky); font-size: 0.7em; }
.stat-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ================================================
   BOUTONS
================================================ */
.btn-primary {
  display: inline-block;
  padding: 18px 48px;
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sky);
  transform: translateX(-100%);
  transition: transform 0.4s;
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary span, .btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { color: var(--white); }

.btn-outline {
  display: inline-block;
  padding: 17px 36px;
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ================================================
   MÉTRIQUES
================================================ */
.metrics-band {
  background: var(--navy);
  padding: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.metric {
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.metric:last-child { border-right: none; }
.metric-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  color: var(--sky);
  line-height: 1;
}
.metric-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
}

/* ================================================
   SECTIONS — BASE
================================================ */
.section { padding: 110px 60px; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--sky);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--navy);
}
.section-title strong {
  font-weight: 600;
  font-style: italic;
  color: var(--sky);
}

/* ================================================
   SERVICES
================================================ */
.services-section { background: var(--light); }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
  flex-wrap: wrap;
  gap: 28px;
}
.services-desc {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s;
  border: 1px solid var(--light-3);
  box-shadow: 0 2px 16px rgba(30,45,78,0.05);
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--navy), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover {
  box-shadow: 0 12px 40px rgba(30,45,78,0.12);
  transform: translateY(-4px);
}

.service-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  color: var(--light-3);
  line-height: 1;
  position: absolute;
  top: 24px; right: 28px;
  transition: color 0.4s;
}
.service-card:hover .service-number { color: var(--sky-dim); }

.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 24px;
  color: var(--sky);
}
.service-icon svg { width: 100%; height: 100%; }

.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
}

.service-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color 0.3s;
}
.service-link:hover { color: var(--sky); }
.service-arrow {
  width: 24px; height: 1.5px;
  background: currentColor;
  position: relative;
  transition: width 0.3s;
  display: inline-block;
}
.service-link:hover .service-arrow { width: 40px; }
.service-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  border: 3px solid transparent;
  border-left: 5px solid currentColor;
}

/* ================================================
   RÉALISATIONS
================================================ */
.projects-section { background: var(--white); }

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 52px;
  flex-wrap: wrap;
  gap: 24px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 380px 280px;
  gap: 16px;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
}
.project-card:first-child { grid-row: 1 / 3; }

.project-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  filter: brightness(0.75) saturate(0.7);
}
.project-card:hover .project-img {
  transform: scale(1.05);
  filter: brightness(0.55) saturate(0.5);
}

.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,45,78,0.88) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.project-cat {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sky-light);
  margin-bottom: 8px;
}

.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.project-card:first-child .project-title { font-size: 38px; }

.project-hover-info {
  position: absolute; inset: 0;
  background: rgba(30,45,78,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.project-card:hover .project-hover-info { opacity: 1; }

.project-view-btn {
  padding: 14px 32px;
  border: 1.5px solid var(--white);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.project-view-btn:hover { background: var(--white); color: var(--navy); }

/* ================================================
   À PROPOS
================================================ */
.about-section {
  background: var(--light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  padding: 110px 60px;
}

.about-visual { position: relative; }

.about-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(30,45,78,0.14);
}
.about-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.8);
}

.about-frame {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 58%; height: 58%;
  border: 2px solid var(--sky);
  opacity: 0.25;
  pointer-events: none;
}

.about-badge {
  position: absolute;
  bottom: 32px; left: -32px;
  background: var(--navy);
  color: var(--white);
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(30,45,78,0.25);
}
.about-badge-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: var(--sky);
  line-height: 1;
  display: block;
}
.about-badge-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-top: 4px;
}

.about-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 44px;
}

.expertise-list { display: flex; flex-direction: column; gap: 18px; }
.expertise-item { display: flex; flex-direction: column; gap: 8px; }
.expertise-header { display: flex; justify-content: space-between; align-items: center; }
.expertise-name { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.expertise-pct { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--sky); }
.expertise-bar { height: 2px; background: var(--light-3); position: relative; border-radius: 2px; }
.expertise-fill { position: absolute; top: 0; left: 0; bottom: 0; background: linear-gradient(to right, var(--navy), var(--sky)); border-radius: 2px; }

/* ================================================
   TÉMOIGNAGES
================================================ */
.testimonials-section {
  background: var(--navy);
  padding: 110px 60px;
  text-align: center;
}

.testimonials-section .section-tag { justify-content: center; color: var(--sky-light); }
.testimonials-section .section-tag::before { display: none; }
.testimonials-section .section-title { color: var(--white); }
.testimonials-section .section-title strong { color: var(--sky-light); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  padding: 48px 40px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s, background 0.3s;
}
.testimonial-card:hover {
  border-color: var(--sky);
  background: rgba(58,168,216,0.06);
}

.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  color: var(--sky);
  opacity: 0.35;
  line-height: 0.6;
  margin-bottom: 20px;
}

.testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin-bottom: 32px;
}

.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--sky); overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 13px; font-weight: 500; color: var(--white); }
.author-role { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.author-stars { margin-left: auto; color: var(--sky); font-size: 13px; letter-spacing: 2px; }

/* ================================================
   CONTACT
================================================ */
.contact-section {
  background: var(--light);
  padding: 100px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.contact-big-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.95;
  color: var(--navy);
  margin-top: 12px;
}
.contact-big-title span { color: var(--sky); }

.contact-info-list { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--light-3);
  border-left: 3px solid var(--sky);
  transition: box-shadow 0.3s;
}
.contact-info-item:hover { box-shadow: 0 4px 16px rgba(30,45,78,0.08); }
.contact-info-item svg { color: var(--sky); flex-shrink: 0; width: 18px; height: 18px; }

/* ================================================
   FOOTER
================================================ */
.site-footer {
  background: var(--navy-mid);
  padding: 52px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { height: 44px; }
.footer-logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--white);
}
.footer-logo-name span { color: var(--sky); }

.footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); letter-spacing: 0.05em; }

.footer-nav { display: flex; gap: 28px; }
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--sky); }

/* ================================================
   ANIMATIONS
================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-up { opacity: 0; transition: opacity 0.7s, transform 0.7s; transform: translateY(32px); }
.animate-up.visible { opacity: 1; transform: translateY(0); }

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1024px) {
  .site-header { padding: 14px 32px; }
  .site-header.scrolled { padding: 10px 32px; }
  .hero { padding: 120px 32px 80px; }
  .hero-bg-image { width: 44%; }
  .hero-img-overlay { width: 44%; }
  .section { padding: 80px 32px; }
  .metrics-band { padding: 40px 32px; grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .projects-grid .project-card:first-child { grid-row: auto; height: 400px; }
  .projects-grid .project-card { height: 280px; }
  .about-section { grid-template-columns: 1fr; gap: 60px; padding: 80px 32px; }
  .about-badge { left: 0; }
  .testimonials-section { padding: 80px 32px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .contact-section { padding: 72px 32px; }
  .site-footer { padding: 40px 32px; }
}

@media (max-width: 768px) {
  .site-header { padding: 14px 20px; }
  .main-navigation, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .main-navigation.open {
    display: block;
    position: fixed;
    top: 80px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 40px 24px;
    z-index: 99;
  }
  .main-navigation.open ul { flex-direction: column; gap: 24px; }
  .main-navigation.open a { font-size: 18px; letter-spacing: 0.1em; }
  .hero { padding: 100px 20px 80px; flex-direction: column; justify-content: center; }
  .hero-bg-image, .hero-img-overlay { display: none; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .metrics-band { padding: 32px 20px; }
  .section { padding: 60px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-section { padding: 60px 20px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 60px 20px; }
  .site-footer { padding: 32px 20px; flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }
}
