/* ===================================================================
   Chalamômes — feuille de style principale (v2, fidèle au site réel)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:ital,wght@0,400;0,600;0,700;1,600&display=swap');

:root {
  /* Couleurs du logo / du site actuel */
  --sombre:      #1a1a1a;
  --teal:        #009e87;
  --teal-fonce:  #007a68;
  --orange:      #f2542d;
  --orange-fonce:#d8431f;
  --bleu-bande:  #12a1c4;
  --bleu-bande2: #0d7fa0;
  --rose1:       #e0339f;
  --rose2:       #a73082;
  --jaune:       #ffcd22;
  --vert-clair:  #bbd37b;

  --gris-texte:  #57544c;
  --blanc:       #ffffff;
  --rouge:       #d8431f;
  --vert-fonce:  #007a68;

  --police-titre: 'Baloo 2', system-ui, sans-serif;
  --police-texte: 'Nunito', system-ui, sans-serif;

  --max-largeur: 1180px;
  --ombre: 0 14px 34px -14px rgba(0,0,0,0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--police-texte);
  color: var(--gris-texte);
  background: var(--blanc);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: #1a1a1a;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
p { margin: 0 0 1em; }
a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; display: block; }

.conteneur { max-width: var(--max-largeur); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-block;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  margin-bottom: 12px;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.bouton-principal {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(242,84,45,.55);
}
.bouton-principal:hover { transform: translateY(-3px) scale(1.03); background: var(--orange-fonce); }
.bouton-principal .rond {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1;
}
.bouton-secondaire {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.bouton-secondaire:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.bouton-clair {
  background: #fff; color: var(--sombre); border: 1px solid #ddd;
}
.bouton-clair:hover { background: #f2f2f2; }

/* ---------- Header ---------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #eee7d8;
}
.entete-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px; max-width: var(--max-largeur); margin: 0 auto;
}
.logo-lien {
  display: flex; align-items: center;
}
.logo-lien img { height: 40px; width: auto; display: block; }

.nav-principale ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-principale a {
  position: relative; display: inline-block; padding: 10px 14px;
  font-family: var(--police-titre); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: #33312b;
  transition: color .2s ease;
}
.nav-principale a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--rose1);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.65,0,.35,1);
}
.nav-principale a:hover { color: var(--rose1); }
.nav-principale a:hover::after, .nav-principale a.actif::after { transform: scaleX(1); }
.nav-principale a.actif { color: var(--rose1); }

.entete-actions { display: flex; align-items: center; gap: 14px; }

/* Séparateur : marque la frontière entre le site public et l'espace privé */
.separateur-entete {
  width: 1px; height: 26px; background: #e4dcc8; flex: 0 0 auto;
}

/* "Accès parents" : volontairement différent du menu (pastille + cadenas) */
.lien-parents {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--teal);
  color: var(--teal); background: transparent;
  font-family: var(--police-titre); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  transition: background .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.lien-parents:hover {
  background: var(--teal); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(0,158,135,.75);
}
.lien-parents.actif { background: var(--teal); color: #fff; }
.lien-parents svg { flex: 0 0 auto; }

/* Doublon réservé au menu mobile : masqué sur grand écran */
.parents-mobile { display: none; }
.icone-fb {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ddd3ba;
  display: flex; align-items: center; justify-content: center; color: #33312b; transition: all .25s ease;
}
.icone-fb:hover { background: var(--rose1); border-color: var(--rose1); color: #fff; }

/* Variante claire, pour les icônes sur fond coloré (ex: bande contact rose) */
.icone-fb--clair {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.icone-fb--clair:hover { background: #fff; border-color: #fff; color: var(--rose1); }
.menu-burger { display: none; background: none; border: none; cursor: pointer; }

/* ---------- Section générique ---------- */
section { position: relative; padding: 90px 0; overflow: hidden; }
.section-tete { text-align: center; max-width: 680px; margin: 0 auto 50px; }

/* Formes flottantes décoratives (petites animations demandées) */
.forme-flottante { position: absolute; opacity: .55; animation: flotter 8s ease-in-out infinite; pointer-events: none; }
@keyframes flotter { 0%,100%{ transform: translateY(0) rotate(0deg);} 50%{ transform: translateY(-16px) rotate(10deg);} }

/* ---------- LA CRÈCHE (accueil) ---------- */
.bloc-creche { padding-top: 70px; text-align: center; }
.bloc-creche h2 { font-size: clamp(2.1rem, 4vw, 3rem); color: var(--teal); }
.bloc-creche .chapo { max-width: 640px; margin: 0 auto 30px; font-size: 1.08rem; }

/* ---------- Hero principal (bandeau d'accueil) ---------- */
.hero-principal {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(125deg, var(--teal) 0%, var(--bleu-bande) 48%, var(--rose1) 100%);
  overflow: hidden;
  padding: 60px 28px;
}
.hero-principal-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-principal .eyebrow { color: var(--jaune); }
.hero-principal h1 { color: #fff; margin-bottom: 0.4em; }
.hero-principal h1 .accent { color: var(--jaune); }
.hero-principal h1 .accent-rose { color: var(--vert-clair); }
.hero-principal p.chapo {
  color: rgba(255,255,255,0.85); max-width: 52ch; margin: 0 auto 32px;
  font-size: 1.15rem; text-transform: none; font-family: var(--police-texte);
}
.hero-principal .hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.7);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  animation: rebond 2.2s ease-in-out infinite;
}
@keyframes rebond { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(8px);} }

.grille-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  max-width: 980px; margin: 60px auto 0; text-align: center;
}
.stat .icone-stat { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--teal); display: block; }
.stat .icone-fond {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px;
  background: color-mix(in srgb, var(--teal) 12%, white);
  display: flex; align-items: center; justify-content: center;
}
.stat .icone-fond .icone-stat { margin: 0; }
.stat h3 { font-size: 1.15rem; color: var(--teal); margin-bottom: 10px; letter-spacing: .04em; }
.stat p { font-size: 0.95rem; }
.stat p b { color: #1a1a1a; }

.liste-horaires { list-style: none; margin: 0; padding: 0; text-align: left; font-size: 0.92rem; }
.liste-horaires li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #eee; }
.liste-horaires li:last-child { border-bottom: none; }
.liste-horaires li span:first-child { font-weight: 700; color: #1a1a1a; }

.grille-photos-accueil {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 60px;
}
.grille-photos-accueil figure {
  margin: 0; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, var(--vert-clair), var(--bleu-bande));
}
.grille-photos-accueil img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.grille-photos-accueil figure:hover img { transform: scale(1.08); }

/* ---------- LE PROJET (bande couleur) ---------- */
.bande-projet {
  background: linear-gradient(120deg, var(--bleu-bande), var(--bleu-bande2));
  color: #fff;
}
.bande-projet .eyebrow, .bande-projet h2 { color: #fff; }
.bande-projet .section-tete { margin-bottom: 60px; }
.projet-grille { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: start; }
.projet-image {
  border-radius: 18px; overflow: hidden; box-shadow: var(--ombre);
  background: linear-gradient(160deg, var(--jaune), var(--orange));
  position: sticky; top: 100px;
  min-height: 200px; /* garde un peu de hauteur visible tant qu'il n'y a pas d'image */
}
.projet-image img { display: block; width: 100%; height: auto; }
.projet-texte p { font-size: 0.98rem; }
.projet-texte b { color: #fff; }

/* ---------- ÉQUIPE ---------- */
.bloc-equipe .eyebrow { color: var(--orange); }
.bloc-equipe h2 { color: var(--orange); }
.grille-equipe {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 50px 60px; margin-top: 20px;
}
.carte-membre { text-align: center; width: 170px; }
.avatar-membre {
  width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 16px;
  overflow: hidden;
  box-shadow: var(--ombre); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  border: 4px solid #fff;
}
.avatar-membre img { width: 100%; height: 100%; object-fit: cover; }
.carte-membre:hover .avatar-membre { transform: scale(1.06) rotate(-3deg); }
.carte-membre h3 { font-size: 1.15rem; color: var(--orange); text-transform: none; margin-bottom: 4px; }
.carte-membre p { font-size: 0.8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gris-texte); margin: 0; }
.carte-membre.responsable .avatar-membre { width: 148px; height: 148px; }

/* ---------- CONTACT (bande rose) ---------- */
.bande-contact {
  background: linear-gradient(135deg, var(--rose1), var(--rose2));
  color: #fff;
}
.contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.bande-contact h2 { color: #fff; text-align: left; }
.bande-contact .intro { color: rgba(255,255,255,.9); max-width: 40ch; margin-bottom: 30px; }
.contact-infos { display: flex; gap: 50px; margin-bottom: 30px; flex-wrap: wrap; }
.contact-infos h4 { color: #fff; font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.contact-infos p { color: rgba(255,255,255,.92); margin: 0; font-size: 0.94rem; }

.carte-formulaire {
  background: var(--blanc); border-radius: 6px; padding: 34px 32px;
  box-shadow: var(--ombre); color: var(--gris-texte);
}
.rangee-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.champ { margin-bottom: 18px; }
.champ label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.85rem; color: #1a1a1a; }
.champ label .req { color: var(--rose1); }
.champ input, .champ textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #ddd; border-radius: 4px;
  font-family: var(--police-texte); font-size: 0.96rem; background: #fff;
  transition: border-color .2s ease;
}
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--teal); }
.champ .sous-label { font-size: 0.75rem; color: #999; margin-top: 4px; }

.alerte { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-weight: 600; font-size: 0.92rem; }
.alerte-erreur { background: #fde5df; color: #a3311a; }
.alerte-succes { background: #dff3e8; color: #0d6b4f; }

/* ---------- Footer ---------- */
.pied { background: var(--sombre); color: rgba(255,255,255,0.75); padding: 50px 0 24px; }
.pied-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.pied h4 { color: #fff; font-size: 0.9rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.pied a { color: rgba(255,255,255,0.7); }
.pied a:hover { color: var(--rose1); }
.pied ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.pied-bas {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
}
.pied .logo-mini { font-family: var(--police-titre); font-weight: 800; color: #fff; font-size: 1.2rem; text-transform: uppercase; margin-bottom: 12px; display: block; }

/* ---------- Reveal au scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Pages secondaires (accès parents / admin) ---------- */
.hero-secondaire {
  background: var(--sombre); color: #fff; padding: 70px 0 60px; text-align: center;
}
.hero-secondaire h1 { color: #fff; }
.hero-secondaire .chapo { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto; text-transform: none; font-family: var(--police-texte); }
.hero-secondaire .eyebrow { color: var(--rose1); }

.grille-galeries { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.carte-galerie { background: var(--blanc); border-radius: 10px; overflow: hidden; box-shadow: var(--ombre); transition: transform .25s ease; }
.carte-galerie:hover { transform: translateY(-5px); }
.carte-galerie .vignette {
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--vert-clair), var(--bleu-bande));
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
  overflow: hidden; position: relative;
}
.carte-galerie .vignette img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.carte-galerie:hover .vignette img { transform: scale(1.06); }
.carte-galerie .contenu { padding: 16px 18px; }
.carte-galerie h3 { font-size: 1rem; text-transform: none; margin-bottom: 4px; }
.carte-galerie .meta { font-size: 0.82rem; color: var(--gris-texte); }

.grille-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.grille-photos figure { margin: 0; overflow: hidden; box-shadow: var(--ombre); aspect-ratio: 1/1; }
.grille-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.grille-photos figure:hover img { transform: scale(1.08); }
.grille-photos .ouvrir-photo {
  display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: none; cursor: zoom-in;
}

/* ---------- Visionneuse photo (accès parents) ---------- */
.visionneuse {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(26,26,26,0.94);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 20px;
}
.visionneuse[hidden] { display: none; }
.visionneuse-contenu { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.visionneuse-contenu img {
  max-width: min(1100px, 88vw); max-height: 80vh;
  width: auto; height: auto; border-radius: 8px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.8);
}
.visionneuse-contenu figcaption {
  color: rgba(255,255,255,.75); font-family: var(--police-titre);
  font-weight: 700; font-size: .9rem; letter-spacing: .08em;
}
.visionneuse-nav, .visionneuse-fermer {
  border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.14);
  font-family: var(--police-titre); line-height: 1;
  border-radius: 50%; transition: background .2s ease, transform .2s ease;
}
.visionneuse-nav { width: 54px; height: 54px; font-size: 2.4rem; flex: 0 0 auto; }
.visionneuse-nav:hover, .visionneuse-fermer:hover { background: var(--orange); transform: scale(1.08); }
.visionneuse-fermer {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; font-size: 1.3rem; font-weight: 700;
}
@media (max-width: 720px) {
  .visionneuse { padding: 10px; gap: 4px; }
  .visionneuse-nav { width: 42px; height: 42px; font-size: 1.9rem; }
  .visionneuse-contenu img { max-width: 78vw; max-height: 72vh; }
}

/* ---------- Admin ---------- */
.barre-admin { background: var(--sombre); color: white; padding: 14px 0; }
.barre-admin .conteneur { display: flex; justify-content: space-between; align-items: center; }
.barre-admin a { color: white; font-family: var(--police-titre); font-weight: 600; text-transform: none; }
.tableau-admin { width: 100%; border-collapse: collapse; background: var(--blanc); border-radius: 10px; overflow: hidden; box-shadow: var(--ombre); }
.tableau-admin th, .tableau-admin td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #eee; }
.tableau-admin th { font-family: var(--police-titre); background: #f7f7f5; text-transform: uppercase; font-size: 0.8rem; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.badge-on { background: #dff3e8; color: #0d6b4f; }
.badge-off { background: #f1e9d6; color: #8a7b4f; }
.carte-info { background: var(--blanc); border-radius: 10px; padding: 30px; box-shadow: var(--ombre); }
.bloc-infos { display: grid; gap: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .projet-grille, .contact-grille, .grille-stats { grid-template-columns: 1fr; }
  .grille-photos-accueil { grid-template-columns: repeat(2,1fr); }
  .pied-grille { grid-template-columns: 1fr; }
  .rangee-champs { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-principale {
    position: fixed; inset: 68px 0 0 0; background: var(--sombre); padding: 20px 28px;
    transform: translateX(100%); transition: transform .3s ease; z-index: 90;
  }
  .nav-principale a { color: #fff; }
  .nav-principale.ouvert { transform: translateX(0); }
  .nav-principale ul { flex-direction: column; }
  .menu-burger { display: block; }
  .icone-fb { display: none; }

  /* Sur mobile, l'accès parents rejoint le menu déroulant, bien détaché du reste */
  .parents-mobile {
    display: block;
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .parents-mobile a { color: var(--jaune) !important; }
  .separateur-entete { display: none; }
}

/* Écrans étroits : la pastille se réduit au cadenas seul */
@media (max-width: 560px) {
  .lien-parents span { display: none; }
  .lien-parents { padding: 0; width: 38px; height: 38px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
