/* ===== Flay'Forest — style.css ===== */

:root {
  --green: #4C8C1F;
  --green-dark: #2F5A14;
  --green-light: #E9F3DD;
  --magenta: #E31C63;
  --magenta-dark: #B8134E;
  --gold: #F4B92E;
  --cream: #FBF7EC;
  --cream-dark: #F0E9D6;
  --ink: #22261C;
  --ink-soft: #55584C;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(34, 38, 28, 0.12);
  --shadow-sm: 0 4px 14px rgba(34, 38, 28, 0.09);
  --header-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #fff;
  padding: 12px 18px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 8px 20px rgba(227, 28, 99, 0.35); }
.btn-primary:hover { background: var(--magenta-dark); }

.btn-outline { background: transparent; border-color: var(--green); color: var(--green-dark); }
.btn-outline:hover { background: var(--green); color: #fff; }

.btn-outline-light {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); color: #fff;
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover { background: #fff; color: var(--ink); }

.btn-ghost { background: var(--cream-dark); color: var(--ink); padding: 10px 18px; font-size: 0.92rem; }
.btn-ghost:hover { background: var(--green); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251, 247, 236, 0.75);
  backdrop-filter: blur(10px);
  transition: background .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.scrolled { background: rgba(251, 247, 236, 0.97); box-shadow: var(--shadow-sm); height: 68px; }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.brand-text { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--ink); line-height: 1; }
.brand-text span { display: block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--magenta); margin-top: 3px; }

.main-nav ul { display: flex; gap: 24px; flex-wrap: wrap; }
.main-nav a {
  font-weight: 600; font-size: 0.93rem; color: var(--ink-soft);
  position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--magenta); transition: width .2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--magenta-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone svg { color: var(--green-dark); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,10,.55) 0%, rgba(20,30,10,.35) 45%, rgba(20,30,10,.8) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: var(--header-h); max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; font-size: 0.85rem; color: #E6F5C9; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 20px; text-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.hero-lead { font-size: 1.12rem; max-width: 560px; margin-bottom: 30px; color: #F6FAEE; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Info strip ===== */
.info-strip { background: var(--green-dark); color: #fff; padding: 26px 0; }
.info-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.info-item { display: flex; align-items: flex-start; gap: 12px; }
.info-item svg { flex-shrink: 0; margin-top: 2px; color: #C7E8A6; }
.info-item div { display: flex; flex-direction: column; gap: 2px; }
.info-item strong { font-size: 0.98rem; }
.info-item span { font-size: 0.86rem; color: #DCF0C8; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--cream-dark); }
.section-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.82rem; color: var(--magenta-dark); margin-bottom: 12px; }
.section-eyebrow.center { text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 16px; max-width: 700px; }
.section-title.center { margin: 0 auto 16px; text-align: center; }
.section-lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 640px; margin-bottom: 44px; }
.section-lead.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  padding: calc(var(--header-h) + 56px) 0 56px;
  color: #fff; text-align: center;
  background-image: linear-gradient(rgba(24,45,14,0.82), rgba(24,45,14,0.9));
  background-size: cover; background-position: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: #E6F5C9; font-size: 1.02rem; max-width: 580px; margin: 0 auto; }

/* ===== Activity teaser cards (home) ===== */
.activity-teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.teaser-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); min-height: 320px;
  display: flex; align-items: flex-end;
  transition: transform .2s ease, box-shadow .2s ease;
}
.teaser-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.teaser-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teaser-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,25,12,0) 30%, rgba(20,25,12,.85) 100%);
}
.teaser-card-body { position: relative; z-index: 1; padding: 28px; color: #fff; }
.teaser-tag {
  display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 5px 12px; border-radius: 999px;
  background: var(--magenta); color: #fff; margin-bottom: 12px;
}
.teaser-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.teaser-card p { font-size: 0.92rem; color: #EFF6E4; margin-bottom: 16px; }

/* ===== Course level cards ===== */
.levels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-bottom: 20px; }
.level-card {
  background: #fff; border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); border-top: 5px solid var(--green);
  transition: transform .2s ease, box-shadow .2s ease;
}
.level-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.level-card h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.level-card p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 12px; }
.level-price { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--magenta-dark); }
.level-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--cream-dark); color: var(--ink-soft); }

.level-mini { border-top-color: var(--gold); }
.level-family { border-top-color: var(--green); }
.level-aventure { border-top-color: var(--magenta); }

/* ===== Split info ===== */
.split-info { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.split-info-col { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.split-info-col h3 { font-size: 1.3rem; color: var(--green-dark); margin-bottom: 18px; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 14px; font-size: 0.96rem; color: var(--ink-soft); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--green); opacity: 0.15;
}
.check-list li::after {
  content: '✓'; position: absolute; left: 2.5px; top: 2px; font-size: 0.7rem; font-weight: 700; color: var(--green-dark);
}

/* ===== Pricing tables ===== */
.pricing-block { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 32px; margin-bottom: 28px; }
.pricing-block h3 { font-size: 1.3rem; color: var(--green-dark); margin-bottom: 8px; }
.pricing-desc { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 20px; }
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th, .pricing-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--cream-dark); font-size: 0.95rem; }
.pricing-table th { font-family: 'Baloo 2', sans-serif; color: var(--green-dark); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pricing-table td:last-child { font-weight: 700; text-align: right; color: var(--magenta-dark); }
.pricing-note { font-size: 0.85rem; color: var(--ink-soft); background: var(--cream); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px; }

/* ===== Horaires ===== */
.horaires-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.horaires-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.horaires-card h3 { font-size: 1.2rem; color: var(--green-dark); margin-bottom: 6px; }
.horaires-card .period-dates { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.horaires-card p { font-size: 0.95rem; color: var(--ink-soft); }
.horaires-badge { display: inline-block; margin-top: 16px; font-size: 0.85rem; color: var(--magenta-dark); background: var(--cream-dark); padding: 8px 14px; border-radius: var(--radius-sm); }

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact-list { margin: 24px 0 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 0.98rem; }
.contact-list svg { color: var(--green-dark); flex-shrink: 0; margin-top: 2px; }
.contact-list a:hover { color: var(--green-dark); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; margin-top: 28px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.contact-form { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.form-row input, .form-row select, .form-row textarea {
  font-family: inherit; font-size: 0.96rem; padding: 12px 14px;
  border: 1.5px solid var(--cream-dark); border-radius: var(--radius-sm);
  background: var(--cream); color: var(--ink); resize: vertical;
  transition: border-color .2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--green); }
.form-hint { font-size: 0.8rem; color: var(--ink-soft); opacity: 0.75; margin-top: 6px; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--magenta); color: #fff; border-radius: var(--radius);
  padding: 44px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-banner h3 { font-size: 1.5rem; margin-bottom: 8px; }
.cta-banner p { color: #FBDCE9; font-size: 0.98rem; }
.cta-banner .btn-primary { background: #fff; color: var(--magenta-dark); box-shadow: none; }
.cta-banner .btn-primary:hover { background: var(--gold); color: var(--ink); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #D6D9CC; padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.15rem; color: #fff; }
.footer-contact { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: 0.88rem; }
.footer-contact a:hover { color: var(--gold); }
.footer-inner p { font-size: 0.82rem; color: #9C9F91; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--green); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease; z-index: 400;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-dark); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone span { display: none; }
  .main-nav.open {
    display: block; position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--cream); box-shadow: var(--shadow); padding: 24px;
  }
  .main-nav.open ul { flex-direction: column; gap: 18px; }
  .info-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .split-info { grid-template-columns: 1fr; }
  .horaires-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .info-strip-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }
  .contact-form { padding: 24px; }
  .pricing-block { padding: 22px; }
  .cta-banner { flex-direction: column; text-align: center; }
}
