

:root {
  --bg: #faf4ea;
  --surface: rgba(255, 255, 255, 0.70);
  --surface-strong: rgba(255, 255, 255, 0.548);
  --text: #2b2320;
  --muted: rgb(14, 13, 13);
  --primary: #ddf7e4bd;
  --primary-strong: #5f7f70;
  --danger: #c24f4f;
  --ok: #2f7d5f;
  --border: rgba(43, 35, 32, 0.14);
  --shadow: 0 16px 38px rgba(43, 35, 32, 0.14);
  --shadow-soft: 0 10px 22px rgba(43, 35, 32, 0.10);
  --radius: 18px;
  --radius2: 14px;
}

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

html, body {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pedagogique Medium", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 200px);
  height: 80%;
  background: url("../img/arbre.webp") no-repeat center;
  background-size: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  z-index: -1;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 700;
  font-family: "Cute Dino", "Pedagogique Medium", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

main {
  backdrop-filter: blur(5px);
}

p {
  margin: 0 0 0.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.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;
}

.container {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 1000;
}

.skip-link:focus-visible {
  left: 12px;
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 4px
    ),
    radial-gradient(
      ellipse at 10% 20%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse at 90% 70%,
      rgba(0, 0, 0, 0.04) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse at 30% 80%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 35%
    ),
    radial-gradient(
      ellipse at 70% 30%,
      rgba(0, 0, 0, 0.03) 0%,
      transparent 35%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 20%,
      transparent 80%,
      rgba(0, 0, 0, 0.03) 100%
    ),
    var(--primary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0; 
  height: 110px; 
  
}

.img-header {
  width: 300px; 
  }
  
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, rgba(124, 154, 139, 0.95), rgba(255, 255, 255, 0.95));
  color: #1a1614;
}

.brand-title {
  font-weight: 700;
  font-size: 14px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

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

.nav a,
.nav .linklike {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
}

.nav a:hover,
.nav a:focus-visible,
.nav .linklike:hover,
.nav .linklike:focus-visible {
  color: var(--text);
  background: rgba(124, 154, 139, 0.14);
}

.linklike {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero {
  padding: 43px 0 28px;
  display: flex;
  
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.hero-title-img {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 0 0 18px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.hero-content p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 85ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid rgba(124, 154, 139, 0.35);
  background: rgba(171, 238, 205, 0.5);
  color: #1a1614;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: rgba(171, 238, 205, 0.7);
}

.btn-secondary {
  border: 1px solid rgba(43, 35, 32, 0.18);
  background: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.70);
}

.hero-points {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.leadertext {
  list-style: none;
  background-color: rgba(245, 245, 245, 0.5);
  padding: 20px;
  border-radius: 25px;
  font-size: 18px;
}

.leadertext li {
  margin-bottom: 10px;
}
.hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  min-width: 350px;
  max-height: 400px;
}

.info-grid {
  display: grid;
  gap: 12px;
}

.info-grid dt,
.info-grid dd {
  margin: 0;
}

.info-label {
  font-size: 12px;
  color: var(--muted);
}

.info-value {
  font-weight: 700;
}

.section {
  padding: 39px 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Grille de cartes */

.cards {
  display: grid;
  grid-template-columns: repeat(1, 2fr);
  justify-content: space-around;
}

.alicia {
  max-width: 450px;
  margin-bottom: 20px;
}

.benoit {
  max-width: 450px;
  margin-bottom: 20px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  font-size: 18px;
}

.card h3 {
  margin-bottom: 20px;
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card ul li {
  margin-bottom: 15px;
}

.card-wide {
  grid-column: span 3;
  background: rgba(255, 255, 255, 0.62);
}

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

.gallery-thumb {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: var(--radius2);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-thumb:focus-visible,
.gallery-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.22);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-helper {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: rgba(45, 37, 32, 0.7);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.gallery-lightbox__panel {
  position: relative;
  max-width: min(90vw, 1000px);
  max-height: 90vh;
  margin: 24px;
  border-radius: var(--radius2);
  background: #fff;
  padding: 12px 12px 24px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-lightbox__panel img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #000;
}

.gallery-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
}

#gallery-lightbox-caption {
  font-size: 0.95rem;
  color: rgba(40, 32, 30, 0.8);
}

/* Avatar / pictogramme */

.avatar {
  width: 100px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(124, 154, 139, 0.16);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}


/* Liste standard */

.list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

/* Petits “pills” / étiquettes */

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

/* ==============================
   Formulaire d’inscription / de contact
   ============================== */

.form-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  padding: 22px;
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

fieldset.grid-2 {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

/* Champs */

.field {
  display: block;
}

.field > span,
.field > legend {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  outline: none;
  font: inherit;
}

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

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: rgba(124, 154, 139, 0.70);
  box-shadow: 0 0 0 3px rgba(124, 154, 139, 0.18);
}

/* Enfants (repeating group) */

.children {
  display: grid;
  gap: 12px;
}

.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 16px;
}

.contact-grid strong {
  display: block;
  margin-bottom: 8px;
}

.child-card {
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, 0.70);
  padding: 16px;
}

.child-card h4 {
  margin: 0 0 12px;
}

/* Jours de garde */

.days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

fieldset.days {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

.day {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(124, 154, 139, 0.10);
}

.day input {
  width: 16px;
  height: 16px;
}

/* Actions du formulaire */

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fineprint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* Messages d’alerte */

.alert {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.70);
}

.alert-success {
  border-color: rgba(47, 125, 95, 0.28);
  background: rgba(47, 125, 95, 0.10);
}

.alert-error {
  border-color: rgba(194, 79, 79, 0.35);
  background: rgba(194, 79, 79, 0.10);
}

/* Champ honeypot (anti-spam) */

.hp {
  display: none !important;
}

/* ==============================
   Section “contact”
   ============================== */

.section-contact {
  margin: 30px auto;
  background: rgba(255, 255, 255, 0.70);
  width: min(1400px, calc(100% - 32px));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

/* ==============================
   Footer
   ============================== */

.site-footer {
  padding: 10px 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 4px
    ),
    radial-gradient(
      ellipse at 10% 20%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse at 90% 70%,
      rgba(0, 0, 0, 0.04) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse at 30% 80%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 35%
    ),
    radial-gradient(
      ellipse at 70% 30%,
      rgba(0, 0, 0, 0.03) 0%,
      transparent 35%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 20%,
      transparent 80%,
      rgba(0, 0, 0, 0.03) 100%
    ),
    var(--primary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 7px;
}

.footer-logo {
  max-width: 60px;
  height: auto;
  opacity: 0.7;
}

.footer-title {
  font-weight: 800;
}

.footer-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  margin-left: 12px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

/* ==============================
   Modale (PDF / docs)
   ============================== */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}

.modal.is-open {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 35, 32, 0.48);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100% - 24px));
  height: min(80vh, 720px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 243, 221, 0.80);
}

.modal-title {
  font-weight: 800;
}

/* Bouton icône (fermer la modale, etc.) */

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(124, 154, 139, 0.14);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  height: calc(100% - 62px);
  position: relative;
}

#pdf-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-fallback {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 243, 221, 0.86);
  border: 1px solid var(--border);
}

.modal-fallback a {
  color: var(--text);
  font-weight: 700;
}

/* ==============================
   Responsive
   ============================== */

@media (max-width: 900px) {
  .hero {
    padding: 17px 0 11px;
  }

  .section {
    padding: 19.5px 0;
  }

  .hero-inner {
    flex-direction: column;
    gap: 32px;
  }

  .hero-content p {
    background: rgba(255, 255, 255, 0.50);
    padding: 12px 16px;
    border-radius: 12px;
  }

  .cards {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .card-wide {
    grid-column: auto;
  }
}

@media (max-width: 740px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 250px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
  }

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

  .nav a,
  .nav .linklike {
    padding: 12px 10px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .days {
    grid-template-columns: 1fr 1fr;
  }
}
