/* ============================================================
   SOYOUZ85 — Design System
   Modern · Éco-responsable · Responsive
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── CSS Variables ── */
:root {
  /* Brand greens */
  --green-900: #0F2008;
  --green-800: #1B3A0F;
  --green-700: #2D5A1A;
  --green-600: #3D7023;
  --green-500: #4E8C2C;
  --green-400: #6BA83D;
  --green-300: #8DC462;
  --green-200: #B8D98A;
  --green-100: #E0EDD1;
  --green-50:  #F2F8EC;

  /* Amber accent */
  --amber-700: #8A5A12;
  --amber-500: #C8861E;
  --amber-400: #D4972A;
  --amber-300: #E0B04E;
  --amber-100: #F5E4C0;

  /* Neutrals */
  --cream:     #F6F1E6;
  --white:     #FDFCF9;
  --gray-100:  #EDE9E0;
  --gray-200:  #D8D3C8;
  --gray-400:  #9C9588;
  --gray-600:  #6B6559;
  --gray-800:  #3A3730;
  --text:      #1E2419;

  /* Brand per section */
  --color-gites:  #4A8B6F;
  --color-asso:   #1EA2B6;
  --color-agro:   #3CA689;
  --color-randos: #5B8C5A;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.07);
  --shadow-xl:  0 24px 48px rgba(0,0,0,.14), 0 8px 16px rgba(0,0,0,.08);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;
  --t-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 500;
  --z-toast: 900;

  /* Header height */
  --header-h: 70px;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  font-weight: 700;
  color: var(--green-800);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { max-width: 65ch; }
p + p { margin-top: var(--sp-4); }

.lead {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.container--narrow { max-width: 780px; }
.container--wide   { max-width: 1440px; }

.section {
  padding-block: var(--sp-20);
}

.section--sm { padding-block: var(--sp-12); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.grid { display: grid; }
.text-center { text-align: center; }

/* ── Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--header-h);
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.site-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.site-logo__text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-800);
  line-height: 1.1;
}

.site-logo__sub {
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-link {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-700);
  background: var(--green-50);
}

.nav-link--cta {
  background: var(--green-700);
  color: var(--white) !important;
  padding: var(--sp-2) var(--sp-5);
}

.nav-link--cta:hover {
  background: var(--green-600) !important;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}

.burger:hover { background: var(--green-50); }

.burger span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--green-800);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
  transform-origin: center;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(253,252,249,0.97);
  backdrop-filter: blur(16px);
  z-index: calc(var(--z-sticky) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-8);
  transform: translateY(-100%);
  transition: transform var(--t-slow);
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
}

.mobile-nav .nav-link {
  font-size: 1.2rem;
  padding: var(--sp-4) var(--sp-8);
  width: 100%;
  text-align: center;
  border-radius: var(--r-md);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(45, 90, 26, .35);
}
.btn--primary:hover {
  background: var(--green-600);
  box-shadow: 0 4px 16px rgba(45, 90, 26, .45);
  transform: translateY(-1px);
}

.btn--outline {
  border: 2px solid var(--green-700);
  color: var(--green-700);
}
.btn--outline:hover {
  background: var(--green-50);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--green-700);
}
.btn--ghost:hover {
  background: var(--green-50);
}

.btn--sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.85rem;
}

.btn--lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: 1.05rem;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card__body {
  padding: var(--sp-6);
}

.card__title {
  margin-bottom: var(--sp-2);
}

.card__text {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 50%, var(--green-600) 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../gites/pics/fond.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-block: var(--sp-16);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-200);
  margin-bottom: var(--sp-4);
  background: rgba(255,255,255,.08);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.15);
}

.hero__title {
  color: var(--white);
  margin-bottom: var(--sp-6);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hero__title span {
  color: var(--amber-300);
}

.hero__desc {
  max-width: 55ch;
  font-size: 1.1rem;
  color: rgba(255,255,255,.80);
  line-height: 1.7;
  margin-bottom: var(--sp-10);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* ── Badge / Tag ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge--green {
  background: var(--green-100);
  color: var(--green-700);
}

.badge--amber {
  background: var(--amber-100);
  color: var(--amber-700);
}

/* ── Section header ── */
.section-header {
  margin-bottom: var(--sp-12);
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin-inline: auto;
}

.section-header__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-500);
  margin-bottom: var(--sp-3);
}

.section-header h2 { margin-bottom: var(--sp-4); }

/* ── Grid systems ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--sp-6);
}

.cards-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.cards-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* ── Progress bar ── */
.progress {
  height: 6px;
  background: var(--gray-200);
  border-radius: var(--r-full);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
  border-radius: var(--r-full);
  animation: progressAnim 2.5s ease forwards;
  transform-origin: left;
}

@keyframes progressAnim {
  from { width: 0; }
  to   { width: var(--progress, 60%); }
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin-block: var(--sp-8);
}

/* ── Footer ── */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.75);
  padding-block: var(--sp-16) var(--sp-8);
}

.site-footer a:hover { color: var(--white); }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer__brand img {
  height: 52px;
  margin-bottom: var(--sp-4);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 28ch;
}

.footer__col h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-300);
  margin-bottom: var(--sp-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__links a {
  font-size: 0.9rem;
  transition: color var(--t-fast);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: 0.82rem;
  color: rgba(255,255,255,.45);
}

.footer__bottom a {
  color: rgba(255,255,255,.45);
  transition: color var(--t-fast);
}
.footer__bottom a:hover { color: rgba(255,255,255,.85); }

/* ── Back button ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-700);
  transition: gap var(--t-fast), color var(--t-fast);
  margin-bottom: var(--sp-8);
}

.back-btn:hover {
  gap: var(--sp-3);
  color: var(--green-600);
}

/* ── Construction page ── */
.construction-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8);
  text-align: center;
}

.construction-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-12) var(--sp-10);
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-xl);
}

.construction-icon {
  font-size: 4rem;
  margin-bottom: var(--sp-6);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Pill nav (sub-navigation) ── */
.pill-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  padding: var(--sp-2);
  background: var(--gray-100);
  border-radius: var(--r-full);
  width: fit-content;
}

.pill-nav__item {
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all var(--t-fast);
  cursor: pointer;
}

.pill-nav__item.active,
.pill-nav__item:hover {
  background: var(--white);
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
}

.lightbox__close {
  position: fixed;
  top: var(--sp-6);
  right: var(--sp-6);
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.15);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }

/* ── Responsive ── */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .site-nav { display: none; }
  .burger  { display: flex; }

  .hero__content { padding-block: var(--sp-12); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .section { padding-block: var(--sp-12); }

  .container { padding-inline: var(--sp-4); }

  .footer__bottom { justify-content: center; text-align: center; }

  .pill-nav {
    border-radius: var(--r-lg);
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .construction-card {
    padding: var(--sp-8) var(--sp-6);
  }

  .cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Scroll reveal (JS helper) ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Color overrides per section ── */
[data-section="gites"]  { --accent: var(--color-gites);  }
[data-section="asso"]   { --accent: var(--color-asso);   }
[data-section="agro"]   { --accent: var(--color-agro);   }
[data-section="randos"] { --accent: var(--color-randos); }
