/* ─────────────────────────────────────────
   sections.css — Toutes les sections du contenu
   ───────────────────────────────────────── */

/* ════════════════════════════════════════
   MOOD — Grille d'images d'ambiance
   ════════════════════════════════════════ */

.mood {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 200px;
  gap: 0.6rem;
  overflow: hidden;
}

.mood-item {
  overflow: hidden;
  background: #e0d5c5;
  position: relative;
}

.mood-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.mood-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.mood-item:hover img {
  transform: scale(1.05);
}


/* ════════════════════════════════════════
   SCHEDULE — Timeline alternée
   ════════════════════════════════════════ */

.schedule {
  background: var(--cream);
  padding: var(--section-pad);
  border-top: 1px solid var(--stone);
}

.schedule-grid {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

/* Ligne verticale centrale */
.sched-spine {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--stone) 8%,
    var(--stone) 92%,
    transparent
  );
  transform: translateX(-50%);
}

/* Chaque événement */
.sched-item {
  display: grid;
  grid-template-areas: "content dot void";
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s ease, transform 1s ease; /* <-- 1s au lieu de 0.6s */
}

.sched-item.even {
  grid-template-areas: "void dot content";
}

.sched-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.sched-content        { grid-area: content; }
.sched-dot-w          { grid-area: dot; display: flex; justify-content: center; align-items: center; }

.sched-item:not(.even) .sched-content { text-align: right; }
.sched-item.even       .sched-content { text-align: left; }

.sched-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-light);
  background: var(--cream);
  flex-shrink: 0;
}

.sched-time {
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.3rem;
}

.sched-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.sched-desc {
  font-size: 0.73rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.65;
}

.schedule-day-title {
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3rem;
}

.schedule-day-line {
  width: 60px;
  height: 1px;
  background: #c5a47e;
  margin: 10px auto 40px;
}

/* Separator moderne pour desktop et mobile */
.schedule-separator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 80px 0 40px;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  gap: 1rem; /* espace entre texte et traits */
}

.schedule-separator::before,
.schedule-separator::after {
  content: "";
  flex-grow: 1;       /* prend tout l'espace disponible */
  height: 1px;
  background: #ddd;
  min-width: 1rem;    /* petite marge minimale avant/ après texte */
  max-width: 30%;
}

.schedule-separator::before { left: 0; }
.schedule-separator::after { right: 0; }


/* ════════════════════════════════════════
   DETAILS — Infos pratiques (fond sombre)
   ════════════════════════════════════════ */

.details {
  background: var(--accent-bg);
  padding: var(--section-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.details-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 3.5rem 3rem;
}

.detail-item {
  text-align: center;
}

.detail-label {
  font-size: 0.54rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 250, 243, 0.4);
  margin-bottom: 0.65rem;
}

.detail-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.45;
}

.detail-sub {
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(255, 250, 243, 0.5);
  margin-top: 0.35rem;
}


/* ════════════════════════════════════════
   GALLERY — Grille asymétrique
   ════════════════════════════════════════ */

.gallery {
  background: var(--cream);
  padding: var(--section-pad);
}

.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.7rem;
}

.gal-item {
  background: #e0d5c5;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.gal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gal-item:first-child {
  grid-row: span 2;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 1s ease, opacity 1s ease;
  filter: brightness(0.9) contrast(1.05) saturate(0.9);
  opacity: 0.95; /* léger fondu */
}

.gal-item:hover img {
  transform: scale(1.03);
  filter: brightness(1) contrast(1) saturate(1);
  opacity: 1;
}

.gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background: linear-gradient(to bottom, rgba(237,230,219,0.3), rgba(237,230,219,0.3));
  pointer-events: none;
}
.gal-item {
  position: relative;
}

/* ════════════════════════════════════════
   FAQ — Accordion (fond sombre)
   ════════════════════════════════════════ */

.faq {
  background: var(--accent-bg);
  padding: var(--section-pad);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid rgba(255, 250, 243, 0.08);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s, transform 0.6s;
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(255, 250, 243, 0.08);
}

.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Question row */
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 0;
  cursor: pointer;
  gap: 1rem;
}

.faq-q-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.3;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 250, 243, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s, background 0.3s;
}

.faq-icon svg {
  width: 10px;
  height: 10px;
  stroke: rgba(255, 250, 243, 0.6);
}

.faq-item.open .faq-icon {
  background: rgba(255, 250, 243, 0.1);
  transform: rotate(45deg);
}

/* Réponse */
.faq-a {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255, 250, 243, 0.58);
  line-height: 1.85;
  padding: 0 1rem 0;   
  max-height: 0;      
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.6s ease, padding 0.6s ease;
  letter-spacing: 0.01em;
}

.faq-item.open .faq-a {
  opacity: 1;
  max-height: 500px;  /* assez pour le contenu, ajustable */
  padding-bottom: 1.6rem;
}


/* ════════════════════════════════════════
   RSVP — Call to action
   ════════════════════════════════════════ */

.rsvp {
  background: var(--cream);
  padding: 9rem 2rem;
  text-align: center;
  border-top: 1px solid var(--stone);
}

.rsvp-logo {
  width: 68px;
  margin: 0 auto 2.2rem;
  display: block;
  opacity: 0.7;
}

.rsvp p {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--ink-mid);
  max-width: 380px;
  margin: 0 auto 2.8rem;
  line-height: 1.9;
}


/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */

footer {
  background: var(--accent-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.54rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 250, 243, 0.35);
}
