:root {
    --primary-color: #394286;
    --secondary-color: #ce0e2e;
    --accent-color: #f1f5f9;
    --text-color: #23272f;
    --light-text: #64748b;
    --bg-color: #f8fafc;
    --card-bg: rgba(255,255,255,0.9);
    --glass-bg: rgba(255,255,255,0.7);
    --glass-blur: blur(20px);
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    --card-shadow: 0 8px 40px rgba(57,66,134,0.12), 0 4px 12px rgba(206,14,46,0.08);
    --border-radius: 20px;
    --section-padding: 6rem 0;
    --header-height: 80px;
    --max-width: 1200px;
    --btn-shadow: 0 6px 20px rgba(57,66,134,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #f8fafc 0%, #e8eef5 50%, #dfe6f0 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    font-size: 1.13rem;
    letter-spacing: 0.01em;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(57,66,134,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(206,14,46,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    border-radius: 8px;
    padding: 0.2em 0.6em;
}

a:hover, a:focus {
    color: var(--secondary-color);
    background: rgba(59,130,246,0.07);
    outline: none;
}

header {
    width: 100%;
    height: var(--header-height);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(59,130,246,0.08);
    display: flex;
    align-items: center;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.logo img {
    width: 80px; /* Taille réduite du logo */
    height: auto; /* Maintient le ratio d'aspect */
    margin-right: 0.5rem;
    border-radius: 0; /* Suppression de la bordure arrondie */
}

.logo:hover img {
    transform: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:has(img)::after {
    display: none;
}

.nav-links a img {
    width: 50px;
    height: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-links a:hover img {
    transform: scale(1.1);
}

.hero {
    color: black;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(248,250,252,0.9) 100%);
    backdrop-filter: blur(10px);
    margin-bottom: 3rem;
    border-radius: 0 0 40px 40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(57,66,134,0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(206,14,46,0.08) 0%, transparent 50%);
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-family: 'Roboto', sans-serif;
    animation: slideInDown 0.8s ease-out;
    position: relative;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 850px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    line-height: 1.8;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.hero img {
    height: 450px;
    width: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: var(--transition);
    animation: fadeIn 1.2s ease-out 0.5s both;
}

.hero img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0,0,0,0.2);
}

.section {
    padding: var(--section-padding);
    border-radius: 2rem;
    margin-bottom: 3rem;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.section:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.section-title {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff4d6d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 1rem 0;
    font-weight: 600;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.text-center {
    text-align: center;
    max-width: 850px;
    margin: 2rem auto 3rem;
    padding: 2rem;
    background: rgba(255,255,255,0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.text-center h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.text-center h4 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.text-center p {
    margin: 0.8rem 0;
    line-height: 1.8;
}

.text-center a {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a5298 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--btn-shadow);
}

.text-center a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(57,66,134,0.25);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff4d6d 100%);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.card-content p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a5298 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--btn-shadow);
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff4d6d 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(57,66,134,0.25), 0 5px 15px rgba(206,14,46,0.15);
}

.info-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-column {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
    box-shadow: var(--card-shadow);
    border-radius: 24px;
    padding: 2.5rem;
    margin: 0;
    transition: var(--transition);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 2px solid rgba(57,66,134,0.1);
    overflow: hidden;
    position: relative;
}

.info-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.info-column:hover::before {
    transform: scaleX(1);
}

.info-column:hover {
    box-shadow: 0 16px 60px rgba(57,66,134,0.15), 0 8px 20px rgba(206,14,46,0.1);
    transform: translateY(-8px);
    border-color: rgba(57,66,134,0.2);
}

.info-column h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.info-column ul {
    list-style-position: inside;
    padding-left: 0.5rem;
}

.info-column li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.info-column li::marker {
    color: var(--primary-color);
}

.resources .resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.resource-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.resource-item p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.video-container {
    position: relative;
    margin-top: 1rem;
}

.play-button {
    transition: var(--transition);
}

.play-button:hover {
    background-color: var(--primary-color) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.result-items > div {
    transition: var(--transition);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.result-items > div:hover {
    background-color: #f0f0f0;
    transform: translateX(5px);
}

.social-links {
    font-size: 1.5rem;
}

footer {
    background: linear-gradient(135deg, #1a1f3a 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.3) 100%);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-icon {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    min-width: 20px;
    margin-top: 0.3rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin: 0.5rem 0;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0;
    position: relative;
}

.footer-column a::before {
    content: '→';
    opacity: 0;
    margin-right: 0;
    transition: all 0.3s ease;
}

.footer-column a:hover::before {
    opacity: 1;
    margin-right: 0.5rem;
}

.footer-column a:hover {
    color: white;
    transform: translateX(5px);
    background: none;
}

.footer-column img {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.footer-column img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 -1.5rem;
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

/* Styles pour le zoom d'image */
.image-zoom-container {
    position: relative;
    margin: 2rem 0;
    cursor: pointer;
    display: inline-block;
    width: 100%;
    max-width: 800px;
}

.zoomable-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-zoom-container:hover .zoom-hint {
    opacity: 1;
}

.image-zoom-container:hover .zoomable-image {
    transform: scale(1.02);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    display: block;
    max-width: 95%;
    max-height: 95vh;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    width: auto;
    height: 90%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.mobile-menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* Styles pour le menu mobile ouvert */
.mobile-menu-open .mobile-menu-toggle .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-open .mobile-menu-toggle .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .mobile-menu-toggle .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .info-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 100;
    }

    .logo img {
        width: 60px; /* Taille réduite du logo */
        height: auto; /* Maintient le ratio d'aspect */
        margin-right: 0.5rem;
        border-radius: 0; /* Suppression de la bordure arrondie */
    }
    
    .logo:hover img {
        transform: none;
    }

    .logo img:hover {
        transform: none;
    }

    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .hero img {
        height: 250px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .mobile-menu-open .nav-links {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .info-columns {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .back-to-top {
        width: 30px;
        height: 30px;
        bottom: 15px;
        right: 15px;
    }
    
    .back-to-top i {
        font-size: 14px;
    }
}

/* Scroll Reveal Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Bouton retour en haut de page */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: none; /* Caché par défaut */
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 20px;
}

/* Slider Actualités - Design Premium */
.slider-container {
    position: relative;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 30px 60px -12px rgba(57,66,134,0.25),
        0 18px 36px -18px rgba(206,14,46,0.15),
        0 0 0 1px rgba(255,255,255,0.1) inset;
    background: linear-gradient(135deg, #1a1f3a 0%, #394286 100%);
}

.slider-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    z-index: 20;
}

.slider {
    position: relative;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(57,66,134,0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(206,14,46,0.3) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(26,31,58,0.9) 0%,
        rgba(57,66,134,0.7) 30%,
        rgba(57,66,134,0.5) 60%,
        rgba(206,14,46,0.4) 100%);
    z-index: 1;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 10s ease-out;
    filter: brightness(1.1) contrast(1.05);
}

.slide.active .slide-image img {
    transform: scale(1.15);
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5rem;
    color: white;
}

.slide-date {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(206,14,46,0.9) 0%, rgba(206,14,46,0.7) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    width: fit-content;
    border: none;
    box-shadow: 0 4px 20px rgba(206,14,46,0.4);
    transform: translateX(-30px);
    opacity: 0;
}

.slide-date::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
}

.slide.active .slide-date {
    animation: slideInLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.slide-content h3 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
    transform: translateY(40px);
    opacity: 0;
    max-width: 700px;
    letter-spacing: -0.5px;
}

.slide.active .slide-content h3 {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

.slide-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 600px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
    transform: translateY(40px);
    opacity: 0;
    font-weight: 400;
}

.slide.active .slide-content p {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 30px rgba(206,14,46,0.4);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 1rem 1.8rem;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
    position: relative;
}

.dot:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.15);
}

.dot.active {
    background: var(--secondary-color);
    border-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(206,14,46,0.6);
}

/* Indicateur de progression */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), #ff4d6d, var(--secondary-color));
    background-size: 200% 100%;
    width: 0%;
    z-index: 15;
    transition: width 0.1s linear;
    box-shadow: 0 0 20px rgba(206,14,46,0.5);
}

/* ===== SECTION PREVENTION - COMPLÉMENTAIRE ===== */
.prevention-section {
background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(248,250,252,0.8) 100%);
}

.section-subtitle {
color: var(--light-text);
font-size: 1.1rem;
margin-top: 0.5rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}

.prevention-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
margin-bottom: 3rem;
}

.prevention-card {
background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
border-radius: 24px;
overflow: hidden;
box-shadow: 0 10px 40px rgba(57,66,134,0.1), 0 4px 12px rgba(0,0,0,0.05);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
display: flex;
flex-direction: column;
}

.prevention-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 60px rgba(57,66,134,0.15), 0 8px 20px rgba(206,14,46,0.1);
}

.prevention-card--featured {
grid-column: 1;
grid-row: 1 / 3;
}

.prevention-card__badge {
position: absolute;
top: 1rem;
left: 1rem;
z-index: 10;
display: flex;
align-items: center;
gap: 0.5rem;
background: linear-gradient(135deg, var(--primary-color) 0%, #4a5298 100%);
color: white;
padding: 0.5rem 1rem;
border-radius: 50px;
font-size: 0.8rem;
font-weight: 600;
box-shadow: 0 4px 15px rgba(57,66,134,0.3);
}

.prevention-card__badge i {
font-size: 0.9rem;
}

.prevention-card__image-wrapper {
position: relative;
overflow: hidden;
flex: 1;
min-height: 250px;
}

.prevention-card--featured .prevention-card__image-wrapper {
min-height: 100%;
}

.prevention-card__image {
width: 100%;
height: 100%;
object-fit: cover;
object-position: top center;
transition: transform 0.5s ease;
}

.prevention-card:hover .prevention-card__image {
transform: scale(1.05);
}

.prevention-card__overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(180deg, transparent 50%, rgba(57,66,134,0.8) 100%);
opacity: 0;
transition: opacity 0.4s ease;
display: flex;
align-items: center;
justify-content: center;
}

.prevention-card:hover .prevention-card__overlay {
opacity: 1;
}

.prevention-card__zoom-btn {
width: 60px;
height: 60px;
border-radius: 50%;
background: white;
border: none;
color: var(--primary-color);
font-size: 1.5rem;
cursor: pointer;
transform: scale(0.8);
opacity: 0;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.prevention-card:hover .prevention-card__zoom-btn {
transform: scale(1);
opacity: 1;
}

.prevention-card__zoom-btn:hover {
background: var(--secondary-color);
color: white;
transform: scale(1.1);
}

.prevention-card__content {
padding: 1.5rem;
background: white;
}

.prevention-card__content h3 {
color: var(--secondary-color);
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 0.5rem;
}

.prevention-card__content p {
color: var(--light-text);
font-size: 0.95rem;
line-height: 1.6;
margin: 0;
}

/* Info Box */
.prevention-info {
display: flex;
align-items: center;
gap: 2rem;
background: linear-gradient(135deg, var(--primary-color) 0%, #4a5298 100%);
padding: 2rem 2.5rem;
border-radius: 20px;
color: white;
box-shadow: 0 15px 50px rgba(57,66,134,0.25);
}

.prevention-info__icon {
flex-shrink: 0;
width: 70px;
height: 70px;
background: rgba(255,255,255,0.2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
}

.prevention-info__content {
flex: 1;
}

.prevention-info__content h4 {
font-size: 1.3rem;
font-weight: 700;
margin-bottom: 0.5rem;
}

.prevention-info__content p {
opacity: 0.9;
margin: 0;
line-height: 1.6;
}

.prevention-info__btn {
flex-shrink: 0;
background: white !important;
color: var(--primary-color) !important;
}

.prevention-info__btn:hover {
background: var(--secondary-color) !important;
color: white !important;
transform: translateY(-3px) scale(1.02);
}

/* Bouton de téléchargement */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-download i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-download:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-download:hover i {
    transform: scale(1.1);
}

/* Modal Prevention */
.prevention-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
z-index: 2000;
justify-content: center;
align-items: center;
padding: 2rem;
}

.prevention-modal.show {
display: flex;
}

.prevention-modal__close {
position: absolute;
top: 20px;
right: 30px;
background: none;
border: none;
color: white;
font-size: 3rem;
cursor: pointer;
transition: all 0.3s ease;
line-height: 1;
z-index: 2001;
}

.prevention-modal__close:hover {
color: var(--secondary-color);
transform: scale(1.1);
}

.prevention-modal__image {
max-width: 90%;
max-height: 85vh;
width: auto;
height: auto;
object-fit: contain;
border-radius: 12px;
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
touch-action: pinch-zoom;
}

/* Responsive Prevention Section */
@media (max-width: 1024px) {
.prevention-grid {
grid-template-columns: repeat(2, 1fr);
}

.prevention-card--featured {
grid-column: 1 / -1;
grid-row: auto;
}

.prevention-card--featured .prevention-card__image-wrapper {
min-height: 350px;
}
}

@media (max-width: 768px) {
.prevention-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}

.prevention-card__image-wrapper {
min-height: 300px;
}

.prevention-card--featured .prevention-card__image-wrapper {
min-height: 300px;
}

.prevention-info {
flex-direction: column;
text-align: center;
padding: 2rem 1.5rem;
gap: 1.5rem;
}

.prevention-info__icon {
width: 60px;
height: 60px;
font-size: 1.5rem;
}

.prevention-modal {
    padding: 0.5rem;
}

.prevention-modal__close {
    top: 10px;
    right: 10px;
    font-size: 2rem;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prevention-modal__image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.slider {
height: 400px;
}

.slide-content {
padding: 1.5rem;
justify-content: flex-end;
padding-bottom: 90px;
}

.slide-date {
padding: 0.5rem 1rem;
font-size: 0.7rem;
margin-bottom: 1rem;
}

.slide-content h3 {
font-size: 1.6rem;
margin-bottom: 0.8rem;
max-width: 100%;
}

.slide-content p {
font-size: 0.95rem;
line-height: 1.6;
max-width: 100%;
}

.slider-btn {
width: 45px;
height: 45px;
font-size: 1rem;
}

.slider-btn.prev {
left: 10px;
}

.slider-btn.next {
right: 10px;
}

.slider-dots {
bottom: 15px;
padding: 0.5rem 1rem;
gap: 8px;
}

.dot {
width: 10px;
height: 10px;
}

.slider-progress {
height: 4px;
}
}

@media (max-width: 480px) {
.prevention-card__badge {
padding: 0.4rem 0.8rem;
font-size: 0.75rem;
}

.prevention-card__content {
padding: 1rem;
}

.prevention-card__content h3 {
font-size: 1.1rem;
}

.prevention-info__content h4 {
font-size: 1.1rem;
}
}