@font-face {
    font-family: 'HelvNeue';
    src: url('../police/HelvNeue75_W1G.ttf') format('truetype');
}

body {
    background-image: url(/images/body-background.jpg) !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff !important;
    min-height: 100vh;
    font-family: 'HelvNeue', sans-serif;
}

h1, h2, h3 {
    font-family: 'HelvNeue', sans-serif;
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.card-text {
    font-family: 'HelvNeue', sans-serif;
    font-size: 1.8rem;
    line-height: 1.6;
    font-weight: 400;
}

.form-label {
    font-family: 'HelvNeue', sans-serif;
    font-style: italic;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
#previewDestinataireModal, #previewMessageModal{
    color: #ffffff !important;
}

#previewMessageModal{
    font-size: 30px;
    font-family: 'Great Vibes', cursive;
    line-height: 35px;
}
#previewSignatureModal{
    color: #ffffff !important;
    font-size: 30px;
    font-family: 'Great Vibes', cursive;
    font-weight: 600;
    text-align: right;
    padding-right: 20px;
    margin-top: 20px;
}
#previewTextModal {
    height: 398.36px;
    align-content: center;
}

#previewDestinataireModal{
    font-family: 'Great Vibes', cursive;
    font-size: 40px !important;
    font-weight: 600;
}


.shadow-orange {
    box-shadow: 0 0 20px rgba(255, 121, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 121, 0, 0.2);
}

.text-orange {
    color: #FF7900;
}
.card{
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('../images/plateforme-06.jpg');
}

.card-body {
    border-radius: 8px;
    flex: 1;
    display: flex;
    align-items: center;
    background-color: transparent;
    width: 758px;
}

.card-body .row {
    width: 100%;
}

#previewText, #previewTextModal {
    /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background-color: rgba(0, 0, 0, 0.6);*/
    border-radius: 8px;
}

#cardPreview {
    border: 1px solid rgba(255, 121, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 121, 0, 0.2);
    max-width: 800px;
    max-height: 600px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 121, 0, 0.2) !important;
    color: #ffffff !important;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #FF7900 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 121, 0, 0.25) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

select {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 121, 0, 0.2) !important;
    color: #ffffff !important;
}

select option {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

select:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #FF7900 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 121, 0, 0.25) !important;
}

.btn-primary {
    background-color: #FF7900 !important;
    border-color: #E66E00 !important;
}

.btn-primary:hover {
    background-color: #E66E00 !important;
    border-color: #CC6200 !important;
}

.share-buttons .btn {
    margin-left: 0.5rem;
}

#previewImage {
    max-height: 300px;
    object-fit: cover;
}

.modal-content {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 60px);
    margin: 30px auto;
}

.border-orange {
    border-color: #FF7900 !important;
}

.modal-header .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
    padding: 2rem;
}

#cardPreviewModal {
    border: none;
    box-shadow: none;
}

.theme-item {
    cursor: pointer;
    width: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
}

.theme-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.theme-item.selected {
    border-color: #ff7900;
    box-shadow: 0 0 20px rgba(255, 121, 0, 0.5);
}

.theme-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

#themeCarousel {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

#themeCarousel .carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
    z-index: 2;
}

#themeCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 1);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

#themeCarousel .carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

#themeCarousel .carousel-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#themeCarousel .carousel-item.selected {
    position: relative;
}

#themeCarousel .carousel-item.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff7900;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

#themeCarousel .carousel-item img {
    height: 300px;
    object-fit: cover;
}

#themeCarousel .carousel-control-prev,
#themeCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 121, 0, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

#themeCarousel .carousel-control-prev {
    left: 10px;
}

#themeCarousel .carousel-control-next {
    right: 10px;
}

/* Styles pour les boutons de partage */
.share-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
    color: white !important;
}

.share-item i {
    font-size: 1.2rem;
}

.share-facebook {
    background-color: #1877f2 !important;
}

.share-facebook:hover {
    opacity: 0.9;
}

.share-twitter {
    background-color: #000000 !important;
}

.share-twitter:hover {
    opacity: 0.9;
}

.share-whatsapp {
    background-color: #25D366 !important;
}

.share-whatsapp:hover {
    opacity: 0.9;
}

.dropdown-menu {
    display: none;
    background-color: #ffffff;
    border: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    gap: 0.3rem;
}

.dropdown-menu.show {
    display: flex;
    flex-direction: column;
}

.dropdown-item {
    padding: 8px 15px;
    border-radius: 5px;
}

.dropdown {
    position: relative;
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Styles pour les boutons et éléments d'interface */
.btn,
.dropdown-item,
.form-control,
.modal-title,
.carousel-indicators button {
    font-family: 'HelvNeue', sans-serif;
}

/* Préserver les styles de la carte */
#previewDestinataireModal {
    font-family: 'Great Vibes', cursive;
    font-size: 40px !important;
    font-weight: 600;
}

#previewMessageModal {
    font-size: 30px;
    font-family: 'Great Vibes', cursive;
    line-height: 35px;
}

#previewSignatureModal {
    color: #ffffff !important;
    font-size: 30px;
    font-family: 'Great Vibes', cursive;
    font-weight: 600;
    text-align: right;
    padding-right: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    #themeCarousel .carousel-item img {
        height: 483px;
    }

    #previewDestinataireModal {
        font-family: 'Great Vibes', cursive;
        font-size: 27px !important;
        font-weight: 600;
    }
    #previewMessageModal {
        font-size: 23px;
        font-family: 'Great Vibes', cursive;
        line-height: 30px;
    }
    
    #cardModal{
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .modal-dialog {
        min-height: calc(100vh - 20px);
    }
    
    .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .card {
        width: 100%;
        aspect-ratio: 391 / 822.36;
    }
    .card-body {
        display: flex;
        flex-direction: column;
        aspect-ratio: 391 / 822.36;
        padding: 0px;
        width: 100%;
    }
    #previewTextModal {
        padding-top: 100px !important;
        line-height: 1.5;
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
  
    
    .mobile-image{
        order: 2;
        height: clamp(6.813rem, -3.799rem + 58.957vw, 24.5rem);
    }

    .dropdown-menu {
        margin-left: -36px;
    }
}
