/* ==========================================================================
   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(1.5rem, 3vw, 2rem);
}

.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 : trois photos rondes de même taille à la place des 2 ronds + l'arche.
   Sur ordinateur, la 3e ronde est cachée et l'arche reste. */
.hero__circle-extra {
  display: none;
}

@media (max-width: 959px) {
  .hero__arch {
    display: none;
  }

  .hero__circles .hero__circle-extra {
    display: block;
  }

  .hero__circles img {
    width: clamp(96px, 34vw, 132px);
  }

  .hero__circles img + img {
    margin-left: -22px;
  }
}

/* Téléphone : nuage et badge au-dessus du titre, sans le chevaucher */
@media (max-width: 959px) {
  .hero__inner {
    padding-top: 6.75rem;
  }

  .hero .shape--cloud {
    top: 0.5rem;
    left: -0.5rem;
    width: 156px;
  }

  .hero .shape--flower {
    display: none;
  }
}

@media (min-width: 960px) {
  /* Deux colonnes autour du titre :
     gauche = nuage et soleil, phrase, photos rondes ; droite = badge, photo en arche */
  .hero__inner {
    --cloud-w: clamp(200px, 19vw, 250px);
    --circle-w: clamp(76px, 8vw, 104px);
    --arch-w: clamp(150px, 14vw, 190px);
    --arch-top: 30%;
    --left-stack: calc(4% + 0.65 * var(--cloud-w) + 1.25rem);
    min-height: clamp(520px, 64vh, 600px);
    align-content: center;
    padding-block: var(--s4);
  }

  .hero__media {
    position: static;
    margin: 0;
  }

  /* Photos rondes : sous le nuage, dans la colonne de gauche */
  .hero__circles {
    position: absolute;
    left: 0;
    top: var(--left-stack);
  }

  .hero__circles img {
    width: var(--circle-w);
    border-width: 4px;
  }

  .hero__circles img + img {
    margin-left: -24px;
  }

  .hero__arch {
    position: absolute;
    right: 0;
    top: var(--arch-top);
    width: var(--arch-w);
  }

  /* Badge collé comme un autocollant sur le coin haut gauche de la photo */
  .hero__badge {
    top: calc(var(--arch-top) - 50px);
    right: calc(var(--arch-w) - 62px);
    width: 112px;
    font-size: 0.9rem;
  }

  .hero .shape--cloud {
    top: 4%;
    left: 0;
    width: var(--cloud-w);
  }

  /* La fleur accompagne les photos rondes (côté extérieur, loin du titre) */
  .hero .shape--flower {
    z-index: 2;
    top: calc(var(--left-stack) - 16px);
    bottom: auto;
    left: -18px;
    width: 44px;
  }

}

/* 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: var(--left-stack);
    margin: 0;
    max-width: 21ch;
    text-align: left;
  }

  /* La phrase prend la place sous le nuage : les photos rondes passent dessous */
  .hero__circles {
    top: calc(var(--left-stack) + 6.25rem);
  }

  .hero .shape--flower {
    top: calc(var(--left-stack) + 6.25rem - 16px);
  }
}

@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;
  }
}

/* ---------- Séparateur entre le héros et la bienvenue ---------- */

.divider {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.divider__line {
  flex: 1;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='12' viewBox='0 0 30 12'%3E%3Cpath d='M0 6 Q7.5 0 15 6 T30 6' fill='none' stroke='%23453F3B' stroke-opacity='.35' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 30px 12px;
}

.divider__mark {
  flex: none;
  width: 48px;
  height: 48px;
}

/* ---------- Accueil : bienvenue ---------- */

.welcome {
  padding-block: clamp(2.5rem, 5vw, 4rem) 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 55%;
  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;
}

/* Logo et nom de la garderie à côté de l'invitation (après le texte sur téléphone) */
.visit__logo {
  order: 2;
  display: grid;
  justify-items: center;
  gap: var(--s2);
  text-align: center;
}

.visit__mark {
  width: clamp(110px, 14vw, 170px);
  height: auto;
}

.visit__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--brown);
}

.visit__name-small {
  display: block;
  margin-bottom: 0.15em;
  font-family: var(--font-body);
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.visit__name-line {
  display: block;
}

@media (min-width: 900px) {
  .visit__logo {
    order: 0;
  }
}

.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;
}

/* Nuage en haut à droite avec l'anneau doré posé dessus comme une auréole */
.page-hero {
  --pc-cloud: clamp(120px, 18vw, 220px);
}

.page-hero .shape--cloud {
  right: 0;
  top: 0;
  width: var(--pc-cloud);
}

.page-hero .shape--ring {
  z-index: 1;
  top: calc(var(--pc-cloud) * -0.17);
  right: calc(var(--pc-cloud) * 0.23);
  width: calc(var(--pc-cloud) * 0.5);
  rotate: -8deg;
}

/* Seuls le nuage et son auréole décorent le haut des pages */
.page-hero .shape--flower {
  display: none;
}

/* Le texte s'arrête avant le nuage */
@media (min-width: 720px) {
  .page-hero .page-title,
  .page-hero .page-intro {
    max-width: min(46rem, calc(100% - var(--pc-cloud) - 1.5rem));
  }
}

/* Téléphone : le nuage passe au-dessus du titre */
@media (max-width: 719px) {
  .page-hero {
    --pc-cloud: 104px;
  }

  .page-hero__inner {
    padding-top: calc(var(--pc-cloud) * 0.6 + 0.75rem);
  }

}

.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;
}



.story .prose {
  margin-top: var(--s3);
}

/* Photos « Notre histoire » : six photos étalées en éventail sous le texte.
   Chaque photo dépasse assez pour être vue ; un clic met la photo devant (main.js). */
.story__photo {
  --card: 30%;
  --step: 47%;
  position: relative;
  display: grid;
  width: min(100% - 16px, 820px);
  margin: var(--s4) auto var(--s3);
  padding-block: 6% 4%;
}

.story__frame {
  --i: 0;
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
  width: var(--card);
  padding: 6px;
  border: 0;
  border-radius: var(--radius-md);
  background: #FFFDF9;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 16px 34px -20px rgba(43, 38, 34, 0.55);
  translate: calc(var(--i) * var(--step)) calc(var(--i) * var(--i) * 2.2%);
  rotate: calc(var(--i) * 4.5deg);
  transition: translate 0.35s var(--ease-spring), rotate 0.35s var(--ease-spring), scale 0.35s var(--ease-spring);
}

.story__frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 6px);
}

.story__frame[data-slot="1"] { --i: -2.5; z-index: 1; }
.story__frame[data-slot="2"] { --i: -1.5; z-index: 2; }
.story__frame[data-slot="3"] { --i: -0.5; z-index: 3; }
.story__frame[data-slot="4"] { --i: 0.5; z-index: 3; }
.story__frame[data-slot="5"] { --i: 1.5; z-index: 2; }
.story__frame[data-slot="6"] { --i: 2.5; z-index: 1; }

/* La photo choisie passe devant, se redresse et grossit un peu */
.story__frame.is-front {
  z-index: 10;
  rotate: 0deg;
  scale: 1.12;
  translate: calc(var(--i) * var(--step)) -4%;
  cursor: default;
}

.story__frame.is-front img {
  object-position: center 45%;
}

@media (max-width: 719px) {
  .story__photo {
    --card: 34%;
    --step: 38%;
    padding-block: 12% 8%;
  }

  .story__frame.is-front {
    scale: 1.3;
  }
}

.story__frame:focus-visible {
  z-index: 3;
  outline-offset: 4px;
}



.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: repeat(2, 1fr);
  }
}

.spaces img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  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;
  }
}
