
html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji"; 
}

.cls-1 {
    fill: #1d1d1b;
    font-size: 100.52px;
}

.cls-1, .cls-2 {
    font-family: Alaska, Alaska;
}

.cls-2 {
    font-size: 33.51px;
    letter-spacing: -.02em;
}

.cls-2, .cls-3 {
    fill: #d39b2f;
}

.glass {
    backdrop-filter: blur(8px); 
    background: rgba(17,24,39,0.55);
}

/* Navbar */

.nav-link.active {
    color: #d39b2f;
    font-weight: bold;
    border-bottom: 2px solid #d39b2f;
}


/* Messages Flash */
#flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.flash-message {
    margin-bottom: 10px;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flash-message.show {
    transform: translateX(0);
    opacity: 1;
}

.flash-message.hide {
    transform: translateX(100%);
    opacity: 0;
}

.flash-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.flash-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.flash-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.flash-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.flash-welcome {
    background: linear-gradient(135deg, #d39b2f 0%, #b8851f 100%);
    color: white;
    border-left: 4px solid #f4e085;
}

/* Animation d'entrée personnalisée pour les messages de bienvenue */
.flash-welcome.show {
    animation: welcomeSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes welcomeSlide {
    0% {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateX(-10px) scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Styles Dashboard Responsive */
.dashboard-stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 640px) {
    .dashboard-stats-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dashboard-stats-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(4, 1fr);
    }
}

.dashboard-admin .dashboard-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 1024px) {
    .dashboard-admin .dashboard-stats-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.dashboard-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .dashboard-card {
        padding: 1rem;
    }
}

/* Table responsive améliorée */

.reservation-table-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

@media (max-width: 768px) {
    .reservation-mobile-card {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        padding: 1rem;
        margin-bottom: 1rem;
        transition: box-shadow 0.2s ease;
    }
    
    .reservation-mobile-card:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .reservation-mobile-card:last-child {
        margin-bottom: 0;
    }
}

/* Animation pour les cartes mobiles */

@media (max-width: 768px) {
    .reservation-mobile-card {
        animation: fadeInUp 0.3s ease-out;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    #flash-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .flash-message {
        font-size: 14px;
        padding: 12px;
    }
}

._groupLogo{
    width: auto;
}

._groupLogo svg{
    width: 50%;
}


/* le formulaire de reservation */

.form-reservation{
    background-color: rgb(255, 255, 255);
     border: 1px solid #dbdbdb;
    border-radius: 10px;
}

.form-reservation input{
    border-radius: 5px;
    border: 1px solid #dbdbdb;
    padding: 5px 10px;
}

.form-reservation select{
    border-radius: 5px;
    padding: 6px 10px;
    border: 1px solid #dbdbdb;
    background: none;
}

.form-reservation textarea{
    border-radius: 5px;
    padding: 5px 10px;
    border: 1px solid #dbdbdb;
}

._h1{
    line-height: 1.2;
}

/* les card */

._articleCard{
    border: 1px solid #dbdbdb;
    border-radius: 10px;
    background-color: rgba(205, 205, 205, 0.053);
    cursor: pointer;
}

/* Les boutons */

.btnReservation{
    border-radius: 5px;
}

._rounded{
    border-radius: 5px;
    /* color: rgb(207, 1, 1); */
    font-weight: 600;
    /* background: #ffe0e0; */
}

._border{
    border-radius: 10px;
    border: 1px solid #dbdbdb;
}

._mesBtn{
    border-radius: 5px;
}

._mesBtn2{
    width: 48.8%;
    text-align: center;
    justify-content: center;
}


/* les dordures */

._infoContact{
    border-radius: 10px;
    padding: 35px 25px;
    border: 1px solid #dbdbdb;
    background: none;
}

#conditions{
    background-color:rgb(233, 233, 233);
}

.btnMobile{
    border: 1px solid #dbdbdb;
    background-color: rgb(255, 208, 68);
    padding: 8px 10px;
}


._demandeDevis{
    background-image: url(https://location.etsmoutarde.com/images/dashboard-3510327_1920.png);
    background-repeat: no-repeat;
    background-position: center;
}

#avantages, #reservation, ._bg-gray-50{
    background: #fffce3;
}


#reservation, ._bg-gray-50{
    background: #f0f0f0;
}


._minheight{
    height: 100vh;
}


@media(max-width:768px){

    ._demandeDevis{
        padding: 20px 10px;
    }

    ._mesBtn2{
        width: 100%;   
    }

    #mainVehiculeImage {
        max-height: 250px !important;
    }

    .relative > div[style*="padding-bottom"] {
        padding-bottom: 50% !important; 
    }

}

/* Styles pour les miniatures d'images */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Amélioration des miniatures responsive */
@media (max-width: 640px) {
    .absolute.left-1.bottom-1.right-1 {
        left: 0.25rem !important;
        right: 0.25rem !important;
        bottom: 0.25rem !important;
        gap: 0.25rem !important;
    }
    
    .absolute.left-1.bottom-1.right-1 img {
        min-width: 3rem !important; /* Éviter que les images deviennent trop petites */
    }
}

._categorieBg{
    background-color: #d39b2f !important;
    border-radius: 5px;
    padding: 5px 20px;
}
    

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out;
}
.animate-fade-out {
  animation: fadeOut 0.4s ease-in forwards;
}
