/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
  font-family: 'Selvia Genatu';
  src: url('fonts/SelviaGenatu.woff2') format('woff2'),
       url('fonts/SelviaGenatu.woff') format('woff'),
       url('fonts/SelviaGenatu.ttf') format('truetype'),
       url('fonts/SelviaGenatu.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --green-dark:  #2e5339;
  --green-mid:   #3a6b47;
  --cream:       #f5f0e8;
  --cream-dark:  #ede5d8;
  --brown:       #7a5c3e;
  --text-dark:   #2b2b2b;
  --text-light:  #ffffff;
  --font-title:  'Cormorant Garamond', Georgia, serif;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: 90%;
  max-width: 1360px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  background: var(--green-dark);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  transition: background 0.3s, top 0.3s, width 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  top: 14px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1360px;
  border-radius: 14px;
  background: rgba(255,255,255,0.95);
  border-bottom: none;
  box-shadow: 0 10px 30px rgba(20,40,25,0.15);
}

.navbar.scrolled .navbar__links a,
.navbar.scrolled .navbar__logo-text {
  color: var(--green-dark);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  max-width: 1360px;
  margin: 0 auto;
  transition: height 0.3s;
}

.navbar.scrolled .navbar__inner {
  height: 62px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__logo .navbar__logo-img {
  height: 110px;
  width: auto;
  transition: height 0.3s;
}

.navbar.scrolled .navbar__logo-img {
  height: 50px;
}

.navbar__logo-img--scrolled { display: none; }
.navbar.scrolled .navbar__logo-img--default { display: none; }
.navbar.scrolled .navbar__logo-img--scrolled { display: block; }

.navbar__logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-light);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links a {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--text-light);
  transition: opacity 0.2s;
  padding-bottom: 6px;
}

.navbar__links a:hover { opacity: 0.7; }

.navbar__links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
}

.btn-nav {
  background: var(--green-dark);
  color: var(--text-light) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.btn-nav:hover { background: var(--green-mid) !important; opacity: 1 !important; }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 60vh;
  background: url('images/fond.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #3a5c3a;
  padding: 92px 1rem 3rem;
}

.hero--home {
  background-image: url('images/home-hero.jpg');
  background-position: center 65%;
  border-radius: 0 0 50% 50% / 0 0 12px 12px;
  overflow: hidden;
}

.hero--home .hero__overlay {
  background: linear-gradient(
    to bottom,
    rgba(8,20,12,0.18) 0%,
    rgba(8,20,12,0.5) 45%,
    rgba(8,20,12,0.85) 100%
  );
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,60,35,0.35) 0%,
    rgba(20,45,25,0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.hero__logo {
  width: 170px;
  height: auto;
}

.hero__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(44px, 4.05vw, 62px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -1.2px;
  color: #f7f5ef;
  text-align: center;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.75), 0 4px 24px rgba(0,0,0,0.55);
}

.hero__title em {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  margin-top: 8px;
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  letter-spacing: 0.08em;
  font-weight: 300;
  opacity: 0.95;
  margin: 0 0 0.4rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7), 0 2px 14px rgba(0,0,0,0.4);
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  line-height: 0;
  z-index: 3;
}

.hero__wave svg { width: 100%; height: 80px; }

/* ─────────────────────────────────────────
   BARRE D'ATOUTS
───────────────────────────────────────── */
.stats-bar-wrap {
  position: relative;
  z-index: 5;
  margin-top: -60px;
  padding: 0 5%;
}

.stats-bar {
  max-width: 1360px;
  margin: 0 auto;
  background: #F5F0E8;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(20,40,25,0.15);
  display: flex;
  align-items: center;
  padding: 2rem 1.5rem;
}

.stats-bar__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.3rem;
  text-align: left;
}

.stats-bar__item + .stats-bar__item {
  border-left: 1px solid rgba(46,83,57,0.15);
}

.stats-bar__icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #EDE5D8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #315B45;
}

.stats-bar__icon svg { width: 32px; height: 32px; }

.stats-bar__text h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #315B45;
  margin-bottom: 0.3rem;
}

.stats-bar__text p {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #8B8175;
  font-weight: 400;
}

/* ─────────────────────────────────────────
   LES ATELIERS – TEASER
───────────────────────────────────────── */
.ateliers-teaser {
  background: var(--cream);
  padding: 6rem 0 6rem;
  scroll-margin-top: 90px;
}

.ateliers-teaser__grid {
  display: grid;
  grid-template-columns: 0.7fr 2.3fr;
  gap: 3rem;
  align-items: center;
}

.ateliers-teaser__text h2 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.22;
  color: var(--text-dark);
  margin: 0.5rem 0 1.2rem;
}

.ateliers-teaser__text h2 em {
  font-style: italic;
  color: var(--green-dark);
}

.ateliers-teaser__text p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #555;
  font-weight: 300;
  margin-bottom: 1.8rem;
  max-width: 320px;
}

.btn-primary-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-dark);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  transition: background 0.25s;
}
.btn-primary-green:hover { background: var(--green-mid); }

.ateliers-teaser__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.teaser-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20,40,25,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(20,40,25,0.14);
}

.teaser-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.teaser-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.teaser-card:hover .teaser-card__img img { transform: scale(1.05); }

.teaser-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
}

.teaser-card__label h3 {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-dark);
}

.teaser-card__label span:not(.teaser-card__arrow) {
  display: block;
  font-size: 0.7rem;
  color: #8a8a8a;
  margin-top: 0.15rem;
}

.teaser-card__arrow {
  font-size: 1rem;
  color: var(--green-dark);
  flex-shrink: 0;
}

.link-discover {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  border-bottom: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.link-discover:hover { opacity: 0.65; }
.link-discover.dark  { color: var(--green-dark); }

/* ─────────────────────────────────────────
   WAVE SEPARATORS
───────────────────────────────────────── */
.wave-sep {
  line-height: 0;
  display: block;
}
.wave-sep svg {
  width: 100%;
  height: 70px;
  display: block;
}
.wave-cream-to-dark   { background: var(--cream); }
.wave-dark-to-cream   { background: var(--cream-dark); }

.section-eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-dark);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.section-eyebrow--light {
  color: var(--text-light);
  opacity: 0.75;
}

/* ─────────────────────────────────────────
   BADGE CIRCULAIRE
───────────────────────────────────────── */
.badge-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(20,40,25,0.12);
  flex-shrink: 0;
}

.badge-circle span {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--green-dark);
  line-height: 1.35;
}

.badge-circle svg,
.badge-circle img {
  width: 18px;
  height: 18px;
  color: var(--green-dark);
  margin-top: 0.4rem;
}

/* ─────────────────────────────────────────
   À PROPOS TEASER
───────────────────────────────────────── */
.apropos-wrap {
  background: var(--cream);
  padding: 5rem 5%;
}

.apropos {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
}

.apropos__img {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}

.apropos__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.apropos__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
}

.apropos__quote {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--green-dark);
  border-left: 3px solid var(--green-dark);
  padding-left: 1rem;
  line-height: 1.4;
  margin: 0;
}

.apropos__text p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #3a3a3a;
  font-weight: 300;
  max-width: 440px;
}

.btn-text {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--green-dark);
  border-bottom: 1px solid var(--green-dark);
  padding-bottom: 2px;
  width: fit-content;
  transition: opacity 0.2s;
}
.btn-text:hover { opacity: 0.6; }

/* ─────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────── */
.cta-section {
  background: var(--green-dark);
  padding: 6rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 12px 12px;
}

.cta-section__dip {
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  line-height: 0;
  z-index: 2;
}
.cta-section__dip svg { width: 100%; height: 24px; display: block; }

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.cta-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.cta-section__inner h2 {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-style: italic;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}

.btn-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 2.2rem;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s;
}
.btn-cta:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background: var(--cream);
  position: relative;
  text-align: center;
}

.footer__wave {
  line-height: 0;
  margin-bottom: -1px;
}
.footer__wave svg { width: 100%; height: 60px; }

.footer__inner {
  background: var(--green-dark);
  padding: 3rem 1rem 2rem;
  color: var(--text-light);
}

.footer__dip {
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  z-index: 2;
  line-height: 0;
}
.footer__dip svg { width: 100%; height: 24px; display: block; }

.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.footer__logo-img {
  height: 110px;
  width: auto;
  filter: brightness(1.3);
}

.footer__logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.footer__tagline {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 0.7rem;
  color: var(--text-light);
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.footer__social svg {
  width: 28px;
  height: 28px;
}

.footer__social:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer__copy {
  font-size: 0.72rem;
  opacity: 0.5;
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────── */
.animate {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate--delay-1 { transition-delay: 0.1s; }
.animate--delay-2 { transition-delay: 0.2s; }
.animate--delay-3 { transition-delay: 0.3s; }

/* ─────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
}
.lightbox__img-wrap {
  position: relative;
  z-index: 1;
}
.lightbox__img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}
.lightbox__close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s;
  line-height: 1;
  padding: 0.4rem;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
  line-height: 1;
  padding: 0.6rem 1rem;
  border-radius: 2px;
}
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; background: rgba(255,255,255,0.15); }
.lightbox__counter {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-family: var(--font-sans);
}
.real-img { cursor: pointer; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

/* ── Burger animation ── */
.navbar__burger span {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Tablet large ── */
@media (max-width: 1100px) {
  .ateliers-teaser__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ateliers-teaser__text p { max-width: 100%; }
}

/* ── Tablet ── */
@media (max-width: 900px) {
  .apropos { grid-template-columns: 1fr; gap: 2.5rem; }
  .apropos__img { aspect-ratio: 16 / 9; }
  .apropos__text p { max-width: 100%; }
  .stats-bar { flex-wrap: wrap; gap: 1.6rem 0; }
  .stats-bar__item { flex: 1 1 50%; padding: 0 1rem; }
  .stats-bar__item:nth-child(3) { border-left: none; }
  .hero { min-height: 56vh; }
  .hero__logo { width: 90px; }
  .hero__content { gap: 0.9rem; }
}

/* ── Laptop (écrans peu hauts) ── */
@media (max-height: 760px) and (min-width: 901px) {
  .hero { min-height: 460px; padding: 100px 1rem 2rem; }
  .hero__logo { width: 90px; }
  .hero__content { gap: 0.8rem; }
}

/* ── Mobile nav (tablettes + grands smartphones) ── */
@media (max-width: 860px) {
  .navbar__links { display: none; }
  .navbar__burger { display: flex; }

  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 92px; left: 0; right: 0;
    background: var(--green-dark);
    padding: 2rem 1.5rem;
    gap: 1.6rem;
    align-items: center;
    z-index: 99;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  }

  .navbar__links.open a,
  .navbar.scrolled .navbar__links.open a {
    font-size: 0.88rem;
    letter-spacing: 0.14em;
    color: var(--text-light);
  }

  .navbar__links.open .btn-nav {
    padding: 0.65rem 2rem;
    font-size: 0.8rem;
  }

  .navbar.scrolled .navbar__links.open {
    top: 76px;
    left: 4%;
    right: 4%;
    border-radius: 0 0 14px 14px;
  }
}

/* ── Tablet cards (4 cols → 2 cols à partir de 768px) ── */
@media (max-width: 768px) {
  .ateliers-teaser__cards { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}

/* ── Mobile ── */
@media (max-width: 700px) {
  .apropos-wrap { padding: 3rem 5%; }
  .apropos { gap: 2rem; }
  .cta-section { padding: 4rem 1.5rem; }
  .cta-section__inner h2 { font-size: 2.4rem; }

  .ateliers-teaser { padding: 3.5rem 0 4rem; }
  .stats-bar { flex-direction: column; align-items: stretch; gap: 1.4rem; padding: 1.8rem 1.5rem; }
  .stats-bar__item,
  .stats-bar__item:nth-child(3) { border-left: none; padding: 0; }
  .stats-bar__item + .stats-bar__item { border-top: 1px solid rgba(46,83,57,0.15); padding-top: 1.4rem; }
}

/* ── Small mobile ── */
@media (max-width: 480px) {
  .hero { min-height: 68vh; padding: 92px 1rem 2.5rem; }
  .hero--home { border-radius: 0 0 50% 50% / 0 0 7px 7px; }
  .hero__logo { width: 68px; }
  .hero__content { gap: 0.7rem; }
  .hero__sub { font-size: 0.9rem; }
  .ateliers-teaser__cards { grid-template-columns: 1fr; }
  .apropos__quote { font-size: 1.3rem; }
  .footer__inner { padding: 2.5rem 1rem 1.5rem; }
  .footer__logo-img { height: 100px; }
  .cta-section__inner h2 { font-size: 2rem; }
  .stats-bar-wrap { margin-top: -40px; padding: 0 4%; }
}
