/* Home page only. */

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background: var(--fond-page); }
.hero__fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(248, 243, 234, .97) 0%, rgba(248, 243, 234, .93) 46%, rgba(248, 243, 234, .62) 72%, rgba(248, 243, 234, .35) 100%);
}
.hero__motif-1 { left: calc(50% + 360px); top: 40px; width: 420px; height: 420px; }
.hero__motif-2 { left: calc(50% + 20px); top: 62px; width: 180px; height: 180px; }
.hero > .container { display: flex; flex-direction: column; gap: 40px; }
.hero__contenu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero__texte { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero__sur-titre { font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--marque-prairie); }
.hero h1 { margin-top: 27px; }
.hero__souligne { position: relative; display: inline-block; white-space: nowrap; }
.hero__souligne img { position: absolute; left: -2%; bottom: -26px; width: 104%; height: auto; transform: rotate(4.79deg); }
.hero__devise { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero__agrement { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; color: var(--texte-secondaire); }
.hero__agrement img { width: 20px; height: 20px; flex: none; }
.hero__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: 456px; }
.hero__pile { display: grid; grid-template-rows: 250px 1fr; gap: 16px; }
.hero__photos .photo { height: 100%; }

.recherche-age {
  display: flex; align-items: flex-end; gap: 24px; padding: 24px 28px;
  background: var(--fond-carte); border-radius: 20px; box-shadow: var(--ombre-carte);
}
.recherche-age__titre { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.recherche-age__h2 { font-size: 24px; line-height: 30px; }
.recherche-age__aide { font-size: 15px; }
.recherche-age .champ { flex: none; width: 220px; }
.recherche-age__resultat {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px;
  background: var(--fond-menthe); border-radius: 12px; color: var(--marque-foret);
}
.recherche-age__resultat img { width: 20px; height: 20px; flex: none; }

/* Key figures */
.chiffres { position: relative; overflow: hidden; background: var(--fond-carte); border-top: 1px solid var(--bordure-claire); border-bottom: 1px solid var(--bordure-claire); padding: 40px 0; }
.chiffres__motif { right: -40px; top: -31px; width: 220px; height: 220px; }
.chiffres__liste { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; align-items: center; margin: 0; }
.chiffres__liste > div { display: flex; flex-direction: column; gap: 4px; }
.chiffres__liste dd { margin: 0; font-size: 15px; line-height: 20px; color: var(--texte-secondaire); }
.chiffres__valeur { font-size: 44px; line-height: 46px; white-space: nowrap; }
.chiffres__valeur--a-venir { font-size: 30px; line-height: 34px; color: var(--texte-secondaire); }
.chiffres .a-venir dd { font-size: 14px; }

/* Cycle cards */
.carte-cycle { display: flex; flex-direction: column; overflow: hidden; }
.carte-cycle__bandeau { position: relative; overflow: hidden; display: flex; align-items: flex-end; height: 150px; padding: 18px 22px; }
.carte-cycle__bandeau--prairie { background: var(--marque-prairie); }
.carte-cycle__bandeau--ciel { background: var(--accent-ciel); }
.carte-cycle__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte-cycle__motif { right: -14px; top: -14px; width: 120px; height: 120px; z-index: 1; }
.carte-cycle__bandeau .pastille { position: relative; z-index: 1; }
.carte-cycle__contenu { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 26px 28px; }
.carte-cycle__frais { width: 100%; display: flex; flex-direction: column; gap: 6px; margin: 0; padding-top: 14px; border-top: 1px solid var(--bordure-claire); font-size: 15px; line-height: 20px; }
.carte-cycle__frais div { display: flex; gap: 14px; }
.carte-cycle__frais dt { flex: none; color: var(--texte-secondaire); }
.carte-cycle__frais dd { margin: 0; font-weight: 600; color: var(--texte-principal); }
.carte-cycle .lien-fleche { margin-top: auto; }

/* Strengths */
.points__motif-1 { right: -50px; top: 40px; width: 260px; height: 260px; }
.points__motif-2 { left: -80px; top: 220px; width: 360px; height: 360px; }
.points__titre { max-width: 900px; margin-bottom: 40px; }
.point-fort { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--fond-carte); border-radius: 20px; }
.point-fort__picto { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; }
.point-fort__picto img { width: 26px; height: 26px; }

/* Registration */
.inscriptions { padding: 72px 0; }
.inscriptions__motif { left: -90px; top: -90px; width: 240px; height: 240px; }
.inscriptions__rangee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.inscriptions__texte { gap: 16px; align-items: flex-start; }
.inscriptions__titre { font-size: 48px; line-height: 52px; }
.inscriptions__horaires { gap: 16px; align-items: start; }
.horaire { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; color: var(--texte-inverse); }
.horaire h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 26px; font-weight: 700; }
.horaire img { width: 20px; height: 20px; }

/* Parents' area */
.parents__motif { right: -60px; top: 40px; width: 240px; height: 240px; }
.parents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.parents__texte { gap: 18px; align-items: flex-start; }
.parents__liste { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; width: 100%; }
.parents__liste li { display: flex; align-items: center; gap: 10px; }
.parents__liste img { width: 20px; height: 20px; flex: none; }
.parents__apercu-zone { display: flex; justify-content: center; }
.parents__apercu {
  width: 300px; display: flex; flex-direction: column; gap: 12px; padding: 22px 18px;
  background: var(--fond-carte); border: 10px solid var(--marque-foret); border-radius: 40px; box-shadow: var(--ombre-carte);
}
.parents__apercu-sur { font-weight: 700; font-size: 13px; line-height: 20px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--marque-prairie); }
.parents__apercu-titre { font-size: 22px; line-height: 28px; }
.parents__ligne { display: flex; justify-content: space-between; padding: 14px; border-radius: 14px; font-size: 14px; line-height: 20px; }

/* News */
.actu { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.actu__visuel { display: flex; align-items: flex-end; width: 100%; height: 200px; padding: 14px; border-radius: 18px; }
.actu__titre { font-size: 21px; line-height: 28px; font-weight: 700; color: var(--marque-foret); }

/* Gallery and testimonials */
.galerie { background: var(--fond-page); }
.galerie__fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.galerie::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(248, 248, 248, .97) 0%, rgba(248, 248, 248, .93) 46%, rgba(248, 248, 248, .62) 75%, rgba(248, 248, 248, .35) 100%);
}
.galerie__rangee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.galerie__photos { gap: 24px; }
.galerie__titre { margin-bottom: 0; }
.galerie__grille { gap: 14px; }
.galerie__photo { height: 160px; border-radius: 16px; }
.galerie__temoignages { gap: 20px; }
.temoignage { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--fond-carte); border: 1px solid var(--bordure-claire); border-radius: 20px; }
.temoignage__guillemet { font-size: 64px; line-height: 40px; color: var(--action-orange); height: 32px; }
.temoignage footer { font-weight: 700; font-size: 15px; line-height: 20px; color: var(--marque-foret); }

@media (max-width: 1180px) {
  .hero__motif-1, .hero__motif-2 { display: none; }
  .recherche-age { flex-wrap: wrap; }
  .recherche-age__titre { flex-basis: 100%; }
}
@media (max-width: 1000px) {
  .hero__contenu, .inscriptions__rangee, .parents, .galerie__rangee { grid-template-columns: minmax(0, 1fr); }
  .chiffres__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__photos { height: 380px; }
}
@media (max-width: 720px) {
  .hero { padding: 24px 0 40px; }
  .hero h1 { margin-top: 0; }
  .hero__sur-titre { color: var(--texte-sur-titre); }
  .hero__souligne img { bottom: -18px; }
  .hero__photos { height: auto; grid-template-columns: 1fr 1fr; }
  .hero__photo-1 { grid-column: 1 / -1; height: 190px !important; }
  .hero__pile { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .hero__pile .photo { height: 150px; }
  .recherche-age { flex-direction: column; align-items: stretch; padding: 22px 18px; }
  .recherche-age .champ { width: 100%; }
  .recherche-age__resultat { flex: none; }
  .chiffres__liste { grid-template-columns: 1fr 1fr; }
  .chiffres__valeur { font-size: 34px; line-height: 40px; }
  .chiffres__valeur--a-venir { font-size: 22px; line-height: 28px; white-space: normal; }
  .inscriptions__titre { font-size: 34px; line-height: 40px; }
  .inscriptions__horaires { grid-template-columns: minmax(0, 1fr); }
  .parents__liste { grid-template-columns: 1fr; }
  .parents__apercu { width: 100%; max-width: 300px; }
}

/* Layering: background photo, then its veil, then motifs, then content. */
.hero, .galerie { isolation: isolate; }
.hero__fond, .galerie__fond { z-index: 0; }
.hero::before, .galerie::before { z-index: 1; }
.hero .motif { z-index: 2; }
.hero > .container, .galerie > .container { position: relative; z-index: 3; }
.hero__photo-1 > img { object-position: 16% center; }
