/* ============================================================
   English GrowSpace — stylesheet
   ============================================================ */

:root {
  --bg-blue: #e0efff;
  --bg-orange: #e86f2a;
  --bg-navy: #2f4f83;

  --navy: #35679E;
  --navy-dark: #17304f;
  --orange: #e87c2d;
  --orange-dark: #cc6a1f;
  --peach: #f8dcb8;
  --cream: #f5e4cd;
  --cream-soft: #faeedc;
  --white: #ffffff;

  --tarif-orange: #e8762d;
  --tarif-orange-top: #f0904c;
  --tarif-green:  #3fae6c;
  --tarif-green-top: #65c287;
  --tarif-red:    #e85a4a;
  --tarif-red-top: #ef7565;
  --tarif-green2: #4cb679;
  --tarif-green2-top: #6ec690;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-serif: "Fraunces", "Playfair Display", Georgia, serif;
  --font-sans:  "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-width: 1200px;
}

/* =================== RESET =================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 48px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--bg-blue);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

/* Prevent children from forcing their parent to expand */
* { min-width: 0; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { margin: 0; font-family: var(--font-serif); font-weight: 700; }

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container { max-width: 640px; padding: 0 20px; }
}
@media (min-width: 768px) {
  .container { max-width: 768px; padding: 0 24px; }
}
@media (min-width: 1024px) {
  .container { max-width: 1024px; padding: 0 32px; }
}
@media (min-width: 1280px) {
  .container { max-width: 1200px; }
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--orange);
}

.hl {
  background: var(--peach);
  padding: 0.05em 0.35em;
  border-radius: 6px;
  display: inline-block;
}

/* =================== HEADER =================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  background: var(--bg-blue);
  border-bottom: 1px solid rgba(31, 58, 95, 0.08);
  box-shadow: 0 2px 6px rgba(31, 58, 95, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

.nav-list {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--navy);
  flex-wrap: nowrap;
}

@media (min-width: 480px) {
  .nav-list { gap: 18px; font-size: 0.85rem; }
}

@media (min-width: 768px) {
  .nav { justify-content: flex-end; }
  .nav-list { gap: 32px; font-size: 0.95rem; }
}

.nav-list a {
  position: relative;
  padding: 4px 2px;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--orange);
}

/* =================== HERO =================== */

.hero {
  background: var(--bg-blue);
  padding: 48px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.hero-left { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.hero-card {
  background: var(--white);
  border: 9px solid var(--navy);
  border-radius: 44px;
  padding: 32px 40px;
  box-shadow: 0 6px 24px rgba(31, 58, 95, 0.08);
  text-align: center;
  max-width: 100%;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  line-height: 1;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
}

.hero-title-line1 { color: var(--navy); }
.hero-title-line2 { color: var(--orange); }

.hero-tagline {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(232, 124, 45, 0.3);
}

.hero-right img {
  max-width: 100%;
  margin: 0 auto;
}

/* =================== L'ESPRIT =================== */

.esprit {
  background: var(--bg-orange);
  padding: 48px 0;
  color: var(--white);
}

.esprit-title {
  color: var(--white);
  margin: 0 0 24px;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  text-align: center;
}

.esprit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.esprit-character img {
  max-width: 260px;
  margin: 0 auto;
  transform: scaleX(-1);
}

.esprit-cards {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.esprit-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--cream-soft);
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  width: 100%;
  min-height: 110px;
}

.esprit-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.esprit-card-body { text-align: center; flex: 1; }

.esprit-card h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.esprit-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* =================== KATE =================== */

.kate {
  background: var(--bg-blue);
  padding: 48px 0;
}

.kate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.kate-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 24px;
}

.kate-text p {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.kate-list {
  margin-top: 24px;
  padding-left: 24px;
  font-style: italic;
  color: var(--navy);
  display: inline-block;
  text-align: left;
}

.kate-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.1rem;
}

.kate-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 0.75em;
  top: 0.3em;
}

.kate-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.kate-photo img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(31, 58, 95, 0.15);
  border: 6px solid var(--white);
}

.kate-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--orange);
  text-align: center;
  margin: 0;
}

/* =================== EN CLASSE =================== */

.classe {
  background: var(--bg-blue);
  padding: 48px 0;
  text-align: center;
}

.classe-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.classe-lead {
  max-width: 680px;
  font-size: 1rem;
  margin: 0 auto 10px;
}

.classe-sub {
  color: var(--orange);
  font-style: italic;
  font-weight: 700;
  margin: 0 0 32px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 460px;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 20px rgba(31, 58, 95, 0.12);
}

/* =================== UN COURS =================== */

.cours {
  background: var(--bg-blue);
  padding: 48px 0;
}

.cours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.cours-image img { max-width: 280px; margin: 0 auto; }

.cours-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 22px;
}

.cours-lead, .cours-feedback {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 18px;
}

.cours-lead em, .cours-feedback em { font-style: italic; }

.emoji { font-style: normal; margin-right: 4px; }

.cours-list {
  counter-reset: item;
  margin: 0 auto 18px;
  padding: 0;
  list-style: none;
  display: inline-block;
  text-align: left;
}

.cours-list li {
  counter-increment: item;
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.cours-list li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--navy);
}

/* =================== FORMATS =================== */

.formats {
  background: var(--bg-navy);
  color: var(--white);
  padding: 48px 0;
}

.formats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 400px;
  margin: 0 auto;
}

.format-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--white);
}

.format-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.format-tile img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.format-card h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.format-sub-paren { font-weight: 900; }

.format-sub {
  color: var(--orange);
  font-style: italic;
  font-weight: 1000;
  border-top: 2px solid rgba(255, 255, 255, 0.75);
  border-bottom: 2px solid rgba(255, 255, 255, 0.75);
  padding: 5px;
  margin: 0 auto 14px;
  display: block;
  width: 85%;
  font-size: 1.0rem;
}

.format-desc {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 20px;
  color: var(--white);
}

.format-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

/* =================== TARIFS =================== */

.tarifs {
  background: var(--bg-navy);
  padding: 48px 0;
}

.tarifs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px 24px;
  max-width: 360px;
  margin: 0 auto;
  padding-top: 40px;
}

.tarif-card {
  border-radius: var(--radius-lg);
  padding: 0 26px 28px;
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  position: relative;
}

.tarif-orange { background: var(--tarif-orange); }
.tarif-green  { background: var(--tarif-green); }
.tarif-red    { background: var(--tarif-red); }
.tarif-green2 { background: var(--tarif-green2); }

.tarif-tile {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-top: -40px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.tarif-orange .tarif-tile { background: var(--tarif-orange-top); }
.tarif-green  .tarif-tile { background: var(--tarif-green-top); }
.tarif-red    .tarif-tile { background: var(--tarif-red-top); }
.tarif-green2 .tarif-tile { background: var(--tarif-green2-top); }

.tarif-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }

.tarif-card h3 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.1;
}

.tarif-sub-paren { font-size: 0.95rem; font-weight: 700; }

.tarif-prices {
  width: 100%;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.tarif-prices li {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.tarif-prices li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.4); }

.tarif-note {
  font-size: 0.82rem;
  font-style: italic;
  opacity: 0.9;
  margin: 0 0 18px;
}

.tarif-card .btn { margin-top: auto; }

/* =================== S'INSCRIRE =================== */

.sinscrire {
  background: var(--bg-blue);
  padding: 48px 0;
}

.sinscrire-title {
  text-align: center;
  margin-bottom: 32px;
}

.formats-title,
.tarifs-title {
  text-align: center;
  margin-bottom: 32px;
  color: var(--white);
}

.sinscrire-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 360px;
  margin: 0 auto;
}

.signup-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.signup-tile {
  width: 180px;
  height: 180px;
  background: var(--orange);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(232, 124, 45, 0.25);
  margin-bottom: 6px;
}

.signup-tile img { 
  max-width: 180%;
  max-height: 180%;
  object-fit: contain; 
}

.signup-card h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1.15;
}

.signup-label {
  color: var(--orange);
  font-weight: 900;
  margin: 0;
  padding: 10px 0;
  border-top: 1.5px solid rgba(31, 58, 95, 0.3);
  border-bottom: 1.5px solid rgba(31, 58, 95, 0.3);
  width: 100%;
  max-width: 220px;
}

.signup-label em {
  font-weight: 900;
  font-style: italic;
}

.signup-desc {
  font-size: 0.92rem;
  max-width: 320px;
  margin: 0 0 10px;
}

/* =================== CONTACT =================== */

.contact {
  background: var(--bg-orange);
  color: var(--white);
  padding: 48px 0;
}

.contact-title {
  color: var(--white);
  margin: 0 0 24px;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.contact-character img {
  max-width: 240px;
  margin: 0 auto;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--cream-soft);
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
  min-height: 110px;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-card-body { flex: 1; text-align: center; }

.contact-label {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--navy);
  margin: 0 0 4px;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
}

.contact-value {
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =================== BUTTONS =================== */

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid transparent;
}

.btn-ghost {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover { background: var(--white); color: var(--navy); }

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

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }

.btn-outline {
  border-color: var(--orange);
  color: var(--orange);
  background: transparent;
  padding: 12px 36px;
}

.btn-outline:hover { background: var(--orange); color: var(--white); }

.btn-solid-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-solid-white:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 124, 45, 0.35);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS (mobile-first)
   xs:   0      (base styles, 1-column mobile)
   sm:  640px+
   md:  768px+
   lg: 1024px+  (desktop: full-viewport sections + snap)
   xl: 1280px+
   ============================================================ */

/* ---------- SM: >=640px ---------- */

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: none;
  }
  .formats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 560px;
  }
  .tarifs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 28px;
    max-width: 560px;
  }
  .sinscrire-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    max-width: 620px;
  }
}

/* ---------- MD: >=768px ---------- */

@media (min-width: 768px) {
  .hero,
  .esprit,
  .kate,
  .classe,
  .cours,
  .formats,
  .tarifs,
  .sinscrire,
  .contact {
    padding: 64px 0;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    text-align: left;
    gap: 40px;
  }
  .esprit-grid,
  .kate-grid,
  .cours-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 40px;
  }
  .esprit-title,
  .contact-title {
    text-align: left;
  }
  .classe { text-align: center; }
  .kate-text p,
  .classe-lead {
    margin-left: 0;
    margin-right: 0;
  }
  .classe-lead { margin-left: auto; margin-right: auto; }
  .kate-list { display: block; }
  .cours-list { display: block; }

  .esprit-character img,
  .cours-image img,
  .contact-character img {
    max-width: 300px;
  }
  .kate-photo img { width: 280px; height: 280px; }
  .hero-card { padding: 36px 48px; }
}

/* ---------- LG: >=1024px (desktop) ---------- */

@media (min-width: 1024px) {
  html {
    scroll-snap-type: y mandatory;
  }

  .hero,
  .esprit,
  .kate,
  .classe,
  .cours,
  .formats,
  .tarifs,
  .sinscrire,
  .contact {
    min-height: calc(100vh - 48px);
    min-height: calc(100dvh - 48px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  /* Section-specific layouts restored for desktop */
  .hero-grid        { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .esprit-grid      { grid-template-columns: 1fr 1.2fr; gap: 40px; }
  .kate-grid        { grid-template-columns: 1.1fr 1fr; gap: 50px; }
  .cours-grid       { grid-template-columns: 1fr 1.3fr; gap: 40px; }
  .contact-grid     { grid-template-columns: 1fr 1.2fr; gap: 40px; }

  .formats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: none;
  }
  .tarifs-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 60px 26px;
    max-width: none;
    padding-top: 40px;
  }
  .sinscrire-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    max-width: 900px;
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* Desktop esprit/contact cards: fixed layout with icon overhang */
  .esprit-card,
  .contact-card {
    width: 450px;
    min-height: 128px;
    padding: 20px 32px 20px 24px;
    gap: 20px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  }
  .esprit-icon,
  .contact-icon {
    width: 128px;
    height: 128px;
    margin-left: -80px;
  }
  .esprit-card h3 { font-size: 2em; }
  .esprit-card p  { font-size: clamp(0.95rem, 1.3vw, 1.15rem); }
  .contact-label  { font-size: clamp(0.9rem, 1.1vw, 1.05rem); }
  .contact-value  { font-size: clamp(0.95rem, 1.4vw, 1.25rem); }

  /* Titles */
  .esprit-title,
  .contact-title {
    font-size: 68pt;
    font-weight: 700;
    margin-left: 80px;
    margin-bottom: -10px;
    text-align: left;
  }
  .kate-title { font-size: clamp(2.4rem, 4.5vw, 3.4rem); margin-bottom: 32px; }
  .kate-text p { font-size: 1.2rem; line-height: 1.7; max-width: 600px; }
  .kate-list li { font-size: 1.1rem; }
  .classe { text-align: left; }
  .classe-lead { max-width: 680px; margin-left: 0; margin-right: 0; }
  .cours-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

  /* Images back to desktop sizes */
  .esprit-character img,
  .cours-image img,
  .contact-character img { max-width: 340px; }
  .kate-photo img { width: 320px; height: 320px; }
  .cours-image img { max-width: 360px; }

  /* Hero card */
  .hero-card { padding: 40px 56px; }

  /* Tarifs + Sinscrire titles near top + grid auto-centered */
  .formats, .tarifs, .sinscrire { padding-top: 28px; }
  .formats-title,
  .tarifs-title,
  .sinscrire-title { margin-bottom: 32px; }
  .tarifs > .container,
  .sinscrire > .container {
    min-height: calc(100vh - 48px - 28px - 56px);
    display: flex;
    flex-direction: column;
  }
  .tarifs-grid,
  .sinscrire-grid {
    margin-top: auto;
    margin-bottom: auto;
  }

  /* Sections with vertically centered content */
  .kate,
  .classe,
  .cours {
    display: flex;
    align-items: center;
  }
  .kate > .container,
  .classe > .container,
  .cours > .container {
    width: 100%;
  }
}
