
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-dark: #e8f4f8;
    --primary-medium: #d1e7f0;
    --primary-light: #b8dae8;
    --accent: #2196f3;
    --accent-light: #64b5f6;
    --light-gray: #37474f;
    --dark-gray: #263238;
    --text: #024277;
    --white: #ffffff;
}

body {
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Vidéo de fond */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
}

/* Overlay semi-transparent */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, rgba(232, 244, 248, 0.1), rgba(192, 231, 248, 0.9));
    pointer-events: none;
}

/* Header avec menu hamburger à droite */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(33, 150, 243, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    margin-right: 10px;
    font-size: 2rem;
    color: var(--accent);
}

/* Menu de navigation principal */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 8px;
}

nav ul li a:hover {
    background: rgba(33, 150, 243, 0.1);
    transform: translateY(-2px);
}

nav ul li a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

nav ul li a.active {
    background: var(--accent);
    color: white;
}

/* Menu hamburger à droite */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    transition: 0.3s;
}

/* Contenu principal */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Réduction de mouvement pour accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.page {
    display: none;
    animation: fadeIn 0.6s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.2);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--light-gray);
    max-width: 800px;
    position: relative;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--light-gray);
    max-width: 800px;
    position: relative;
}

.content-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(33, 150, 243, 0.15);
}

/* Fallback pour navigateurs sans support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .content-section {
        background: rgba(255, 255, 255, 0.95);
    }

    header {
        background: rgba(255, 255, 255, 1);
    }
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.content-section h2 i {
    margin-right: 10px;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--light-gray);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--light-gray);
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(33, 150, 243, 0.2);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.footer-section h3 i {
    margin-right: 10px;
}

.footer-section p, .footer-section a {
    color: var(--light-gray);
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--light-gray);
}

/* Responsive design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--white);
        width: 250px;
        height: calc(100vh - 70px);
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-left: 1px solid rgba(33, 150, 243, 0.2);
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .header-container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    main {
        padding: 0 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }
}