/* ============================================================
   TERRA LUMEN — Nature × Lumière
   DA : rendu CGI, verts frais, lumière dorée,
   dispersion chromatique arc-en-ciel subtile
   ============================================================ */

:root {
  --bg: #F3F5EC;            /* ivoire végétal */
  --surface: #FDFDF8;       /* carte / panneau */
  --ink: #11271B;           /* vert forêt très sombre (texte) */
  --ink-soft: #4A5F52;      /* texte secondaire */
  --green: #1E5C3A;         /* vert principal */
  --green-deep: #0F2C1D;    /* panneau sombre */
  --leaf: #3FAE6A;          /* accent feuille */
  --line: rgba(17, 39, 27, .10);

  /* arc-en-ciel chromatique signature */
  --iris: linear-gradient(100deg, #2FA56B 0%, #7FD06C 28%, #E8D26A 52%, #66C8E8 76%, #C99BE8 100%);
  --iris-soft: linear-gradient(100deg, rgba(47,165,107,.55), rgba(127,208,108,.55), rgba(232,210,106,.5), rgba(102,200,232,.55), rgba(201,155,232,.5));

  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;

  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;

  --shadow-card: 0 18px 50px -22px rgba(15, 44, 29, .25);
  --shadow-panel: 0 30px 80px -30px rgba(15, 44, 29, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 85% -5%, rgba(127, 208, 108, .18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(102, 200, 232, .12), transparent 55%),
    radial-gradient(700px 480px at 70% 75%, rgba(201, 155, 232, .08), transparent 60%),
    var(--bg);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.015em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Texte dégradé chromatique ---------- */
.grad-text {
  background: var(--iris);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text--aqua {
  background: linear-gradient(95deg, #1E9E8A, #66C8E8, #7FD06C);
  -webkit-background-clip: text;
  background-clip: text;
}
.grad-text--light {
  background: linear-gradient(95deg, #A8F0C2, #DDF2A0, #9BE0F5, #E2C2F5);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
  position: relative;
}

.btn--primary {
  color: #F6FFF8;
  background: linear-gradient(135deg, #1E5C3A, #2E7D4F 55%, #3FAE6A);
  box-shadow: 0 12px 30px -12px rgba(30, 92, 58, .55);
}
.btn--primary::after {
  /* liseré chromatique arc-en-ciel */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--iris-soft);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(30, 92, 58, .6); }
.btn--primary:hover::after { opacity: 1; }

.btn--lg { padding: 16px 32px; font-size: 16px; }

.btn--ghost {
  color: #F2FBEF;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }

/* ---------- Lien flèche en coin ---------- */
.corner-link {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .25s ease, color .25s ease, background .25s ease;
}
.corner-link:hover {
  background: var(--iris);
  color: #0F2C1D;
  transform: translate(2px, -2px);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--iris);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--iris);
}
.eyebrow--light { color: rgba(242, 251, 239, .75); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  transition: padding .3s ease;
}
.header--scrolled { padding: 10px 0; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px 10px 20px;
  border-radius: 999px;
  background: rgba(253, 253, 248, .78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 10px 40px -18px rgba(15, 44, 29, .25);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo__mark { width: 38px; height: 38px; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: .12em;
}

.nav {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.nav a { position: relative; transition: color .2s ease; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--iris);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 26px 0 50px; }

.hero__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: clamp(36px, 5vw, 70px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(127, 208, 108, .22), transparent 60%),
    radial-gradient(500px 360px at 0% 100%, rgba(102, 200, 232, .14), transparent 55%),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  width: 480px;
  height: 480px;
  right: -140px;
  bottom: -200px;
  background: conic-gradient(from 120deg, #7FD06C, #E8D26A, #66C8E8, #C99BE8, #7FD06C);
  filter: blur(110px);
  opacity: .28;
  pointer-events: none;
}

.hero__title {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 600;
}

.hero__subtitle {
  margin: 22px 0 30px;
  max-width: 46ch;
  font-size: 17px;
  color: var(--ink-soft);
}

.hero__social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  font-size: 14px;
  font-weight: 700;
}
.hero__social-proof span { font-weight: 500; color: var(--ink-soft); }

.avatars { display: flex; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid var(--surface);
  margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }
.avatar--1 { background: linear-gradient(135deg, #2FA56B, #7FD06C); }
.avatar--2 { background: linear-gradient(135deg, #E8D26A, #7FD06C); }
.avatar--3 { background: linear-gradient(135deg, #66C8E8, #2FA56B); }
.avatar--4 { background: linear-gradient(135deg, #C99BE8, #66C8E8); }

.hero__media { position: relative; }

.hero__img-wrap {
  border-radius: 150px 36px 36px 36px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}
.hero__img-wrap::after {
  /* voile chromatique léger sur le visuel */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(127, 208, 108, .12), transparent 35%, transparent 70%, rgba(201, 155, 232, .14));
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero__img-wrap img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero__orb {
  position: absolute;
  width: 130px;
  height: 130px;
  left: -45px;
  bottom: -30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .15) 42%),
    conic-gradient(from 40deg, #7FD06C, #E8D26A, #66C8E8, #C99BE8, #7FD06C);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, .55),
    0 24px 50px -18px rgba(15, 44, 29, .4);
  opacity: .9;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}

/* ============================================================
   APPROCHE
   ============================================================ */
.approach { padding: 70px 0 40px; }

.approach__statement {
  max-width: 21ch;
  margin: 28px auto 60px;
  text-align: center;
  font-size: clamp(26px, 3.4vw, 42px);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card::before {
  /* liseré chromatique au survol */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--iris-soft);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -24px rgba(15, 44, 29, .35); }
.feature-card:hover::before { opacity: 1; }

.feature-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-card__head h3 { font-size: 16.5px; }

.feature-card__icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: linear-gradient(135deg, rgba(127, 208, 108, .25), rgba(102, 200, 232, .2));
  border: 1px solid rgba(63, 174, 106, .25);
}
.feature-card__icon svg { width: 22px; height: 22px; }

.feature-card > p {
  font-size: 14px;
  color: var(--ink-soft);
  min-height: 3.4em;
}

.feature-card__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
}
.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.feature-card:hover .feature-card__media img { transform: scale(1.06); }

.feature-card .corner-link { right: 14px; bottom: 14px; }

/* ============================================================
   QUARTIER
   ============================================================ */
.district { padding: 60px 0; }

.district__panel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--green-deep);
  box-shadow: var(--shadow-panel);
}

.district__bg {
  position: absolute;
  inset: 0;
}
.district__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}
.district__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(15, 44, 29, .96) 0%, rgba(15, 44, 29, .82) 42%, rgba(15, 44, 29, .35) 100%),
    radial-gradient(600px 400px at 90% 10%, rgba(127, 208, 108, .25), transparent 60%);
}

.district__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: clamp(36px, 5vw, 64px);
  color: #F2FBEF;
}

.district__content h2 {
  margin: 22px 0 28px;
  font-size: clamp(28px, 3.2vw, 40px);
}

.checklist {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(242, 251, 239, .88);
}
.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M6 12.5l4 4 8-9" stroke="%230F2C1D" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 13px no-repeat,
    linear-gradient(135deg, #7FD06C, #66C8E8);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: center;
}

.stat-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(242, 251, 239, .09);
  border: 1px solid rgba(242, 251, 239, .18);
  backdrop-filter: blur(14px);
  transition: transform .3s ease, background .3s ease;
}
.stat-card:hover { transform: translateY(-4px); background: rgba(242, 251, 239, .14); }

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  background: linear-gradient(95deg, #FDFDF8, #A8F0C2 55%, #9BE0F5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card__label {
  display: block;
  margin-top: 2px;
  font-weight: 700;
  font-size: 14.5px;
}
.stat-card p {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(242, 251, 239, .72);
}

/* ============================================================
   ACTUALITÉS
   ============================================================ */
.news { padding: 50px 0 80px; }

.news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.news__all {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s ease;
}
.news__all:hover { border-color: var(--leaf); }

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -24px rgba(15, 44, 29, .35); }

.news-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.news-card:hover .news-card__media img { transform: scale(1.06); }

.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(253, 253, 248, .85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .7);
}

.date {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 58px;
  padding: 8px 0 9px;
  border-radius: 14px;
  background: rgba(253, 253, 248, .9);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  line-height: 1.1;
}
.date strong {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
}

.news-card__body {
  padding: 20px 56px 24px 20px;
}
.news-card__body h3 { font-size: 17px; margin-bottom: 8px; }
.news-card__body p { font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-bottom: 36px; }

.footer__panel {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-card);
  padding: clamp(30px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.footer__panel::before {
  /* fil de lumière chromatique en haut du footer */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--iris);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer__brand p {
  margin-top: 18px;
  max-width: 32ch;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.footer__col p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}
.footer__link:hover { text-decoration: underline; }

.footer__phone {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 8px;
}

.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: linear-gradient(135deg, rgba(127, 208, 108, .2), rgba(102, 200, 232, .16));
  border: 1px solid rgba(63, 174, 106, .22);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.socials a:hover {
  transform: translateY(-3px);
  background: var(--iris);
  color: var(--green-deep);
}

.footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============================================================
   ANIMATIONS DE RÉVÉLATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__orb { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .district__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(253, 253, 248, .97);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: var(--shadow-card);
    display: none;
  }
  .nav--open { display: flex; }
  .nav a { padding: 10px 8px; }
  .header__inner { position: relative; }
  .header__cta { display: none; }
  .burger { display: flex; }

  .hero__panel { grid-template-columns: 1fr; }
  .hero__img-wrap { border-radius: 80px 28px 28px 28px; }
  .hero__img-wrap img { min-height: 300px; }

  .news__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__social-proof { flex-wrap: wrap; }
}
