/* ==========================================================
   MAIN.CSS — Version commentée et optimisée
   ----------------------------------------------------------
   Contient : styles globaux, header, navigation, hero (diaporama),
   pied de page et responsive général.
   ========================================================== */


/* =========================
   1. VARIABLES & FONTS
   ========================= */
@font-face {
  font-family: 'Peaches & Cream Bold';
  src: url('../fonts/Peaches-and-Cream-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Peaches & Cream Reg';
  src: url('../fonts/Peaches-and-Cream-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'adobe-caslon-pro';
  src: url('../fonts/ACaslonPro-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* --- Variables globales : couleurs, polices, tailles, breakpoints --- */
:root {
  /* Couleurs principales */
  --bg: #FAF9F5;
  --text: #0E0E0E;
  --accent: #BC8BB7;
  --accent-dark: #654F64;
  --white: #FAF9F5;
  --gray-600: #5f5f5f;
  --gray-300: #cfcfcf;

  /* Polices */
  --font-title: 'Peaches & Cream Reg', cursive;
  --font-body: 'Poppins', sans-serif;
  --font-serif: 'adobe-caslon-pro', serif;

  /* Éléments de style généraux */
  --radius: 12px;
  --transition-base: all 0.3s ease;
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.08);

  /* Breakpoints responsives */
  --break-lg: 1100px;
  --break-md: 768px;
  --break-sm: 480px;
}


/* =========================
   2. RESET DE BASE
   ===============s========== */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }


/* =========================
   3. STYLES GÉNÉRAUX
   ========================= */
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

h1, h2, h3 {
  color: var(--accent-dark);
  font-family: var(--font-title);
  font-weight: 600;
  margin: 0 0 14px 0;
}

p {
  margin: 0 0 16px 0;
  font-size: 18px;
}


/* =========================
   4. HEADER & NAVIGATION
   ========================= */
header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 30px 5px;
  background: transparent;
  border: none;
}

/* Conteneur principal du menu */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  gap: 12px;
}

/* Zones gauche et droite du menu */
.menu-left, .menu-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 0;
  justify-content: center;
  white-space: nowrap;
}

/* Liens de navigation */
nav a {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.4px;
  color: var(--white);
}

nav a:hover {
  color: var(--accent);
}

/* Logo */
.logo {
  flex: 0 0 auto;
  margin: 0 8px;
}
.logo img {
  height: 140px;
  width: auto;
  display: block;
}

/* Sous-menu déroulant */
.dropdown {
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(250, 249, 245, 0.96);
  min-width: 160px;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  top: 100%;
  left: 0;
  z-index: 1100;
}
.dropdown-content a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-size: 16px;
}
.dropdown:hover .dropdown-content {
  display: block;
}


/* =========================
   5. HERO / DIAPORAMA
   ========================= */
.hero {
  position: relative;
  height: calc(75vh + 150px);
  min-height: 570px;
  overflow: hidden;
  margin: 0;
  width: 100vw;
}

/* Conteneur du diaporama */
.slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Images du diaporama */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.8s ease-in-out, visibility 0s 1.8s;
}

/* Slide active */
.slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.8s ease-in-out;
}

/* Overlay léger pour renforcer la lisibilité du texte sur les images */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
  z-index: 2;
}

/* Texte affiché sur le diaporama */
.hero-text {
  position: absolute;
  bottom: 40px;
  right: 60px;
  text-align: right;
  z-index: 3;
}
.hero-text p {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 65px;
  color: var(--white);
  line-height: 1.2;
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.25);
}


/* =========================
   6. PIED DE PAGE (FOOTER)
   ========================= */
footer {
  background-color: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 30px 20px;
  margin-top: 0;
}
footer a {
  color: var(--white);
  font-weight: 500;
}
footer a:hover {
  text-decoration: underline;
}


/* =========================
   7. RESPONSIVE DESIGN
   ========================= */

/* Grand breakpoint (tablettes horizontales / petits laptops) */
@media (max-width: var(--break-lg)) {
  .logo img {
    height: 120px;
  }
  nav a {
    font-size: 18px;
  }
  .hero-text p {
    font-size: 40px;
    right: 20px;
    bottom: 25px;
  }
}

/* Moyen breakpoint (tablettes verticales) */
@media (max-width: var(--break-md)) {
  .hero-text p {
    font-size: 32px;
    right: 14px;
    bottom: 18px;
  }
}

/* Petit breakpoint (mobiles) */
@media (max-width: var(--break-sm)) {
  nav {
    flex-direction: column;
    gap: 8px;
  }
  .menu-left, .menu-right {
    flex-direction: column;
  }
  nav a {
    font-size: 16px;
  }
  .logo img {
    height: 100px;
  }
}
/* =========================
   PAGES / LAYOUT
   ========================= */
main { width: 100%; }

/* --- Mariage page general blocks --- */
.mariage-section {
  background-color: var(--bg);
  padding: 100px 40px 80px;
  color: var(--text);
}

.mariage-section h1 {
  font-family: 'Dancing Script', cursive;
  color: var(--accent-dark);
  font-size: 55px;
  margin-bottom: 25px;
}

.mariage-section p { font-size: 18px; line-height: 1.7; margin-bottom: 20px; }

/* list styles */
.mariage-section ul { list-style: none; padding: 0; margin: 20px 0; }
.mariage-section ul li {
  font-size: 17px; margin-bottom: 10px; position: relative; padding-left: 20px;
}
.mariage-section ul li::before {
  content: "•"; color: var(--accent); position: absolute; left: 0;
}

/* CTA */
.mariage-cta { text-align: center; margin-top: 60px; }
.mariage-cta p { font-size: 20px; margin-bottom: 15px; }
.mariage-cta .btn-submit {
  background-color: var(--accent); color: var(--white); padding: 12px 28px;
  border-radius: 6px; font-size: 18px; font-weight: 500; display: inline-block;
  transition: background-color .25s ease;
}
.mariage-cta .btn-submit:hover { background-color: #a76aa3; }