﻿/* Active Energie — Énergies renouvelables France */
:root {
  --green-950: #0a2e24;
  --green-800: #145c45;
  --green-700: #1a6b52;
  --green-600: #218066;
  --sun: #c9920a;
  --sun-bright: #e8b020;
  --cream-soft: #f3f8f5;
  --mist: #e4efe9;
  --ink: #12261f;
  --ink-muted: #3d5a4e;
  --white: #ffffff;
  --line: rgba(18, 38, 31, 0.12);
  --shadow: 0 24px 60px rgba(10, 46, 36, 0.14);
  --radius: 4px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 50% at 10% -10%, rgba(232, 176, 32, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(26, 107, 82, 0.12), transparent 50%),
    linear-gradient(180deg, #f6faf7 0%, var(--cream-soft) 40%, #eef5f1 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-950);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.logo-text span {
  color: var(--sun-bright);
}

.nav-links {
  display: none;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--sun-bright);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  background: var(--sun);
  color: var(--green-950);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
  background: var(--sun-bright);
  color: var(--green-950);
  transform: translateY(-1px);
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 46, 36, 0.45) 0%, rgba(10, 46, 36, 0.25) 35%, rgba(10, 46, 36, 0.78) 100%),
    linear-gradient(90deg, rgba(10, 46, 36, 0.55) 0%, transparent 55%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 4.5rem;
  max-width: 38rem;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.hero-brand em {
  font-style: italic;
  color: var(--sun-bright);
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  max-width: 28ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--sun);
  color: var(--green-950);
  box-shadow: 0 10px 30px rgba(201, 146, 10, 0.35);
}

.btn-primary:hover {
  background: var(--sun-bright);
  color: var(--green-950);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 42px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.7));
  animation: pulseLine 2s ease-in-out infinite;
}

@keyframes pulseLine {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-50%) scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
}

/* —— Sections —— */
section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--green-950);
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* Benefits strip */
.benefits {
  padding-top: 3.5rem;
}

.benefit-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .benefit-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.benefit {
  padding-top: 1rem;
  border-top: 2px solid var(--green-700);
  animation: fadeUp 0.7s ease both;
}

.benefit:nth-child(2) {
  animation-delay: 0.12s;
}

.benefit:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.benefit strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--green-950);
}

.benefit p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sun);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Services */
.services {
  background:
    linear-gradient(180deg, transparent, rgba(26, 107, 82, 0.06) 20%, rgba(26, 107, 82, 0.06) 80%, transparent);
}

.service-stack {
  display: grid;
  gap: 3rem;
}

.service {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .service {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .service--reverse {
    direction: rtl;
  }

  .service--reverse > * {
    direction: ltr;
  }
}

.service-visual {
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.service:hover .service-visual img {
  transform: scale(1.04);
}

.service-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  color: var(--green-950);
}

.service-copy p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.service-copy ul {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.1rem;
  color: var(--ink);
}

.service-copy li {
  margin-bottom: 0.35rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  position: relative;
  padding: 0.25rem 0;
}

.step-index {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  color: rgba(26, 107, 82, 0.18);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--green-950);
}

.step p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Band CTA */
.band {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.band-inner {
  position: relative;
  min-height: 320px;
  display: grid;
  align-items: center;
}

.band-media {
  position: absolute;
  inset: 0;
}

.band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 46, 36, 0.88) 0%, rgba(10, 46, 36, 0.55) 55%, rgba(10, 46, 36, 0.35) 100%);
}

.band-copy {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0;
  color: var(--white);
  max-width: 32rem;
}

.band-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.band-copy p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
}

/* Form section */
.devis {
  background: var(--green-950);
  color: var(--white);
  padding: 4.5rem 0 5rem;
}

.devis .section-head h2 {
  color: var(--white);
}

.devis .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.devis-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .devis-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
}

.devis-aside h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: var(--sun-bright);
}

.devis-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.devis-aside li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.devis-aside li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  flex-shrink: 0;
  background: var(--sun);
  border-radius: 1px;
}

.form-panel {
  background: var(--white);
  color: var(--ink);
  padding: 1.75rem;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

@media (min-width: 600px) {
  .form-panel {
    padding: 2rem;
  }
}

.form-panel h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--green-950);
}

.form-panel > .form-intro {
  margin: 0 0 1.35rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 560px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--green-950);
}

.req {
  color: var(--sun);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fafcfb;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(26, 107, 82, 0.15);
  background: var(--white);
}

.checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.2rem;
}

.form-error {
  display: none;
  margin: 0.5rem 0 0;
  color: #a11919;
  font-size: 0.9rem;
}

.form-error.visible {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success.visible {
  display: block;
}

.form-success h3 {
  color: var(--green-700);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--ink-muted);
  margin: 0;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--green-950);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--sun);
  font-weight: 400;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer .logo {
  text-shadow: none;
  display: inline-flex;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--sun-bright);
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  color: var(--white);
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* Legal pages */
.page-hero {
  padding: 7rem 0 3rem;
  background: var(--green-950);
  color: var(--white);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0;
}

.legal-body {
  padding: 3rem 0 4rem;
  max-width: 46rem;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
  color: var(--green-950);
}

.legal-body p,
.legal-body li {
  color: var(--ink-muted);
}

.page-header-solid .logo {
  color: var(--green-950);
  text-shadow: none;
}

.page-header-solid .logo-text span {
  color: var(--sun);
}

.page-header-solid .logo-mark {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(10, 46, 36, 0.12);
}

.page-header-solid {
  position: relative;
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
}

.page-header-solid .nav-links a {
  color: var(--ink);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
