:root {
  --pink-light: #faf6f5;
  --pink: #c65197;
  --blue: #4f8fba;
  --orange-light: #fefcf6;
  --orange: #da9b3f;
  --green-light: #e2f5f1;
  --green: #48a743;

  --ink: #3a3340;
  --muted: #6d6577;

  --container: 1100px;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(58, 51, 64, .12);
}

html {
  scroll-behavior: smooth;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, Aptos, Roboto, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body {
  background-color: white;
  color: var(--ink);
  line-height: 1.6;
}

.content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Display headings */
.display {
  font-family: "Caveat";
  font-weight: 700;
  line-height: 1.05;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--pink-light);
  box-shadow: 0 2px 12px rgba(58, 51, 64, .06);
}

.header .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  height: clamp(56px, 9vw, 84px);
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 18px);
  font-family: "Caveat";
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
}

nav a {
  color: var(--pink);
  text-decoration: none;
  position: relative;
  z-index: 1;
  padding: 6px 16px;
  white-space: nowrap;
}

nav a::before {
  content: '';
  background-color: var(--pink);
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  z-index: -1;
  transition: all .3s ease-in-out;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* The :hover colour must beat the per-link colours below (same base specificity),
   so qualify it with each class — otherwise hovered text matches its fill. */
nav a:hover,
nav a.nav2:hover,
nav a.nav3:hover,
nav a.nav4:hover {
  color: white;
}

nav a:hover::before {
  bottom: 0;
  height: 100%;
}

nav a.nav2 { color: var(--blue); }
nav a.nav2::before { background-color: var(--blue); }
nav a.nav3 { color: var(--orange); }
nav a.nav3::before { background-color: var(--orange); }
nav a.nav4 { color: var(--green); }
nav a.nav4::before { background-color: var(--green); }

.bars {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--pink);
  padding: 8px;
  line-height: 1;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(440px, 72vh, 660px);
  background-image:
    linear-gradient(180deg, rgba(58, 51, 64, .25) 0%, rgba(58, 51, 64, .55) 100%),
    url("/assets/preschool.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  text-align: center;
}

.hero .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.hero h1 {
  font-family: "Caveat";
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
  max-width: 16ch;
}

.hero h2 {
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
  max-width: 40ch;
  margin-bottom: 28px;
}

.hero a {
  background: var(--pink);
  color: white;
  padding: 16px 34px;
  border-radius: 40px;
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  transition: transform .2s ease, background .3s ease;
  box-shadow: 0 8px 20px rgba(198, 81, 151, .45);
}

.hero a:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(79, 143, 186, .45);
}

/* ---------- Présentation ---------- */

.presentation {
  background: var(--pink-light);
}

.presentation .content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.presentation-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.presentation-text h3 {
  font-family: "Caveat";
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.05;
  color: var(--pink);
  margin-bottom: 8px;
}

.presentation-text .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.presentation-text p {
  margin-bottom: 16px;
}

.presentation-text .cta {
  display: inline-block;
  margin-top: 8px;
  background: var(--pink);
  color: white;
  padding: 14px 30px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, background .3s ease;
  box-shadow: 0 8px 20px rgba(198, 81, 151, .35);
}

.presentation-text .cta:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

/* ---------- Features ---------- */

.features .content {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(48px, 7vw, 80px);
}

/* Shared section titles */
.features h2,
.engagement h2,
.benefits h2,
.testimonials h2,
.gallery h2 {
  font-family: "Caveat";
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 12px;
}

.features h2 { color: var(--blue); }
.engagement h2 { color: var(--pink); }
.benefits h2 { color: var(--green); }
.testimonials h2 { color: var(--orange); }
.gallery h2 { color: var(--blue); }

.section-intro {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 62ch;
  margin: 0 auto clamp(36px, 5vw, 56px);
}

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

.card {
  background: white;
  border: 1px solid #efe9ee;
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.6rem;
  color: white;
}

.card:nth-child(1) .icon { background: var(--pink); }
.card:nth-child(2) .icon { background: var(--blue); }
.card:nth-child(3) .icon { background: var(--green); }

.card h3 {
  font-family: "Caveat";
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
}

/* Anchor offset so the sticky header doesn't cover section tops */
.presentation,
.features,
.engagement,
.benefits,
.testimonials,
.gallery,
#contact {
  scroll-margin-top: 96px;
}

/* Citation fondatrice dans la présentation */
.pull-quote {
  font-family: "Caveat";
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  color: var(--pink);
  text-align: left;
  border-left: 4px solid var(--pink);
  padding-left: 18px;
  margin: 22px 0;
}

/* ---------- Engagement ---------- */

.engagement {
  background: var(--pink-light);
}

.engagement .content {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(48px, 7vw, 80px);
}

.checklist {
  max-width: 760px;
  margin: 0 auto;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(58, 51, 64, .08);
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li i {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: .8rem;
}

.callout {
  max-width: 760px;
  margin: 32px auto 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: white;
  border: 1px solid #efe9ee;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
}

.callout i {
  color: var(--orange);
  font-size: 1.4rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.callout p {
  margin: 0;
}

/* ---------- Bénéfices ---------- */

.benefits .content {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(48px, 7vw, 80px);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.benefit {
  text-align: center;
}

.benefit-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.8rem;
  color: white;
}

.benefit-icon.pink { background: var(--pink); }
.benefit-icon.blue { background: var(--blue); }
.benefit-icon.green { background: var(--green); }

.benefit h3 {
  font-family: "Caveat";
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.benefit p {
  color: var(--muted);
  max-width: 36ch;
  margin: 0 auto;
}

/* ---------- Témoignages ---------- */

.testimonials {
  background: var(--pink-light);
}

.testimonials .content {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(48px, 7vw, 80px);
}

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

.quote {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.quote > i {
  color: var(--pink);
  opacity: .55;
  font-size: 1.8rem;
}

.quote blockquote {
  flex: 1;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
}

.quote figcaption {
  font-family: "Caveat";
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--blue);
}

/* ---------- Galerie ---------- */

.gallery .content {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(48px, 7vw, 80px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}

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

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

/* Cases d'attente avant l'ajout des vraies photos */
.gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 2px dashed rgba(58, 51, 64, .12);
}

.gallery-item.placeholder:nth-child(3n+1) { background: var(--pink-light);   color: var(--pink); }
.gallery-item.placeholder:nth-child(3n+2) { background: var(--green-light);  color: var(--green); }
.gallery-item.placeholder:nth-child(3n+3) { background: var(--orange-light); color: var(--orange); }

/* ---------- Footer ---------- */

footer {
  background: #fbf9fa;
  border-top: 1px solid #efe9ee;
  font-size: .95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: clamp(32px, 6vw, 72px);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: 40px;
}

.footer-brand img {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}

.footer-brand p {
  color: var(--muted);
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: inherit;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 12px;
}

/* Uniform, restrained links — modern look over the playful nav colours */
.footer-col a,
.footer-col a.nav2,
.footer-col a.nav3,
.footer-col a.nav4 {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-col a:hover {
  color: var(--pink);
}

.footer-contact li {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contact i {
  color: var(--pink);
  font-size: .9rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid #efe9ee;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .85rem;
}

.footer-bottom .heart {
  color: var(--pink);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .presentation .content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .presentation-image {
    max-width: 460px;
    margin: 0 auto;
  }

  .cards,
  .benefit-grid,
  .quotes {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .pull-quote {
    text-align: center;
    border-left: 0;
    padding-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .header .content {
    position: relative;
    flex-wrap: wrap;
  }

  .bars {
    display: block;
  }

  .header nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
    padding: 8px 0 14px;
    font-size: 1.5rem;
  }

  .header nav.open {
    display: flex;
  }

  .header nav a {
    text-align: center;
    padding: 10px 16px;
  }

  /* On mobile the slide-up underline fill is distracting in a stacked menu */
  .header nav a::before {
    display: none;
  }

  .header nav a:hover {
    color: white;
    background: var(--pink);
    border-radius: 12px;
  }

  .header nav a.nav2:hover { background: var(--blue); }
  .header nav a.nav3:hover { background: var(--orange); }
  .header nav a.nav4:hover { background: var(--green); }
}
