/* =================================================================
   SMART-Z — Design System
   Lead Gen Solaire Tunisie
   ================================================================= */

:root {
  /* ---- Palette ---- */
  --night:      #0B2545;  /* bleu nuit — texte fort, fonds sombres */
  --night-2:    #13315C;  /* bleu nuit secondaire */
  --solar:      #FDB833;  /* jaune solaire — accent énergie */
  --solar-deep: #F59E0B;  /* jaune profond — hover */
  --cyan:       #2EC4B6;  /* cyan tech — accent smart */
  --cyan-deep:  #1FA89B;
  --ink:        #1A2238;  /* texte courant */
  --muted:      #5B6B85;  /* texte secondaire */
  --line:       #E4E9F2;  /* bordures */
  --paper:      #FFFFFF;  /* fond cartes */
  --canvas:     #F7F9FC;  /* fond page */
  --canvas-2:   #EEF3FA;

  /* ---- Type ---- */
  --display: "Space Grotesk", -apple-system, sans-serif;
  --body: "Inter", -apple-system, sans-serif;

  /* ---- Radius / shadow ---- */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(11,37,69,.08);
  --shadow: 0 8px 30px rgba(11,37,69,.10);
  --shadow-lg: 0 24px 60px rgba(11,37,69,.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); color: var(--night); line-height: 1.12; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Photovoltaic grid motif (signature) ---------- */
.pv-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 38px 38px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-solar { background: var(--solar); color: var(--night); box-shadow: 0 6px 20px rgba(253,184,51,.4); }
.btn-solar:hover { background: var(--solar-deep); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245,158,11,.5); }
.btn-night { background: var(--night); color: #fff; }
.btn-night:hover { background: var(--night-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--night); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--night); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1eb955; transform: translateY(-2px); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,249,252,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--night); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--solar), var(--solar-deep));
  display: grid; place-items: center; color: var(--night); font-size: 20px;
  box-shadow: 0 4px 14px rgba(253,184,51,.45);
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink); transition: color .15s; }
.nav a:hover { color: var(--cyan-deep); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; background: none; border: 0; font-size: 26px; color: var(--night); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image:
  linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 30%, transparent 75%); }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; padding: 80px 0 90px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); }
.hero h1 .hl { color: var(--solar); }
.hero p.lead { color: #C3D0E4; font-size: 19px; margin: 22px 0 32px; max-width: 540px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(46,196,182,.15); border: 1px solid rgba(46,196,182,.4); color: var(--cyan); font-size: 13px; font-weight: 600; padding: 7px 15px; border-radius: 999px; margin-bottom: 24px; font-family: var(--display); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 28px; margin-top: 40px; }
.hero-trust .it .n { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--solar); }
.hero-trust .it .l { font-size: 13px; color: #9FB1CC; }

/* hero card — quick quote */
.qcard { background: var(--paper); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-lg); color: var(--ink); }
.qcard h3 { font-size: 21px; margin-bottom: 6px; }
.qcard .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--night); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--body); font-size: 15px; background: var(--canvas); transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46,196,182,.15); background: #fff; }
.field-note { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-deep); margin-bottom: 12px; }
.section h2 { font-size: clamp(28px, 3.5vw, 40px); }
.section .intro { color: var(--muted); font-size: 18px; max-width: 620px; margin-top: 14px; }
.center { text-align: center; }
.center .intro { margin-left: auto; margin-right: auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2,1fr); }
.g-3 { grid-template-columns: repeat(3,1fr); }
.g-4 { grid-template-columns: repeat(4,1fr); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico { width: 52px; height: 52px; border-radius: 13px; background: var(--canvas-2); display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .price { font-family: var(--display); font-weight: 700; color: var(--cyan-deep); font-size: 15px; margin-top: 14px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--night); }
.card .more:hover { gap: 10px; color: var(--cyan-deep); }

/* step cards */
.step { position: relative; padding-top: 8px; }
.step .num { font-family: var(--display); font-weight: 700; font-size: 15px; width: 36px; height: 36px; border-radius: 50%; background: var(--night); color: var(--solar); display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Stats band ---------- */
.band { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.band::before { content:""; position:absolute; inset:0; background-image:
  linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; opacity:.6; }
.band-in { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; padding: 56px 0; text-align: center; }
.band .n { font-family: var(--display); font-weight: 700; font-size: 42px; color: var(--solar); }
.band .l { color: #B7C5DC; font-size: 15px; margin-top: 6px; }

/* ---------- Testimonials ---------- */
.tcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.tcard .stars { color: var(--solar); font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.tcard p { font-size: 15px; color: var(--ink); }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tcard .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--cyan-deep)); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.tcard .who .nm { font-weight: 700; font-size: 15px; color: var(--night); }
.tcard .who .ct { font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--night); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .pm { color: var(--cyan-deep); font-size: 24px; transition: transform .2s; flex-shrink: 0; }
.faq-a { color: var(--muted); font-size: 15px; padding: 0 0 22px; max-width: 760px; }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(135deg, var(--solar) 0%, var(--solar-deep) 100%); border-radius: var(--r-lg); padding: 56px; text-align: center; color: var(--night); }
.cta h2 { color: var(--night); font-size: clamp(26px,3vw,36px); }
.cta p { font-size: 18px; margin: 12px 0 26px; opacity: .85; }

/* ---------- Footer ---------- */
.ftr { background: var(--night); color: #B7C5DC; padding: 64px 0 30px; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.ftr h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.ftr a { display: block; color: #9FB1CC; font-size: 14px; padding: 5px 0; transition: color .15s; }
.ftr a:hover { color: var(--solar); }
.ftr .logo { color: #fff; margin-bottom: 14px; }
.ftr p.desc { font-size: 14px; max-width: 280px; }
.ftr-bot { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #7E92B0; }

/* ---------- Page header (interior pages) ---------- */
.phead { background: linear-gradient(160deg, var(--night), var(--night-2)); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.phead::after { content:""; position:absolute; inset:0; background-image:
  linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000, transparent 70%); }
.phead .bc { position: relative; font-size: 14px; color: #9FB1CC; margin-bottom: 14px; }
.phead .bc a:hover { color: var(--solar); }
.phead h1 { position: relative; color: #fff; font-size: clamp(30px,4vw,46px); max-width: 760px; }
.phead p { position: relative; color: #C3D0E4; font-size: 18px; margin-top: 14px; max-width: 600px; }

/* ---------- Prose (blog / content) ---------- */
.prose { max-width: 740px; }
.prose h2 { font-size: 28px; margin: 38px 0 14px; }
.prose h3 { font-size: 21px; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; font-size: 17px; color: var(--ink); }
.prose ul { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; font-size: 17px; }
.prose strong { color: var(--night); }

/* price table */
.ptable { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.ptable th { background: var(--night); color: #fff; font-family: var(--display); text-align: left; padding: 16px 20px; font-size: 14px; }
.ptable td { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable .hl { font-family: var(--display); font-weight: 700; color: var(--cyan-deep); }

/* badges / pills */
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--canvas-2); color: var(--night); font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px; }
.pill-cyan { background: rgba(46,196,182,.12); color: var(--cyan-deep); }
.pill-solar { background: rgba(253,184,51,.15); color: var(--solar-deep); }

/* blog list */
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--night-2), var(--night)); display: grid; place-items: center; font-size: 52px; color: var(--solar); position: relative; }
.post .thumb .pv-mini { position:absolute; inset:0; background-image:
  linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 24px 24px; }
.post .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post .body .meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 10px; }
.post .body h3 { font-size: 19px; margin-bottom: 8px; }
.post .body p { color: var(--muted); font-size: 15px; flex: 1; }
.post .body .more { margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--cyan-deep); }

/* contact layout */
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cinfo .it { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.cinfo .it .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--canvas-2); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.cinfo .it .lb { font-size: 13px; color: var(--muted); }
.cinfo .it .vl { font-family: var(--display); font-weight: 600; color: var(--night); font-size: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 64px; }
  .g-4 { grid-template-columns: repeat(2,1fr); }
  .band-in { grid-template-columns: repeat(2,1fr); gap: 36px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cgrid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .burger { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .hero-trust { gap: 20px; flex-wrap: wrap; }
  .cta { padding: 36px 22px; }
  .section { padding: 56px 0; }
}
