@import url('https://fonts.googleapis.com/css?family=Roboto%7CRoboto+Slab&subset=latin,cyrillic');

/* 📚 FONT DECLARATIONS */
@font-face {
  font-family: "Aston Script";
  src: url("../Ressources/font/Aston Script.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "AlexBrush";
  src: url("../Ressources/font/AlexBrush.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Another Love";
  src: url("../Ressources/font/Another Love.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* 🎨 VARIABLES */
:root {
  /* Colors */
  --color-primary: #eae0d5;
  --color-secondary: #594A36;
  --color-accent: #6f7f66;
  --color-muted: #73715C;
  --color-dark: #545928;

  /* Layout */
  --page-width: 100;

  /* Page 2 / VIP Portrait Frame */
  --frame-width: min(min(75dvw, 45dvh), 600px);

  --nav-button-size : 1.2em;

  /* Page 2 / Ticket */
  --ticket-left-size : 30%;
  --ticket-dot-size : 1.2em;
}

/* 🔄 GLOBAL RESET & BASE STYLES */
*, *::after, *::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body {
  overflow: hidden;
  user-select: none;
  font-size: 2.5rem;
  font-family: Roboto, sans-serif;
}

h1 {
  color: white;
  font-size: 5vw;
  font-family: "Aston Script", cursive;
  letter-spacing: 0em;
  font-size: 1em; /* Overridden by .background__block.save_the_date later, but kept here for general H1 */
}

/* ⚙️ UTILITY CLASSES */
.flipX {
  transform: scaleX(-1) !important;
}

.flipY {
  transform: scaleY(-1) !important;
}

.hidden {
  display: none !important;
}

.reverseText {
  filter: invert(1);
  mix-blend-mode:difference;
}

/* 🖼️ BACKGROUND & PAGE STRUCTURE */
.page_container {
  height: 100dvh;
  overflow: hidden;
  background-color: transparent;
}

.page {
  position: absolute;
  width: calc(var(--page-width)*1vw);
  height: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

.background__block {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;
  width: 100%;
  height: calc(100dvh + 4px);
}

.background__fixed {
  position: fixed;
  height: 100dvh;
  width: calc(var(--page-width)*1vw);
  overflow: hidden;
}

/* Background Block Coloring */
.background__block:nth-of-type(1) {
  background-color: var(--color-accent);
}
.background__block:nth-of-type(2) {
  background-color: transparent;
}
.background__block:nth-of-type(3) {
  background-color: var(--color-primary);
}
.background__block:nth-of-type(4) {
  background-color: var(--color-accent);
}
.background__block:nth-of-type(5) {
  background-color: var(--color-primary);
}

.background-video, .background-image {
  position: absolute;
  top: calc(50% - 0px);
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.background-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
}

.background-image {
  width: calc(100% + 2px);
  height: 100%;
  z-index: -1;
}

.background__element {
  position: relative;
  z-index: 10;
  color: white;
  text-align: center;
}

.background__block_spacer {
  position: relative;
  height: 40px;
  background-color: transparent;
  z-index: 10;
}

.footer {
  height: 20px;
  transform: translateY(0px);
}

/* ➡️ PAGE NAVIGATION BUTTONS & ANIMATIONS */
.page__button__nav {
  position: absolute;
  top: 50%;
  z-index: 20;
  color: white;
}

#page_previous {
  left: 12px;
}

#page_next {
  left: calc(var(--page-width) *1vw - 12px);
  transform: translateX(-100%);
}

.page-appear-from-left {
  animation: slideInFromLeft 0.6s ease-out forwards;
}
.page-appear-from-right {
  animation: slideInFromRight 0.6s ease-out forwards;
}

.page-disappear-to-left {
  animation: slideInToLeft 0.6s ease-out forwards;
}

.page-disappear-to-right {
  animation: slideInToRight 0.6s ease-out forwards;
}

.page-disappear-at-start {
  transform: translateX(100%);
}

@keyframes slideInFromLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
@keyframes slideInFromRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes slideInToLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@keyframes slideInToRight {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

/* ✨ APPEAR ANIMATION (InView/Once/Down) */
.alt-appear.appear-InView > *,
.alt-appear.appear-Once > *,
.alt-appear.appear-Down > * {
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.alt-appear.appear-InView.in-view > *,
.alt-appear.appear-Once.in-view > *,
.alt-appear.appear-Down.in-view > * {
  opacity: 1;
}

.audio-player {
    --player-size: max(1vmin, 0.2em); /* Change this value to scale the entire player */

    position: absolute;
    bottom: 0;
    left: 0;
    margin: 1em;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(2 * var(--player-size));
    font-size: 1em; /* Base font size for the player */
}

.circular-progress {
    position: relative;
    width: calc(12.5 * var(--player-size));
    height: calc(12.5* var(--player-size));
}

.progress-ring {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s linear;
}

.progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.alt .progress-bg {
  stroke: rgba(0, 0, 0, 0.18);
}

.progress-bar {
    fill: none;
    stroke: #fff;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
}

.alt .progress-bar {
  stroke: rgba(0, 0, 0, 0.5);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(4.375 * var(--player-size));
    height: calc(4.375 * var(--player-size));
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 calc(0.15 * var(--player-size)) calc(0.8 * var(--player-size)) rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.alt .play-button {
  background: rgba(255, 255, 255, 1);
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 calc(0.375 * var(--player-size)) calc(1.5625 * var(--player-size)) rgba(0, 0, 0, 0.4);
}

.play-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.play-icon,
.pause-icon {
    width: 0;
    height: 0;
    transition: all 0.3s ease;
}

.play-icon {
    border-left: calc(1.25 * var(--player-size)) solid #667eea;
    border-top: calc(0.75 * var(--player-size)) solid transparent;
    border-bottom: calc(0.75 * var(--player-size)) solid transparent;
    margin-left: calc(0.3125 * var(--player-size));
}

.pause-icon {
    width: calc(1.25 * var(--player-size));
    height: calc(1.5 * var(--player-size));
    position: relative;
    display: none;
}

.pause-icon::before,
.pause-icon::after {
    content: '';
    position: absolute;
    width: calc(0.375 * var(--player-size));
    height: calc(1.5 * var(--player-size));
    background: #667eea;
    border-radius: calc(0.125 * var(--player-size));
}

.pause-icon::before {
    left: 0;
}

.pause-icon::after {
    right: 0;
}

.playing .play-icon {
    display: none;
}

.playing .pause-icon {
    display: block;
}

.time-display {
    position: absolute;
    bottom: 2em;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: calc(0.875 * var(--player-size));
    font-weight: 500;
    white-space: nowrap;
}

.alt .time-display {
  color : #9f9f9f;
}

.controls-container {
    display: flex;
    align-items: center;
    gap: calc(1 * var(--player-size));
}

.restart-button {
    width: calc(3.125 * var(--player-size));
    height: calc(3.125 * var(--player-size));
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: calc(1.5 * var(--player-size));
    color: white;
}

.alt .restart-button {
  color: rgb(106, 106, 106);
  background-color: rgba(0, 0, 0, 0.11);
}
.restart-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.restart-button:active {
    transform: scale(0.95);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: calc(1 * var(--player-size));
    background: rgba(255, 255, 255, 0.1);
    padding: calc(1 * var(--player-size)) calc(2 * var(--player-size));
    border-radius: calc(3.125 * var(--player-size));
    backdrop-filter: blur(10px);
}

.alt .volume-control {
  background: rgba(0, 0, 0, 0.11);
}

.volume-icon {
    color: white;
    font-size: calc(1.25 * var(--player-size));
}

.alt .volume-icon {
  color: rgba(0, 0, 0, 0.5);
}

.volume-slider {
    width: calc(7.5 * var(--player-size));
    height: calc(0.375 * var(--player-size));
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: calc(0.1875 * var(--player-size));
    outline: none;
}

.alt .volume-slider {
  background: rgb(255, 255, 255);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: calc(1.125 * var(--player-size));
    height: calc(1.125 * var(--player-size));
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 calc(0.125 * var(--player-size)) calc(0.5 * var(--player-size)) rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: calc(1.125 * var(--player-size));
    height: calc(1.125 * var(--player-size));
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 calc(0.125 * var(--player-size)) calc(0.5 * var(--player-size)) rgba(0, 0, 0, 0.3);
}

/* 📜 DECORATIVE BAND */
.bandParent {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 0;
  background-color: var(--color-secondary);

  display: flex;
  align-items: center;      /* vertically center items */
  justify-content: center;  /* keeps things balanced */
  z-index: 1;
}

.bandParent::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: -1;

  background: #000000;
  background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.39) 50%, rgba(0, 0, 0, 0) 100%);
  opacity: 1;
}

.bandParent::after {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 30px;
  background-color: var(--color-primary);
  z-index: -1;
}

.bandParent.alt::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    z-index: -1;
    background: #000000;
    opacity: 0;
}

.bandParent.alt::after {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    width: 100%;
    height: 30px;
    z-index: -1;
    opacity: 0;
}

.band {
  flex: 1;                 /* make bands expand equally */
  height: 1px;
  background-color: black;
}

.band.left {
  margin-left: 0px;   /* margin after the first band */
}

.band.right {
  margin-right: 0px;    /* margin before the last band */
}

.bandParent .band:first-child,
.bandParent .band:last-child  {
  width: 20px;
  flex: none;
  margin: 0;
}

.bandCenter {
  width: 2.2em;            /* your fixed image width */
  height: auto;            /* keep aspect ratio */
  translate: 0 -19px;
  margin: 0 10px;
}

.bandParent text {
  font-family: "Another Love", cursive;
  position: absolute;
  left: calc(50% + 0.3em);
  transform: translateX(-50%);
  top: -6px;
  opacity: 0.7;
  font-size: 0.3em;
  opacity: 1;
  letter-spacing: 0.4em;
}

.bandParent text.flipY {
  transform: translateX(-50%) scaleY(-1) !important;
}

.bandSide {
  width: 150px;            /* your fixed image width */
  height: auto;            /* keep aspect ratio */
  margin: 0 10px;
}

.page {
  overscroll-behavior: none;
}













/* ---------------------------------------------------- */
/* CHECKBOX HIDDEN & PREVENT BODY SCROLL WHEN MENU OPEN */
/* ---------------------------------------------------- */
#menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Empêche le défilement de la page lorsque le menu est ouvert (crucial pour le mobile) */
body:has(#menu-toggle:checked) {
  overflow: hidden;
}

/* ---------------------------------------------------- */
/* BURGER BUTTON CONTAINER (La zone de clic blanche)   */
/* ---------------------------------------------------- */
#trigger {
  position: fixed;
  top: 15px;
  left: 15px;
  width: 50px;
  height: 50px;
  background: transparent;
  backdrop-filter: blur(12px);
  border-radius: 12px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0,0,0,.8);
  transition: transform 0.2s ease;
}

#trigger:hover {
  transform: scale(1.05);
}

#trigger:active {
  transform: scale(0.95);
}

/* ---------------------------------------------------- */
/* BURGER LINES (Les 3 barres)                          */
/* ---------------------------------------------------- */
#burger {
  position: fixed;
  top: 38px;
  left: 26px;
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  z-index: 1002;
  pointer-events: none;
  outline: 1px solid rgba(0, 0, 0, 0.2);
}

#burger:before,
#burger:after {
  content: "";
  position: absolute;
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
  left: 0;
  transition: all 0.3s ease;
  outline: 1px solid rgba(0, 0, 0, 0.2);
}

#burger:before {
  top: -9px;
}

#burger:after {
  top: 9px;
}

/* ---------------------------------------------------- */
/* BURGER ANIMATION (Transformation en croix)          */
/* ---------------------------------------------------- */
#menu-toggle:checked ~ #burger {
  background: transparent; /* La ligne centrale disparaît */
  outline : none;
}

#menu-toggle:checked ~ #burger:before {
  transform: translateY(9px) rotate(45deg); /* Ligne du haut tourne */
}

#menu-toggle:checked ~ #burger:after {
  transform: translateY(-9px) rotate(-45deg); /* Ligne du bas tourne */
}

/* ---------------------------------------------------- */
/* MENU OVERLAY (Le panneau de navigation)             */
/* ---------------------------------------------------- */
#menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Fond assombri */
  backdrop-filter: blur(8px); /* Flou (peut être coûteux, réduisez-le si besoin) */
  z-index: 999;
  
  /* Masqué par défaut (méthode optimisée) */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  
  /* GPU optimization */
  will-change: opacity, visibility;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: min(2em, 6vh);
}

/* Affichage du menu */
#menu-toggle:checked ~ #menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* Rend les liens cliquables */
}

/* ---------------------------------------------------- */
/* NAVIGATION LINKS (Les liens dans le menu)           */
/* ---------------------------------------------------- */
#menu > li {
  /* Caché par défaut pour l'animation d'apparition */
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation d'apparition des liens (depuis le haut) */
#menu-toggle:checked ~ #menu > li {
  opacity: 1;
  transform: translateY(0);
}

/* Animation décalée (Staggered animation) pour un effet plus agréable */
#menu-toggle:checked > .nav-page_1 {
  transition-delay: 0.1s;
}
#menu-toggle:checked > .nav-page_2 {
  transition-delay: 0.15s;
}
#menu-toggle:checked > .nav-page_3 {
  transition-delay: 0.2s;
}
#menu-toggle:checked > .nav-page_4 {
  width: 12px;
}

#menu > li a {
  display: block;
  padding: 15px 40px;
  color: white;
  text-decoration: none;

  font-size: min(4vh, 1.2em);

  font-weight: 500;
  text-align: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.6); /* Fond semi-transparent */
}

#menu > li a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* ---------------------------------------------------- */
/* DEMO CONTENT (Styling du contenu de la page)         */
/* ---------------------------------------------------- */
.demo-content {
  padding: 100px 20px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.demo-content h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.demo-content p {
  line-height: 1.6;
  margin-bottom: 1em;
}

.demo-content section {
  margin-top: 3em;
}

.demo-content h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
}


/* ---------------------------------------------------- */
/* ACCESSIBILITY (Focus states)                         */
/* ---------------------------------------------------- */
#trigger:focus-within {
  /* Assure une indication de focus visuelle sur le bouton */
  outline: 3px solid #667eea;
  outline-offset: 2px;
}

#menu > li a:focus {
  /* Assure une indication de focus visuelle sur les liens */
  outline: 2px solid white;
  outline-offset: 4px;
}

#menu > li.active a {
  /* Assure une indication de focus visuelle sur les liens */
  outline: 2px solid rgb(126, 126, 126);
  outline-offset: 4px;
}

/* ➡️ NAVIGATION & LINK STYLES */
li, a {
  color: white;
  font-family: "Aston Script", cursive;
  font-size: min(0.6em, 4vw);
  font-weight: 700;
  line-height: 1.8;
  text-decoration: none;
  text-transform: none;
  list-style: none;
  outline: 0;
  text-shadow: 0 0.1em 0.1em rgba(0, 0, 0, 0.5);
  transition: all .1s;
}
li {
  width: auto;
}

a:focus, a:hover {
  display: block;
  color: white;
  transform: scale(1.2);
  background-color: transparent;
}

#signature {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 0 0.3em;
}
#signature > a{
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-weight: 100;
  font-size: 0.4em;
  color: white;
  opacity: 0.4;
}

img, video {
    pointer-events: none;        /* blocks click + drag */
    user-select: none;           /* no text-like selection */
    -webkit-user-drag: none;     /* block drag on Safari/Chrome */
}



.load__page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #ffeef8 0%, #fff5f7 50%, #f0f4ff 100%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

.load__page.fade-out {
  opacity: 0;
  pointer-events: none;
}

.logo__border {
  position: relative;
  padding: min(30px, 8vw); 
  background: linear-gradient(135deg, #d4a5a5 0%, #e8c4c4 50%, #ffd4d4 100%);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(212, 165, 165, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.logo__border::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, #d4a5a5 0%, #e8c4c4 50%, #ffd4d4 100%);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
  animation: rotate 3s linear infinite;
  will-change: transform; 
}

.logo__border > img {
  width: min(164px, 40vw); 
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  animation: fadeIn 1s ease-in;
  opacity: 0.75;
  will-change: transform, opacity;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 40px rgba(212, 165, 165, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(212, 165, 165, 0.7);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 0.75;
    transform: scale(1);
  }
}

.main-content {
  padding: 40px;
  text-align: center;
}

.main-content h1 {
  color: #333;
  margin-bottom: 20px;
}

#version {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 0.4em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.3em;
  opacity: 0.2;
}