
/* ******************************* */
/* ******************************* */
/* ******************************* */

/* Polices / Fonts */
@font-face {
    font-family: 'Avigea';
    src: url('../fonts/Avigea.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Avigea';
    src: url('../fonts/Avigea Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'Gabriola';
    src: url('../fonts/Gabriola.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Calibri';
    src: url('../fonts/calibri.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Calibri';
    src: url('../fonts/calibrib.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Conthrax';
    src: url('../fonts/conthraxsb.otf') format('opentype');
}

/* ******************************* */
/* ******************************* */
/* ******************************* */

/* Set Global */
:root {
    --gold-primary: #ffd700;
    --gold-glow: #ffaa00;
    --gold-light: #fff3a8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 215, 0, 0.15);
    --text-muted: #8a8a93;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* user-select: none; */
}

/* 1. Masquer la barre sur Firefox, IE et Edge (HTML + BODY) */
html, body {
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    scroll-behavior: smooth;
}

body {
    font-family: 'Calibri', sans-serif;
    background-color: #000000 !important;
    color: #000000;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important; /* Empêche le défilement horizontal */
}

/* 2. Masquer la barre sur Chrome, Brave, Safari, Opera (HTML + BODY) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* ******************************* */
/* ******************************* */
/* ******************************* */

/* Atterissage logo KRP */
/* SPLASH SCREEN SETUP */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    display: flex !important; /* Force le mode Flexbox */
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

/* Taille du logo animé */
#splash-video {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    flex-shrink: 0; /* Empêche le navigateur de déformer ou d'écraser la vidéo */
}

/* Classe activée par le JavaScript à la fin de la vidéo */
#splash-screen.fade-out {
    opacity: 0;
    pointer-events: none; /* Permet de cliquer à travers pendant la disparition */
}

/* ******************************* */
/* ******************************* */
/* ******************************* */

/* Background Video */
/* BG - Version Vidéo Animée */
.bg-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    /* filter: blur(2px); */
    transform: scale(1.04); /* Évite les bords blancs à cause du flou */
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.226);
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit tout l'écran sans distorsion */
    object-position: center;
    animation: fadeIn 1.5s ease-out forwards, loopFade 60s infinite linear;
    /* z-index: -2; */
}

/* Animation pour l'apparition au chargement de la page */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation synchronisée sur les 60 secondes de ta vidéo 
   Elle reste opaque à 100% tout le long, descend très légèrement 
   à la toute fin (à 59.5s) puis revient à 100% pour le redémarrage.
*/
@keyframes loopFade {
    0% { opacity: 1; }
    98% { opacity: 1; }   /* À 58.8 secondes, la vidéo reste bien visible */
    99% { opacity: 0.3; } /* À 59.4 secondes, léger fondu pour masquer le cut du replay */
    100% { opacity: 1; }  /* Recommence à 100% en parfaite synchronisation */
}












/* ******************************* */
/* Main Content & Card Section     */
/* ******************************* */

.main-content {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 80px 20px;
    position: relative;
    z-index: 10;
    text-align: center;
}

.content-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(2, 2, 2, 0.125);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 24px;
    padding: 40px 10px;
    max-width: 560px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.12);
    animation: fadeIn 1.5s ease-out;
}

/* 1, 2, 3 : Names & Ampersand */
.couple-names {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    /* gap: 10px; */
    margin-bottom: 60px;
}

.name-groom,
.name-bride {
    font-family: 'Avigea', 'Gabriola', serif;
    font-size: clamp(24px, 4.5vw, 40px);
    font-weight: normal;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #fae469 60%, #ffaa00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.ampersand {
    font-family: 'Gabriola', cursive, serif;
    font-size: clamp(34px, 5.5vw, 54px);
    /* font-style: italic; */
    color: white;
    line-height: 1;
    margin: 0 6px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* 4 : Tagline */
.tagline {
    font-family: 'Gabriola', 'Avigea', sans-serif;
    font-size: clamp(24px, 3.5vw, 34px);
    font-style: italic;
    color: var(--gold-light);
    letter-spacing: 1px;
    /* margin-bottom: 22px; */
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* 5 : Event Date */
.event-date {
    font-family: 'Calibri', sans-serif;
    font-size: clamp(14px, 2vw, 17px);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 35px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 60px;
}

/* 6 : Live Counter */
.live-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 14px;
    padding: 14px 18px;
    min-width: 85px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.15);
}

.counter-num {
    font-family: 'Conthrax', 'Calibri', monospace, sans-serif;
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: bold;
    color: goldenrod;
    line-height: 1.1;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.counter-unit {
    font-family: 'Calibri', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 5px;
}

.counter-colon {
    font-family: 'Conthrax', 'Calibri', sans-serif;
    font-size: clamp(18px, 3vw, 26px);
    color: rgba(255, 215, 0, 0.6);
    margin-top: -12px;
}

/* 7 : Love Message / Romantic Text */
.love-message {
    font-family: 'Calibri', sans-serif;
    font-size: clamp(14px, 1.8vw, 17px);
    font-style: italic;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    max-width: 680px;
    width: 90%;
    margin-top: 28px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    text-justify: inter-word;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
    position: relative;
    padding-top: 20px;
}

.love-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.6), transparent);
}









footer {
    position: fixed;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 30px;
    z-index: 880;
    font-size: 13px;
    text-align: center;
}

.footer-left, .footer-right {
    color: rgba(255, 255, 255, 0.541);
}

.footer-left .link, .footer-right .link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

/* Soulignement animé sur survol du footer */
.footer-left .link::after, .footer-right .link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: goldenrod;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer-left .link:hover::after, .footer-right .link:hover::after {
    transform: scaleX(1);
}

/* ******************************* */

/* Copyright */
.copyright {
  color: rgba(255, 255, 255, 0.541);
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'Calibri', Arial, sans-serif;
  font-size: 16px;
  line-height: 50px;
  pointer-events: initial;
  overflow: hidden;
  /* transform: translate(-50%, 300px) scale(1); */
  animation: slideUp 1.5s ease-out 2.4s forwards;
  transition:
    color 0.4s ease,
    transform 0.4s ease,
    text-shadow 0.4s ease;
}

/* Style du lien copyright */
.copyright .link {
  color: inherit;
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

/* Soulignement animé */
.copyright .link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: goldenrod;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Effet au survol */
.copyright .link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Effet quand on enlève le curseur */
.copyright .link::after {
  transition: transform 0.8s ease;
}

/* ******************************* */
/* ******************************* */
/* ******************************* */



/* ******************************* */
/* Adaptation Smartphone (Correctif) */
/* ******************************* */

@media screen and (max-width: 768px) {
    .main-content {
        padding: 20px 10px 60px 10px;
    }

    .content-card {
        display: flex !important;
        flex-direction: column !important; /* Force l'alignement vertical verticalement */
        align-items: center !important;
        justify-content: center !important;
        width: 95% !important;
        max-width: 400px !important;
        padding: 25px 15px !important;
        height: auto !important;
    }

    /* Noms & Titres */
    .couple-names {
        margin-bottom: 20px !important;
    }

    .name-groom,
    .name-bride {
        font-size: clamp(20px, 5.5vw, 28px) !important;
        letter-spacing: 1px !important;
    }

    .ampersand {
        font-size: clamp(24px, 6vw, 36px) !important;
        margin: 2px 0 !important;
    }

    .tagline {
        font-size: clamp(18px, 4.5vw, 24px) !important;
        margin-bottom: 8px !important;
    }

    .event-date {
        font-size: clamp(11px, 3vw, 13px) !important;
        padding: 6px 15px !important;
        margin-bottom: 25px !important;
        width: 90% !important;
    }

    /* Compteur / Live Counter Fix */
    .live-counter {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        position: relative !important;
    }

    .counter-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 4px !important;
        flex: 1 1 0px !important;
        min-width: 0 !important;
        border-radius: 8px !important;
    }

    .counter-num {
        font-size: clamp(16px, 4.5vw, 22px) !important;
    }

    .counter-unit {
        font-size: 8px !important;
        letter-spacing: 0.5px !important;
    }

    .counter-colon {
        display: none !important;
    }

    /* Message romantique */
    .love-message {
        display: block !important;
        clear: both !important;
        width: 100% !important;
        margin-top: 15px !important;
        font-size: clamp(12px, 3.5vw, 14px) !important;
        line-height: 1.5 !important;
        position: relative !important;
        padding-top: 15px !important;
        text-align: justify;
        text-justify: inter-word;
    }

    .love-message::before {
        width: 40px !important;
    }

    .copyright {
        font-size: 11px !important;
        bottom: 5px !important;
    }
}