:root {
    --bulma-primary-h: 323;
    --bulma-primary-s: 49%;
    --bulma-primary-l: 41%;
            --c2su-dark: #2a2a2a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bulma-background);
}

.has-text-c2su { color: var(--bulma-primary) !important; }
.has-background-c2su { background-color: var(--bulma-primary) !important; color: white; }
/* Animations */
.arrow-an{
  display: inline-block;
  transition: transform 0.3s ease-in-out;
}
.dropdown:hover .arrow-an {
  transform: rotate(90deg);
}
@keyframes scale-up {
    0% {scale: 60%;}
    100% {scale: 100%;}
}
@keyframes slide-in-up {
  0% {
    opacity: 0;
    transform: translateY(15px); 
  }
  100% {
    opacity: 1;
    transform: translateY(0);  
  }
}
@keyframes fade-in-out {
    0% {opacity: 100%;}
    50% {opacity: 0%;}
    0% {opacity: 100%;}

}

@media screen and (max-width: 1023px) { /* Full fait par IA pour de belles animation mdrrr */
    .navbar-menu {
        /* Override Bulma's default hiding/showing behavior */
        display: block !important; 
        
        /* Position it as a fixed side-drawer */
        position: fixed;
        top: 3.25rem; /* Start just below the Bulma navbar */
        right: -300px; /* Hide it entirely off the right side of the screen */
        width: 300px;
        height: calc(100vh - 3.25rem);
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.05);
        
        /* The smooth slide animation */
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
    }

    /* When Hyperscript adds the class, slide it into view */
    .navbar-menu.is-active {
        right: 0;
    }
    .navbar-end .dropdown {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers the image */
        width: 100%;
        padding-top: 2rem;
    }

    /* 3. Force the hidden menu to always be visible and stop it from floating */
    .navbar-end .dropdown-menu {
        display: block !important;
        position: relative; /* Stops it from floating over other content */
        width: 100%;
        padding-top: 1rem;
        box-shadow: none;
        opacity: 1 !important; /* Overrides your animate-scale-up if needed */
        transform: none !important;
    }

    /* 4. Remove the desktop styling (white box, shadow) from the links */
    .navbar-end .dropdown-content {
        box-shadow: none;
        background-color: transparent;
        text-align: center; /* Centers the text of the links */
    }

    /* Make the links look nice and spacious for touch */
    .navbar-end .dropdown-item {
        padding: 1rem;
        font-size: 1.1rem;
    }
}
/* ease-out makses it decelerate smoothly, forwards keeps it at 100% state */
.animate-scale-up {animation: scale-up 0.3s cubic-bezier(0.16, 1, 0.3, 1) backwards;}
.animate-appear {animation: slide-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;}
.animate-fade-in-out{animation: fade-in-out 1s ease-in-out infinite;}
/* smooth translate animation */
.smooth-translate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.smooth-translate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Custom Button Styling */
.button.is-c2su {
    background-color: var(--bulma-primary);
    color: white;
    border-color: transparent;
    transition: transform 0.3s ease;

}
.button.is-c2su:hover {
    transform: translateY(-3px);
    background-color: #9e2b6d;
    color: white;
}
.button.is-c2su-outlined {
    background-color: transparent;
    border-color: var(--bulma-primary);
    color: var(--bulma-primary);
    transition: transform 0.3s ease;

}
.button.is-c2su-outlined:hover {
    transform: translateY(-3px);
    background-color: var(--bulma-primary);
    color: white;
}

.navbar { box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.hero-faded {
    background:
        linear-gradient(to bottom, rgba(184, 50, 128, 0.1) 0%, rgba(184, 50, 128, 0.85) 80%, rgba(184, 50, 128, 1) 100%),
        var(--hero-bg) center/cover no-repeat;
}

.pillar-card {
    border-top: 4px solid var(--bulma-primary);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.pillar-icon {
    font-size: 2.5rem;
    color: var(--bulma-primary);
    margin-bottom: 1rem;
}

.date-block {
    background-color: var(--bulma-primary);
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 8px 0 0 8px;
    min-width: 90px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    max-height: 60px;
    margin: 0 auto;
}
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.modal-background {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* htmx loading effect */
.htmx-indicator {
    display: none;
}

/* 2. Show the loader when it is INSIDE an active request (Space between them) */
.htmx-request .htmx-indicator {
    display: inline-block; 
}

/* 3. Catch-all: If HTMX adds BOTH classes to the exact same element (No space) */
.htmx-request.htmx-indicator {
    display: inline-block;
}
