/* Reset et base Trajektoire */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

.quiz-main {
    max-width: 860px;
    padding: 20px;
}

/* Header Trajektoire */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    width: auto;
}

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

.nav-link {
    text-decoration: none;
    color: #4582a0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2c5f7a;
}

.nav-link-cta {
    background: #4582a0;
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.nav-link-cta:hover {
    background: #2c5f7a;
}

/* Style pour les éléments de menu mis en avant */
.nav-link-highlighted {
    background: transparent !important;
    color: #ff9800 !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.nav-link-highlighted:hover {
    color: #f57c00 !important;
    transform: translateY(-2px);
}

.nav-link-highlighted .highlight-icon {
    font-size: 1rem;
    animation: sparkle-menu 2s ease-in-out infinite;
}

@keyframes sparkle-menu {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

/* Sous-menus */
.nav-item {
    position: relative;
}

.nav-item.has-submenu > a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
    margin-left: 0.2rem;
}

.nav-item.has-submenu:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 240px;
    padding: 0.75rem 0;
    list-style: none;
    display: none;
    z-index: 1000;
    margin-top: 0;
}

/* Zone invisible pour maintenir le hover */
.submenu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.nav-item.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    padding: 0;
}

.submenu-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #4582a0;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.submenu-link:hover {
    background: #f0f8ff;
    color: #2c5f7a;
}

/* Bannière Quiz */
.quiz-banner {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    padding: 0.875rem 0;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.quiz-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.quiz-banner-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.quiz-banner-icon {
    font-size: 1.25rem;
    animation: sparkle-banner 2s ease-in-out infinite;
}

@keyframes sparkle-banner {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.15) rotate(15deg);
    }
}

.quiz-banner-message {
    line-height: 1.4;
}

.quiz-banner-btn {
    background: white;
    color: #ff9800;
    padding: 0.625rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.quiz-banner-btn:hover {
    background: #fff5e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quiz-banner-btn .arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.quiz-banner-btn:hover .arrow {
    transform: translateX(4px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

/* Footer Trajektoire */
.footer {
    background: #2c5f7a;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: #74b9ff;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #4582a0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: white;
}

/* Responsive pour header/footer */
@media (max-width: 768px) {
    .quiz-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .quiz-banner-text {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quiz-banner-message {
        font-size: 0.9rem;
    }
    
    .quiz-banner-btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        z-index: 1000;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list li {
        padding: 0.5rem 1rem;
        text-align: left;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        text-align: left;
        width: 100%;
    }
    
    /* Sous-menus mobile */
    .nav-item.has-submenu .submenu {
        position: static;
        box-shadow: none;
        background: white;
        margin: 0.5rem 0 0 0;
        border-radius: 4px;
        border: 1px solid #e9ecef;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
        display: block;
    }
    
    .nav-item.has-submenu.submenu-open .submenu {
        max-height: 300px;
        padding: 0.5rem 0;
    }
    
    .nav-item.has-submenu.submenu-open .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .submenu-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        color: #4582a0;
        font-weight: 400;
        text-align: left;
        display: block;
        width: 100%;
    }
    
    .submenu-link:hover {
        background: #f0f8ff;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .mobile-menu-toggle span {
        transition: all 0.3s ease;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

.card { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.06); margin: 20px 0; }
.card h2 { margin-top: 0; }

.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; text-decoration: none; border: 1px solid #d1d5db; color: #111827; background: #fff; transition: all .2s ease; font-size: 16px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 12px rgba(0,0,0,0.06); }
.btn.primary { background: #4582a0; color: #fff; border-color: #4582a0; font-size: 16px; }
.btn.primary:hover { background: #2c5f7a; border-color: #2c5f7a; }
.btn.ghost { background: transparent; color: #4582a0; border-color: #4582a0; font-size: 16px; }
.btn.ghost:hover { background: #f8f9fa; color: #2c5f7a; border-color: #2c5f7a; }

.progress { width: 100%; height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.progress .bar { height: 100%; background: linear-gradient(90deg, #4582a0, #2c5f7a); }

.options { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 16px 0; }
.option { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 10px; cursor: pointer; }
.option:hover { border-color: #4582a0; background: #f8fbfd; }
.option input[type="radio"] { width: 18px; height: 18px; }

.actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; }

.bullets { padding-left: 18px; }
.bullets li { margin: 6px 0; }

.alert { padding: 12px 14px; border-radius: 8px; margin: 10px 0; }
.alert.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.muted { color: #6b7280; }
.small { font-size: 14px; }

.result { background: #f8fafc; border: 1px solid #e5e7eb; padding: 16px; border-radius: 10px; margin-bottom: 16px; }

/* Responsive tweaks */
@media (min-width: 600px) {
  .options { grid-template-columns: 1fr 1fr; }
}
