/* Styles pour l'arrière-plan animé */
body {
    background-color: #ffffff !important; /* Arrière-plan blanc comme demandé */
    position: relative;
    overflow-x: hidden;
}

/* Élements de décoration flottants */
.floating-element {
    position: fixed;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.05) 0%, rgba(0, 153, 204, 0.05) 100%);
    z-index: -1;
    animation: float 15s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 10%;
    animation-delay: 5s;
}

.floating-element:nth-child(4) {
    width: 250px;
    height: 250px;
    bottom: 10%;
    right: 20%;
    animation-delay: 3s;
}

.floating-element:nth-child(5) {
    width: 180px;
    height: 180px;
    bottom: 30%;
    left: 30%;
    animation-delay: 7s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, 15px) rotate(5deg);
    }
    50% {
        transform: translate(5px, -15px) rotate(10deg);
    }
    75% {
        transform: translate(-10px, 5px) rotate(5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Particules animées */
.particle {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: rgba(0, 166, 81, 0.1);
    pointer-events: none;
    z-index: -1;
}

/* Styles améliorés pour le header */
.custom-navbar {
    background: #25AAE2;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15) !important;
    border-bottom: none !important;
    animation: nav-glow 5s infinite alternate;
}

@keyframes nav-glow {
    0% {
        box-shadow: 0 5px 30px rgba(0, 166, 81, 0.2);
    }
    100% {
        box-shadow: 0 5px 30px rgba(0, 153, 204, 0.2);
    }
}

.navbar-brand {
    font-size: 1.5rem !important;
    letter-spacing: 1px !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
    border-radius: inherit;
}

.nav-link:hover::before {
    transform: translateY(0);
}

/* Styles améliorés pour le footer */
footer {
    background: #25AAE2;
    color: white;
    padding: 2.5rem 0 1rem;
    border-top: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 0;
}

footer .container {
    position: relative;
    z-index: 1;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

footer h5:hover::after {
    width: 100%;
}

footer a {
    transition: all 0.3s ease;
    text-decoration: none !important;
    position: relative;
    display: inline-block;
    padding: 3px 0;
}

footer a:hover {
    transform: translateX(5px);
    color: rgba(255, 255, 255, 0.8) !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
    opacity: 0.3;
}

footer address {
    font-style: normal;
    line-height: 1.8;
}

/* Sections améliorées */
section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title h2 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #25AAE2, #0099cc);
    border-radius: 4px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    margin-top: 1.5rem;
}

/* Styles pour alterner les sections */
section:nth-child(even) {
    background-color: rgba(249, 250, 251, 0.5);
}

/* Animation des titres lors du scroll */
.section-title h2 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title.animate h2 {
    opacity: 1;
    transform: translateY(0);
}

.section-title p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.section-title.animate p {
    opacity: 1;
    transform: translateY(0);
}

/* Flash messages améliorés */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.alert-success::before {
    background-color: #38c172;
}

.alert-danger::before {
    background-color: #e3342f;
}

.alert-info::before {
    background-color: #6cb2eb;
}

/* Styles pour les boutons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: linear-gradient(135deg, #25AAE2 0%, #6574cd 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(52, 144, 220, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #38c172 0%, #4dc0b5 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(56, 193, 114, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e3342f 0%, #f6993f 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(227, 52, 47, 0.3);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #25AAE2 0%, #0099cc 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0099cc 0%, #25AAE2 100%);
}
