/* ══════════════════════════════════════════════════════
   Assistante maternelle — feuille de style
   Palette pastel : rose / vert sauge / jaune / bleu, fond crème
   ══════════════════════════════════════════════════════ */

:root {
  --cream:       #FBF6EF;
  --cream-2:     #F5EDE2;
  --pink:        #E9A6B7;
  --pink-deep:   #D9849C;
  --pink-soft:   #F8E3E9;
  --green:       #A8B98C;
  --green-deep:  #8CA06E;
  --green-soft:  #E9EEDD;
  --yellow:      #F0C97E;
  --yellow-soft: #FAEBCB;
  --blue:        #A9C3DE;
  --blue-soft:   #E1EAF4;
  --ink:         #4A4340;
  --ink-soft:    #7C736D;
  --white:       #FFFFFF;

  --font-title:  "Lora", Georgia, serif;
  --font-script: "Caveat", cursive;
  --font-body:   "Nunito", "Segoe UI", sans-serif;

  --radius-card: 22px;
  --shadow-card: 0 8px 24px rgba(120, 90, 80, 0.08);
  --content-max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Formes décoratives douces en fond de page */
body::before,
body::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
body::before {
  width: 420px; height: 420px;
  left: -220px; top: 620px;
  background: var(--pink-soft);
}
body::after {
  width: 360px; height: 360px;
  right: -200px; top: 1050px;
  background: var(--green-soft);
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

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

h1, h2, h3 { font-family: var(--font-title); font-weight: 600; }

/* ══════════ Apparition en fondu au défilement ══════════ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 239, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  background: rgba(251, 246, 239, 0.92);
  box-shadow: 0 4px 20px rgba(120, 90, 80, 0.09);
}
.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-rainbow { width: 78px; height: 51px; }
.logo-text {
  font-family: var(--font-script);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 0.9;
}

.site-nav {
  display: flex;
  gap: 8px;
}
.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--pink-deep); background: var(--pink-soft); }
.nav-link.active { color: var(--pink-deep); border-bottom-color: var(--pink); border-radius: 0; }

/* Menu mobile (burger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--pink-deep);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ══════════ Photos (avec repli pastel si l'image manque) ══════════ */

.photo {
  background-color: var(--cream-2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-photo { background-image: url("../images/hero.jpg"); }
.photo-1 { background-image: url("../images/accueil-1.jpg"); }
.photo-2 { background-image: url("../images/accueil-2.jpg"); }
.photo-3 { background-image: url("../images/accueil-3.jpg"); }
.photo-4 { background-image: url("../images/accueil-4.jpg"); }
.photo-5 { background-image: url("../images/accueil-5.jpg"); }
.photo-6 { background-image: url("../images/accueil-6.jpg"); }
.photo-7 { background-image: url("../images/accueil-7.jpg"); }
.photo-8 { background-image: url("../images/accueil-8.jpg"); }

/* ══════════ Accueil / hero ══════════ */

.hero {
  max-width: var(--content-max);
  margin: 24px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(320px, 5fr) 6fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero h1 .script {
  font-family: var(--font-script);
  color: var(--pink-deep);
  font-size: 1.25em;
  font-weight: 700;
}
.heart-inline {
  width: 0.8em; height: 0.8em;
  vertical-align: baseline;
  margin-left: 6px;
}

.hero-intro {
  max-width: 46ch;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-photo {
  width: 100%;
  aspect-ratio: 10 / 8;   /* = ratio de hero.jpg (1600x1280) : photo entière, sans zoom ni bande vide */
  border-radius: 47% 53% 44% 56% / 55% 48% 52% 45%;
  background-position: center;
}

/* ══════════ Boutons ══════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.97rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(217, 132, 156, 0.35);
}
.btn-primary:hover { background: var(--pink-deep); }

.btn-ghost {
  color: var(--pink-deep);
  border: 2px solid var(--pink);
  background: transparent;
}
.btn-ghost:hover { background: var(--pink-soft); }

/* ══════════ Galerie « mon accueil » ══════════ */

.gallery {
  max-width: var(--content-max);
  margin: 64px auto 0;
  padding: 14px 24px;
  overflow: hidden;
}
.gallery-track {
  display: flex;
  gap: 18px;
}
.gallery .photo {
  flex: 0 0 calc((100% - 3 * 18px) / 4);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s ease;
}
.gallery .photo:hover {
  transform: scale(1.04);
}

/* ══════════ Mes valeurs ══════════ */

.values {
  max-width: var(--content-max);
  margin: 90px auto 0;
  padding: 0 24px;
  text-align: center;
}

.heart-divider {
  width: 30px; height: 30px;
  margin: 0 auto 10px;
  display: block;
}

.values h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  display: inline-block;
  border-bottom: 3px solid var(--green);
  padding-bottom: 10px;
  margin-bottom: 40px;
}

#skills h2 {
    border-bottom: 3px solid var(--pink);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 34px 22px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(120, 90, 80, 0.13);
}
.value-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.value-card p { font-size: 0.92rem; color: var(--ink-soft); }

.value-icon {
  width: 78px; height: 78px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon svg { width: 38px; height: 38px; }

.icon-pink   { background: var(--pink-soft);   color: var(--pink-deep); }
.icon-green  { background: var(--green-soft);  color: var(--green-deep); }
.icon-yellow { background: var(--yellow-soft); color: #C99B45; }
.icon-blue   { background: var(--blue-soft);   color: #7B9CBF; }

/* ══════════ Infos pratiques + contact ══════════ */

.practical {
  max-width: var(--content-max);
  margin: 80px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 5fr 4fr 5fr;
  gap: 28px;
  align-items: stretch;
}

.card {
  border-radius: var(--radius-card);
  padding: 34px 30px;
}
.card-infos   { background: var(--green-soft); }
.card-contact { background: var(--pink-soft); }

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.card-head h2 { font-size: 1.35rem; }
.card-contact .card-head h2 { color: var(--pink-deep); }

.card-badge {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-badge svg { width: 24px; height: 24px; }
.badge-green { background: var(--green); color: var(--white); }
.badge-pink  { background: var(--pink);  color: var(--white); }

.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding: 6px 0 6px 34px;
  font-size: 0.97rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 11px;
  width: 16px; height: 9px;
  border-left: 3px solid var(--green-deep);
  border-bottom: 3px solid var(--green-deep);
  border-radius: 1px;
  transform: rotate(-45deg);
}

/* Citation centrale */
.quote-blob {
  align-self: center;
  text-align: center;
  background: var(--cream-2);
  border-radius: 45% 55% 52% 48% / 50% 46% 54% 50%;
  padding: 56px 30px;
}
.quote-blob p {
  font-family: var(--font-title);
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.quote-heart { width: 22px; height: 22px; }

/* Contact */
.contact-name { margin-bottom: 20px; font-size: 0.97rem; }
.contact-name strong { font-size: 1.05rem; }

.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.97rem;
}
.contact-list svg {
  width: 20px; height: 20px;
  color: var(--pink-deep);
  flex-shrink: 0;
}
.contact-list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed var(--pink);
}
.contact-list a:hover { color: var(--pink-deep); }

/* ══════════ Appel final + pied de page ══════════ */

.final-cta {
  text-align: center;
  margin: 70px auto 0;
  padding: 0 24px;
}

.site-footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  padding: 48px 24px 32px;
}

/* ══════════ Lightbox (photos en grand) ══════════ */

.gallery .photo { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(74, 67, 64, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.lightbox.open .lightbox-img { transform: scale(1); }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: #fff; }

.lightbox-close {
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  font-size: 1.7rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
}
.lightbox-nav svg { width: 26px; height: 26px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
}

/* ══════════ Adaptation mobile / tablette ══════════ */

@media (max-width: 900px) {
  /* Décorations de fond pensées pour le desktop (positions en px fixes) :
     sur petit écran elles deviennent envahissantes → on les masque */
  body::before, body::after { display: none; }

  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { max-width: 520px; margin: 0 auto; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .practical { grid-template-columns: 1fr; }
  .quote-blob { max-width: 420px; margin: 0 auto; }
  .gallery .photo { flex-basis: calc((100% - 2 * 18px) / 3); }
}

@media (max-width: 620px) {
  .site-header__inner { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 12px;
  }
  .site-nav.open { display: flex; }
  .nav-link { text-align: center; }
  .values-grid { grid-template-columns: 1fr; }
  .gallery .photo { flex-basis: calc((100% - 18px) / 2); }

  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-nav svg { width: 20px; height: 20px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 12px; right: 12px; }
}
