/* ==========================================================================
   Garderie Les Anges des Prairies
   Couleurs inspirées du gabarit « Luna & Sun ». Le texte posé sur le corail,
   le bleu ou l'olive utilise --ink pour garder un contraste d'au moins 4,5:1.
   ========================================================================== */

:root {
  --cream: #EDE7D9;
  --cream-soft: #F5F1E8;
  --brown: #453F3B;
  --ink: #2B2622;
  --coral: #E4705E;
  --coral-hover: #EC8676;
  --blue: #4B9FB9;
  --olive: #C1B61F;
  --error: #A3261B;
  --line: rgba(69, 63, 59, 0.18);

  --font-display: "Modak", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;
  --s7: 7rem;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 76px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s2);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--s2);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section--flush-top {
  padding-top: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--brown);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head .section-title {
  margin-bottom: var(--s2);
}

.lead {
  font-size: 1.1875rem;
  font-weight: 600;
}

.prose {
  max-width: 62ch;
}

/* ---------- Boutons et liens ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, scale 0.25s var(--ease-spring);
}

.btn:active {
  scale: 0.96;
}

.btn--primary {
  background: var(--coral);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--coral-hover);
}

.btn--lg {
  min-height: 56px;
  padding-inline: 2rem;
  font-size: 1.0625rem;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.link-strong {
  font-weight: 700;
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--brown);
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

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

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s3);
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.15rem;
  font-weight: 700;
  text-decoration: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0.2rem;
  height: 3px;
  border-radius: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--brown);
  border-radius: 999px;
  background: transparent;
  color: var(--brown);
  font: 700 1rem/1 var(--font-body);
  cursor: pointer;
}

.menu-toggle__icon {
  width: 18px;
  height: 18px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  display: none;
}

.menu-toggle[aria-expanded="false"] .menu-toggle__close {
  display: none;
}

@media (max-width: 959px) {
  .brand__name {
    font-size: 1.3rem;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    padding: var(--s2) var(--gutter) var(--s4);
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -24px rgba(43, 38, 34, 0.35);
  }

  .js .nav.is-open {
    display: flex;
  }

  .js .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .nav__link {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--line);
  }

  .js .nav__link::after {
    display: none;
  }

  .js .nav__link[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-decoration-thickness: 3px;
  }

  .nav .btn {
    align-self: flex-start;
  }
}

/* Sur téléphone, le nom s'empile sur deux lignes comme dans le grand titre */
@media (max-width: 599px) {
  .brand__line {
    display: block;
  }

  .brand__name {
    font-size: 1.25rem;
    line-height: 0.95;
  }
}

/* ---------- Formes décoratives ---------- */

.shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.shape svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.shape--blue {
  color: var(--blue);
}

.shape--coral {
  color: var(--coral);
}

.shape--olive {
  color: var(--olive);
}

/* ---------- Accueil : héros ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 3.5rem) clamp(2.5rem, 6vw, 4rem);
}

.hero__inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero__title {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: 0.005em;
}

.hero__line {
  display: block;
  white-space: nowrap;
}

.hero__big {
  position: relative;
  display: inline-block;
  font-size: clamp(4.3rem, 13.2vw, 11rem);
}

.hero__small {
  display: inline-block;
  margin-right: 0.08em;
  font-size: clamp(1.9rem, 5.6vw, 4.1rem);
  color: var(--olive);
}

.hero__line--1 .hero__big {
  color: var(--coral);
}

.hero__line--2 .hero__big {
  color: var(--blue);
}

.hero__halo {
  position: absolute;
  left: 0.02em;
  top: -0.02em;
  width: 0.62em;
  color: var(--olive);
  rotate: -9deg;
}

.hero__tagline {
  position: relative;
  z-index: 2;
  margin: var(--s3) 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.hero__badge {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 100px;
  aspect-ratio: 1;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.15;
  text-align: center;
}

.hero__badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--olive);
}

.hero__badge span {
  position: relative;
}

.hero__badge strong {
  display: block;
  font-size: 1.35em;
}

.hero__media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--s3);
  margin-top: var(--s4);
}

.hero__circles {
  display: flex;
}

.hero__circles img {
  width: 118px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--cream);
}

.hero__circles img + img {
  margin-left: -30px;
}

.hero__arch {
  width: 120px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 62% center;
  border-radius: 999px 999px 26px 26px;
}

/* Téléphone : nuage et badge au-dessus du titre, sans le chevaucher */
@media (max-width: 959px) {
  .hero__inner {
    padding-top: 5.75rem;
  }

  .hero .shape--cloud {
    top: 0.75rem;
    left: -0.25rem;
    width: 124px;
  }

  .hero .shape--flower,
  .hero .shape--ring,
  .hero .shape--dot {
    display: none;
  }
}

@media (min-width: 960px) {
  .hero__inner {
    --cloud-w: clamp(170px, 18vw, 240px);
    min-height: clamp(520px, 66vh, 620px);
    align-content: center;
    padding-block: var(--s4);
  }

  .hero__badge {
    top: 2%;
    right: 6%;
    width: 132px;
    font-size: 0.95rem;
  }

  .hero__media {
    position: static;
    margin: 0;
  }

  .hero__circles {
    position: absolute;
    left: 0;
    bottom: 2%;
  }

  .hero__circles img {
    width: clamp(120px, 11vw, 150px);
  }

  .hero__arch {
    position: absolute;
    right: 0;
    top: 34%;
    width: clamp(150px, 14vw, 190px);
  }

  .hero .shape--cloud {
    top: 6%;
    left: 9%;
    width: var(--cloud-w);
    opacity: 0.9;
  }

  .hero .shape--flower {
    top: 14%;
    bottom: auto;
    left: 2%;
    width: 64px;
  }

  .hero .shape--ring {
    right: 19%;
    bottom: 9%;
    width: 120px;
  }

  .hero .shape--dot {
    right: 30%;
    top: 8%;
    bottom: auto;
    width: 22px;
  }
}

/* Assez de place à gauche du titre seulement à partir de 1200 px ;
   en dessous, la phrase reste centrée sous le titre. */
@media (min-width: 1200px) {
  /* Placé sous le nuage (hauteur du nuage = 0,6 × sa largeur), avec un espace */
  .hero__tagline {
    position: absolute;
    left: 0;
    top: calc(6% + 0.6 * var(--cloud-w) + 1.75rem);
    margin: 0;
    max-width: 21ch;
    text-align: left;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__line,
  .hero__tagline,
  .hero__badge,
  .hero__circles img,
  .hero__arch,
  .hero .shape {
    animation: pop-in 0.8s var(--ease-spring) both;
  }

  .hero__line--1 { animation-delay: 0.05s; }
  .hero__line--2 { animation-delay: 0.15s; }
  .hero__tagline { animation-delay: 0.3s; }
  .hero__badge { animation-delay: 0.45s; }
  .hero__circles img:first-child { animation-delay: 0.35s; }
  .hero__circles img:last-child { animation-delay: 0.42s; }
  .hero__arch { animation-delay: 0.4s; }
  .hero .shape { animation-delay: 0.25s; }
}

@keyframes pop-in {
  from {
    opacity: 0;
    translate: 0 26px;
    scale: 0.92;
  }

  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

/* ---------- Accueil : bienvenue ---------- */

.welcome {
  padding-block: clamp(2rem, 6vw, 5rem) clamp(4rem, 9vw, 7rem);
}

.welcome__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.welcome__text .section-title {
  margin-bottom: var(--s3);
}

.welcome__text .btn {
  margin-top: var(--s3);
}

.welcome__photo {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}

.welcome__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
}

.welcome__photo .shape--flower {
  z-index: 2;
  right: -18px;
  bottom: 14%;
  width: 72px;
}

.welcome__photo .shape--cloud {
  left: -34px;
  top: 10%;
  width: 120px;
}

@media (min-width: 900px) {
  .welcome__grid {
    grid-template-columns: 5fr 7fr;
  }

  .welcome__photo {
    grid-column: 1;
    grid-row: 1;
  }

  .welcome__text {
    grid-column: 2;
  }
}

/* ---------- Groupes (cartes) ---------- */

.groups {
  background: var(--cream-soft);
}

.group-cards {
  display: grid;
  gap: var(--s3);
  list-style: none;
}

@media (min-width: 640px) {
  .group-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .group-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Carte : la photo est encadrée par la couleur du groupe, le texte dessous */
.group-card {
  --card-pad: 0.75rem;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: var(--card-pad);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--ink);
  transition: translate 0.3s var(--ease-spring);
}

/* La photo vient après le texte dans le code (titre lu en premier), mais s'affiche en haut */
.group-card__photo {
  order: -1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - var(--card-pad));
}

.group-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--s3) var(--card-pad) var(--card-pad);
}

@media (min-width: 1100px) {
  .group-card__photo {
    aspect-ratio: 4 / 3;
  }
}

/* Cadrage de chaque photo sur les visages */
.photo-poupons { object-position: 55% 30%; }
.photo-tout-petits { object-position: 70% 40%; }
.photo-petits { object-position: 22% 40%; }
.photo-prescolaires { object-position: 50% 35%; }

.group-card:hover {
  translate: 0 -6px;
}

.group-card:has(.group-card__link:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.group-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.35rem;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

@media (min-width: 1100px) {
  .group-card__name {
    font-size: clamp(1.9rem, 2.3vw, 2.35rem);
  }
}

.nowrap {
  white-space: nowrap;
}

/* Toute la carte est cliquable, mais le lien ne porte que le nom du groupe */
.group-card__link {
  color: inherit;
  text-decoration: none;
}

.group-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

.group-card__link:focus-visible {
  outline: none;
}

.group-card__age {
  align-self: flex-start;
  margin: var(--s2) 0;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

.group-card__text {
  margin-bottom: var(--s3);
}

.group-card__more {
  margin-top: auto;
  font-weight: 700;
  text-decoration: underline;
}

.group-card .shape {
  z-index: -1;
  right: -44px;
  bottom: -10px;
  width: 180px;
  color: var(--cream);
  opacity: 0.3;
  rotate: -14deg;
}

.group-card--coral { background: var(--coral); }
.group-card--blue { background: var(--blue); }
.group-card--olive { background: var(--olive); }

.group-card--brown {
  background: var(--brown);
  color: var(--cream);
}

.group-card--brown .group-card__age {
  background: var(--cream);
  color: var(--ink);
}

/* ---------- Ce qui nous distingue (grille) ---------- */

.bento {
  display: grid;
  gap: var(--s3);
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(400px, auto);
  }
}

.bento__photo {
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.bento__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento__card {
  position: relative;
  padding: var(--s4);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--ink);
}

.bento__card h3 {
  margin-bottom: var(--s3);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.4rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}

.bento__card ul {
  display: grid;
  gap: var(--s2);
  list-style: none;
}

.bento__card li strong {
  display: block;
  font-size: 1.0625rem;
}

.bento__card li span {
  display: block;
  font-size: 0.975rem;
  line-height: 1.5;
}

.bento__card--blue { background: var(--blue); }
.bento__card--coral { background: var(--coral); }
.bento__card--olive { background: var(--olive); }

.bento__since {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s4);
  border-radius: var(--radius-lg);
  background: var(--brown);
  color: var(--cream);
}

/* « 2013 » : image fournie (chiffres crème détourés sur fond transparent) */
.bento__since .bento__since-year {
  max-width: none;
  margin: 0;
}

.bento__since-year img {
  display: block;
  width: calc(2.26 * clamp(4.5rem, 9vw, 6.5rem));
  max-width: 100%;
  height: auto;
}

.bento__since p {
  max-width: 24ch;
  margin-top: var(--s2);
  font-size: 1.125rem;
  font-weight: 600;
}

/* ---------- Bandeau photo ---------- */

.band {
  position: relative;
  display: grid;
  min-height: clamp(380px, 62vh, 620px);
  overflow: hidden;
  isolation: isolate;
}

.band__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(43, 38, 34, 0.15) 0%, rgba(43, 38, 34, 0.5) 50%, rgba(43, 38, 34, 0.75) 100%);
}

.band__title {
  align-self: end;
  justify-self: center;
  max-width: 16ch;
  padding: 0 var(--gutter) clamp(5rem, 11vw, 8rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(43, 38, 34, 0.5);
}

/* ---------- Visite ---------- */

.visit {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--radius-lg) - 8px);
  border-radius: calc(var(--radius-lg) + 8px) calc(var(--radius-lg) + 8px) 0 0;
  background: var(--cream);
}

.visit__grid {
  display: grid;
  gap: var(--s5);
  align-items: center;
}

/* Sur téléphone, le texte et le bouton passent avant l'illustration */
.visit__art {
  position: relative;
  order: 2;
  justify-self: center;
  width: min(100%, 260px);
  aspect-ratio: 1;
}

@media (min-width: 900px) {
  .visit__art {
    order: 0;
    width: min(100%, 360px);
  }
}

.visit__art .shape {
  z-index: 0;
}

/* Un petit ange assis sur un nuage */
.visit__art .shape--cloud {
  left: 4%;
  top: 46%;
  width: 80%;
}

.visit__art .brand__mark {
  position: absolute;
  left: 24%;
  top: 15%;
  z-index: 1;
  width: 40%;
  height: auto;
}

.visit__art .shape--flower {
  z-index: 2;
  right: 0;
  bottom: 4%;
  width: 32%;
}

.visit__art .shape--ring {
  right: 4%;
  top: 10%;
  width: 24%;
  rotate: 18deg;
}

.visit__text .section-title {
  margin-bottom: var(--s3);
}

.visit__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
  margin-top: var(--s4);
}

@media (min-width: 900px) {
  .visit__grid {
    grid-template-columns: 5fr 7fr;
  }
}

/* ---------- Pages intérieures ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4rem);
}

.page-hero__inner {
  position: relative;
}

.page-title {
  position: relative;
  z-index: 1;
  margin-bottom: var(--s3);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--brown);
}

.merci-title {
  margin-top: var(--s5);
}

.page-intro {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  font-size: 1.1875rem;
  font-weight: 600;
}

.page-hero .shape--cloud {
  right: -2%;
  top: 8%;
  width: clamp(120px, 20vw, 230px);
}

.page-hero .shape--ring {
  right: 22%;
  bottom: -6%;
  width: clamp(70px, 10vw, 120px);
  rotate: -14deg;
}

.page-hero .shape--flower {
  right: 6%;
  bottom: 4%;
  width: clamp(40px, 6vw, 70px);
}

@media (max-width: 719px) {
  .page-hero .shape--cloud {
    top: 2%;
    right: -12%;
    opacity: 0.5;
  }

  .page-hero .shape--ring,
  .page-hero .shape--flower {
    display: none;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-top: var(--s4);
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--brown);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.chip:hover {
  background: var(--brown);
  color: var(--cream);
}

/* Groupes : sections détaillées */

.group-detail {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.group-detail:nth-of-type(even) {
  background: var(--cream-soft);
}

.group-detail__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.group-detail__photo {
  position: relative;
}

.group-detail__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.group-detail__photo::before {
  content: "";
  position: absolute;
  inset: 18px -14px -14px 18px;
  z-index: 0;
  border-radius: var(--radius-lg);
  background: var(--accent, var(--coral));
}

.group-detail__age {
  display: inline-block;
  margin: var(--s2) 0 var(--s3);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: var(--accent, var(--coral));
  color: var(--on-accent, var(--ink));
  font-weight: 700;
}

.group-detail .section-title {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

.checklist {
  display: grid;
  gap: 0.6rem;
  margin-top: var(--s3);
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  font-weight: 600;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 1.1rem;
  height: 0.75rem;
  border: 3px solid var(--accent, var(--coral));
  border-radius: 50%;
}

@media (min-width: 900px) {
  .group-detail__grid {
    grid-template-columns: 1fr 1fr;
  }

  .group-detail:nth-of-type(even) .group-detail__photo {
    order: 2;
  }
}

.accent-coral { --accent: var(--coral); }
.accent-blue { --accent: var(--blue); }
.accent-olive { --accent: var(--olive); }
.accent-brown { --accent: var(--brown); --on-accent: var(--cream); }

/* Bloc d'appel à l'action en fin de page */

.cta-panel {
  position: relative;
  display: grid;
  gap: var(--s3);
  justify-items: start;
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brown);
  color: var(--cream);
}

.cta-panel .section-title {
  position: relative;
  z-index: 1;
  max-width: 18ch;
  color: var(--cream);
}

.cta-panel p {
  position: relative;
  z-index: 1;
  max-width: 52ch;
}

.cta-panel .btn {
  position: relative;
  z-index: 1;
}

.cta-panel .shape--ring {
  right: -30px;
  top: -20px;
  width: 220px;
  color: var(--olive);
  rotate: -12deg;
}

/* À propos */

.story {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: 7fr 5fr;
  }
}

.story .prose {
  margin-top: var(--s3);
}

.story__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
}

.domains {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
  list-style: none;
}

@media (min-width: 640px) {
  .domains {
    grid-template-columns: repeat(2, 1fr);
  }
}

.domain {
  padding: var(--s4) var(--s3);
  border-radius: var(--radius-md);
  color: var(--ink);
}

.domain h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.domain--coral { background: var(--coral); }
.domain--blue { background: var(--blue); }
.domain--olive { background: var(--olive); }

.domain--brown {
  background: var(--brown);
  color: var(--cream);
}

.spaces {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s4);
}

@media (min-width: 720px) {
  .spaces {
    grid-template-columns: 3fr 2fr;
  }
}

.spaces figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.spaces img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.spaces figcaption {
  padding: 0.75rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s4);
  counter-reset: step;
  list-style: none;
}

@media (min-width: 720px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--s4);
  }
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--s2);
  align-items: start;
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.timeline li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--olive);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}

.timeline strong {
  display: block;
  font-size: 1.0625rem;
}

.timeline span {
  display: block;
  font-size: 0.975rem;
}

/* ---------- Inscription ---------- */

.steps {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s4);
  counter-reset: step;
  list-style: none;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s3);
  }
}

.steps li {
  position: relative;
  padding: var(--s3);
  padding-top: 4.25rem;
  border-radius: var(--radius-md);
  background: var(--cream-soft);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: var(--s3);
  top: var(--s3);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.0625rem;
}

.enroll {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 1000px) {
  .enroll {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

.form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--cream-soft);
}

.form-card > .section-title {
  margin-bottom: var(--s2);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
}

.form-note {
  margin-bottom: var(--s4);
  font-size: 0.95rem;
}

.form {
  display: grid;
  gap: var(--s4);
}

.field-group {
  display: grid;
  gap: var(--s3);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-group > legend {
  margin-bottom: var(--s2);
  padding: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.field-row {
  display: grid;
  gap: var(--s3);
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  min-width: 0;
}

fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field-legend {
  font-weight: 700;
  color: var(--ink);
}

.field-legend {
  margin-bottom: 0.4rem;
  padding: 0;
}

.req {
  color: var(--error);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(69, 63, 59, 0.45);
  border-radius: var(--radius-sm);
  background: #FFFDF9;
  color: var(--ink);
  font: 600 1rem/1.4 var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--brown);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(75, 159, 185, 0.45);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field-help {
  margin: 0;
  font-size: 0.9rem;
}

.field-error {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin: 0;
  color: var(--error);
  font-size: 0.95rem;
  font-weight: 700;
}

.field-error svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.15em;
}

.field-error[hidden] {
  display: none;
}

/* Choix (boutons radio en forme de cartes) */

.choices {
  display: grid;
  gap: var(--s1);
}

@media (min-width: 640px) {
  .choices {
    grid-template-columns: repeat(2, 1fr);
  }
}

.choices--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(69, 63, 59, 0.45);
  border-radius: var(--radius-sm);
  background: #FFFDF9;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.choice:hover {
  border-color: var(--brown);
}

.choice input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--ink);
  background: #FBE3DE;
}

.choice:has(input:focus-visible) {
  box-shadow: 0 0 0 4px rgba(75, 159, 185, 0.45);
}

.choice input:focus-visible {
  outline: none;
}

.choices.is-invalid .choice {
  border-color: var(--error);
}

/* Encadré visuel ; le texte est aussi annoncé par une région « status » invisible */
.group-hint {
  position: relative;
  margin: 0;
  padding: var(--s2) var(--s3) var(--s2) 3.75rem;
  border-radius: var(--radius-sm);
  background: rgba(193, 182, 31, 0.28);
  color: var(--ink);
  font-weight: 600;
}

.group-hint::before {
  content: "";
  position: absolute;
  left: var(--s2);
  top: 0.85rem;
  width: 30px;
  height: 30px;
  background: url("../../favicon.svg") center / contain no-repeat;
}

.group-hint[hidden] {
  display: none;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-summary {
  padding: var(--s3);
  border: 2px solid var(--error);
  border-radius: var(--radius-sm);
  background: #FFF4F1;
  color: var(--ink);
}

.form-summary h2 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: var(--error);
}

.form-summary ul {
  display: grid;
  gap: 0.25rem;
  padding-left: 1.25rem;
}

.form-summary a {
  color: var(--error);
  font-weight: 700;
}

.form-summary:focus-visible {
  outline-offset: 4px;
}

.form-footer {
  display: grid;
  gap: var(--s2);
  justify-items: start;
}

.form-privacy {
  margin: 0;
  font-size: 0.9rem;
}

.form-status {
  margin: 0;
  font-weight: 700;
}

.form-status:empty {
  display: none;
}

.form-status--error,
.form-status--info {
  padding: var(--s2) var(--s3);
  border-radius: var(--radius-sm);
}

.form-status--error {
  border: 2px solid var(--error);
  background: #FFF4F1;
  color: var(--error);
}

.form-status--info {
  border: 2px solid var(--blue);
  background: rgba(75, 159, 185, 0.14);
  color: var(--ink);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(43, 38, 34, 0.3);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

.form-success {
  display: grid;
  justify-items: start;
  gap: var(--s2);
  padding: var(--s4);
  border-radius: var(--radius-md);
  background: var(--olive);
  color: var(--ink);
}

.form-success[hidden] {
  display: none;
}

.form-success svg {
  width: 56px;
  height: 56px;
}

.form-success h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
}

.contact-card {
  display: grid;
  gap: var(--s3);
  padding: var(--s4);
  border-radius: var(--radius-lg);
  background: var(--brown);
  color: var(--cream);
}

@media (min-width: 1000px) {
  .contact-card {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.contact-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1;
}

.contact-card h3 {
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
  color: #D9D1C2;
}

.contact-card a {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-card a[href^="mailto:"] {
  font-size: 0.95rem;
}

/* ---------- Pied de page ---------- */

.site-footer {
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
  background: var(--brown);
  color: var(--cream);
}

.footer__grid {
  display: grid;
  gap: var(--s5);
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1.1fr 1fr 1.3fr;
  }
}

.site-footer .brand {
  color: var(--cream);
}

.footer__brand p {
  max-width: 30ch;
  margin: var(--s3) 0;
}

.footer__title {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #D9D1C2;
}

.footer__contact address,
.footer__hours {
  display: grid;
  gap: 0.4rem;
  margin-bottom: var(--s4);
}

.footer__contact a {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer__map {
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #5A534E;
}

.footer__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-block: var(--s3);
  border-top: 1px solid rgba(237, 231, 217, 0.22);
  font-size: 0.95rem;
}

.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  list-style: none;
}

.footer__bottom p {
  margin: 0;
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
