@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Pinyon+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.cdnfonts.com/css/amsterdam-2');
@import url('https://fonts.googleapis.com/css2?family=Cardo&display=swap');

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #f3f3f3;
}


html {
    scroll-behavior: smooth;
}

.btn-container1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15%;
    margin-top: 15%;
}

#transition-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    pointer-events: none;
}

.cover-block {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #f7f2ec;
    z-index: 1;
}

.left-block {
    left: 0;
    transform: translateX(-100%);
}

.right-block {
    right: 0;
    transform: translateX(100%);
}

#transition-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    max-width: 80%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    z-index: 10;
    /* Plus élevé que les blocs */
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.animate-cover #transition-logo.show-logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* Animation */
.animate-cover .left-block {
    animation: slideInLeft 0.6s forwards;
}

.animate-cover .right-block {
    animation: slideInRight 0.6s forwards;
}

.animate-cover .show-logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.animate-out .left-block {
    animation: slideOutLeft 0.6s forwards;
}

.animate-out .right-block {
    animation: slideOutRight 0.6s forwards;
}

@keyframes slideInLeft {
    to {
        transform: translateX(0%);
    }
}

@keyframes slideInRight {
    to {
        transform: translateX(0%);
    }
}

@keyframes slideOutLeft {
    to {
        transform: translateX(-100%);
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(100%);
    }
}

#container1 {
    background-image: url('media/fond-acceuil.jpeg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    font-family: 'Cardo', serif;
    font-style: normal;
    transform-origin: left;
    /* utile pour l'effet rideau */
    transform: scaleX(1);
    transition: transform 1s ease, opacity 1s ease;
}

.rideau-fermeture {
    animation: rideauClose 1s forwards;
}

@keyframes rideauClose {
    0% {
        transform: scaleX(1);
        opacity: 1;
    }

    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}


/* #container1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#container1>* {
    position: relative;
    z-index: 2;
} */

#container2 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Assurer une hauteur minimale de la fenêtre */
    position: relative;
}

.main-section {
    background-image: url('media/houpa.jpg');
    background-size: cover;
    background-position: 49% center;
    background-repeat: no-repeat;
    background-color: #fff;
    width: 100%;
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    justify-content: flex-start;
    padding-top: 20%;
}




.main-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.main-section>* {
    position: relative;

}

.wedding-title,
.names,
.arrow-down {
    margin: 10px 0;
    font-size: 15px;
    font-family: "Alex Brush", cursive !important;
    font-weight: 400;
    font-style: normal;
    padding-top: 5%;
}

.main-section .btn#language-btn {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
}

html a {
    text-decoration: none;
}

.arrow-down {
    margin-top: 20px;

}

#music-control {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #d6bc8b, #b99e5e);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    z-index: 99999;
}

#play-pause-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: #ffffff;
    cursor: pointer;
}

.text-section h2,
p {
    margin: 1% 0;
    padding: 0;
}

#play-pause-btn:focus {
    outline: none;
}

.typewriter-5 {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid black;
    width: 0;
    animation: typing 3s steps(40, end) forwards 5s, blink 0.75s step-end infinite 5s;
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid black;
    width: 0;
    animation: typing 3s steps(40, end) forwards 0.5s, blink 0.75s step-end infinite 5s;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}


.main-section {
    text-align: center;
    color: #b5a75c;
    margin-bottom: 0;
}

.wedding-title {
    font-size: 3.5em;
    margin: 0;
}

.names {
    font-size: 3em;
    margin: 0;
}

.arrow-down {
    font-size: 3em;
    color: #b5a75c;
}

.text-section {
    background-image: url('media/fond-carte.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    font-family: 'Cardo', serif;
    font-weight: 700;
    font-style: normal;
    /* haut et bas */
    padding-inline: 5%;
    /* droite et gauche */
    overflow-x: hidden;
    /* empêche le scroll horizontal */
    box-sizing: border-box;
    padding-top: 8%; /* Plus précis que 20% du viewport */
    padding-bottom: 8%;
    margin-top: 0;
    position: relative;
    box-sizing: border-box;
    color: #8e8045;
}


.text-section h3 {
    text-align: center;
    color: #b5a75c;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

#houpaetsoire {
    font-size: 25px;
    letter-spacing: 12PX;
    text-shadow: 2px 2px 5px #b5a75c;
}

.image-logo-carte {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45%;
    margin: 30px 0; /* Top & bottom spacing sans padding externe */
}

.image-logo-carte img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.text-section h2 {
    font-size: 20px;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    margin-left: 2%;
    margin-right: 2%;

}

.text-sdv {
    color: #b5a75c;
    margin: -4% 0 0 0;
    padding: 0;
    text-align: right;
    width: 100%;
}

.save-the-date {
    background-image: url(media/Fond-feuille.png);
    background-color: #fff;
    border: #b5a75c solid 3px;
    color: #b5a75c;
    font-family: "Pinyon Script", cursive;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    margin: 5% 3% 0 3%;
    /* top right bottom left */
}

.save-the-date h2 {
    font-size: 3rem;
}

.findusite {
    background-color: #fff;
    color: #8c7235;
    background-image: url(media/fond-marbre.png);
    background-size: cover;
    background-position: center;
    padding-top: 40px;
    font-family: Arial, Helvetica, sans-serif;
    width: 100vw;
}


.color-or {
    color: #b5a75c;
    font-size: 1.7rem !important;
}

.immage-text {

    width: 95%;
    margin: 5% 0;
}

.immage-text img {

    width: 100%;
}

.image-du-haut img,
.image-du-bas img {
    width: 250px;
    height: 60%;
}

.invitation-container {
    display: flex;
    justify-content: space-between;
    color: #8e8045;
    font-size: 13px;
    font-weight: 500;
    font-style: normal;
    padding-top: 5%;

}



.invitation-column {
    text-align: left;
    padding: 0 20px;
}

.invitation-column p {
    padding: 0;
    margin: 1px 0;
}

.pas-cole {
    padding: 0;
    margin: -8px 0;
}

.invitee-name {
    margin: 10px 0;
}
.invitee-name {
    white-space: nowrap; /* Empêche le retour à la ligne */
    overflow: hidden;    /* Cache tout débordement */
    text-overflow: ellipsis; /* Ajoute "..." si ça déborde */
    font-size: clamp(0.75rem, 2vw, 1.2rem); /* Adaptatif : entre 0.8rem et 1.2rem selon la largeur */
    max-width: 100%; /* Important pour que ça ne dépasse jamais */
    display: block; /* S'assure que ça prend la largeur disponible */
}

.waze-button-container {
    text-align: center;
    margin-bottom: 40px;
    text-decoration: none;
}


.btn {
    position: relative;
    display: inline-block;
    padding: 14px 36px;
    font-size: 1.4rem;
    font-family: 'Pinyon Script', cursive;
    color: #fff;
    background: linear-gradient(145deg, #d6bc8b, #b99e5e);
    /* même couleurs */
    border: none;
    border-radius: 50px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 2px #8c7235;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

/* Effet lumière glissante */
.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
    transform: skewX(-25deg);
    transition: left 0.6s ease-in-out;
    z-index: 0;
}

.btn:hover::before {
    left: 125%;
}

/* Animation légère au survol */
.btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Le texte doit rester au-dessus de ::before */
.btn span,
.btn i {
    position: relative;

}


#language-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#language-icon {
    display: flex;
    align-items: center;
}

#language-text {
    display: flex;
    align-items: center;
    vertical-align: middle;
}

.btn:hover {
    background-color: #b5a75c;
}


.countdown-container {
    background-color: #FAFAFADE;
    padding: 15px;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.countdown-container-2 {
    flex-direction: row;
}

.countdown-title {
    font-family: "Alex Brush", cursive;
    font-size: 1.5em;
    color: #b5a75c;
    margin-bottom: 15px;
    text-align: center;
}

.countdown-elements {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.countdown-element {
    flex: 1;
    margin: 0 5px;
    min-width: 0;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: 1.5px solid #b5a75c;
    color: #b5a75c;
    font-size: 1.8em;
    box-sizing: border-box;
}

.countdown-element span {
    font-size: 0.4em;
    margin-top: 4px;
    font-family: "Alex Brush", cursive !important;
    color: #b5a75c;
}


.ltr {
    direction: ltr;
    text-align: left;
}

.rtl {
    direction: rtl;
    text-align: right;
}





form {
    font-family: 'Cardo', serif;
    ;
    width: 80%;
    max-width: 600px;
    margin: 2em auto;
    background: #ffffff;
    padding: 2em;
    /* border-radius: 8px; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    background-image: url(media/Fond-feuille.png);
    background-size: cover;
    background-position: center;
    position: sticky;
    border: 3px solid #b5a75c;

}
.phone-input-wrapper {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.phone-input-wrapper select {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    min-width: 200px;
}

.phone-input-wrapper input[type="tel"] {
    padding: 10px;
    font-size: 1em;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#country-code {
  font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', sans-serif;
  font-size: 1em;
}

.radio-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
    /* Permet de passer à la ligne si trop serré */
}

.checkbox-style {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Cardo', serif;
    font-size: 1.4rem;
    color: #b5a75c;
    position: relative;
    padding: 12px 24px;
    border: 2px solid #b5a75c;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: white;
    user-select: none;
    flex: 1 1 250px;
    /* s'adapte à la taille de l'écran */
    max-width: 300px;
    justify-content: center;
    margin: 10px;
    box-sizing: border-box;
    text-align: center;
}

.checkbox-style input[type="radio"] {
    display: none;
}

.checkbox-style span::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #b5a75c;
    border-radius: 4px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.checkbox-style input[type="radio"]:checked+span::before {
    content: "✔";
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #b5a75c;
    border-color: #b5a75c;
}

.checkbox-style span {
    padding-left: 35px;
    position: relative;
    display: inline-block;
}


/* Responsive texte taille */
@media screen and (max-width: 768px) {
    .checkbox-style {
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .radio-container {
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .checkbox-style {
        font-size: 1.1rem;
        flex: 1 1 100%;
        max-width: 100%;
        padding: 10px 16px;
    }

    .checkbox-style span::before {
        left: 5px;
        width: 18px;
        height: 18px;
    }
}


/* Style pour la modale */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Transparence */
    justify-content: center;
    align-items: center;
    z-index: 9999999;
}

/* Contenu de la modale */
.modal-content {
    background-color: #fff;
    padding: 20px;
    /* border-radius: 10px; */
    text-align: center;
    width: 80%;
    max-width: 400px;
    position: relative;
    font-size: 1.3em;
}

/* Bouton de fermeture */
.close {
    position: absolute;
    top: -5px;
    right: 20px;
    font-size: 40px;
    cursor: pointer;
}

button {
    background-color: #b5a75c;
    color: #ffffff;
    border: none;
    padding: 0.75em 1.5em;
    /* border-radius: 14px; */
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    margin: 0.5em;
}

button:hover {
    background-color: #27ae60;
}

button.prev {
    background-color: #6c757d;
}

button.prev:hover {
    background-color: #5a6268;
}

input[type="text"],
input[type="tel"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-top: 0.5em;
    border: 1px solid #ddd;

    box-sizing: border-box;
}

input[type="radio"] {
    margin-right: 10px;
}

.step {
    display: none;
    width: 100%;
}

.step.active {
    display: block;
}

#error-message {
    color: red;
    font-size: 0.875em;
    text-align: center;
}

#guest-count {
    font-size: 1.2em;
    margin: 0 1em;
}

#guest-names input {
    margin-bottom: 1em;
    padding: 10px;
    border: 1px solid #ddd;

    width: calc(100% - 22px);
}

.step-content {
    width: 100%;
    text-align: center;
}

.step-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 1em;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f2ec;
    z-index: 9999;
    overflow: hidden;
}

#loadingVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Remplit l'écran tout en gardant les proportions */
}


.hidden {
    display: none;
}

video {
    width: 100%;
    object-fit: cover;
}

.interesserparlebus {
    text-align: center;
    margin-bottom: 5%;
    margin: 0 3%;

    font-family: 'Cardo', serif;
    background-image: url(media/Fond-feuille.png);
    border: #b5a75c solid 3px;
    color: #b5a75c;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    margin: 0 3%;

}

.footer {
    display: block;
    font-size: 12px;
    font-family: "Alex Brush", cursive !important;
    font-weight: 400;
    font-style: normal;
    background-color: #fff;
    background-image: url(media/Fond-feuille.png);
    background-size: cover;
    background-position: center;
    position: sticky;
}

.footer h2 {
    color: #b5a75c;
    text-align: center;
}