:root {
    --primary-color: #B00058;
    --primary-light: #fce4ec;
    --orange-color: #FF8F6B;
    --orange-light: #fff3e0;
    --teal-color: #009688;
    --teal-dark: #00796b;
    --text-dark: #2c3e50;
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: var(--font-body);
    color: #333;
    overflow-x: hidden;
    direction: ltr;
}

h1,
h2,
h3,
h4,
h5,
.btn {
    font-family: var(--font-title)
}

.text-primary {
    color: var(--primary-color) !important
}

.bg-primary {
    background-color: var(--primary-color) !important
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.btn:focus,
.btn:active:focus,
.btn-outline-primary:focus,
.btn-primary:focus {
    box-shadow: none !important;
    outline: none !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color)
}

.btn-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color)
}

.btn-outline-primary:hover,
.btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.text-orange {
    color: var(--orange-color) !important
}

.bg-orange {
    background-color: var(--orange-color) !important
}

.bg-orange-light {
    background-color: var(--orange-light) !important
}

.btn-outline-orange {
    color: var(--orange-color);
    border-color: var(--orange-color)
}

.btn-outline-orange:hover {
    background-color: var(--orange-color);
    color: white
}

.text-teal {
    color: var(--teal-color) !important
}

.text-accent {
    color: var(--teal-color) !important
}

.bg-teal {
    background-color: var(--teal-color) !important
}

.btn-outline-teal {
    color: var(--teal-color);
    border-color: var(--teal-color)
}

.btn-outline-teal:hover {
    background-color: var(--teal-color);
    color: white
}

.btn-accent {
    background-color: var(--teal-color);
    color: white !important;
    border: none;
    transition: all 0.3s ease
}

.btn-accent:hover {
    background-color: var(--teal-dark);
    transform: translateY(-2px);
    color: white !important
}

.btn-accent:disabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    border: 1px solid #dee2e6;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none
}

.navbar .nav-link {
    font-weight: 600;
    color: #555;
    position: relative;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0 2px
}

.navbar .nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
    box-shadow: 0 4px 12px rgba(176, 0, 88, 0.3);
    transform: translateY(-1px)
}

.navbar .nav-link:hover:not(.active) {
    background-color: var(--primary-light);
    color: var(--primary-color);
    transform: scale(1.05)
}

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

.navbar .nav-link::after {
    display: none
}

.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background-color: #f8f9fa;
    overflow: hidden;
    margin-top: 60px
}

.hero-section .container {
    color: var(--text-dark) !important
}

.hero-section h1.display-3 {
    color: var(--text-dark) !important;
    text-shadow: none;
    font-weight: 900
}

.hero-section p.h3 {
    color: var(--text-dark) !important;
    text-shadow: none;
    font-weight: 600
}

.shape-bg {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.9;
    box-shadow: 0 0 40px 20px rgba(255, 255, 255, 0.4);
    contain: layout style;
    will-change: transform;
}

.shape-pink {
    width: 60vw;
    height: 60vw;
    background-color: var(--primary-color);
    top: -20%;
    left: -10%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morphGpu 8s ease-in-out infinite
}

.shape-orange {
    width: 50vw;
    height: 50vw;
    background-color: var(--orange-color);
    bottom: -10%;
    right: -10%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphGpu 10s ease-in-out infinite reverse
}

.shape-teal {
    width: 30vw;
    height: 30vw;
    background-color: var(--teal-color);
    top: 20%;
    right: 20%;
    border-radius: 50%;
    z-index: 0
}

@keyframes morphGpu {
    0% {
        transform: scale(1) rotate(0deg)
    }

    33% {
        transform: scale(1.05) rotate(2deg)
    }

    66% {
        transform: scale(0.95) rotate(-2deg)
    }

    100% {
        transform: scale(1) rotate(0deg)
    }
}

.title-shadow {
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1)
}

.text-shadow {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3)
}

.card-borne {
    border-radius: 20px;
    overflow: visible;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    border: none;
}

.card-borne-header {
    height: 180px;
    border-radius: 50% 50% 0 0 / 40% 40% 0 0;
    margin: 15px 15px 0 15px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-borne:hover .card-borne-header {
    transform: scale(1.05);
}

.bg-rayures {
    position: relative;
}

.card-borne-header::before,
.bg-rayures::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1) 10px, transparent 10px, transparent 20px);
    pointer-events: none
}

.shadow-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important
}

.icon-square {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.bg-primary-light {
    background-color: rgba(176, 0, 88, 0.1)
}

footer .social-links a {
    transition: background 0.3s
}

footer .social-links a:hover {
    background: var(--orange-color) !important
}

.footer-logo {
    height: auto !important;
}

.grayscale {
    filter: grayscale(100%);
}

@media (max-width:768px) {
    .hero-section {
        height: auto;
        padding: 8rem 0 4rem 0
    }

    .display-3 {
        font-size: 2.5rem
    }
}

@keyframes pulse-accent {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 150, 136, 0.7)
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 150, 136, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 150, 136, 0)
    }
}

.pulse-animation {
    animation: pulse-accent 2s infinite
}

@media (max-width:991.98px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 1.5rem;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        margin-top: 10px
    }

    .navbar-nav {
        gap: 10px
    }

    .navbar .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        background-color: #f8f9fa;
        color: var(--text-dark);
        font-weight: 700;
        padding: 12px 0 !important;
        border-radius: 12px;
        border: 1px solid transparent;
        transition: all 0.2s ease-in-out;
        margin: 0 !important
    }

    .navbar .nav-link:hover,
    .navbar .nav-link:focus {
        background-color: white;
        color: var(--primary-color);
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(176, 0, 88, 0.15)
    }

    .navbar .nav-link.active {
        background-color: var(--primary-color);
        color: white !important;
        box-shadow: 0 4px 15px rgba(176, 0, 88, 0.4);
        transform: scale(1.02)
    }
}

#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: var(--primary-color);
    border: none;
    color: white;
    box-shadow: 0 4px 10px rgba(176, 0, 88, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

#backToTopBtn:hover {
    background-color: #900048;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(176, 0, 88, 0.4)
}

@media (max-width:768px) {
    #backToTopBtn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px
    }
}

.btn-orange {
    background-color: var(--orange-color);
    border-color: var(--orange-color);
    color: white !important
}

.btn-teal {
    background-color: var(--teal-color);
    border-color: var(--teal-color);
    color: white !important
}

.btn-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transition: all 0.3s ease
}

.btn-orange:hover {
    background-color: var(--orange-color) !important;
    border-color: var(--orange-color) !important;
    color: white !important;
    transition: all 0.3s ease
}

.btn-teal:hover {
    background-color: var(--teal-color) !important;
    border-color: var(--teal-color) !important;
    color: white !important;
    transition: all 0.3s ease
}

.countdown-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-radius: 1.25rem;
    min-width: 110px;
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease
}



.countdown-item .display-5 {
    color: var(--primary-color);
    font-family: var(--font-title);
    font-weight: 800;
    text-shadow: none;
    min-height: 1.2em;
    min-width: 2ch;
    display: inline-block
}

.countdown-item .small {
    color: var(--text-dark);
    font-weight: 700;
    opacity: 0.8;
    margin-top: 5px;
    letter-spacing: 1px
}

@media (max-width:576px) {
    .countdown-item {
        padding: 0.75rem;
        min-width: 70px
    }

    .countdown-item .display-5 {
        font-size: 1.5rem
    }
}

.affiche-img {
    max-height: 500px;
    width: auto;
    display: block;
    margin: 0 auto
}

.social-icon {
    width: 40px;
    height: 40px
}

.gallery-img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease
}

.card:hover .gallery-img {
    transform: scale(1.05)
}

.gallery-img-tall {
    height: 350px
}

.gallery-img-min {
    min-height: 250px
}

.partner-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: white
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer;
}

.partner-logo {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
    opacity: 1
}

.partner-card:hover .partner-logo {
    opacity: 1
}

.section-underline {
    height: 3px;
    opacity: 0.2
}

.adeorun-logo {
    max-height: 120px
}

.map-iframe {
    border: 0
}

.table-pricing {
    border-collapse: separate;
    border-spacing: 0 15px;
    background: transparent;
}

.table-pricing thead th {
    border: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 1.2rem 1rem;
}

.table-pricing tbody tr {
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.table-pricing tbody td {
    padding: 1.5rem 1rem;
    border: none;
    vertical-align: middle;
}

.table-pricing tbody td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table-pricing tbody td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.bg-teal-light {
    background-color: rgba(0, 150, 136, 0.1) !important;
}

.fw-black {
    font-weight: 900 !important;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f8f9fa;
}

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--orange-color));
    border-radius: 10px;
    border: 3px solid #f8f9fa;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #900048, #d87658);
}

/* Animations au défilement */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}