/* ============================================================
   Solar Design Pro — Feuille de style
   ============================================================ */

:root {
  --orange: #f59e0b;
  --orange-dark: #d97706;
  --green: #16a34a;
  --green-dark: #15803d;
  --navy: #0f2540;
  --navy-soft: #1b3a5c;
  --ink: #1a2433;
  --muted: #5b6b7e;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-tint: #eef6f0;
  --line: #e4ebf2;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(15, 37, 64, 0.06);
  --shadow-md: 0 14px 40px rgba(15, 37, 64, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1180px;
  --transition: .25s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text { font-family: 'Poppins', sans-serif; line-height: 1.2; }

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

a { text-decoration: none; color: inherit; }

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

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 30px; border-radius: 999px;
  font-weight: 600; font-family: 'Poppins', sans-serif; font-size: .98rem;
  cursor: pointer; transition: var(--transition); border: 2px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; box-shadow: 0 10px 24px rgba(245,158,11,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(245,158,11,.45); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-icon {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff; border-radius: 11px; font-size: 1.2rem;
}
.brand-text { font-size: 1.3rem; color: var(--navy); letter-spacing: -.5px; }
.brand-accent { color: var(--orange); }
.brand-light .brand-text { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 9px 14px; border-radius: 9px; font-weight: 500; font-size: .95rem; color: var(--ink); transition: var(--transition); }
.main-nav a:hover { background: var(--bg-soft); color: var(--orange-dark); }
.nav-cta { background: var(--navy); color: #fff !important; }
.nav-cta:hover { background: var(--navy-soft); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: var(--transition); }

/* ===================== HERO ===================== */
.hero {
  position: relative; color: #fff; padding: 120px 0 110px;
  background:
    linear-gradient(rgba(8,22,40,.72), rgba(8,22,40,.78)),
    url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
}
.hero-content { max-width: 760px; }
.hero-eyebrow {
  display: inline-block; background: rgba(245,158,11,.2); color: #ffd27a;
  border: 1px solid rgba(245,158,11,.4); padding: 7px 16px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 20px; }
.hero-title .highlight { color: var(--orange); }
.hero-subtitle { font-size: 1.12rem; color: #dbe6f0; max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'Poppins', sans-serif; font-size: 2.1rem; font-weight: 800; color: var(--orange); }
.stat-label { font-size: .9rem; color: #c6d4e2; }

/* ===================== TRUST BAR ===================== */
.trust-bar { background: var(--navy); color: #fff; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 22px 24px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: .96rem; font-weight: 500; color: #dce6f1; }
.trust-ico { font-size: 1.2rem; }

/* ===================== SECTIONS ===================== */
.section { padding: 92px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-eyebrow { color: var(--orange-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: .82rem; margin-bottom: 12px; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.06rem; }

/* ===================== SERVICES CARDS ===================== */
.services { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: var(--transition);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card-media { height: 210px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: .5s ease; }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 26px 26px 30px; }
.card-tag {
  display: inline-block; background: var(--bg-tint); color: var(--green-dark);
  font-size: .78rem; font-weight: 700; padding: 5px 13px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px;
}
.card-body h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 10px; }
.card-body p { color: var(--muted); margin-bottom: 16px; font-size: .98rem; }
.card-link { color: var(--orange-dark); font-weight: 600; }
.card-link:hover { color: var(--orange); }

/* ===================== FEATURE ROWS ===================== */
.feature-alt { background: var(--bg-soft); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-media img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.feature-text .section-title { text-align: left; }
.feature-text > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; }
.check-list { list-style: none; margin-bottom: 30px; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 12px; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; background: var(--green); color: #fff;
  border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ===================== WHY ===================== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px; text-align: center; transition: var(--transition);
}
.why-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.why-ico { font-size: 2.4rem; margin-bottom: 16px; }
.why-item h3 { font-size: 1.18rem; color: var(--navy); margin-bottom: 10px; }
.why-item p { color: var(--muted); font-size: .96rem; }

/* ===================== ABOUT ===================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media img { width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-text .section-title { text-align: left; }
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.about-text strong { color: var(--ink); }

/* ===================== CTA BAND ===================== */
.cta-band {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff; text-align: center; padding: 70px 0;
}
.cta-inner h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 12px; }
.cta-inner p { font-size: 1.08rem; margin-bottom: 28px; opacity: .95; }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 28px; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.contact-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.contact-ico {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.7rem;
  background: var(--bg-tint);
}
.contact-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.contact-card p { color: var(--ink); font-weight: 600; margin-bottom: 16px; word-break: break-word; }
.contact-action { color: var(--orange-dark); font-weight: 600; font-size: .92rem; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy); color: #c6d4e2; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; font-size: .96rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: #c6d4e2; font-size: .95rem; transition: var(--transition); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom p { text-align: center; font-size: .9rem; color: #9bb0c6; }

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.7rem;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.5);
  transition: var(--transition); animation: pulse 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .cards, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-alt .feature-media, .about-media { order: -1; }
  .feature-media img, .about-media img { height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; top: 72px; right: 0; width: min(80%, 300px);
    height: calc(100vh - 72px); background: #fff; flex-direction: column;
    align-items: stretch; padding: 24px; gap: 6px; box-shadow: var(--shadow-md);
    transform: translateX(110%); transition: transform .3s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 13px 16px; border-radius: 10px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .section { padding: 64px 0; }
  .hero { padding: 90px 0 80px; }
  .hero-stats { gap: 28px; }
  .trust-inner { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .cards, .why-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
