:root {
  --green: #0d5c2e;
  --green-deep: #084422;
  --green-soft: #1a7a3e;
  --yellow: #f0c000;
  --yellow-deep: #d4a800;
  --red: #c8102e;
  --sand: #f3efe4;
  --sand-deep: #e7e0d0;
  --ink: #142218;
  --muted: #4a5c50;
  --white: #ffffff;
  --line: rgba(13, 92, 46, 0.14);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: "Outfit", sans-serif;
  line-height: 1.65;
  font-size: 1.05rem;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 40;
  background: var(--white);
  padding: 0.5rem 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 239, 228, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

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

.brand img {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--green);
}

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

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

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

.nav a.btn { color: var(--white); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green);
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

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

.btn-primary:hover { background: var(--green-soft); }

.btn-accent {
  background: var(--yellow);
  color: var(--green-deep);
}

.btn-accent:hover { background: var(--yellow-deep); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

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

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

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  background:
    linear-gradient(180deg, rgba(8, 68, 34, 0.35) 0%, rgba(8, 68, 34, 0.78) 55%, rgba(8, 68, 34, 0.94) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(240, 192, 0, 0.22), transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 7rem 0 4.5rem;
  max-width: 42rem;
  margin-left: max(calc((100% - var(--max)) / 2), 1.25rem);
  animation: rise 0.9s ease both;
}

.hero-mark {
  width: min(16rem, 58vw);
  height: auto;
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.25));
  animation: rise 1s 0.08s ease both;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  animation: rise 1s 0.16s ease both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
  animation: rise 1s 0.24s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1s 0.32s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  padding: 5rem 0;
}

.section-deep {
  background: var(--green-deep);
  color: var(--white);
}

.section-contact {
  background:
    linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--white);
  padding: 4.5rem 0;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin: 0 0 0.75rem;
}

.kicker-light { color: var(--yellow); }

.section h2,
.contact-panel h2 {
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 38rem;
  color: var(--muted);
  margin: 0 0 2.25rem;
}

.ecole-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.ecole-copy p { color: var(--muted); }
.ecole-copy strong { color: var(--ink); }

.ecole-shot {
  margin: 0;
}

.ecole-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.25rem;
}

.ecole-shot figcaption {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.defis-list {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.defis-list article {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.defis-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.defi-num {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}

.defis-list h3 {
  grid-column: 2;
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
}

.defis-list p {
  grid-column: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 38rem;
}

.aider-rows {
  display: grid;
  gap: 0.85rem;
}

.aider-row {
  display: grid;
  grid-template-columns: 12rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.aider-row:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(13, 92, 46, 0.08);
}

.aider-who {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--green);
}

.aider-what {
  color: var(--muted);
  font-size: 0.98rem;
}

.aider-cta {
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 32rem;
}

.contact-links {
  display: grid;
  gap: 0.85rem;
}

.contact-links a,
.contact-links p {
  display: block;
  margin: 0;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.9rem;
  color: var(--white);
}

.contact-links a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.contact-links small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.site-footer {
  background: var(--sand-deep);
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.footer-brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-credit {
  font-weight: 600;
  color: var(--green);
  font-size: 0.92rem;
}

.footer-credit:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .nav.open { display: flex; }

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

  .nav a.btn {
    margin-top: 0.75rem;
    border: 0;
    text-align: center;
  }

  .hero { min-height: 92vh; }

  .hero-inner {
    margin-left: auto;
    margin-right: auto;
    padding: 6.5rem 0 3.5rem;
  }

  .ecole-grid,
  .contact-panel,
  .aider-row {
    grid-template-columns: 1fr;
  }

  .aider-cta { justify-self: start; }

  .defis-list article {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .defi-num { font-size: 1.5rem; }

  .defis-list h3,
  .defis-list p { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
