/* ============================================================
   MARINE NGOUBAS WEDDING – PAGE ACCUEIL
   Hero (vidéo) · À propos · Services · Ouvrages · Mariages
   ============================================================ */

/* ==============================
   1. HERO – vidéo responsive plein écran
   ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 24px 12vh;
  color: #fff;
  background: linear-gradient(160deg, #8d8579, #6f6558 55%, #3e352d);
}

.video-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.03) brightness(.95);
}

/* Voile doré + assombrissement pour lisibilité */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(40, 32, 28, .5) 0%,
      rgba(30, 24, 20, .15) 45%,
      rgba(30, 24, 20, .7) 100%),
    linear-gradient(160deg,
      rgba(154, 123, 63, .25) 0%,
      rgba(232, 211, 162, .08) 50%,
      rgba(154, 123, 63, .22) 100%);
}

.hero-in {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(15px, 1.6vw, 18px);
  color: #e8d3a2;
  margin-bottom: 12px;
  letter-spacing: .01em;
}

.hero h2 {
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 1.02;
  margin-bottom: 28px;
  letter-spacing: -.006em;
}

.hero p {
  font-size: clamp(17px, 1.6vw, 21px);
  max-width: 720px;
  margin: 0 auto 38px;
  line-height: 1.4;
}

/* Animations d'entrée du hero */
.hero > .hero-in > * {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 1.4s var(--ease) forwards;
}
.hero h1       { animation-delay: .5s; }
.hero h2       { animation-delay: .75s; }
.hero p        { animation-delay: 1.05s; }
.hero .btn     { animation-delay: 1.3s; }

/* ==============================
   2. À PROPOS
   ============================== */
.about {
  padding: 110px 0 100px;
  background: var(--cream);
}

.about .wrap {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.photo {
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(60, 40, 20, .18);
  aspect-ratio: 3 / 4;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
  transform: scale(1.15);
  transition: transform 2s var(--ease);
}

.photo.in img {
  transform: scale(1);
}

.about h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  margin-bottom: 6px;
}

.about h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 30px;
  line-height: 1.3;
}

.about p {
  margin-bottom: 18px;
  max-width: 560px;
  line-height: 1.55;
}

.about .btn {
  margin-top: 18px;
}

/* ==============================
   3. NOS SERVICES – cartes cliquables
   ============================== */
.services {
  padding: 100px 0 110px;
  text-align: center;
  background: linear-gradient(180deg, var(--sand-warm) 0%, var(--sand-deep) 100%);
}

.services h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  margin-bottom: 10px;
}

.services h3 {
  font-family: var(--h1);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  margin-bottom: 56px;
  font-weight: 400;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

/* La carte entière est un lien cliquable */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 26px 34px;
  border: 1px solid var(--gold);
  background: var(--cream);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform .8s var(--ease),
    box-shadow .8s var(--ease),
    border-color .8s var(--ease);
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--gold-soft), #f8f0da 80%);
  opacity: 0;
  transition: opacity .8s var(--ease);
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-10px);
  box-shadow: 0 22px 40px rgba(120, 80, 60, .18);
  border-color: var(--ink);
}

.card:hover::before,
.card:focus-visible::before {
  opacity: 1;
}

.card h4 {
  font-size: 24px;
  line-height: 1.15;
}

.card p {
  font-size: 15.5px;
  line-height: 1.45;
}

/* Indicateur de clic : petite flèche au bas de la carte */
.card .card-more {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

.card .card-more::after {
  content: "\2192";
  font-family: var(--body);
  font-size: 14px;
  transition: transform .5s var(--ease);
}

.card:hover .card-more::after,
.card:focus-visible .card-more::after {
  transform: translateX(6px);
}

/* ==============================
   4. LES OUVRAGES DE LA MAISON
   ============================== */
.ouvrages {
  padding: 110px 0 120px;
  text-align: center;
  background: var(--cream);
}

.ouvrages h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  margin-bottom: 10px;
  color: var(--ink);
}

.ouvrages h3 {
  font-family: var(--h1);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  margin-bottom: 56px;
  font-weight: 400;
  color: #7d3b45;
}

.ouvrage-card {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--rose);
  background: linear-gradient(180deg, #fbf1ef 0%, #f5e3e6 60%, var(--rose-soft) 100%);
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
  box-shadow: 0 18px 40px rgba(192, 132, 134, .15);
}

.ouvrage-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff, var(--rose-soft) 120%);
  opacity: 0;
  transition: opacity .8s var(--ease);
}

.ouvrage-card > * {
  position: relative;
}

.ouvrage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(192, 132, 134, .28);
}

.ouvrage-card:hover::before {
  opacity: 1;
}

.ouvrage-card h4 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--rose);
}

.ouvrage-card p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 24px;
}

.ouvrage-card .btn {
  border-color: var(--rose);
  color: var(--rose);
  background: white;
}

.ouvrage-card .btn::before {
  background: var(--rose);
}

.ouvrage-card .btn:hover {
  color: #fff;
}

/* ==============================
   5. NOS MARIAGES – slider pleine largeur
   ============================== */
.mariages {
  padding: 100px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--sand-deep) 0%, var(--sand-warm) 60%, var(--cream) 100%);
  overflow: hidden;
}

.mariages h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  margin-bottom: 10px;
}

.mariages h3 {
  font-family: var(--h1);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  margin-bottom: 56px;
  font-weight: 400;
}

.mariages .intro {
  max-width: 620px;
  margin: -30px auto 50px;
  font-size: 16px;
}

.mariages-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.mariages-track-wrap {
  overflow: hidden;
  width: 100%;
}

.mariages-track {
  display: flex;
  gap: 5px;
  transition: transform 1s var(--ease);
  will-change: transform;
  padding: 0 5px;
}

/* Chaque slide : 5 visibles sur desktop */
.mariage-slide {
  flex: 0 0 calc((100% - 20px) / 5);
  aspect-ratio: 3 / 4;
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.mariage-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.mariage-slide:hover img {
  transform: scale(1.05);
}

.mariage-slide span {
  position: relative;
  font-family: var(--h2);
  font-size: 18px;
  color: var(--rose);
  background: rgba(255, 255, 255, .92);
  padding: 5px 14px;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* Flèches roses sous le slider */
.mariages-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 44px;
}

.mariages-nav .arrow {
  width: auto;
  height: auto;
  border: 0;
  background: none;
  color: var(--rose);
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s var(--ease), color .5s var(--ease);
  font-family: var(--body);
  padding: 0;
  line-height: 1;
}

.mariages-nav .arrow:hover {
  color: var(--rose-d);
  transform: scale(1.15);
}

.mariages-nav .arrow:active {
  transform: scale(1);
}

.mariages .btn {
  margin-top: 44px;
}

/* ==============================
   6. RESPONSIVE
   ============================== */

/* Tablette paysage (≤ 1100 px) : 4 mariages visibles */
@media (max-width: 1100px) {
  .mariage-slide {
    flex: 0 0 calc((100% - 15px) / 4);
  }
}

/* Tablette (≤ 980 px) : passage en colonne + 3 mariages */
@media (max-width: 980px) {
  .about .wrap {
    grid-template-columns: 1fr;
  }
  .photo {
    max-width: 440px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .mariage-slide {
    flex: 0 0 calc((100% - 10px) / 3);
  }
}

/* Mobile (≤ 560 px) : 2 mariages visibles, 1 carte */
@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .mariage-slide {
    flex: 0 0 calc((100% - 5px) / 2);
  }
  .mariage-slide span {
    font-size: 14px;
    padding: 4px 10px;
  }
  .mariages-nav {
    gap: 28px;
  }
  .mariages-nav .arrow {
    font-size: 26px;
  }
}