/* ============ Charte graphique ============
   Vert  : #9BC93E (feuillage, accents)
   Vert foncé : #6E9A2A (hover / texte sur clair)
   Brun  : #4A3728 (tronc, texte principal)
   Crème : #FAF8F3 (fond clair)
   ============================================ */

:root {
  --green: #9BC93E;
  --green-dark: #6E9A2A;
  --brown: #4A3728;
  --brown-soft: #6B5645;
  --cream: #FAF8F3;
  --cream-dark: #F1EDE3;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(74, 55, 40, 0.08);
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; }

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--brown);
}

h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.section-tag {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.section-tag--light { color: var(--green); }

.section { padding: 90px 0; }
.why, .what { background: var(--white); }

.lead-text {
  font-size: 1.1rem;
  color: var(--brown-soft);
  max-width: 62ch;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: var(--brown);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--green-dark); color: var(--white); }

.btn-ghost {
  background: transparent;
  border-color: var(--brown);
  color: var(--brown);
}
.btn-ghost:hover { background: var(--brown); color: var(--white); }

/* ============ Gate (écran de mot de passe) ============ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 85% 10%, rgba(155,201,62,0.18), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(155,201,62,0.14), transparent 50%),
    var(--cream);
}

.gate-form {
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  text-align: center;
  display: grid;
  gap: 14px;
}

.gate-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  margin: 0 auto;
}

.gate-form h1 { font-size: 1.5rem; margin: 4px 0 0; }
.gate-form p { margin: 0; color: var(--brown-soft); font-size: 0.95rem; }

.gate-form input[type="password"] {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--cream-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
}

.gate-form input[type="password"]:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.gate-form .btn { justify-self: center; }

.gate-error {
  color: #B3261E;
  font-size: 0.9rem;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cream-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 56px;
  width: 56px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  white-space: nowrap;
  color: var(--green-dark);
  font-weight: 700;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--brown);
  font-weight: 700;
}
.main-nav a:hover { color: var(--green-dark); text-decoration: none; }

.btn-nav {
  background: var(--green);
  color: var(--brown) !important;
  padding: 10px 22px;
  border-radius: 999px;
}
.btn-nav:hover { background: var(--green-dark); color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--brown);
  border-radius: 3px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
  background:
    radial-gradient(circle at 85% 10%, rgba(155,201,62,0.18), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(155,201,62,0.14), transparent 50%),
    var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-inner { max-width: 560px; }

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--brown);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--brown-soft);
  max-width: 56ch;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ============ Why ============ */
.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}

blockquote {
  margin: 0;
  padding: 22px 26px;
  background: var(--cream-dark);
  border-left: 5px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--brown);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* ============ How ============ */
.how-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}

.how-photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.how-item {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 26px;
}

.how-number {
  font-family: var(--font-hand);
  font-size: 2.4rem;
  color: var(--green);
  display: block;
  margin-bottom: 6px;
}

/* ============ What ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0 50px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-hand);
  font-size: 3rem;
  color: var(--green-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--brown-soft);
}

.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.offer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
}

/* ============ Team ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px 20px;
}

.team-avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.team-avatar--icon {
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: none;
}

/* ============ Contact ============ */
.contact {
  background: var(--brown);
  color: var(--cream);
}

.contact h2 { color: var(--white); }
.contact p { color: var(--cream-dark); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 20px;
}

.contact-details a { color: var(--green); }

.contact-form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  gap: 6px;
}

.contact-form label {
  font-weight: 700;
  color: var(--brown);
  margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--cream-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--brown);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.contact-form button { margin-top: 12px; justify-self: start; }

/* ============ Footer ============ */
.site-footer {
  background: #3A2C20;
  color: var(--cream-dark);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-chip {
  display: inline-flex;
  background: var(--white);
  border-radius: 10px;
  padding: 4px;
}

.footer-logo {
  height: 40px;
  width: 40px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
}

.footer-brand-name {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--green);
}

.footer-inner p { margin: 0; font-size: 0.9rem; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .why-grid,
  .contact-inner,
  .hero-grid,
  .how-layout { grid-template-columns: 1fr; }

  .pillars,
  .stats,
  .offers,
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-photo img { aspect-ratio: 16 / 9; }
  .how-photo img { min-height: 220px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .main-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--cream);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: var(--shadow);
    display: none;
  }

  .main-nav ul.open { display: flex; }

  .btn-nav { width: 100%; text-align: center; }
}

@media (max-width: 400px) {
  .brand-logo { height: 44px; width: 44px; }
  .brand-name { font-size: 1.1rem; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }

  .pillars,
  .how-grid,
  .stats,
  .offers,
  .team-grid { grid-template-columns: 1fr; }

  .hero-cta { flex-direction: column; align-items: flex-start; }
}
