/* =============================================
   ELD — Énergie Locale et Durable
   Palette : violet #6b0f8e / orange #e87e04 / jaune #f5c300
   ============================================= */

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

:root {
  --violet:      #6b0f8e;
  --violet-dark: #4a0a63;
  --violet-light:#f3e8f9;
  --orange:      #e87e04;
  --orange-light:#fff4e0;
  --jaune:       #f5c300;
  --taupe:       #8c7b6e;
  --blanc:       #ffffff;
  --gris-clair:  #f7f4f0;
  --gris-texte:  #4a4540;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(107,15,142,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--gris-texte);
  background: var(--blanc);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--orange); }

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

/* ── Navigation ── */
header {
  background: var(--violet-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: #e8cff5;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--orange);
  color: var(--blanc);
}

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

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e8cff5;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Sections communes ── */
.section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-alt {
  background: var(--gris-clair);
}

.section-alt .section {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--taupe);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.accent-bar {
  width: 48px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0.5rem 0 1.5rem;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--violet-dark) 0%, var(--violet) 60%, #8b1db5 100%);
  color: white;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,126,4,0.25) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,195,0,0.15) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--jaune);
}

.hero p {
  font-size: 1.1rem;
  color: #dfc8f0;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.btn-primary {
  background: var(--orange);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  margin-left: 0.75rem;
}

.btn-secondary:hover { border-color: white; color: white; }

/* ── Badges certif ── */
.certif-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ── Cards services ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--blanc);
  border: 1px solid #ecdff5;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(107,15,142,0.13);
}

.card-icon {
  width: 52px; height: 52px;
  background: var(--orange-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 24px;
  color: var(--orange);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--taupe);
  line-height: 1.6;
}

/* ── Galerie ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--gris-clair);
  border: 1px solid #ecdff5;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-caption {
  padding: 0.75rem 1rem;
}

.gallery-caption h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--violet);
  margin-bottom: 0.2rem;
}

.gallery-caption p {
  font-size: 0.8rem;
  color: var(--taupe);
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--violet-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  font-size: 0.85rem;
  gap: 0.5rem;
}

.gallery-placeholder svg {
  width: 40px; height: 40px;
  opacity: 0.4;
}

/* ── Filtres galerie ── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--blanc);
  border: 1.5px solid #ecdff5;
  color: var(--violet);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--violet);
  color: white;
  border-color: var(--violet);
}

/* ── À propos ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 0.5rem; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.stat-box {
  background: var(--violet-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat-box .stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--violet);
  display: block;
}

.stat-box .stat-label {
  font-size: 0.8rem;
  color: var(--taupe);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.team-card {
  background: var(--blanc);
  border: 1px solid #ecdff5;
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--jaune));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.team-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 0.2rem;
}

.team-card p {
  font-size: 0.82rem;
  color: var(--taupe);
}

.team-card a {
  color: var(--orange);
  font-weight: 600;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.contact-info-item h4 {
  font-size: 0.85rem;
  color: var(--taupe);
  font-weight: 500;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-item p, .contact-info-item a {
  font-size: 0.95rem;
  color: var(--gris-texte);
  font-weight: 500;
}

.contact-info-item a:hover { color: var(--orange); }

.contact-form { background: var(--gris-clair); padding: 2rem; border-radius: var(--radius); }

.contact-form h3 {
  font-size: 1.1rem;
  color: var(--violet);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gris-texte);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #ecdff5;
  border-radius: 7px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gris-texte);
  background: white;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--violet);
}

.form-group textarea { resize: vertical; min-height: 110px; }

/* ── Info box solaire ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--blanc);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 0.6rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--taupe);
  line-height: 1.65;
}

/* ── Dépannage étapes ── */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 720px;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--violet);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.step-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 0.3rem;
}

.step-item p {
  font-size: 0.9rem;
  color: var(--taupe);
}

/* ── CTA bande ── */
.cta-band {
  background: linear-gradient(135deg, var(--orange) 0%, var(--jaune) 100%);
  padding: 3rem 1.5rem;
  text-align: center;
}

.cta-band h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--violet-dark);
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--violet-dark);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.btn-dark {
  background: var(--violet-dark);
  color: white;
}

/* ── Footer ── */
footer {
  background: var(--violet-dark);
  color: #c9a8e0;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 50px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #bca0d0;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.4rem; }

.footer-col ul a {
  color: #bca0d0;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--jaune); }

.footer-bottom {
  max-width: 1100px;
  margin: 1.25rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #9070a8;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--violet-dark); padding: 1rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
  .about-grid, .contact-grid, .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .team-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 2.5rem 1rem; }
  .hero { padding: 3.5rem 1rem 3rem; }
}
