/* ══════════════════════════════════════════
   Les Manque Pas d'Eyre — style.css
   Thème : fond blanc, couleur principale #781C45
   ══════════════════════════════════════════ */

/* ── Fonte personnalisée ── */
@font-face {
  font-family: 'UVF Funkydori';
  src: url('fonts/UVF Funkydori.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Variables ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --principal:  #781C45;
  --principal2: #5a1434;
  --gold:       #D4A520;
  --blanc:      #ffffff;
  --blanc2:     #f5f0f2;
  --gris:       #e8dfe4;
  --texte:      #2a1020;
  --texte2:     #6b4a5a;
  --font-title: 'Bebas Neue', sans-serif;
  --font-funky: 'UVF Funkydori', 'Bebas Neue', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-body:  'Crimson Pro', serif;
  --nav-h:      68px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--font-body);
  font-size: 18px;
  overflow-x: hidden;
}

/* ══ NAV ══ */
nav {
  position: fixed; top: 0; width: 100%; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gris);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(120,28,69,.1); }
.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--font-title);
  letter-spacing: 2px;
  font-size: .9rem;
  color: var(--texte);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--principal); }

/* ── Burger (masqué sur desktop) ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 40px; height: 40px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--principal);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Menu mobile ── */
.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(255,255,255,.99);
  border-bottom: 2px solid var(--principal);
  z-index: 199;
  display: flex;
  flex-direction: column;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.nav-mobile.open {
  max-height: 300px;
  padding: 12px 0 20px;
}
.nav-mobile a {
  font-family: var(--font-title);
  letter-spacing: 4px;
  font-size: 1.1rem;
  color: var(--texte);
  text-decoration: none;
  text-transform: uppercase;
  padding: 14px 32px;
  transition: background .15s, color .15s;
}
.nav-mobile a:hover { background: var(--blanc2); color: var(--principal); }

/* ══ HERO ══ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #3a0d22 0%, #781C45 50%, #2a0a1a 100%);
  z-index: 0;
}
#hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
  pointer-events: none;
}
/* Voile supprimé — plus de #hero::before */
#hero > *:not(#hero-video):not(.hero-bg) {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-title);
  letter-spacing: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 14px;
  animation: fadeUp .8s ease both;
}
.hero-title {
  font-family: var(--font-funky);
  font-size: clamp(3.5rem, 12vw, 10rem);
  line-height: .95;
  color: #ffffff;
  letter-spacing: 2px;
  animation: fadeUp .8s .15s ease both;
}
.hero-title em { color: #ffffff; font-style: normal; }
.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.7rem);
  color: rgba(255,255,255,.85);
  margin-top: 20px;
  animation: fadeUp .8s .3s ease both;
}
.hero-cta {
  margin-top: 44px;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp .8s .45s ease both;
}
.btn {
  display: inline-block;
  font-family: var(--font-title);
  letter-spacing: 3px;
  font-size: .95rem;
  padding: 13px 36px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--principal); color: #fff; border: 2px solid var(--principal); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(120,28,69,.5); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-secondary:hover { transform: translateY(-3px); background: rgba(255,255,255,.15); }

.scroll-arrow {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  animation: bounce 1.8s ease-in-out infinite;
  font-size: 1.3rem;
  z-index: 2;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══ SECTIONS COMMUNES ══ */
.section-label {
  font-family: var(--font-title);
  letter-spacing: 6px;
  font-size: .82rem;
  color: var(--principal);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.0;
  margin-bottom: 28px;
  color: var(--texte);
}
.divider {
  width: 70px; height: 4px;
  background: linear-gradient(90deg, var(--principal), var(--gold));
  margin-bottom: 34px;
}

/* ══ ABOUT ══ */
.section-about {
  padding: 120px 5vw 100px;
}
#about {
  display: grid;
  grid-template-columns: 5fr 7fr;  /* image moins large, texte plus large */
  gap: 70px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.about-img-wrap { position: relative; flex-shrink: 0; }
.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 3px solid var(--principal);
  z-index: 0;
  pointer-events: none;
}
.about-img-inner {
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-height: 480px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blanc2);
}
.about-img-inner img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-text p {
  line-height: 1.78;
  color: var(--texte2);
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.about-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--principal);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-title);
  letter-spacing: 2px;
  font-size: .72rem;
  color: var(--texte2);
  margin-top: 4px;
}

/* ══ GALERIE ══ */
#galerie {
  background: var(--blanc2);
  padding: 100px 5vw;
}
.galerie-header { max-width: 1200px; margin: 0 auto 48px; }
.galerie-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 280px;
  gap: 10px;
}

/* Layout pour 5 photos */
.gal-item:nth-child(1) { grid-column: 1 / 8;  grid-row: 1 / 3; } /* grande à gauche */
.gal-item:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
.gal-item:nth-child(3) { grid-column: 8 / 13; grid-row: 2; }
.gal-item:nth-child(4) { grid-column: 1 / 7;  grid-row: 3; }
.gal-item:nth-child(5) { grid-column: 7 / 13; grid-row: 3; }

.gal-item { overflow: hidden; cursor: pointer; }
.gal-inner {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  background: #e8d0da;
}
.gal-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gal-item:hover .gal-inner img { transform: scale(1.06); }
.gal-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(120,28,69,.55) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
}
.gal-item:hover .gal-overlay { opacity: 1; }

/* ══ AGENDA ══ */
.section-agenda {
  padding: 100px 5vw;
  background: var(--blanc);
}
#agenda { max-width: 1200px; margin: 0 auto; }
.agenda-list { list-style: none; margin-top: 16px; }
.agenda-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 24px 12px;
  border-bottom: 1px solid var(--gris);
  transition: background .2s, padding-left .2s;
  border-radius: 4px;
}
.agenda-item:hover { background: var(--blanc2); padding-left: 20px; }
.agenda-date { text-align: center; }
.agenda-day {
  font-family: var(--font-title);
  font-size: 2.6rem;
  color: var(--principal);
  line-height: 1;
}
.agenda-month {
  font-family: var(--font-title);
  letter-spacing: 3px;
  font-size: .72rem;
  color: var(--texte2);
  margin-top: 2px;
}
.agenda-info h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--texte);
}
.agenda-info p {
  font-size: .9rem;
  color: var(--texte2);
  letter-spacing: .5px;
}
.agenda-tag {
  font-family: var(--font-title);
  letter-spacing: 2px;
  font-size: .7rem;
  padding: 5px 14px;
  border: 1px solid var(--principal);
  color: var(--principal);
  white-space: nowrap;
}
.agenda-tag.complet { border-color: var(--gris); color: var(--texte2); }

/* ══ CONTACT ══ */
#contact {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 100px 5vw;
}
.contact-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--texte2);
  margin: 18px auto 52px;
  max-width: 560px;
  line-height: 1.7;
}
/* 2 colonnes centrées */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--gris);
  border: 1px solid var(--gris);
  margin-bottom: 52px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.contact-item {
  background: var(--blanc);
  padding: 40px 24px;
  transition: background .2s;
}
.contact-item:hover { background: #fdf5f8; }
.contact-icon { font-size: 1.8rem; margin-bottom: 12px; }
.contact-item h3 {
  font-family: var(--font-title);
  letter-spacing: 3px;
  font-size: .85rem;
  color: var(--principal);
  margin-bottom: 8px;
}
.contact-item p,
.contact-item a {
  font-size: .9rem;
  color: var(--texte2);
  text-decoration: none;
  word-break: break-word;
}
.contact-item a:hover { color: var(--principal); }
.social-row { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.social-btn {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-title);
  letter-spacing: 3px;
  font-size: .82rem;
  padding: 11px 26px;
  border: 1px solid var(--gris);
  color: var(--texte);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.social-btn:hover { border-color: var(--principal); color: var(--principal); background: #fdf5f8; }

/* ══ FOOTER ══ */
footer {
  border-top: 1px solid var(--gris);
  background: var(--blanc2);
  padding: 36px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-family: var(--font-title); font-size: 1.2rem; color: var(--principal); letter-spacing: 2px; }
.footer-copy { font-size: .82rem; color: var(--texte2); }
.footer-nav { display: flex; gap: 24px; list-style: none; }
.footer-nav a {
  font-family: var(--font-title);
  letter-spacing: 2px;
  font-size: .72rem;
  color: var(--texte2);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--principal); }

/* ══ LIGHTBOX ══ */
#lightbox {
  position: fixed; inset: 0;
  background: rgba(20,5,12,.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border: 2px solid rgba(255,255,255,.08);
}
.lb-close {
  position: absolute; top: 20px; right: 28px;
  font-size: 2.8rem; line-height: 1;
  cursor: pointer; color: #fff;
  background: none; border: none;
  transition: color .2s;
}
.lb-close:hover { color: var(--gold); }
.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 3rem; line-height: 1;
  cursor: pointer; color: rgba(255,255,255,.6);
  background: none; border: none;
  padding: 10px 20px;
  transition: color .2s;
}
.lb-prev:hover, .lb-next:hover { color: #fff; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ══ TAPE DÉCO ══ */
.tape {
  display: inline-block;
  background: rgba(120,28,69,.07);
  border-top: 1px solid rgba(120,28,69,.22);
  border-bottom: 1px solid rgba(120,28,69,.22);
  padding: 3px 18px;
  font-family: var(--font-title);
  letter-spacing: 5px;
  font-size: .78rem;
  color: var(--principal);
  margin-bottom: 28px;
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */

/* ── Tablette large (≤ 1100px) ── */
@media (max-width: 1100px) {
  nav { padding: 0 32px; }
  .nav-links { gap: 24px; }
  #about { grid-template-columns: 1fr 1fr; gap: 50px; }
  .galerie-grid { grid-auto-rows: 220px; }
}

/* ── Tablette (≤ 900px) ── */
@media (max-width: 900px) {
  :root { --nav-h: 62px; }

  /* NAV — burger */
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* HERO */
  .hero-title { font-size: clamp(3rem, 14vw, 6rem); }

  /* ABOUT */
  .section-about { padding: 100px 6vw 80px; }
  #about {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 600px;
  }
  .about-img-wrap::before { inset: -10px -10px 10px 10px; }
  .about-img-inner {
    max-height: none;
    display: block;
    overflow: visible;
  }
  .about-img-inner img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: unset;
    display: block;
  }
  .about-stats { gap: 24px; }

  /* GALLERY — 2 colonnes simples */
  #galerie { padding: 80px 5vw; }
  .galerie-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
    gap: 8px;
  }
  .gal-item:nth-child(1),
  .gal-item:nth-child(2),
  .gal-item:nth-child(3),
  .gal-item:nth-child(4),
  .gal-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }
  /* Photo 1 reste plus grande */
  .gal-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }

  /* AGENDA */
  .section-agenda { padding: 80px 5vw; }
  .agenda-item { grid-template-columns: 70px 1fr; gap: 20px; }
  .agenda-tag { display: none; }
  .agenda-day { font-size: 2rem; }

  /* CONTACT */
  #contact { padding: 80px 6vw; }
  .contact-grid { grid-template-columns: 1fr 1fr; max-width: 480px; }

  /* FOOTER */
  footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-nav { display: none; }

  /* LIGHTBOX */
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {
  :root { --nav-h: 58px; }

  /* HERO */
  #hero { min-height: 100svh; }
  .hero-title { font-size: clamp(2.8rem, 16vw, 5rem); line-height: 1.0; }
  .hero-eyebrow { font-size: .75rem; letter-spacing: 5px; }
  .hero-subtitle { font-size: 1rem; }
  .hero-cta { gap: 12px; }
  .btn { padding: 11px 24px; font-size: .85rem; }

  /* ABOUT */
  .section-about { padding: 80px 5vw 60px; }
  .about-img-inner { max-height: 300px; }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: .65rem; }
  .about-stats { gap: 16px; }

  /* GALLERY — 1 colonne */
  .galerie-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
    gap: 8px;
  }
  .gal-item:nth-child(1),
  .gal-item:nth-child(2),
  .gal-item:nth-child(3),
  .gal-item:nth-child(4),
  .gal-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* AGENDA */
  .agenda-item { grid-template-columns: 60px 1fr; gap: 16px; padding: 18px 8px; }
  .agenda-day { font-size: 1.8rem; }
  .agenda-month { font-size: .65rem; }
  .agenda-info h3 { font-size: 1.05rem; }

  /* CONTACT */
  #contact { padding: 70px 5vw; }
  .contact-grid { grid-template-columns: 1fr; max-width: 320px; }
  .contact-item { padding: 28px 20px; }

  /* LIGHTBOX */
  #lightbox img { max-width: 95vw; max-height: 80vh; }
  .lb-close { top: 14px; right: 16px; font-size: 2.2rem; }
  .lb-prev, .lb-next { font-size: 2rem; padding: 8px 10px; }
}

/* ── Petit mobile (≤ 380px) ── */
@media (max-width: 380px) {
  .hero-title { font-size: clamp(2.4rem, 18vw, 4rem); }
  .section-title { font-size: clamp(2rem, 10vw, 3rem); }
  nav { padding: 0 16px; }
  .nav-logo-img { height: 36px; }
}
