/* ============================
   BOUAAZA TRAVAUX PROFESSIONNELS
   Global Stylesheet
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary: #1a1a1a;
  --accent: #c8922a;
  --accent-light: #e8b060;
  --cream: #f5f0e8;
  --white: #ffffff;
  --gray-light: #f0ece4;
  --gray-mid: #9a9080;
  --text: #2d2920;
  --text-muted: #7a7060;
  --shadow: 0 4px 30px rgba(0,0,0,0.12);
  --shadow-strong: 0 8px 50px rgba(0,0,0,0.2);
  --radius: 4px;
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  color: var(--primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.75; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

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

.section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1.2rem;
}

.section-desc {
  max-width: 540px;
  margin-bottom: 3rem;
}

/* ---- NAVIGATION ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  background: transparent;
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(250, 246, 238, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 0.9rem 0;
}

nav:not(.scrolled) .logo-name {
  color: var(--white);
}

nav:not(.scrolled) .logo-sub {
  color: var(--accent-light);
}

nav:not(.scrolled) .nav-links a {
  color: rgba(255,255,255,0.92);
}

nav:not(.scrolled) .nav-links a.active {
  color: var(--accent-light);
}

nav:not(.scrolled) .nav-links a::after {
  background: var(--accent-light);
}

nav:not(.scrolled) .hamburger span {
  background: var(--white);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  transition: var(--transition) !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #b07820;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,146,42,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,146,42,0.35);
}

/* ---- FOOTER ---- */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 0 2rem;
}

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

.footer-brand .logo-name { color: var(--white); }

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--accent-light); }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
  align-items: flex-start;
}

.footer-contact-item .icon {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}

/* ---- UTILITY ---- */
.gold-line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(200,146,42,0.12);
  color: var(--accent);
  border: 1px solid rgba(200,146,42,0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---- PAGE HEADER ---- */
.page-header {
  padding-top: 130px;
  padding-bottom: 4rem;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,146,42,0.15), transparent 70%);
}

.page-header .container { position: relative; }

.page-header .section-label { color: var(--accent-light); }

.page-header h1 { color: var(--white); }

.page-header p { color: rgba(255,255,255,0.6); max-width: 520px; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 72px;
    background: rgba(250,246,238,0.98);
    backdrop-filter: blur(12px);
    padding: 3rem 2rem;
    gap: 1.5rem;
    z-index: 999;
  }

  .nav-links.open a { font-size: 1.4rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
