/*
Theme Name: SolSol — Solutions Solaires
Theme URI: https://solsolaire.com/
Author: SolSol
Description: Thème vitrine WordPress moderne pour SolSol, solutions solaires au Sénégal.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: solsol
*/

:root {
  --sun: #f5b82e;
  --sun-deep: #e8a51a;
  --ink: #152b3b;
  --ink-soft: #496171;
  --paper: #fffdf7;
  --white: #fff;
  --line: #e8e7df;
  --mist: #f2f5f4;
  --green: #39866f;
  --shadow: 0 22px 60px rgba(21, 43, 59, .12);
  --radius: 18px;
  --content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 99; top: 10px; left: 10px; padding: 10px 16px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.topbar { background: var(--ink); color: rgba(255,255,255,.8); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 20px; }
.topbar a:hover { color: var(--sun); }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,253,247,.96); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(21,43,59,.08); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { width: 50px; height: 44px; object-fit: contain; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-weight: 900; letter-spacing: -.075em; font-size: 28px; color: var(--sun-deep); }
.brand-sub { color: #647887; font-weight: 700; font-size: 9px; letter-spacing: .13em; margin-top: 5px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { display: flex; gap: 24px; align-items: center; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a { font-size: 14px; font-weight: 650; color: #243b4a; transition: color .2s ease; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: #bd7b00; }
.nav-cta, .button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; background: var(--sun); color: #172b38; font-weight: 800; border: 0; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; cursor: pointer; }
.nav-cta:hover, .button:hover { transform: translateY(-2px); background: #ffc94d; box-shadow: 0 10px 25px rgba(232,165,26,.22); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #24445a; }
.button-outline { background: transparent; border: 1px solid rgba(21,43,59,.24); }
.button-outline:hover { background: white; }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 10px; padding: 10px 12px; font-weight: 750; cursor: pointer; }

.hero { position: relative; overflow: hidden; min-height: 590px; display: flex; align-items: center; color: white; background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,31,44,.89) 0%, rgba(12,31,44,.68) 48%, rgba(12,31,44,.14) 100%), url("assets/images/solar-africa-hero.jpg") center 54% / cover no-repeat; }
.hero::after { content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; right: -115px; bottom: -240px; box-shadow: 0 0 0 46px rgba(255,255,255,.04), 0 0 0 92px rgba(255,255,255,.035); }
.hero-content { position: relative; z-index: 1; width: min(730px, 100%); padding-block: 100px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; color: #ffd66f; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.04em; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); max-width: 760px; margin: 22px 0; font-weight: 800; }
.hero h1 em { color: var(--sun); font-style: normal; }
.hero-copy { max-width: 570px; font-size: 18px; color: rgba(255,255,255,.84); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .button-outline { color: white; border-color: rgba(255,255,255,.42); }
.hero .button-outline:hover { color: var(--ink); }
.hero-note { margin-top: 48px; display: flex; gap: 16px; align-items: center; color: rgba(255,255,255,.78); font-size: 13px; }
.sun-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: 19px; }

.trust-strip { background: white; border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(3,1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 24px 26px; border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border: 0; }
.trust-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--ink); background: #fff1c8; font-size: 20px; }
.trust-item strong { display: block; line-height: 1.3; font-size: 14px; }
.trust-item span:last-child { font-size: 12px; color: var(--ink-soft); }

.section { padding-block: 94px; }
.section-tight { padding-block: 70px; }
.section-heading { max-width: 650px; margin-bottom: 38px; }
.section-heading h2 { font-size: clamp(32px, 4.4vw, 50px); margin: 12px 0 16px; }
.section-heading p { color: var(--ink-soft); font-size: 17px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading.center .eyebrow::after { content: ""; width: 24px; height: 2px; background: currentColor; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.service-card { min-height: 255px; border: 1px solid var(--line); border-radius: var(--radius); padding: 27px; background: white; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #f0c456; }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #714e08; background: #fff2cd; margin-bottom: 25px; font-size: 22px; }
.service-card h3 { font-size: 21px; margin-bottom: 11px; }
.service-card p { color: var(--ink-soft); font-size: 14px; margin-bottom: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: #9a6708; }
.text-link:hover { color: var(--ink); }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.split { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 72px; }
.split-image { min-height: 470px; position: relative; }
.split-image img { width: 100%; height: 470px; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.image-label { position: absolute; left: -18px; bottom: 28px; max-width: 230px; padding: 20px 22px; border-radius: 16px; background: var(--sun); font-weight: 800; line-height: 1.3; box-shadow: var(--shadow); }
.split-copy h2 { font-size: clamp(34px,4vw,48px); margin: 13px 0 20px; }
.split-copy p { color: var(--ink-soft); }
.check-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-weight: 650; font-size: 14px; }
.check-list li::before { content: "✓"; flex: 0 0 23px; width: 23px; height: 23px; display: grid; place-items: center; background: #e4f4ed; color: var(--green); border-radius: 50%; font-size: 13px; font-weight: 900; }

.projects { background: var(--mist); }
.project-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.project-card { position: relative; min-height: 390px; border-radius: 20px; overflow: hidden; background: var(--ink); color: white; }
.project-card img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; transition: transform .5s ease; }
.project-card:hover img { transform: scale(1.035); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,28,40,.86), transparent 75%); }
.project-caption { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 24px; }
.project-caption small { color: #ffd66f; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; font-size: 11px; }
.project-caption h3 { font-size: 25px; margin: 6px 0; }
.project-caption p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; }
.project-card-secondary { min-height: 390px; }
.project-card-secondary img { object-position: 57% center; }

.cta-band { background: var(--sun); padding-block: 62px; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.cta-inner h2 { font-size: clamp(30px,4vw,44px); max-width: 650px; margin: 0; }
.cta-inner p { margin: 8px 0 0; color: rgba(21,43,59,.78); }
.cta-inner .button { background: var(--ink); color: white; flex: 0 0 auto; }
.cta-inner .button:hover { background: #24445a; }

.page-hero { background: var(--ink); color: white; padding-block: 76px 70px; }
.page-hero h1 { font-size: clamp(38px,5.5vw,64px); margin: 12px 0; }
.page-hero p { max-width: 640px; color: rgba(255,255,255,.77); margin: 0; font-size: 17px; }
.breadcrumbs { color: #f3c75a; font-size: 12px; margin-bottom: 14px; }
.content-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px,5vw,50px); }
.content-card p:last-child { margin-bottom: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.gallery-item { border-radius: 16px; overflow: hidden; background: white; border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 235px; object-fit: cover; }
.gallery-copy { padding: 18px; }
.gallery-copy h3 { font-size: 18px; margin-bottom: 4px; }
.gallery-copy p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 26px; align-items: start; }
.contact-info { background: var(--ink); color: white; border-radius: var(--radius); padding: 32px; }
.contact-info h2 { font-size: 27px; }
.contact-info p { color: rgba(255,255,255,.72); }
.contact-line { display: flex; gap: 13px; padding-block: 16px; border-top: 1px solid rgba(255,255,255,.15); }
.contact-line strong { display: block; }
.contact-line span { color: rgba(255,255,255,.68); font-size: 13px; }
.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { font-size: 13px; font-weight: 750; display: grid; gap: 7px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #d9dfde; border-radius: 10px; padding: 13px 14px; background: #fff; color: var(--ink); }
.contact-form textarea { min-height: 145px; resize: vertical; }
.form-notice { padding: 12px 16px; background: #e4f4ed; border-radius: 10px; color: #21644e; margin-bottom: 20px; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { background: #102330; color: white; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .9fr; gap: 60px; padding-bottom: 48px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { max-width: 360px; color: rgba(255,255,255,.64); font-size: 14px; }
.site-footer h3 { font-size: 14px; letter-spacing: 0; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; color: rgba(255,255,255,.72); font-size: 13px; }
.footer-links a:hover { color: var(--sun); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; display: flex; justify-content: space-between; gap: 18px; font-size: 12px; color: rgba(255,255,255,.58); }
.whatsapp-float { position: fixed; z-index: 18; right: 22px; bottom: 22px; width: 56px; height: 56px; display: grid; place-items: center; background: #20bf6b; color: white; border-radius: 50%; font-size: 25px; font-weight: 900; box-shadow: 0 10px 28px rgba(16,35,48,.2); }
.whatsapp-float:hover { transform: translateY(-3px); }
.error-404 { text-align: center; padding-block: 110px; }

@media (max-width: 980px) {
  .header-inner { min-height: 76px; gap: 18px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 18px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 35px rgba(21,43,59,.1); }
  .site-nav.is-open { display: grid; gap: 18px; }
  .site-nav ul { display: grid; gap: 0; align-items: stretch; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 12px 0; }
  .site-nav .nav-cta { justify-self: start; padding: 12px 18px; }
  .split { gap: 42px; }
  .footer-grid { gap: 35px; }
}
@media (max-width: 720px) {
  .container { width: min(var(--content), calc(100% - 36px)); }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-inner span:first-child { display: none; }
  .brand-name { font-size: 25px; }
  .hero { min-height: 575px; }
  .hero::before { background-image: linear-gradient(90deg, rgba(12,31,44,.9), rgba(12,31,44,.54)), url("assets/images/solar-africa-hero.jpg"); }
  .hero-content { padding-block: 75px; }
  .hero-copy { font-size: 16px; }
  .trust-inner { grid-template-columns: 1fr; padding-block: 8px; }
  .trust-item, .trust-item:first-child { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border: 0; }
  .section { padding-block: 68px; }
  .section-tight { padding-block: 50px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { min-height: 230px; padding: 20px; }
  .service-icon { margin-bottom: 18px; }
  .service-card h3 { font-size: 18px; }
  .service-card p { font-size: 13px; }
  .split, .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .split-image { min-height: 320px; }
  .split-image img { height: 340px; }
  .image-label { left: 12px; bottom: 12px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-card-secondary { min-height: 330px; }
  .cta-inner { display: grid; }
  .cta-inner .button { justify-self: start; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery-item img { height: 175px; }
  .gallery-copy { padding: 14px; }
  .gallery-copy h3 { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: grid; }
}
@media (max-width: 420px) {
  .services-grid, .gallery-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .gallery-item img { height: 220px; }
  .hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
