/* ============================================================
   2EP ÉNERGIE SOLAIRE — Design System
   Thème : "La lumière qui continue"
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --cream: #FBF6EF;
  --ink: #14110D;
  --ink-soft: #2A2520;
  --orange: #E8621A;
  --orange-deep: #C44E10;
  --navy: #1A3A6B;
  --navy-deep: #102747;
  --yellow: #F4A11D;
  --line: rgba(20,17,13,0.12);
  --line-on-dark: rgba(255,255,255,0.14);

  --display: 'Archivo Black', sans-serif;
  --body: 'Archivo', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --container: 1180px;
}

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

html { scroll-behavior:smooth; }

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
button { font-family: inherit; cursor:pointer; border:none; background:none; }
ul { list-style:none; }

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

/* ============== UTILITIES ============== */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(232,98,26,0.5);
}
.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--ink);
}

/* ============== HEADER ============== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251,246,239,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s;
}
.site-header.dark {
  background: rgba(20,17,13,0.85);
  border-bottom: 1px solid var(--line-on-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 14px;
  white-space: nowrap;
}
.logo-mark {
  width: 40px; height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}
.logo-text-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--orange);
  font-weight: 500;
  display: block;
  margin-top: 1px;
}
.site-header.dark .logo { color: #fff; }

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.site-header.dark .nav-links { color: #fff; }
.site-header.dark .nav-phone { color: #fff; opacity: 0.85; }
.nav-phone { color: var(--ink); opacity: 0.8; }

.header-actions { display:flex; align-items:center; gap:16px; }
.nav-phone {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-toggle { display:none; }

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 76px;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-on-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
  opacity: 0.6;
}
.hero-glow {
  position: absolute;
  top: -10%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(244,161,29,0.25) 0%, transparent 65%);
  pointer-events: none;
}

/* Rayons de soleil tournant lentement derrière le glow */
.hero-rays {
  position: absolute;
  top: -25%; right: -20%;
  width: 900px; height: 900px;
  pointer-events: none;
  opacity: 0.5;
  animation: heroRaysSpin 90s linear infinite;
}
.hero-rays svg { width: 100%; height: 100%; }

@keyframes heroRaysSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Particules d'énergie montant doucement */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  bottom: -20px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 30px)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rays { animation: none; }
  .hero-particle { animation: none; display: none; }
}
@media (max-width: 980px) {
  .hero-rays { opacity: 0.3; }
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: end;
}
.hero-headline {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero-headline .accent { color: var(--yellow); }
.hero-headline .strike-wrap { position: relative; display:inline-block; }
.hero-sub {
  font-size: 18px;
  color: rgba(251,246,239,0.7);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-ctas { display:flex; gap:14px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 24px;
}
.hero-stat-num {
  font-family: var(--display);
  font-size: 30px;
  color: var(--yellow);
  display: block;
}
.hero-stat-label {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(251,246,239,0.55);
  letter-spacing: 0.04em;
}

/* Video card in hero */
.hero-video-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  border: 1px solid var(--line-on-dark);
  cursor: pointer;
  group: video;
}
.hero-video-card img {
  position: absolute; inset:0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.3s, transform 0.4s;
}
.hero-video-card:hover img { opacity: 0.55; transform: scale(1.04); }
.hero-video-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 16px;
}
.play-btn {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(251,246,239,0.95);
  display: flex; align-items:center; justify-content:center;
  transition: transform 0.25s;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}
.hero-video-card:hover .play-btn { transform: scale(1.1); }
.play-btn svg { margin-left: 4px; }
.video-caption {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(20,17,13,0.6);
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.video-badge {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--orange);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============== SECTION GENERIC ============== */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section-title .accent { color: var(--orange); }
.section-desc {
  font-size: 17px;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-top: 16px;
  line-height: 1.6;
}

/* ============== PROBLEM SECTION (dark) ============== */
.problem-section {
  background: var(--ink);
  color: var(--cream);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-on-dark);
  border: 1px solid var(--line-on-dark);
  border-radius: 16px;
  overflow: hidden;
}
.problem-card {
  background: var(--ink);
  padding: 40px 32px;
  transition: background 0.3s;
}
.problem-card:hover { background: #1C1812; }
.problem-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
  margin-bottom: 24px;
  display: block;
}
.problem-title {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1.15;
}
.problem-desc {
  font-size: 14.5px;
  color: rgba(251,246,239,0.6);
  line-height: 1.6;
}

/* ============== SOLUTION / BENEFITS ============== */
.benefits-section { background: var(--cream); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.benefit-card {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.benefit-icon {
  width: 44px; height:44px;
  border-radius: 10px;
  background: var(--orange);
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  margin-bottom: 20px;
  font-size: 20px;
}
.benefit-title {
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 8px;
}
.benefit-desc {
  font-size: 14px;
  color: var(--ink-soft);
  opacity: 0.7;
  line-height: 1.55;
}

/* ============== SECTORS (marquee-style strip) ============== */
.sectors-section {
  background: var(--navy);
  color: #fff;
  padding: 90px 0;
}
.sectors-head { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom: 50px; flex-wrap:wrap; gap:20px; }
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.sector-chip {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 26px 16px;
  text-align: center;
  transition: all 0.25s;
  background: rgba(255,255,255,0.02);
}
.sector-chip:hover {
  background: rgba(244,161,29,0.12);
  border-color: var(--yellow);
  transform: translateY(-4px);
}
.sector-icon { font-size: 26px; margin-bottom: 10px; }
.sector-label { font-size: 12.5px; font-weight: 700; }

/* ============== PRODUCTS ============== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s;
}
.product-card:hover {
  border-color: var(--orange);
  box-shadow: 0 24px 48px -16px rgba(20,17,13,0.15);
  transform: translateY(-4px);
}
.product-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  position: relative;
  overflow: hidden;
}
.product-img img { width:100%; height:100%; object-fit:cover; }
.product-tag {
  position: absolute; top:14px; left:14px;
  background: rgba(20,17,13,0.7);
  color:#fff;
  font-family: var(--mono);
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}
.product-body { padding: 24px; }
.product-name { font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.product-desc { font-size: 13.5px; color: var(--ink-soft); opacity:0.7; margin-bottom:16px; line-height:1.5; }
.product-link {
  font-size: 13px; font-weight: 700; color: var(--orange);
  display: inline-flex; align-items:center; gap:6px;
}

/* ============== TESTIMONIALS / REALISATIONS ============== */
.real-section { background: var(--ink); color: var(--cream); }
.real-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}
.real-feature {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 460px;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
}
.real-feature img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0.55; }
.real-feature-content {
  position: relative; z-index:2;
  height: 100%;
  display: flex; flex-direction:column; justify-content:flex-end;
  padding: 36px;
  background: linear-gradient(to top, rgba(20,17,13,0.9), transparent 60%);
}
.real-side { display:flex; flex-direction:column; gap:28px; }
.testimonial-card {
  background: #1C1812;
  border: 1px solid var(--line-on-dark);
  border-radius: 16px;
  padding: 28px;
  flex: 1;
}
.testimonial-quote {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(251,246,239,0.9);
}
.testimonial-author { display:flex; align-items:center; gap:12px; }
.author-avatar {
  width:40px; height:40px; border-radius:50%;
  background: var(--orange);
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:14px;
}
.author-name { font-weight:700; font-size:14px; }
.author-role { font-size:12px; color:rgba(251,246,239,0.5); }

/* ============== CONTACT / FORM ============== */
.contact-section { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
}
.contact-info-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: 20px;
  padding: 44px;
  height: fit-content;
}
.contact-row { display:flex; gap:16px; padding: 18px 0; border-bottom: 1px solid var(--line-on-dark); }
.contact-row:last-child { border:none; }
.contact-row-icon {
  width:40px; height:40px; border-radius:10px;
  background: rgba(244,161,29,0.15);
  color: var(--yellow);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.contact-row-label { font-family: var(--mono); font-size:11px; color:rgba(251,246,239,0.5); margin-bottom:4px; text-transform:uppercase; letter-spacing:0.05em; }
.contact-row-val { font-weight: 700; font-size: 15px; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
}
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1/-1; }
.form-label {
  display:block; font-size:13px; font-weight:700; margin-bottom:8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--cream);
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline:none;
  border-color: var(--orange);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-submit { width:100%; justify-content:center; margin-top:6px; }

/* ============== FOOTER ============== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 70px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-desc { font-size: 14px; margin-top: 16px; max-width:280px; line-height:1.6; opacity:0.7; }
.footer-col-title { font-family: var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:#fff; margin-bottom:18px; }
.footer-col a { display:block; font-size:14px; margin-bottom:12px; opacity:0.75; transition:opacity 0.2s; }
.footer-col a:hover { opacity:1; color:var(--yellow); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:28px; font-size:13px; flex-wrap:wrap; gap:12px; }

/* ============== WHATSAPP FLOAT ============== */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 12px 32px -8px rgba(37,211,102,0.6);
  transition: transform 0.25s;
}
.wa-float:hover { transform: scale(1.08); }

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .nav-links, .header-actions .nav-phone { display:none; }
  .mobile-toggle { display:block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-video-card { aspect-ratio: 16/10; order:-1; }
  .problem-grid, .benefits-grid, .products-grid { grid-template-columns: 1fr 1fr; }
  .sectors-grid { grid-template-columns: repeat(3,1fr); }
  .real-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .logo { font-size: 12px; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; }
  .header-actions .btn-primary { padding: 10px 16px; font-size: 13px; }
}

@media (max-width: 620px) {
  .section-pad { padding: 70px 0; }
  .problem-grid, .benefits-grid, .products-grid, .sectors-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap:24px; flex-wrap:wrap; }
  .hero-ctas { flex-direction:column; align-items:stretch; }
  .hero-ctas .btn { justify-content:center; }
}
