* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    color: #0c162c;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Montserrat", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header & Navigation */
header {
    background-color: #0c162c;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    max-height: 50px;
    width: auto;
}

.logo {
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 0.8;
}

.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 4px;
    margin-top: 0;
    top: 100%;
    left: 0;
    padding-top: 0.5rem;
}

.dropdown-content a {
    color: #0c162c;
    padding: 12px 16px;
    display: block;
    font-weight: 400;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown-content:hover {
    display: block;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0c162c 0%, #1a2847 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: white;
    color: #0c162c;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Formations Section */
.formations-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.formations-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    color: #0c162c;
}

.formation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.formation-card {
    height: 100%;
    background: white;
    border: 2px solid #0c162c;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(12, 22, 44, 0.15);
}

.formation-card-header {
    margin-bottom: 1rem;
}

.formation-badge {
    display: inline-block;
    background: #0c162c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.formation-card h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 0.5rem;
    color: #0c162c;
}

.formation-card p {
    color: #666;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.formation-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.formation-card-footer span {
    font-weight: 600;
}

/* Formation Detail Page */
.formation-detail {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.formation-header {
    background-color: #0c162c;
    color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.formation-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.formation-header p {
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.formation-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-box {
    background: white;
    border: 2px solid #0c162c;
    padding: 1.5rem;
    border-radius: 8px;
}

.info-box h4 {
    color: #0c162c;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-box p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
}

.section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.section h2 {
    color: #0c162c;
    margin-bottom: 1rem;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.section p {
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-value {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #0c162c;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.program-list {
    list-style: none;
    padding: 0;
}

.program-list li {
    padding: 1rem;
    border-left: 3px solid #0c162c;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.pdf-link {
    display: inline-block;
    background: #0c162c;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    font-weight: 600;
}

.pdf-link:hover {
    opacity: 0.9;
}

.devis-button {
    background: #0c162c;
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin: 2rem auto;
    font-family: "Montserrat", sans-serif;
    transition: transform 0.3s;
    width: 100%;
    max-width: 400px;
}

.devis-button:hover {
    transform: scale(1.05);
}

.back-button {
    background: transparent;
    border: 2px solid #0c162c;
    color: #0c162c;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 2rem;
    font-family: "Montserrat", sans-serif;
}

.back-button:hover {
    background: #0c162c;
    color: white;
}

/* Contact Form */
.contact-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0c162c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0c162c;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: #0c162c;
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

.submit-button:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: #0c162c;
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: white;
    color: #0c162c;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.home-content {
    display: block;
}

.home-content.hidden {
    display: none;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: #0c162c;
        padding: 1rem 0;
        margin-top: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 1rem;
        display: block;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 0;
    }

    .dropdown-content a {
        color: white;
    }

    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .hero {
        padding: 4rem 1rem;
    }

    .formations-section {
        padding: 0 1rem;
    }

    .formation-grid {
        grid-template-columns: 1fr;
    }

    .formation-info {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
    }

    .formation-card {
        padding: 1.5rem;
    }
}
