/* Définition de la police Funky */
@font-face {
    font-family: 'Funky';
    src: url('/assets/fonts/funky.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Définition de la police Gagalin */
@font-face {
    font-family: 'Gagalin';
    src: url('/assets/fonts/Gagalin-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    height: 100%; /* Permet de s'assurer que le body prend toute la hauteur de la fenêtre */
    margin: 0;
}

header {
    background-color: #F2EBE6 !important; /* Beige léger */
    display: flex;
}

main {
    flex-grow: 1; /* Prend tout l'espace restant entre le header et le footer */
}

.content-wrapper {
    min-height: 100%; /* Assure que la hauteur minimum inclut tout l'écran */
    display: flex;
    flex-direction: column; /* Permet d'organiser les enfants verticalement */
}



.beige {
    background-color: #F2EBE6 !important;
}

.btn-orange {
    background-color: #ffa726; /* Orange clair */
    border: none;
}
.btn-orange:hover {
    background-color: #ff9800; /* Orange un peu plus foncé au survol */
}
/* Couleur de fond beige personnalisée */
.navbar-light.bg-light {
    background-color: #F2EBE6 !important; /* Beige léger */
}


.navbar {
    height: 100%; /* Faire en sorte que la nav occupe toute la hauteur du header */
    display: flex;
    align-items: center; /* Centrer verticalement le contenu de la nav */
}

.navbar {
    flex-wrap: nowrap !important;
}

/* Centrer l'icône et le nom de la boutique dans la navbar */
.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.navbar-brand svg {
    margin-right: 10px; /* Espacement entre l'icône et le texte */
}

.navbar-brand span {
    font-size: 7rem;
    font-weight: bold;
}

.grand-hotel-regular {
    font-family: "Grand Hotel", cursive;
    font-weight: 400;
    font-style: normal;

}

.grand-hotel-regular-shadow {
    text-shadow:
            1px 1px 2px rgba(255, 165, 0, 0.8),   /* Couche orange claire */
            2px 2px 4px rgba(255, 140, 0, 0.7),  /* Transition orange foncé */
            3px 3px 6px rgba(192, 64, 128, 0.6), /* Transition rose/violet clair */
            4px 4px 8px rgba(128, 0, 128, 0.5);  /* Couche violet foncé */
}

.section-height {
    height: 30vh;
}

.carousel-inner img {
    max-width: 100%; /* L'image ne dépassera pas la largeur du parent (l'écran) */
    max-height: 50vh; /* L'image s'ajuste pour ne pas dépasser 50% de la hauteur de la fenêtre */
    width: auto; /* Préserve les proportions de l'image */
    height: auto; /* Préserve les proportions de l'image */
    object-fit: contain; /* Ajuste l'image pour qu'elle soit entièrement visible */
    display: block; /* Assure un bon rendu */
}

.carousel-inner {
    width: 100%; /* Assure que le carousel s'adapte à la largeur du conteneur */
    height: auto; /* Garde les proportions */
    overflow: hidden; /* Cache tout débordement pendant la transition */
}

.carousel-indicators {
    position: relative !important;
}

.market-info {
    font-size: 1rem;
    color: #333;
}
.market-info h5 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.market-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
}

.title_carousel {
    text-shadow:
            3px 3px 6px rgba(192, 64, 128, 0.6), /* Transition rose/violet clair */
            4px 4px 8px rgba(128, 0, 128, 0.5);
}

.card-custom-shadow {
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2), 0 6px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.btn-purple {
    background-color: #6f42c1;  /* Couleur pourpre */
    color: white;               /* Texte en blanc */
    border: 1px solid #6f42c1;  /* Bordure pourpre */
    transition: background-color 0.3s ease;
}

.btn-purple:hover {
    background-color: #5a2d98;  /* Couleur pourpre plus foncée au survol */
    color: white;               /* Texte en blanc */
    border-color: #5a2d98;      /* Bordure plus foncée */
}

.text-purple {
    color: #6f42c1;
    font-weight: bold;
    font-size: 2rem;
}

/* Clone style for the "Créer un compte" link */
.register-link {
    display: inline-block;
    font-size: 2rem; /* Same size as h3 */
    color: #6f42c1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #5a35a6;
    text-decoration: underline;
}

.logo-img {
    width: 50px;
    height: auto;
}

.welcome-message {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 1.8rem;
    color: black;
}

.custom-offcanvas-body {
    font-size: 2rem; /* Augmente la taille de la police */
    line-height: 1.6;  /* Améliore la lisibilité */
}

/* Default styles for small screens */
.custom-div {
    width: 100%;
    margin-top: 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: white;
    padding: 1.5rem; /* Equivalent to p-4 */
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2), 0 6px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

/* Styles for large screens */
@media (min-width: 992px) {
    .custom-div {
        width: auto;
        margin-top: 0;
        font-size: 1rem;
        font-weight: normal;
        padding: 1.5rem; /* Equivalent to p-4 */
        box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2), 0 6px 20px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
    }
}

.form-control{
    font-size: 2rem !important;
}

.form-select{
    font-size: 2rem !important;
    min-width: 150px;
}

.form-control::placeholder {
    font-size: 1.2rem; /* Taille plus petite pour le placeholder */
    color: gray;
}

.form-select::placeholder {
    font-size: 1.2rem; /* Taille plus petite pour le placeholder */
    color: gray;
}

/* Media Query pour les grands écrans (au-dessus de 1200px) */
@media (min-width: 1200px) {
    .form-control {
        font-size: 1.25rem !important; /* Taille plus petite sur les grands écrans */
    }

    .form-select {
        font-size: 1.25rem !important;  /* Taille plus petite sur les grands écrans */
    }

    .form-control::placeholder {
        font-size: 1rem; /* Taille du placeholder plus petite sur les grands écrans */
    }

    form-select::placeholder {
        font-size: 1rem; /* Taille du placeholder plus petite sur les grands écrans */
    }
}

/* Media Query pour les écrans de taille moyenne (tablettes) entre 768px et 1199px */
@media (min-width: 768px) and (max-width: 1199px) {
    .form-control form-select {
        font-size: 1.5rem !important; /* Taille modérée pour les tablettes et écrans moyens */
    }

    .form-control::placeholder form-select::placeholder {
        font-size: 1.1rem; /* Taille du placeholder modérée pour les tablettes et écrans moyens */
    }
}

.btn {
    padding: 0.8rem 1.5rem;
}

.text-danger {
    color: red;
    font-weight: bold;
}

.card-img-top {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    width: 100%;
    height: auto; /* Garantit une adaptation correcte */
}

.filter-menu {
    background-color: #f3e5f5; /* Fond violet très clair */
    border: 1px solid #e1bee7; /* Bordure violet clair */
    border-radius: 0.5rem; /* Coins arrondis */
    padding: 1rem;
}

.filter-form .form-control,
.filter-form .form-select {
    margin-top: 0.5rem;
}

.filter-menu .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .filter-menu .form-group {
        flex-direction: row; /* Aligner horizontalement pour les écrans larges */
        align-items: center;
    }
}

.custom-letter-spacing {
    letter-spacing: 0.1em; /* Augmenter l'espacement entre les lettres */
}

.navbar-nav {
    overflow-x: auto;
    white-space: nowrap;
}

.navbar-nav {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.navbar-nav::-webkit-scrollbar {
    height: 8px;
}

.navbar-nav::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

.navbar-nav::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

/* CSS pour le système d'étoiles */
.rating-stars {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rating-stars input[type="radio"]:checked ~ label {
    color: #f39c12; /* Couleur de l'étoile active */
}

.rating-stars input[type="radio"]:hover ~ label,
.rating-stars input[type="radio"]:hover {
    color: #f39c12; /* Couleur au survol */
}

.rating-stars input[type="radio"]:checked + label {
    color: #f39c12; /* Couleur de l'étoile cochée */
}

.rating-stars input[type="radio"]:nth-of-type(1):checked ~ label:nth-of-type(1),
.rating-stars input[type="radio"]:nth-of-type(2):checked ~ label:nth-of-type(2),
.rating-stars input[type="radio"]:nth-of-type(3):checked ~ label:nth-of-type(3),
.rating-stars input[type="radio"]:nth-of-type(4):checked ~ label:nth-of-type(4),
.rating-stars input[type="radio"]:nth-of-type(5):checked ~ label:nth-of-type(5) {
    color: #f39c12;
}

.star {
    margin: 0 5px;
}

.star .star-filled {
    display: none; /* Cacher les étoiles pleines par défaut */
}

.star .star-empty {
    fill: purple; /* Couleur de l'étoile vide */
}

input[type="radio"]:checked ~ .rating-stars .star .star-empty {
    display: none; /* Masquer l'étoile vide lorsqu'une étoile est sélectionnée */
}

input[type="radio"]:checked ~ .rating-stars .star .star-filled {
    display: inline; /* Afficher l'étoile pleine lorsqu'elle est sélectionnée */
}

.categories-wrapper {
    overflow-x: auto;   /* Active le défilement horizontal */
    white-space: nowrap; /* Empêche les éléments de se casser sur plusieurs lignes */
    padding-bottom: 20px; /* Optionnel : espace sous les catégories */
}

.categories-wrapper .row {
    display: inline-flex; /* Aligne les éléments horizontalement */
}

.categories-wrapper .col-12 {
    display: inline-block; /* Affiche chaque élément comme un bloc en ligne */
}

.categories-wrapper img {
    object-fit: cover;  /* Remplit l'espace sans déformer l'image */
    height: 30vh;        /* Remplissage de 30% de la hauteur de la fenêtre */
    width: auto;         /* La largeur s'ajuste automatiquement pour conserver le ratio */
}

.invalid-feedback {
    list-style-type: none; /* Supprime les puces */
    padding-left: 0; /* Enlève le padding gauche */
}

.carousel-image {
    filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.4)); /* Ombre par défaut */
    transition: filter 0.3s ease; /* Transition douce de l'ombre */
}

.carousel-inner img:hover {
    filter: drop-shadow(8px 8px 15px rgba(0, 0, 0, 0.6)); /* Ombre plus forte au survol */
}

.button-rainbow {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border: 0;
        padding: 25px 45px;
        display: inline-block;
        color: #fff;
        border-radius: 500px;
        font-size: 14px;
        font-weight: bold;
        font-family: Arial;
        background: linear-gradient(270deg, #5f2c82, #ee38bf, #ff5858, #49a09d, #1b5ece, #5f2c82, #ee38bf, #ff5858);
        background-size: 400% 400%;
        -webkit-animation: AnimationName 30s ease infinite;
        animation: AnimationName 30s ease infinite;
    }

    @-webkit-keyframes AnimationName {
        0% {
            background-position: 0% center;
        }
        100% {
            background-position: 100% center;
        }
    }

    @keyframes AnimationName {
        0% {
            background-position: 0% center;
        }
        100% {
            background-position: 100% center;
        }
    }

.event-image {
    position: relative; /* Permet de positionner le bouton par rapport à l'image */
}

.event-image img {
    width: 100%; /* L'image s'étire sur toute la largeur du conteneur */
    object-fit: cover; /* L'image s'étire pour couvrir l'intégralité du conteneur */
}

.btn-overlay {
    position: absolute; /* Positionnement absolu par rapport à l'élément parent */
    top: 40px; /* Positionner le bouton en haut de l'image */
    left: 40px; /* Positionner le bouton à gauche de l'image */
    width: 100px; /* Largeur du bouton */
    height: 100px; /* Hauteur du bouton */
    background-color: #8B0000;
    color: white; /* Couleur du texte (icône) */
    border-radius: 50%; /* Forme ronde */
    display: flex;
    justify-content: center; /* Centrer l'icône horizontalement */
    align-items: center; /* Centrer l'icône verticalement */
    font-size: 18px; /* Taille de l'icône */
    text-decoration: none; /* Retirer le soulignement du lien */
    z-index: 10; /* S'assurer que le bouton soit au-dessus de l'image */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6); /* Ombre légère autour du bouton */
    border: 3px solid #003366;
}

.btn-overlay:hover {
    background-color: #5E0000; /* Couleur légèrement plus foncée au survol */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7); /* Ombre encore plus accentuée au survol */
    border-color: #001a33; /* Couleur de la bordure au survol, bleu plus foncé */
}

.responsive-form {
    width: 70vw; /* Small screens default */
}

@media (min-width: 768px) { /* Medium screens (md and up) */
    .responsive-form {
        width: 50vw;
    }
}

@media (min-width: 1200px) { /* Large screens (lg and up) */
    .responsive-form {
        width: 30vw;
    }
}

.pagination {
    margin-top: 20px;
}

.pagination .page-item.active .page-link {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.pagination .page-link {
    color: #6f42c1;
}

.pagination-container .page-item {
    margin: 0 5px;
}

.pagination-container .page-item.active .page-link {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.pagination-container .page-item.disabled .page-link {
    color: #6c757d;
}

.error404-content {
    width: 70%;
    border-radius: 20px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.4);
    margin: 5em auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #CC5500;
    padding: 2em;
}

.error404-content h1 {
    color: #e7ebf2;
    font-size: 12.5rem;
    letter-spacing: 0.1em;
    margin: 0.025em 0;
    text-shadow: 0.05em 0.05em 0 rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 30rem) {
    .error404-content h1 {
        font-size: 8.5rem;
    }
}

.error404-content h1 > span {
    -webkit-animation: spooky 2s alternate infinite linear;
    animation: spooky 2s alternate infinite linear;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 1em; /* Largeur ajustée à l'échelle du chiffre */
    height: 1em; /* Même hauteur pour garder la cohérence */
}

.ghost-icon {
    width: 100%;
    height: 100%;
}

.error404-content p {
    color: #ccc;
    margin-top: 0;
}

.error404-content h2 {
    color: #e7ebf2;
    margin-bottom: 0.4em;
}

@-webkit-keyframes spooky {
    from {
        transform: translatey(0.1em);
    }
    to {
        transform: translatey(-0.1em);
    }
}

@keyframes spooky {
    from {
        transform: translateY(0.1em);
    }
    to {
        transform: translateY(-0.1em);
    }
}

.error-icon {
    width: 7rem;
    height: 7rem;
}

.error500-content {
    width: 60%;
    border-radius: 20px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.4);
    margin: 5em auto;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    padding: 2em;
}

@keyframes blink-fancy{
    0%, 25%, 28.33%, 45%, 48.33%, 51.67%, 93.33%, 96.67%{transform: scaleY(1);}
    26.67%, 46.67%, 50%, 95% {transform: scaleY(0.1);}
}

@keyframes flame-flicker-1{
    25% {transform: scale3d(1,1.1,1);}
    40% {transform: scale3d(1,0.8,1);}
    50% {transform: scale3d(1,1.05,1);}
    65% {transform: scale3d(1,0.75,1);}
    75% {transform: scale3d(1,1,1);}
    90% {transform: scale3d(1,1.15,1);}
    100% {transform: scale3d(1,1,1);}
}

@keyframes flame-flicker-2{
    15% {transform: scale3d(0.9,0.8,1);}
    33% {transform: scale3d(1.2, 0.5,1);}
    47% {transform: scale3d(0.7, 0.7,1);}
    63% {transform: scale3d(0.72, 1.1,1);}
    70% {transform: scale3d(0.65, 1,1);}
    77% {transform: scale3d(1, 0.8,1);}
    85% {transform: scale3d(0.7, 0.95,1)}
    100% {transform: scale3d(1,1,1);}
}

@keyframes flame-ember{
    0% {transform: translate(0, 0) rotate(0deg);}
    25% {transform: translate(10px, -25px) rotate(-45deg);}
    50% {transform: translate(0, -50px) rotate(0);}
    75% {transform: translate(-10px, -75px) rotate(45deg);}
    100% {transform: translate(0, -100px) rotate(0);}
}

@keyframes flame-ember-alt{
    0% {transform: translate(0, 0) rotate(0deg);}
    25% {transform: translate(-15px, -25px) rotate(45deg);}
    50% {transform: translate(0, -50px) rotate(0);}
    75% {transform: translate(10px, -75px) rotate(-45deg);}
    100% {transform: translate(0, -100px) rotate(0);}
}

@keyframes flame-ember-opacity{
    45% {opacity: 1;}
    100% {opacity: 0;}
}

@keyframes scale-pulse {
    0% {transform: scale(0.8,0.8);}
    50% {transform: scale(1.1, 1.1);}
    100% {transform: scale(0.8,0.8);}
}

@keyframes opacity-pulse{
    0% {opacity: 0.2;}
    50% {opacity: 0.5;}
    100% {opacity: 0.2;}
}

.flame-front{
    transform-origin: center bottom;
    animation: flame-flicker-1 1s ease-in-out infinite;
}

.flame-inner{
    transform-origin: center bottom;
    animation: flame-flicker-2 .8s ease-in-out infinite;
}

#flame-inner-right{animation-duration: 1s; animation-delay: -1s;}

#flame-back{animation-direction: reverse; animation-delay: 0.5s; animation-duration: 1.6s;}

#flame-front-right{animation-duration: 1.3s; animation-delay: 0.2s}

.emitted-ember{
    transform-origin: center center;
    -moz-transform-origin: 485.125px 51.33px;
    animation: flame-ember 2s linear infinite, flame-ember-opacity 2s ease-out infinite;
}

.emitted-ember-alt{
    animation: flame-ember-alt 1.7s linear infinite, flame-ember-opacity 1.7s ease-out infinite;
}

.smoke{transform-origin: center center; animation: scale-pulse .7s ease-in-out infinite;}

#smoke-float-1 {animation-delay: 0.4s;}
#smoke-float-2 {animation-delay: 0.2s;}
#smoke-float-3 {animation-delay: 0s;}
#smoke-float-4 {animation-delay: -0.2s;}
#smoke-float-5 {animation-delay: -0.4s;}

.glow{
    transform-origin: center center;
    -moz-transform-origin: 378.729px 109.75px;
    animation: opacity-pulse 4s ease-in-out infinite 0.1s, scale-pulse 4s ease-in-out alternate infinite;
}

#glow-outer-1{animation-delay: -0.1s;}
#glow-inner {animation-delay: -0.3s;}

#eyes-left, #eyes-right{
    animation: blink-fancy 6s linear infinite;
}

.bill-highlight{animation: opacity-pulse 4s ease-in-out infinite;}

