/* =============================================
   MAM Les Jolis Instants — Styles
   Palette inspirée du logo
   ============================================= */

:root {
  --cream: #F9F7F2;
  --sage: #8EAA9E;
  --sage-light: #B5C9BF;
  --pink: #E69A8D;
  --pink-light: #F0C4BB;
  --mustard: #E8B059;
  --mustard-light: #F5D49A;
  --navy: #243751;
  --lavender: #B1A7C1;
  --teal: #A8D1D1;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(36, 55, 81, 0.08);
  --shadow-lg: 0 8px 40px rgba(36, 55, 81, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-script: 'Dancing Script', cursive;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--navy);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

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

main {
  overflow-x: clip;
  max-width: 100%;
}

a {
  color: var(--sage);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--pink);
}

em {
  font-style: normal;
  color: var(--pink);
}

.container {
  width: min(1100px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---- Header / Nav ---- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(249, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(142, 170, 158, 0.15);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-weight: 700;
}

.nav__logo img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.nav__logo-text {
  font-family: var(--font-script);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__menu a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav__menu a:hover {
  color: var(--pink);
}

.nav__menu .prismatic-btn-wrap {
  vertical-align: middle;
}

.nav__menu-credit {
  display: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding: 8rem 0 5rem;
  text-align: center;
  overflow-x: clip;
}

.hero__decor {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
}

.hero__decor--left {
  top: 10%;
  left: -80px;
  background: radial-gradient(circle, var(--sage-light), transparent 70%);
}

.hero__decor--right {
  bottom: 5%;
  right: -60px;
  background: radial-gradient(circle, var(--pink-light), transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink-light), var(--mustard-light));
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero__brand {
  position: relative;
  width: min(420px, 100%);
  margin: 0 auto 2rem;
  padding: 1.5rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
}

.hero__logo {
  position: relative;
  z-index: 1;
  width: min(240px, 62vw);
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
}

.hero__title,
.hero__subtitle,
.hero__tagline {
  position: relative;
  z-index: 1;
}

/* Loader arc-en-ciel — adapté depuis Uiverse.io by vk-uiux */
.hero__brand .loader {
  position: absolute;
  top: calc(min(240px, 62vw)  - 2.7rem);
  left: -50px;
  right: -50px;
  bottom: 0;
  display: grid;
  place-items: center;
  align-content: start;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  overflow: visible;
}

.hero__brand .loader-inner {
  width: 100px;
  height: 60px;
  position: relative;
  transform: scale(7.5) translateY(-6%);
}

.hero__brand .loader-line-wrap {
  animation: logoSpin 5s infinite;
  width: 100px;
  height: 50px;
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  transform-origin: 50% 100%;
}

.hero__brand .loader-line {
  border: 4px solid transparent;
  border-radius: 100%;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  position: absolute;
  inset: 0;
}

.hero__brand .loader-line-wrap:nth-child(1) { animation-delay: -40ms; }
.hero__brand .loader-line-wrap:nth-child(2) { animation-delay: -80ms; }
.hero__brand .loader-line-wrap:nth-child(3) { animation-delay: -120ms; }
.hero__brand .loader-line-wrap:nth-child(4) { animation-delay: -160ms; }
.hero__brand .loader-line-wrap:nth-child(5) { animation-delay: -200ms; }

.hero__brand .loader-line-wrap:nth-child(1) .loader-line {
  border-color: var(--sage);
  height: 90px;
  width: 90px;
  top: 7px;
}

.hero__brand .loader-line-wrap:nth-child(2) .loader-line {
  border-color: var(--pink);
  height: 76px;
  width: 76px;
  top: 14px;
}

.hero__brand .loader-line-wrap:nth-child(3) .loader-line {
  border-color: var(--mustard);
  height: 62px;
  width: 62px;
  top: 21px;
}

.hero__brand .loader-line-wrap:nth-child(4) .loader-line {
  border-color: var(--teal);
  height: 48px;
  width: 48px;
  top: 28px;
}

.hero__brand .loader-line-wrap:nth-child(5) .loader-line {
  border-color: var(--lavender);
  height: 34px;
  width: 34px;
  top: 35px;
}

@keyframes logoSpin {
  /* Pause avant le tour */
  0% {
    transform: rotate(0deg);
  }
  /* Rotation lente */
  9.6% {
    transform: rotate(0deg);
    animation-timing-function: linear;
  }
  48.9% {
    transform: rotate(330deg);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.38, 1.12);
  }
  /* Remontée / rebond (légèrement adouci) */
  55.9% {
    transform: rotate(376deg);
    animation-timing-function: ease-out;
  }
  64.3% {
    transform: rotate(360deg);
  }
  /* Pause 2 s avant de recommencer */
  100% {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__brand .loader-line-wrap {
    animation: none;
  }
}

.hero__title-script {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--navy);
  display: block;
}

.hero__subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 0.25rem;
}

.hero__tagline {
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--navy);
  margin: 0.75rem 0 0;
  opacity: 0.85;
}

/* ---- Buttons : voir prismatic-btn.css ---- */
o
/* ---- Announcement ---- */

.announcement {
  padding: 2rem 0 3rem;
}

.announcement__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}

.announcement__card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.announcement__card p {
  max-width: 700px;
  margin: 0 auto 1rem;
}

.announcement__card p:last-child {
  margin-bottom: 0;
}

/* ---- Sections ---- */

.section {
  padding: 4rem 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(142, 170, 158, 0.08) 0%, transparent 100%);
}

.section--contact {
  background: linear-gradient(180deg, transparent 0%, rgba(230, 154, 141, 0.06) 100%);
  overflow: clip;
}

#equipe,
#infos {
  overflow: clip;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.section__intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  opacity: 0.85;
}

/* ---- Cards ---- */

.cards {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.cards--two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.card__list {
  list-style: none;
}

.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.card__icon {
  flex-shrink: 0;
  font-size: 1.2rem;
}

/* ---- Promise ---- */

.promise {
  background: linear-gradient(135deg, var(--mustard-light) 0%, var(--pink-light) 100%);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
}

.promise h3 {
  font-family: var(--font-script);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.promise p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---- Valeurs & bébé signe ---- */

.values {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.values__title {
  font-family: var(--font-script);
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--navy);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin-top: 1.25rem;
  text-align: left;
}

.values__grid li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.bebe-signe {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem 2rem 2rem;
  margin: 1.5rem 0 0;
  border-left: 4px solid var(--pink);
  text-align: left;
}

.bebe-signe__title {
  font-family: var(--font-script);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.bebe-signe p {
  font-size: 1.02rem;
  line-height: 1.75;
  opacity: 0.9;
  max-width: 720px;
}

/* ---- Stats ---- */

.stats {
  padding: 3rem 0;
  background: var(--navy);
  color: var(--white);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat__number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--mustard);
  line-height: 1.1;
}

.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ---- Team : voir team-card.css ---- */

/* ---- Infos ---- */

.infos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.info-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.info-card p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ---- Contact Form ---- */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form > .float-input {
  margin-bottom: 1.75rem;
}

.contact-form .prismatic-btn-wrap {
  margin-top: 0.5rem;
}

.form-note {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--sage);
}

.form-note--error {
  color: #b4534a;
}

/* ---- Footer ---- */

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 2rem;
  text-align: center;
  overflow: clip;
  position: relative;
  z-index: 1;
}

.footer__logo {
  width: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  opacity: 0.9;
}

.footer__name {
  font-family: var(--font-script);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.footer__tagline {
  font-family: var(--font-script);
  font-size: 1.1rem;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

.footer__tagline em {
  color: var(--pink-light);
}

.footer__location {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.footer__copy {
  font-size: 0.8rem;
  opacity: 0.45;
}

.footer__credit {
  font-size: 0.8rem;
  opacity: 0.55;
  margin-top: 0.75rem;
}

.footer__credit a {
  color: var(--mustard);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__credit a:hover {
  color: var(--pink-light);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .header {
    padding-inline: max(1.25rem, env(safe-area-inset-left, 0px)) max(1.25rem, env(safe-area-inset-right, 0px));
  }

  .header .nav.container {
    padding-inline: 0;
    width: 100%;
  }

  .nav__toggle {
    display: flex;
    margin-right: 0.15rem;
  }

  .nav__logo {
    margin-left: 0.15rem;
  }

  .nav__menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--cream);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav__menu--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__menu-credit {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(142, 170, 158, 0.25);
    text-align: center;
  }

  .nav__menu-credit p {
    font-size: 0.78rem;
    color: rgba(36, 55, 81, 0.55);
  }

  .nav__menu-credit a {
    color: var(--mustard);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .nav__menu .prismatic-btn-wrap {
    display: block;
    width: 100%;
  }

  .nav__menu .prismatic-btn {
    width: 100%;
  }

  .hero {
    padding: 7rem 0 3rem;
  }

  .hero__brand {
    overflow: visible;
    padding-top: 2rem;
  }

  .hero__brand .loader {
    top: calc(min(240px, 62vw) + 6.6rem);
    left: -15px;
    right: -15px;
    bottom: -0.5rem;
    overflow: visible;
  }

  .hero__brand .loader-inner {
    transform: scale(3.75) translateY(-2%);
  }

  .hero__content .prismatic-btn-wrap {
    max-width: 100%;
  }

  .hero__decor--left {
    left: -20px;
  }

  .hero__decor--right {
    right: -20px;
  }

  .announcement__card {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .nav__logo-text {
    display: none;
  }
}

/* ---- Animations ---- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content > * {
  animation: fadeInUp 0.6s ease both;
}

.hero__content > *:nth-child(2) { animation-delay: 0.1s; }
.hero__content > *:nth-child(3) { animation-delay: 0.2s; }
