/* LA LUMIERE DE MIKAEL — Design System
   Navy #1B2A4A | Gold #C5A059 | Cream #FFFBF5 | Rose #E8B4C8 */

:root {
  --navy: #1b2a4a;
  --navy-deep: #0f1a2e;
  --gold: #c5a059;
  --gold-light: #e8d5a8;
  --cream: #fffbf5;
  --rose: #e8b4c8;
  --rose-soft: #f5e6ec;
  --text: #2d3436;
  --text-muted: #5c6370;
  --shadow-soft: 0 4px 24px rgba(27, 42, 74, 0.08);
  --shadow-gold: 0 8px 32px rgba(197, 160, 89, 0.2);
  --radius: 16px;
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Navigation ── */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav__title,
.nav__link {
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.7);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.nav__logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform var(--transition);
}

.nav__brand:hover .nav__logo-wrap {
  transform: scale(1.05);
}

.nav__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.nav__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-deep);
  line-height: 1.2;
}

.nav__title span {
  color: #9a7b2f;
}

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

.nav__link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-deep);
  position: relative;
  padding: 0.25rem 0;
  cursor: pointer;
  transition: color var(--transition);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__link.active {
  color: #8a6d28;
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.active::after {
  width: 100%;
}

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

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

.nav__burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__burger.open span:nth-child(2) {
  opacity: 0;
}

.nav__burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Extended sky background (accueil → membres) ── */
.sky-wrap {
  position: relative;
  background: white url("../assets/hero-sky.webp") center top / 100% auto no-repeat;
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.hero__bg {
  display: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 26, 46, 0.3) 0%,
    rgba(27, 42, 74, 0.08) 20%,
    transparent 45%
  );
  pointer-events: none;
}

.hero__stars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.4);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 2rem 2rem;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo-wrap {
  width: min(240px, 62vw);
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  border: 4px solid var(--gold);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.45),
    0 12px 40px rgba(197, 160, 89, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeUp 1s ease-out;
}

.hero__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: none;
  margin: 0;
}

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

.hero__bio {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 2.1vw, 1.65rem);
  font-weight: 600;
  font-style: italic;
  color: #0f1a2e;
  margin-bottom: 1.75rem;
  line-height: 1.65;
  animation: fadeUp 1s ease-out 0.2s both;
  max-width: calc(100vw - 2rem);
  width: max-content;
  text-align: center;
  white-space: nowrap;
  padding: 1.5rem 2.25rem;
  position: relative;
  background: rgba(255, 251, 245, 0.48);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 2px solid rgba(197, 160, 89, 0.45);
  box-shadow:
    0 8px 36px rgba(15, 26, 46, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero__bio::before,
.hero__bio::after {
  content: "";
  display: block;
  width: min(100px, 18vw);
  height: 2px;
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
  border-radius: 2px;
}

.hero__bio::before {
  margin-bottom: 1rem;
}

.hero__bio::after {
  margin-top: 1rem;
}

.hero__bio-highlight {
  font-style: italic;
  font-weight: 700;
  color: #6b5420;
  background: none;
  -webkit-text-fill-color: #6b5420;
  filter: none;
}

.hero__bio .dove {
  font-style: normal;
  opacity: 1;
  margin: 0 0.35em;
  filter: none;
}

@media (max-width: 900px) {
  .hero__bio {
    white-space: normal;
    font-size: clamp(1rem, 3.8vw, 1.3rem);
    padding: 1.25rem 1.5rem;
    width: auto;
  }
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--gold), #a8863e);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  animation: fadeUp 1s ease-out 0.4s both;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(197, 160, 89, 0.35);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.hero__scroll {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ── Sections ── */
.section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.section--alt,
.contact {
  background: var(--cream);
}

.sky-wrap #mission,
.sky-wrap .members {
  background: transparent;
}

#mission {
  padding-top: 4rem;
  margin-top: -1px;
}

.section--alt {
  background: white;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.section__title em {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 1.3em;
  color: var(--gold);
}

.section__divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1.25rem auto 0;
  border-radius: 2px;
}

.section__subtitle {
  max-width: 600px;
  margin: 1.25rem auto 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Mission cards ── */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mission-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(197, 160, 89, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.mission-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-soft);
  border-radius: 50%;
  color: var(--navy);
}

.mission-card__icon svg {
  width: 28px;
  height: 28px;
}

.mission-card__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.mission-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Membres ── */
.members {
  background: linear-gradient(180deg, var(--cream) 0%, var(--rose-soft) 100%);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.member-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(197, 160, 89, 0.15);
  transition: transform var(--transition), box-shadow var(--transition);
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.member-card--memory {
  border-color: rgba(197, 160, 89, 0.3);
  background: linear-gradient(180deg, white 0%, rgba(255, 251, 245, 0.9) 100%);
}

.member-card__photo-wrap {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.6),
    0 8px 28px rgba(197, 160, 89, 0.25);
  background: var(--rose-soft);
}

.member-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  background: linear-gradient(135deg, var(--rose-soft), var(--cream));
}

.member-card__name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy-deep);
  margin-bottom: 0.35rem;
}

.member-card__role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.member-card__bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Photos gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery__item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-gold);
}

.gallery__item--large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--rose-soft), var(--cream));
  color: var(--text-muted);
  font-size: 0.85rem;
}

.gallery__placeholder svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
  opacity: 0.5;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 26, 46, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Contact ── */
.contact {
  background: var(--navy);
  color: white;
}

.contact .section__title {
  color: white;
}

.contact .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-item__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 160, 89, 0.15);
  border-radius: 12px;
  color: var(--gold);
}

.contact-item__icon svg {
  width: 22px;
  height: 22px;
}

.contact-item__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.contact-item__value {
  font-size: 1.1rem;
  color: white;
}

.contact-item__value a {
  transition: color var(--transition);
  cursor: pointer;
}

.contact-item__value a:hover {
  color: var(--gold-light);
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}

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

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--gold), #a8863e);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-submit:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ── Footer ── */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.8rem;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer__hearts {
  color: var(--gold);
  letter-spacing: 0.5rem;
  margin-bottom: 1rem;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .mission-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--large {
    grid-column: span 2;
    grid-row: span 1;
  }

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

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: var(--cream);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: right var(--transition);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__burger {
    display: flex;
    z-index: 101;
  }

  .members-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

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

  .gallery__item--large {
    grid-column: span 1;
  }

  .section {
    padding: 4rem 1.25rem;
  }
}

@media (max-width: 375px) {
  .nav {
    padding: 0.75rem 1rem;
  }

  .nav__title {
    font-size: 0.8rem;
  }

  .hero__content {
    padding: 7rem 1rem 3rem;
  }
}
