/* ═══════════════════════════════════════════════
   CHEMS ENERGIES — style.css v2
   Typo: Montserrat (titres) + DM Sans (corps)
   Couleurs: #ddad12 (gold), #111 (noir), #fff (blanc)
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

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

:root {
  --gold: #ddad12;
  --gold-dark: #b8900a;
  --gold-light: #fdf3c0;
  --gold-pale: #faf6e8;
  --black: #0d0d0d;
  --white: #ffffff;
  --gray: #666;
  --gray-light: #f5f4f0;
  --border: #e8e4d8;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; outline: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.navbar {
  background: var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: var(--black);
  border-radius: 8px;
  padding: 3px;
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  max-width: 250px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--black);
  transition: width 0.25s;
}
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-menu a:hover { opacity: 0.65; }

.btn-devis-nav {
  background: var(--black);
  color: var(--gold)!important;
  padding: 11px 26px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-devis-nav:hover { background: var(--white); color: var(--black)!important; transform: translateY(-1px); }
.nav-menu a.btn-devis-nav::after { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--black); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  background: var(--gold);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  animation: fadeIn 0.25s ease;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-head);
  font-size: 26px; font-weight: 700;
  color: var(--black); letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.mobile-nav a:hover { opacity: 0.6; }
.mobile-nav .btn-devis-nav { font-size: 15px; padding: 14px 36px; margin-top: 10px; }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */

/* Noir → texte blanc / hover → blanc texte noir */
.btn-primary {
  background: var(--black);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }

/* Téléphone → noir/blanc, hover blanc/noir */
.btn-phone {
  background: var(--black);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-phone:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }

/* Gold */
.btn-gold {
  background: var(--gold);
  color: var(--black);
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-gold:hover { background: #c99d0e; transform: translateY(-2px); }

/* Outline sombre */
.btn-outline {
  background: transparent;
  color: var(--black);
  padding: 13px 28px;
  border-radius: 30px;
  border: 2px solid rgba(0,0,0,0.25);
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--black); transform: translateY(-2px); }

/* Outline blanc */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  padding: 13px 28px;
  border-radius: 30px;
  border: 2px solid rgba(255,255,255,0.3);
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.2s, transform 0.15s;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.8); transform: translateY(-2px); }

/* ══════════════════════════════════════════════
   SECTION LABELS — taille augmentée
══════════════════════════════════════════════ */
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ══════════════════════════════════════════════
   PAGE HERO BANNER
══════════════════════════════════════════════ */
.page-hero {
  background: var(--white);
  padding: 60px 80px 50px;
  border-bottom: 1px solid var(--border);
}
.page-hero .section-label { margin-bottom: 8px; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--black);
  line-height: 1.05;
}
.page-hero p { font-size: 16px; color: var(--gray); margin-top: 12px; max-width: 500px; }

/* ══════════════════════════════════════════════
   FOOTER — épuré
══════════════════════════════════════════════ */
footer {
  background: var(--black);
  padding: 44px 80px 28px;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-left { flex-shrink: 0; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo {
  width: 38px; height: 38px;
  border-radius: 8px; padding: 2px;
  border: 1px solid rgba(221,173,18,0.3);
  background: #111;
}
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 700;
  color: var(--white); line-height: 1.3;
}

.footer-socials {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.social-link:hover { border-color: var(--gold); background: rgba(221,173,18,0.1); }
.social-link svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.5); }
.social-link:hover svg { fill: var(--gold); }

.footer-info {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col-small h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer-col-small p,
.footer-col-small a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.85;
  display: block;
  transition: color 0.2s;
}
.footer-col-small a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.2); }

/* ══════════════════════════════════════════════
   WHATSAPP FLOAT
══════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 20px;
  background: #25d366;
  border-radius: 30px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 900;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 250px;
  color: white;
  font-family: var(--font-body);
}
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.whatsapp-float svg { width: 22px; height: 22px; fill: white; flex-shrink: 0; }
.whatsapp-float-text { line-height: 1.3; }
.whatsapp-float-text strong { display: block; font-size: 13px; font-weight: 700; }
.whatsapp-float-text small { font-size: 11px; opacity: 0.88; }

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

.anim-fadeup  { animation: fadeUp 0.6s ease both; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .navbar { padding: 0 32px; }
  footer  { padding: 36px 32px 22px; }
  .footer-info { gap: 36px; }
  .page-hero { padding: 48px 32px 40px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .nav-brand { max-width: 200px; font-size: 11px; }

  footer { padding: 32px 20px 20px; }
  .footer-main { flex-direction: column; gap: 28px; }
  .footer-info { flex-direction: column; gap: 24px; }

  .page-hero { padding: 36px 20px 32px; }
  .page-hero h1 { font-size: 32px; }
  .section-title { font-size: 26px; }
  .btn-primary, .btn-phone, .btn-gold, .btn-outline, .btn-outline-white { padding: 12px 22px; font-size: 13px; }
}

@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}
