/* ============================================================
   Amélie & Romain — Mariage 4 & 5 septembre 2027
   Style : élégant, sobre, champêtre
   ============================================================ */

:root {
  /* Système duotone : le site n'utilise que ces deux couleurs, le texte
     prenant systématiquement l'autre couleur que le fond. --bg est le
     fond, --charbon le texte/les accents (une seule couleur d'accent :
     pas de vert/or/bleu séparés, pour rester strictement à 2 couleurs).
     .section-alt inverse les deux ci-dessous pour les sections sombres.

     Une custom property CSS se résout au moment où elle est déclarée,
     puis c'est cette valeur déjà calculée qui est héritée — pas la
     référence. Écrire "--charbon: var(--fg)" ici figerait donc sa
     valeur au premier calcul et ne s'inverserait pas avec .section-alt :
     chaque contexte redéclare ses variables en dur, pas par indirection.
     Pour la même raison, "color" est redéclaré sur .section-alt (pas
     seulement les custom properties) : sinon un élément qui n'a pas son
     propre "color: var(--charbon)" hériterait la couleur déjà figée du
     <body>, invisible sur un fond sombre. */
  --bg: #feffef;
  --bg-rgb: 254, 255, 239;
  --charbon: #1B3F6B;
  --charbon-rgb: 107, 139, 164;
  --charbon-clair: rgba(107, 139, 164, 0.72);
  --ivoire-fonce: rgba(107, 139, 164, 0.08);
  --ligne: rgba(107, 139, 164, 0.18);

  --police-titre: "Pacifico", cursive;
  --police-texte: "Lato", "Helvetica Neue", Arial, sans-serif;

  --marge-section: clamp(56px, 8vw, 120px);
  --largeur-max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--charbon);
  font-family: var(--police-texte);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.conteneur {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 400;
  color: var(--charbon);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--police-texte);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--charbon);
  margin-bottom: 0.9em;
}

/* ---------- Arabesque décorative (couleur) ---------- */

.arabesque {
  display: flex;
  justify-content: center;
  margin: 0.4em 0;
}

.arabesque-svg {
  width: clamp(160px, 22vw, 240px);
  height: auto;
}

.arabesque-svg .trait { fill: none; stroke: var(--charbon); stroke-width: 1.4; stroke-linecap: round; opacity: 0.75; }
.arabesque-svg .feuille-a { fill: var(--charbon); opacity: 0.85; }
.arabesque-svg .feuille-b { fill: var(--charbon); opacity: 0.8; }
.arabesque-svg .fleur { fill: var(--charbon); opacity: 0.9; }
.arabesque-svg .ciel { fill: var(--charbon); opacity: 0.85; }

/* ---------- En-tête / navigation ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--bg-rgb), 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ligne);
}

.entete-barre {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 18px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.logo {
  justify-self: start;
  font-family: var(--police-titre);
  font-size: 1.4rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--charbon);
  letter-spacing: 0.02em;
}

.entete-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charbon-clair);
  padding: 10px 16px;
  border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a.actif {
  color: var(--charbon);
  background: var(--ivoire-fonce);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ligne);
  border-radius: 3px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--charbon);
  position: relative;
  transition: 0.2s;
}

.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--ligne);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav.ouvert { max-height: 320px; }
  .nav a { padding: 16px 28px; border-top: 1px solid var(--ligne); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding: 0;
}

.hero-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 768 / 454;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 115%;
  object-fit: cover;
  will-change: transform;
}

/* Sur mobile, la photo est recadrée en portrait (hero-accueil-mobile.jpg)
   pour que le titre reste dans le ciel, au-dessus du couple. Elle remplit
   exactement son cadre, sans marge de parallaxe (désactivée ici) : sinon
   le bas de l'image, où se trouvent les pieds, serait masqué. */
@media (max-width: 759px) {
  .hero-media { aspect-ratio: 3 / 4; }
  .hero-image { height: 100%; }
}

.hero-contenu {
  position: absolute;
  top: 7%;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 24px;
}

@media (min-width: 760px) {
  .hero-contenu {
    top: 8%;
  }
}

.hero-contenu h1 {
  margin-bottom: 0.15em;
}

.hero-date {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--charbon);
}

/* ---------- Sections générales ---------- */

section {
  padding: var(--marge-section) 0;
}

.section-alt {
  --bg: #6b8ba4;
  --bg-rgb: 107, 139, 164;
  --charbon: #feffef;
  --charbon-rgb: 254, 255, 239;
  --charbon-clair: rgba(254, 255, 239, 0.72);
  --ivoire-fonce: rgba(254, 255, 239, 0.08);
  --ligne: rgba(254, 255, 239, 0.18);

  background: var(--bg);
  /* Redéclarer "color" (pas juste les custom properties) : voir la
     note dans :root sur pourquoi l'héritage seul ne suffit pas. */
  color: var(--charbon);
}

.section-tete {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3em;
}

.section-tete p {
  color: var(--charbon-clair);
}

/* ---------- Petit mot ---------- */

.petit-mot {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.petit-mot p {
  font-size: 1.12rem;
  color: var(--charbon-clair);
}

.petit-mot h3 {
  margin-bottom: 0.7em;
}

.signature {
  margin-top: 1.6em;
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--charbon);
}

/* ---------- Timeline / déroulé ---------- */

.timeline-jour {
  max-width: 620px;
  margin: 0 auto 4em;
}

.timeline-jour:last-child { margin-bottom: 0; }

.timeline-jour-titre {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 1.6em;
}

.timeline-jour-titre h3 {
  margin: 0;
}

.timeline-jour-titre .jour-date {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charbon);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--ligne);
}

.timeline li {
  position: relative;
  padding: 0 0 1.9em 32px;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--charbon);
}

.timeline li.avec-icone {
  padding-left: 66px;
  min-height: 56px;
}

.timeline li.avec-icone::before {
  content: none;
}

.timeline-icone {
  position: absolute;
  left: -28px;
  top: -8px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-icone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-heure {
  display: block;
  font-family: var(--police-titre);
  font-size: 1.15rem;
  color: var(--charbon);
  font-weight: 400;
}

.timeline-libelle {
  display: block;
  color: var(--charbon-clair);
  font-size: 0.95rem;
  margin-top: 2px;
}

.timeline-lieu {
  display: block;
  color: var(--charbon);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- Lieu ---------- */

.lieux-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.lieu-carte-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--ligne);
  box-shadow: 0 24px 48px -28px rgba(var(--charbon-rgb), 0.35);
  margin-bottom: 1.6em;
}

.lieu-carte-texte {
  text-align: center;
}

.lieu-carte-texte h3 { margin-bottom: 0.3em; }

.lieu-carte-texte p {
  color: var(--charbon-clair);
  margin-bottom: 1em;
}

.lieu-carte-adresse {
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .lieux-grille { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Playlist ---------- */

.playlist-spotify {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--ligne);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(var(--charbon-rgb), 0.35);
}

.playlist-spotify iframe {
  display: block;
  vertical-align: top;
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-block;
  padding: 14px 34px;
  border: 1.5px solid var(--charbon);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charbon);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: var(--police-texte);
}

.bouton:hover {
  background: var(--charbon);
  color: var(--bg);
}

.bouton-plein {
  background: var(--charbon);
  border-color: var(--charbon);
  font-weight: 400;
  font-size: 1rem;
  color: var(--bg);
}

.centre { text-align: center; }

/* ---------- Bandeau défilant ---------- */

.bandeau-marquee {
  overflow: hidden;
  background: var(--charbon);
  padding: 16px 0;
}

.bandeau-marquee-piste {
  display: flex;
  width: max-content;
  animation: defiler-bandeau 60s linear infinite;
}

.bandeau-marquee:hover .bandeau-marquee-piste {
  animation-play-state: paused;
}

.bandeau-marquee-groupe {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 2.2rem;
}

.bandeau-marquee-texte {
  font-family: "Pacifico", Georgia, serif;
  font-weight: 600;
  color: var(--bg);
  padding: 0 22px;
  white-space: nowrap;
}

.bandeau-marquee-icone {
  display: inline-flex;
  align-items: center;
}

.bandeau-marquee-icone svg {
  height: 1.5em;
  width: auto;
  fill: var(--bg);
}

@keyframes defiler-bandeau {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .bandeau-marquee-piste { animation: none; }
}

/* ---------- Blog ---------- */

.blog-hero {
  padding: calc(var(--marge-section) * 0.7) 0 var(--marge-section);
  text-align: center;
}

.blog-liste {
  display: grid;
  gap: 28px;
}

.article {
  background: var(--bg);
  border: 1px solid var(--ligne);
  padding: 34px clamp(20px, 4vw, 44px);
}

.article summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.article summary::-webkit-details-marker { display: none; }

.article-date {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charbon);
  white-space: nowrap;
}

.article summary h3 {
  margin: 0;
  flex: 1 1 320px;
}

.article-fleche {
  font-family: var(--police-titre);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--charbon);
  transition: transform 0.2s ease;
}

.article[open] .article-fleche { transform: rotate(90deg); }

.article-corps {
  margin-top: 1.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--ligne);
  color: var(--charbon-clair);
}

.article-centre {
  text-align: center;
}

.whatsapp-qr {
  display: block;
  width: 160px;
  height: 160px;
  margin: 1.4em auto;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--ligne);
  border-radius: 8px;
}

/* Sur fond sombre : le QR code (noir sur blanc) est posé sur un cadre clair */
.section-alt .whatsapp-qr {
  background: var(--charbon);
  border-color: var(--charbon);
}

.hebergements-groupe-titre {
  display: block;
  margin: 1.8em 0 0.6em;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charbon);
  font-weight: 600;
}

.hebergements-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding-left: clamp(16px, 4vw, 32px);
  border-left: 1px solid var(--ligne);
}

.hebergement-carte {
  display: block;
  text-decoration: none;
  border: 1px solid var(--ligne);
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.hebergement-carte:hover {
  opacity: 0.82;
}

.hebergement-vignette {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hebergement-vignette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hebergements-nom {
  display: block;
  padding: 10px 14px 14px;
  font-family: var(--police-titre);
  font-size: 1rem;
  color: var(--charbon);
}

/* ---------- Formulaires ---------- */

.form-carte {
  background: var(--bg);
  border: 1px solid var(--ligne);
  padding: clamp(24px, 5vw, 56px);
  max-width: 760px;
  margin: 0 auto;
}

.form-groupe {
  margin-bottom: 26px;
}

.form-ligne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 620px) {
  .form-ligne { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charbon-clair);
  margin-bottom: 8px;
}

.champ-requis::after {
  content: " *";
  color: var(--charbon);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--police-texte);
  font-size: 1rem;
  color: var(--charbon);
  background: var(--bg);
  border: 1px solid var(--ligne);
  border-radius: 2px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--charbon);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.note-discrete {
  font-size: 0.82rem;
  color: var(--charbon-clair);
  margin-top: 8px;
}

.recaptcha-zone {
  margin: 8px 0 26px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-pied {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-message {
  margin: 0 0 22px;
  padding: 12px 18px;
  border: 1px solid var(--ligne);
  border-radius: 6px;
  font-size: 0.92rem;
}

.form-message--erreur {
  border-color: var(--charbon);
  font-weight: 600;
}

/* ---------- Pied de page ---------- */

.pied {
  border-top: 1px solid var(--ligne);
  padding: 48px 0 36px;
  text-align: center;
  color: var(--charbon-clair);
  font-size: 0.85rem;
}

.pied .logo {
  display: block;
  margin-bottom: 10px;
}

.pied-liens {
  margin: 14px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.pied-liens a {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charbon-clair);
}

.pied-liens a:hover { color: var(--charbon); }

/* ---------- Page de remerciement ---------- */

.merci {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.merci-carte { max-width: 520px; }

.merci-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 60% 70%;
  border: 1.5px solid var(--charbon);
  box-shadow: 0 24px 48px -28px rgba(var(--charbon-rgb), 0.35);
  margin: 0 auto 1.8em;
}

.merci-voiture {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1.8em;
  color: var(--charbon-clair);
  font-size: 0.95rem;
}

.merci-voiture-icone {
  flex-shrink: 0;
  width: 30px;
  height: 39px;
  background-color: var(--charbon);
  -webkit-mask: url("../images/icones/voiture.svg") no-repeat center / contain;
  mask: url("../images/icones/voiture.svg") no-repeat center / contain;
}
