* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Header - Navigation améliorée */
header {
    background: linear-gradient(135deg, #dc3545 0%, #000000 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white !important;
    flex-shrink: 0;
}

.logo-red {
    color: #dc3545;
}

/* Menu burger pour mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation complètement à droite */
.nav-container {
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-container > a {
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-container > a:hover {
    color: #dc3545 !important;
    background: rgba(255,255,255,0.1);
}

.nav-center {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-center li {
    position: relative;
}

.nav-center a {
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-center a:hover {
    color: #dc3545 !important;
    background: rgba(255,255,255,0.1);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 5px;
    right: 0;
    top: 100%;
    margin-top: 0;
}

.dropdown-content a {
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:hover {
    background: #f8f9fa;
    color: #dc3545 !important;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #dc3545 0%, #000000 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    background: #dc3545;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.cta-button:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* À propos Section */
.about {
    background: white;
    padding: 4rem 0;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    color: #dc3545;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.8;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Formations Section */
.formations {
    background: white;
    padding: 4rem 0;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.formations h2 {
    text-align: center;
    color: #dc3545;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.formation-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}

.formation-card.clickable {
    cursor: pointer;
}

.formation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.formation-card h3 {
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.formation-card p {
    color: #666;
    line-height: 1.6;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover,
.close:focus {
    color: #dc3545;
}

.modal-content h2 {
    color: #dc3545;
    margin-bottom: 1rem;
    margin-top: 0;
}

.modal-content h3 {
    color: #dc3545;
    margin: 1.5rem 0 0.5rem 0;
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #666;
}

.modal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.modal-content li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #dc3545 0%, #000000 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}

/* RESPONSIVE MENU */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-center {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #dc3545 0%, #000000 100%);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        z-index: 999;
    }
    
    .nav-center.active {
        display: flex;
    }
    
    .nav-center li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-center a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        background: rgba(0,0,0,0.3);
        box-shadow: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    /* Tarif, Horaire, Contact restent affichés */
    .nav-right {
        font-size: 0.9rem;
    }
    
    .nav-right a {
        padding: 0.5rem 0.8rem;
    }
}

/* Menu burger mobile */
@media (max-width: 768px) {
    /* Cacher le menu sur mobile */
    .nav-container {
        display: none !important;
    }
    
    /* Afficher le menu burger */
    .menu-toggle {
        display: flex !important;
    }
    
    /* Menu burger mobile */
@media (max-width: 768px) {
    /* Cacher le menu sur mobile */
    .nav-container {
        display: none !important;
    }
    
    /* Afficher le menu burger */
    .menu-toggle {
        display: flex !important;
    }
    
    /* Quand le menu burger est activé */
    .nav-container.active {
        display: flex !important;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px); /* Hauteur = écran - header */
        background: linear-gradient(135deg, #dc3545 0%, #000000 100%);
        flex-direction: column;
        padding: 1rem 0;
        z-index: 999;
        overflow-y: auto; /* SCROLL dans le menu */
    }
    
    /* Afficher le dropdown en mode mobile */
    .nav-container.active .dropdown {
        display: block !important;
        position: static !important;
        width: 100% !important;
    }
    
    .nav-container.active .dropdown-content {
        display: block !important;
        position: static !important;
        background: none !important;
        box-shadow: none !important;
        width: 100% !important;
    }
    
    .nav-container.active .dropbtn {
        display: none !important; /* Cache le bouton "Menu" */
    }
    
    .nav-container.active a {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: white !important;
        text-decoration: none !important;
    }
}

/* Responsive pour la section hero */
.hero-content {
    text-align: center;
    padding: 2rem 1rem;
}

.hero-content img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    display: block;
    margin: 1rem auto;
}

/* Version mobile */
@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-content img {
        max-width: 90% !important;
        width: 280px !important;
        height: auto !important;
        margin: 1rem auto;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
        margin-top: 1rem;
    }
}

/* Version tablette */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-content img {
        max-width: 80% !important;
        width: 400px !important;
        height: auto !important;
    }
}
