/* === Electro Services Laurent — CSS === */

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

:root {
  --dark: #1a1a2e;
  --darker: #0f0f1a;
  --mid: #16213e;
  --yellow: #f7c523;
  --yellow-dark: #d4a91e;
  --yellow-light: #fde88a;
  --gray-dark: #2d2d44;
  --gray: #6b7280;
  --gray-light: #4a4a6a;
  --white: #ffffff;
  --light: #f4f4f8;
  --border: #e5e7eb;
  --text: #1f2937;
  --shadow: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.2);
  --radius: 10px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.65; background: var(--white); overflow-x: hidden; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 6px; font-weight: 700;
  font-size: .9rem; cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary { background: var(--yellow); color: var(--darker); }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(247,197,35,.4); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--mid); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--darker);
  border-bottom: 1px solid rgba(247,197,35,.15);
  padding: 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 1.1rem; font-weight: 800; color: var(--white); display: flex; align-items: center; gap: 10px; letter-spacing: .01em; }
.logo-bolt { width: 36px; height: 36px; background: var(--yellow); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--darker); font-size: .9rem; }
.logo span { color: var(--yellow); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.65); font-weight: 500; font-size: .875rem;
  padding: 8px 14px; border-radius: 5px; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--yellow); }
.nav-cta { background: var(--yellow) !important; color: var(--darker) !important; font-weight: 700 !important; padding: 9px 20px !important; }
.nav-cta:hover { background: var(--yellow-dark) !important; color: var(--darker) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
  background: var(--darker); min-height: 100vh; padding-top: 68px;
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(247,197,35,.08) 0%, transparent 55%),
    url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=1920&q=50') center/cover;
  opacity: .25;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,15,26,.95) 0%, rgba(15,15,26,.5) 100%); }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--yellow); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px;
}
.hero-label::before { content: ''; width: 24px; height: 2px; background: var(--yellow); }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 900; color: var(--white); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,.7); margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; }
.h-stat strong { display: block; font-size: 2rem; font-weight: 900; color: var(--yellow); line-height: 1; }
.h-stat span { font-size: .75rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; }

/* Hero right side */
.hero-certifs { display: flex; flex-direction: column; gap: 16px; }
.certif-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(247,197,35,.2);
  border-radius: 12px; padding: 20px 24px;
  display: flex; gap: 16px; align-items: center;
  backdrop-filter: blur(8px);
}
.certif-card i { font-size: 1.75rem; color: var(--yellow); flex-shrink: 0; }
.certif-card h4 { color: var(--white); font-weight: 700; margin-bottom: 3px; font-size: .95rem; }
.certif-card p { font-size: .8rem; color: rgba(255,255,255,.5); margin: 0; }

/* SECTIONS */
.section { padding: 88px 0; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--dark); margin-bottom: 12px; letter-spacing: -.02em; }
.section-header h2.light { color: var(--white); }
.section-header p { color: var(--gray); font-size: .95rem; line-height: 1.7; }
.section-header p.light { color: rgba(255,255,255,.6); }
.section-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--yellow-dark); display: block; margin-bottom: 10px;
}
.section-label.light { color: var(--yellow); }

/* PRESTATIONS */
.prestations-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.presta-card {
  border-radius: 14px; overflow: hidden;
  background: var(--white); border: 1.5px solid var(--border);
  transition: var(--transition); position: relative;
}
.presta-card:hover { border-color: var(--yellow); box-shadow: 0 8px 32px rgba(247,197,35,.18); transform: translateY(-4px); }
.presta-header {
  background: var(--dark); padding: 28px; position: relative; overflow: hidden;
}
.presta-header::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--yellow);
}
.presta-icon { font-size: 2.25rem; color: var(--yellow); margin-bottom: 14px; }
.presta-header h3 { color: var(--white); font-weight: 800; font-size: 1.05rem; }
.presta-body { padding: 24px 28px; }
.presta-body p { font-size: .875rem; color: var(--gray); line-height: 1.65; margin-bottom: 18px; }
.presta-list { list-style: none; }
.presta-list li { font-size: .85rem; color: var(--text); padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.presta-list li:last-child { border: none; }
.presta-list i { color: var(--yellow-dark); font-size: .75rem; flex-shrink: 0; }

/* CHANTIERS */
.chantiers-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.chantier-card {
  border-radius: 12px; overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
  transition: var(--transition);
}
.chantier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.chantier-img { height: 180px; overflow: hidden; background: var(--gray-dark); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: 2.5rem; }
.chantier-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.chantier-card:hover .chantier-img img { transform: scale(1.05); }
.chantier-body { padding: 18px 20px; }
.chantier-body h4 { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.chantier-body p { font-size: .825rem; color: var(--gray); }
.chantier-tag {
  display: inline-block; background: rgba(247,197,35,.15); color: var(--yellow-dark);
  padding: 3px 10px; border-radius: 100px; font-size: .72rem; font-weight: 700;
  margin-bottom: 8px;
}

/* AVIS */
.avis-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.avis-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 28px; transition: var(--transition);
}
.avis-card:hover { border-color: var(--yellow); box-shadow: 0 6px 24px rgba(247,197,35,.12); }
.stars { color: var(--yellow); margin-bottom: 14px; letter-spacing: 2px; }
.avis-text { font-size: .875rem; color: var(--gray); line-height: 1.7; font-style: italic; margin-bottom: 18px; }
.avis-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--dark); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: .875rem; }
.author-loc { font-size: .78rem; color: var(--gray); }

/* CTA */
.cta-band { background: var(--yellow); padding: 64px 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 900; color: var(--darker); margin-bottom: 12px; }
.cta-band p { color: rgba(15,15,26,.65); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* PAGE HERO */
.page-hero { background: var(--darker); padding: 120px 0 60px; text-align: center; border-bottom: 2px solid rgba(247,197,35,.2); }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 900; color: var(--white); margin-bottom: 12px; }
.page-hero h1 span { color: var(--yellow); }
.page-hero p { color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; font-size: .8rem; color: rgba(255,255,255,.4); }
.breadcrumb a { color: rgba(255,255,255,.4); }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span { color: var(--yellow); }

/* CONTACT */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
.contact-sidebar h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.contact-sidebar p { color: var(--gray); line-height: 1.7; margin-bottom: 28px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.info-icon { width: 44px; height: 44px; background: rgba(247,197,35,.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--yellow-dark); flex-shrink: 0; font-size: 1rem; }
.info-item strong { display: block; font-weight: 700; margin-bottom: 3px; }
.info-item span { font-size: .875rem; color: var(--gray); }
.contact-form-box { background: var(--white); border-radius: 20px; padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.cf-group { margin-bottom: 18px; }
.cf-group label { display: block; font-size: .78rem; font-weight: 700; color: var(--darker); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.cf-group input,
.cf-group select,
.cf-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 7px;
  font-family: inherit; font-size: .875rem; color: var(--text);
  background: var(--light); transition: var(--transition);
}
.cf-group input:focus, .cf-group select:focus, .cf-group textarea:focus { outline: none; border-color: var(--yellow-dark); background: var(--white); box-shadow: 0 0 0 3px rgba(247,197,35,.15); }
.cf-group textarea { resize: vertical; min-height: 120px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* FOOTER */
.footer { background: var(--darker); color: rgba(255,255,255,.5); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 24px; }
.footer-brand p { margin-top: 14px; font-size: .875rem; max-width: 250px; line-height: 1.65; }
.footer-col h4 { color: var(--white); font-weight: 700; margin-bottom: 16px; font-size: .9rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .875rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--yellow); }
.footer-contact p { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; font-size: .875rem; }
.footer-contact i { color: var(--yellow); margin-top: 3px; flex-shrink: 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .78rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .prestations-grid, .avis-grid { grid-template-columns: repeat(2,1fr); }
  .chantiers-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-certifs { display: none; }
  .prestations-grid, .avis-grid, .chantiers-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; top: 0; right: -100%; bottom: 0; width: 260px;
    background: var(--darker); flex-direction: column;
    padding: 90px 24px 40px; gap: 6px;
    transition: right var(--transition);
    border-left: 1px solid rgba(247,197,35,.15);
  }
  .nav-links.open { right: 0; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 12px 8px; display: block; border-bottom: 1px solid rgba(255,255,255,.05); }
  .hamburger { display: flex; }
  .cf-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}
