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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    color: #333;
}

/* Dropdown de langue */
.language-dropdown {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: bold;
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    justify-content: space-between;
}

.language-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #3498db;
    border-radius: 8px;
    margin-top: 5px;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.language-list.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 0;
}

.language-option:first-child {
    border-radius: 6px 6px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 6px 6px;
}

.language-option:hover {
    background: rgba(52, 152, 219, 0.1);
}

.language-option.selected {
    background: #3498db;
    color: white;
}

/* Conteneurs d'annonces AdSense */
.ad-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.header-ad {
    margin-top: 20px;
    margin-bottom: 40px;
}

.middle-ad {
    margin: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
}

.results-ad {
    margin: 20px 0 30px 0;
}

.footer-ad {
    margin: 40px 0 20px 0;
}

/* Responsive pour les annonces */
@media (max-width: 768px) {
    .ad-container {
        margin: 20px 0;
    }

    .header-ad,
    .middle-ad,
    .results-ad,
    .footer-ad {
        margin: 20px 0;
    }
}

/* Carrousel d'arrière-plan */
.carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    filter: blur(0.5px);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: opacity;
    transition: opacity 4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.slide.active {
    opacity: 1;
}

/* Contenu principal */
.content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Questionnaire */
.questionnaire {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin-bottom: 40px;
}

.question {
    display: none;
    text-align: center;
}

.question.active {
    display: block;
}

.question h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.question select {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 1.2rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    margin-bottom: 30px;
    margin-left: auto;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.question select:focus {
    outline: none;
    border-color: #3498db;
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.option-btn {
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 120px;
}

.option-btn:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.option-btn.selected {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Boutons */
.btn-next, .btn-prev, .btn-calculate, .btn-restart {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-next, .btn-calculate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-prev {
    background: #95a5a6;
    color: white;
}

.btn-restart {
    background: #e74c3c;
    color: white;
    margin-top: 20px;
}

.btn-next:hover, .btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-prev:hover {
    background: #7f8c8d;
}

.btn-restart:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Boutons désactivés */
.btn-next.disabled,
.btn-next:disabled {
    background: #bdc3c7 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-next.disabled:hover,
.btn-next:disabled:hover {
    background: #bdc3c7 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Résultats */
.results {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.results h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.result-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.result-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.calorie-result, .steps-result {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 15px;
}

.calorie-number, .steps-number {
    font-size: 3rem;
    font-weight: bold;
    color: #3498db;
}

.calorie-unit, .steps-unit {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-left: 5px;
}

.result-description {
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.6;
}

/* Recommandations */
.recommendations {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.recommendations h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    color: #5a6c7d;
}

.recommendations li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .questionnaire {
        padding: 30px 20px;
        margin: 20px;
    }

    .question h2 {
        font-size: 1.5rem;
    }

    .options {
        flex-direction: column;
        align-items: center;
    }

    .option-btn {
        width: 100%;
        max-width: 250px;
    }

    .result-cards {
        grid-template-columns: 1fr;
    }

    .calorie-number, .steps-number {
        font-size: 2.5rem;
    }
}

