/* ========================================
   Clairin Électricité — styles.css
   Couleurs: Bleu #1a3a6b + Jaune #f5b731
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark: #1a3a6b;
  --blue-mid: #2a5298;
  --blue-light: #e8eef7;
  --yellow: #f5b731;
  --yellow-hover: #e0a31e;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-200: #e2e5ea;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #1f2937;
  --text: #2d3748;
  --text-light: #64748b;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --transition: .3s ease;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--blue-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--yellow); }

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Sale Banner --- */
.sale-banner {
  background: var(--yellow);
  color: var(--gray-800);
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sale-banner span { white-space: nowrap; }

.sale-banner form { display: inline-flex; margin: 0; }

.sale-banner .escrow-btn {
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  padding: 6px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}

.sale-banner .escrow-btn:hover { background: var(--blue-mid); }

/* --- Navigation --- */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 44px;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}

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

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

.nav-links a:hover { color: var(--blue-dark); }

.nav-cta {
  background: var(--yellow) !important;
  color: var(--gray-800) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--yellow-hover) !important; }

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

.burger span {
  width: 26px;
  height: 3px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 60px 0;
}

.hero h1 {
  font-size: 42px;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 700;
}

.hero h1 span { color: var(--yellow); }

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Small hero for inner pages */
.hero-small {
  min-height: 320px;
}

.hero-small h1 { font-size: 36px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--yellow);
  color: var(--gray-800);
}

.btn-primary:hover {
  background: var(--yellow-hover);
  color: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245,183,49,.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--blue-dark);
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
}

.btn-outline:hover {
  background: var(--blue-dark);
  color: var(--white);
}

/* --- Sections --- */
section { padding: 80px 0; }

.section-title {
  font-size: 32px;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 16px;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 50px;
}

.bg-light { background: var(--gray-50); }
.bg-blue { background: var(--blue-dark); color: var(--white); }

/* --- Services Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
}

.service-card h3 {
  font-size: 20px;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 16px;
}

.service-card .card-link {
  font-weight: 600;
  color: var(--yellow);
  font-size: 15px;
}

.service-card .card-link:hover { color: var(--yellow-hover); }

/* --- Features / Why Us --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  color: var(--blue-dark);
}

.feature-item h3 {
  font-size: 18px;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-light);
  font-size: 15px;
}

/* --- CTA Section (with background image) --- */
.cta-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: var(--blue-dark);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 32px;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,.8);
  font-size: 18px;
  margin-bottom: 30px;
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body { padding: 24px; }

.blog-card-date {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 19px;
  color: var(--blue-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--yellow); }

.blog-card p {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 16px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs a { color: var(--blue-mid); }
.breadcrumbs a:hover { color: var(--yellow); }
.breadcrumbs span { margin: 0 8px; color: var(--gray-400); }

/* --- Article --- */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 0;
}

.article-content h1 {
  font-size: 34px;
  color: var(--blue-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-meta {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 30px;
}

.article-content h2 {
  font-size: 24px;
  color: var(--blue-dark);
  margin: 36px 0 14px;
}

.article-content h3 {
  font-size: 20px;
  color: var(--blue-mid);
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin: 18px 0;
  padding-left: 28px;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 {
  font-size: 28px;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--text-light);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 15px;
  color: var(--blue-dark);
  margin-bottom: 2px;
}

.contact-detail p {
  margin: 0;
  font-size: 14px;
}

/* Services detail list */
.services-detail-list {
  display: grid;
  gap: 24px;
}

.service-detail-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.service-detail-item .sdi-icon {
  width: 52px;
  height: 52px;
  background: var(--yellow);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.service-detail-item h3 {
  font-size: 18px;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.service-detail-item p {
  color: var(--text-light);
  font-size: 15px;
}

/* --- Zone Intervention --- */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.zone-item {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--yellow);
}

.zone-item h3 {
  color: var(--blue-dark);
  font-size: 17px;
}

/* --- Footer --- */
.footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.7);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer h4 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 18px;
}

.footer p { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }

.footer-links a {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  padding: 4px 0;
}

.footer-links a:hover { color: var(--yellow); }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

/* --- Disclaimer --- */
.disclaimer {
  font-size: 12px;
  color: #888;
  text-align: center;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  line-height: 1.6;
  background: rgba(0,0,0,.1);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero h1 { font-size: 34px; }
  .hero-small h1 { font-size: 28px; }
  .section-title { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
  }

  .nav-links.active { display: flex; }

  .burger { display: flex; }

  .hero { min-height: 400px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .hero-small { min-height: 250px; }

  section { padding: 50px 0; }
  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 16px; }

  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .article-content h1 { font-size: 26px; }
  .article-hero-img { height: 250px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .sale-banner { font-size: 12px; padding: 8px 12px; gap: 8px; }
  .sale-banner .escrow-btn { padding: 5px 12px; font-size: 12px; }
  .zone-grid { grid-template-columns: 1fr; }
}
