/* =============================================
   MAM Les P'tits Cocoons — style.css
   ============================================= */

/* ---- Variables ---- */
:root {
  --color-bg: #FAF7F2;
  --color-sage: #8A9E7A;
  --color-sage-light: #B5C9A8;
  --color-sage-dark: #6a7d5c;
  --color-beige: #C4A882;
  --color-beige-light: #EDE0CE;
  --color-text: #2D2D2D;
  --color-text-light: #6B6B6B;
  --color-white: #FFFFFF;

  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

  --transition: all 0.3s ease;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ---- Typography ---- */
h1, h2 {
  font-family: var(--font-title);
  line-height: 1.25;
  color: var(--color-text);
}

h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.35;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; color: var(--color-text-light); }
p:last-child { margin-bottom: 0; }

strong { color: var(--color-text); font-weight: 700; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.section-white { background-color: var(--color-white); }
.section-beige { background-color: var(--color-beige-light); }
.section-sage  { background-color: var(--color-sage); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-tag {
  display: inline-block;
  background: var(--color-beige-light);
  color: var(--color-sage-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.text-white, .text-white h2, .text-white p { color: var(--color-white) !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--color-sage-dark);
  border-color: var(--color-sage-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-sage);
  border-color: var(--color-sage);
}

.btn-outline:hover {
  background-color: var(--color-sage);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 48px;
  font-size: 1.1rem;
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  height: var(--nav-height);
}

.navbar.scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-white);
  transition: var(--transition);
}

.navbar.scrolled .nav-logo { color: var(--color-text); }

.logo-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,0.9);
  transition: var(--transition);
}

.navbar.scrolled .nav-link { color: var(--color-text); }

.nav-link:hover {
  background-color: rgba(255,255,255,0.15);
  color: var(--color-white);
}

.navbar.scrolled .nav-link:hover {
  background-color: var(--color-beige-light);
  color: var(--color-sage-dark);
}

.nav-link.nav-cta {
  background-color: var(--color-sage);
  color: var(--color-white) !important;
  padding: 10px 22px;
}

.nav-link.nav-cta:hover {
  background-color: var(--color-sage-dark);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.burger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .burger span { background-color: var(--color-text); }

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

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8A9E7A 0%, #C4A882 100%);
  background-image: url('../images/greyerbaby-baby-390555_1920.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(138,158,122,0.75) 0%,
    rgba(196,168,130,0.55) 100%
  );
}

.badge-places {
  position: absolute;
  top: calc(var(--nav-height) + 20px);
  right: 28px;
  background-color: var(--color-sage);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  z-index: 5;
  animation: fadeInDown 0.8s 0.6s both;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
  animation: heroFadeIn 1s 0.2s both;
}

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-title);
  color: var(--color-white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero-title em {
  font-style: italic;
  color: var(--color-beige-light);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

/* =============================================
   PRESENTATION
   ============================================= */
.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 70px;
}

.presentation-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.presentation-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  height: 420px;
}

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

.feature-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(196,168,130,0.2);
}

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

.feature-icon {
  margin-bottom: 16px;
  color: var(--color-sage);
  display: flex;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.95rem;
  margin: 0;
}

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

.activity-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--color-sage);
}

.activity-icon {
  margin-bottom: 18px;
  color: var(--color-sage);
  display: flex;
  justify-content: center;
}

.activity-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.activity-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* =============================================
   VALEURS
   ============================================= */
.values-section .section-header h2 {
  color: var(--color-white);
}

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

.value-item {
  text-align: center;
  padding: 20px;
}

.value-icon {
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
  display: flex;
  justify-content: center;
}

.value-item h3 {
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 12px;
}

.value-item p {
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
  margin: 0;
}

/* =============================================
   GALERIE
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(138,158,122,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gallery-overlay span {
  font-size: 2rem;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(138,158,122,0.45);
}

.gallery-item:hover .gallery-overlay span {
  opacity: 1;
  transform: scale(1);
}

/* ---- Lightbox ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
  animation: lightboxIn 0.25s ease both;
}

.lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--color-white);
  cursor: pointer;
  transition: var(--transition);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-sage);
  transform: translateY(0) scale(1.1);
}

.lightbox-prev:hover { transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

/* =============================================
   INFOS PRATIQUES
   ============================================= */
.infos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.infos-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.infos-card h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: var(--color-text);
}

.infos-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.infos-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-sage);
  display: flex;
  align-items: flex-start;
}

.infos-list strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 3px;
}

.infos-list span {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 500;
}

.infos-list a {
  color: var(--color-sage-dark);
  font-weight: 600;
}

.infos-list a:hover { color: var(--color-sage); }

.badge-disponible {
  display: inline-block;
  background-color: var(--color-sage);
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.infos-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
}

.infos-map iframe,
.infos-map .googlemapsembed {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  display: block;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
}

.required { color: var(--color-sage-dark); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--color-beige-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(138,158,122,0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6B6B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-error {
  color: #e74c3c;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 18px;
}

.form-submit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.form-success {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-success.show { display: block; }

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-aside-card {
  background: var(--color-beige-light);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.contact-aside-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.contact-aside-card p {
  font-size: 0.92rem;
  margin-bottom: 16px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-tagline {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-sage-light);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-links h4,
.footer-contact h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.footer-contact li {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact a {
  color: var(--color-sage-light);
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  margin: 0;
}

.footer-legal { margin-top: 6px !important; font-size: 0.78rem !important; }

.footer-legal a {
  color: rgba(255,255,255,0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* =============================================
   PAGE HERO (mentions légales, politique…)
   ============================================= */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8A9E7A 0%, #C4A882 100%);
  background-image: url('../images/greyerbaby-baby-390555_1920.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(138,158,122,0.80) 0%,
    rgba(196,168,130,0.65) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 60px 24px;
  max-width: 700px;
  animation: heroFadeIn 0.9s 0.1s both;
}

/* =============================================
   LEGAL CONTENT
   ============================================= */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2rem;
  color: var(--color-text);
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-beige-light);
}

.legal-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal-content ul li {
  list-style: disc;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.legal-content a {
  color: var(--color-sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover { color: var(--color-sage); }

.legal-back {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-beige-light);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

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

/* ---- Intersection Observer classes ---- */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.animate-up:nth-child(2) { transition-delay: 0.1s; }
.animate-up:nth-child(3) { transition-delay: 0.2s; }
.animate-up:nth-child(4) { transition-delay: 0.3s; }

/* =============================================
   RESPONSIVE — 1200px
   ============================================= */
@media (max-width: 1200px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 36px;
  }
}

/* =============================================
   RESPONSIVE — 768px (tablette)
   ============================================= */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .section { padding: 60px 0; }

  /* Nav mobile */
  .burger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    border-top: 1px solid var(--color-beige-light);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-link {
    color: var(--color-text);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 1rem;
  }

  .nav-link:hover {
    background-color: var(--color-beige-light);
    color: var(--color-sage-dark);
  }

  .nav-link.nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  /* Hero */
  .badge-places {
    top: calc(var(--nav-height) + 12px);
    right: 16px;
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  .hero-subtitle { font-size: 1.05rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }

  /* Présentation */
  .presentation-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .presentation-image { order: -1; }
  .presentation-image img { height: 280px; }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Activités */
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Valeurs */
  .values-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Galerie */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  /* Infos */
  .infos-grid { grid-template-columns: 1fr; }
  .infos-map { min-height: 300px; }

  /* Contact */
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-form { padding: 30px 24px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* =============================================
   RESPONSIVE — 480px (mobile)
   ============================================= */
@media (max-width: 480px) {
  html { font-size: 15px; }

  .section { padding: 50px 0; }
  .container { padding: 0 18px; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .section-header { margin-bottom: 40px; }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .contact-form { padding: 24px 16px; }

  .infos-card { padding: 28px 20px; }
}
