/* RésiConnect vitrine — vert habitat, typo expressive */
:root {
  --green-950: #052e16;
  --green-900: #0d3d24;
  --green-800: #14532d;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --ink: #0f172a;
  --muted: #475569;
  --paper: #f7fbf8;
  --white: #ffffff;
  --line: rgba(20, 83, 45, 0.14);
  --radius: 4px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(34, 197, 94, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(20, 83, 45, 0.08), transparent 50%),
    var(--paper);
  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: 0.18em;
}

a:hover {
  color: var(--green-900);
}

.shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.shell.narrow {
  width: min(720px, calc(100% - 2.5rem));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--white);
  color: var(--green-900);
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 248, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 251, 248, 0.94);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 1px 0 rgba(5, 46, 22, 0.08);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--green-900);
  letter-spacing: -0.02em;
}

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

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--green-700);
}

.nav-app {
  padding: 0.55rem 0.95rem;
  background: var(--green-800);
  color: var(--white) !important;
  border-radius: var(--radius);
}

.nav-app:hover {
  background: var(--green-950);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--green-900);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--green-900);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-900);
  border-color: var(--line);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* Hero — full bleed, brand first */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 46, 22, 0.35) 0%, rgba(5, 46, 22, 0.55) 42%, rgba(5, 46, 22, 0.88) 100%),
    linear-gradient(90deg, rgba(5, 46, 22, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 0 4.5rem;
  max-width: 40rem;
  margin-left: max(1.25rem, calc((100% - 1120px) / 2));
  margin-right: auto;
  width: min(40rem, calc(100% - 2.5rem));
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-head {
  margin-bottom: 2.75rem;
  max-width: 38rem;
}

.section-head h2,
.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--green-950);
}

.section-head p,
.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-punch {
  margin: 1.5rem 0 0;
  color: var(--green-900);
  font-size: 1.05rem;
  line-height: 1.5;
}

.section-solution {
  padding-top: 2rem;
}

.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.panel {
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--green-700);
}

.panel h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green-900);
}

.panel p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
}

.panel li {
  margin-bottom: 0.35rem;
}

.tagline-center {
  margin: 2.5rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--green-900);
  letter-spacing: -0.02em;
}

.feature-kicker {
  margin: 0 0 0.65rem !important;
  font-weight: 600;
  color: var(--green-800) !important;
  font-size: 0.98rem !important;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--green-700);
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

.why-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
}

.why-list strong {
  color: var(--green-900);
}

.section-faq {
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.35), transparent 60%);
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0 0.85rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--green-900);
  list-style: none;
  padding: 0.55rem 0;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--green-700);
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  margin: 0.25rem 0 0.35rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 960px) {
  .split-panels,
  .why-list {
    grid-template-columns: 1fr;
  }
}

.section-problem {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  text-align: center;
}

.section-problem h2 {
  margin-inline: auto;
  max-width: 22ch;
}

.section-problem .section-lead {
  margin-top: 1rem;
  margin-inline: auto;
}

/* Features */
.feature-spotlight {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.feature-spotlight--reverse {
  grid-template-columns: 1.15fr 1fr;
}

.feature-spotlight--reverse .feature-copy {
  order: 2;
}

.feature-spotlight--reverse .feature-visual {
  order: 1;
}

.feature-copy h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--green-900);
  letter-spacing: -0.02em;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34ch;
}

.feature-visual {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, var(--green-100), var(--green-50));
  min-height: 280px;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

/* Actors */
.section-actors {
  background:
    linear-gradient(180deg, rgba(220, 252, 231, 0.45), transparent 70%);
}

.actor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.actor-list li {
  padding: 0;
  border-top: 2px solid var(--green-700);
  padding-top: 1.1rem;
}

.actor-list h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--green-900);
}

.actor-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Urgency */
.section-urgency {
  background: linear-gradient(135deg, var(--green-900), var(--green-950));
  color: var(--white);
}

.section-urgency h2 {
  color: var(--white);
}

.urgency-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.urgency-copy p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 38ch;
  margin: 0 0 1.5rem;
}

.urgency-visual {
  margin: 0;
  justify-self: end;
  width: min(100%, 320px);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.urgency-visual img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Steps */
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.steps li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--green-950);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.steps span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green-700);
  min-width: 2.2rem;
}

/* Contact */
.section-contact {
  padding-bottom: 6rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-intro h2 {
  max-width: 14ch;
}

.contact-intro p {
  color: var(--muted);
}

.contact-meta {
  margin-top: 1.5rem !important;
  color: var(--green-900) !important;
  font-size: 0.95rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(21, 128, 61, 0.35);
  outline-offset: 1px;
  border-color: var(--green-600);
}

.form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

/* Footer */
.site-footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 3px;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-brand span {
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--green-100);
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* Responsive */
@media (max-width: 960px) {
  .feature-spotlight,
  .feature-spotlight--reverse {
    grid-template-columns: 1fr;
  }

  .feature-spotlight--reverse .feature-copy,
  .feature-spotlight--reverse .feature-visual {
    order: initial;
  }

  .actor-list {
    grid-template-columns: 1fr 1fr;
  }

  .urgency-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .urgency-visual {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(247, 251, 248, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-app {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: none !important;
  }

  .hero-content {
    margin-left: 1.25rem;
  }

  .actor-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }
}

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