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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ff6b6b;
    --accent-secondary: #ee5a24;
    --text-light: #ffffff;
    --text-dark: #333333;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header */
header {
    background: rgba(118, 75, 162, 0.85);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.horloge {
    color: var(--text-light);
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none; /* Caché par défaut, contrôlé par JS */
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    padding: 10rem 0 4rem 0;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    min-height: 70vh;
    justify-content: center;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    margin-top: 2rem;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 600px;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    background: linear-gradient(45deg, var(--text-light), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    line-height: 1.6;
}

.hero-icons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
    padding-top: 5rem;
}

.animated-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: iconFloat 3s ease-in-out infinite;
}

.animated-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.icon-1 { animation-delay: 0s; }
.icon-2 { animation-delay: 0.5s; }
.icon-3 { animation-delay: 1s; }

.hero-button {
    text-align: left;
    animation: fadeInUp 1s ease 0.8s both;
}

.cta-button-orange {
    display: inline-block;
    background: linear-gradient(45deg, #ff8c00, #ff6600);
    color: var(--text-light);
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.6);
    background: linear-gradient(45deg, #ff9500, #ff7700);
}

/* Section Infos */
.infos {
    display: none;
    margin-top: 6rem;
    padding: 4rem 0;
    background: var(--text-light);
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    min-height: calc(100vh - 240px);
}

.infos-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.infos h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

#infos-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    text-align: left;
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    white-space: pre-line;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Floating Shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 80%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    left: 60%;
    animation-delay: 4s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

/* Section ToolisGame */
.toolisgame {
    display: none;
    padding: 10rem 0 4rem 0;
    color: var(--text-light);
    flex-direction: column;
    min-height: 70vh;
    justify-content: center;
    position: relative;
}

.toolisgame-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.toolisgame-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 600px;
}

.toolisgame-text {
    text-align: left;
}

.toolisgame h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    background: linear-gradient(45deg, var(--text-light), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.toolisgame p {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    line-height: 1.6;
}



.toolisgame-icons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
    padding-top: 5rem;
}

/* Popup ToolisGame */
.toolisgame-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.toolisgame-popup {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: popupAppear 0.3s ease;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.toolisgame-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
}

.toolisgame-popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.toolisgame-popup-content {
    padding: 2rem;
}

.popup-step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-step label {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1rem;
}

.popup-step input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.popup-step input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.popup-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 1rem;
}

.popup-btn:hover {
    transform: translateY(-2px);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.checkbox-container label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Options de connexion dans la popup */
.connexion-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.connexion-option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.connexion-option-btn:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.option-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
}

.option-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.option-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        color: var(--text-dark);
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem 0 4rem 0;
        min-height: 50vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-left {
        text-align: center;
        max-width: 100%;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-button {
        text-align: center;
    }

    .hero-icons {
        flex-direction: row;
        gap: 1rem;
        margin-top: 1rem;
        padding-top: 2rem;
    }

    .animated-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-left {
        gap: 2.5rem;
    }

    .animated-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .cta-button-orange {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Section Autres outils */
.fonctionnalites {
    display: none;
    margin-top: 6rem;
    padding: 4rem 0;
    background: var(--text-light);
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    min-height: calc(100vh - 240px);
}

.fonctionnalites-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.fonctionnalites h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

.dossier-item, .fichier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.dossier-item:hover, .fichier-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dossier-nom, .fichier-nom {
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
}

.fichier-nom small {
    color: #6c757d;
    font-weight: normal;
    display: block;
    margin-top: 0.2rem;
}

.btn-contenu, .btn-telecharger, .btn-retour {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-contenu:hover, .btn-telecharger:hover, .btn-retour:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-retour {
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #6c757d, #495057);
}

#contenu-dossier h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Section Paramètres */
.parametres {
    display: none;
    margin-top: 6rem;
    padding: 4rem 0;
    background: var(--text-light);
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    min-height: calc(100vh - 240px);
}

.parametres-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.parametres h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

.parametres-liste {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.parametre-item-liste {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.parametre-item-liste:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.parametre-icon {
    font-size: 2rem;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parametre-info {
    flex: 1;
}

.parametre-info h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.parametre-info p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.parametre-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.parametres-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.parametre-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.parametre-item label {
    font-weight: 500;
    color: var(--text-dark);
    min-width: 150px;
}

.parametre-item select {
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    background: white;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: var(--transition);
}

.parametre-item select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.parametre-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.parametre-item span {
    color: #6c757d;
    font-size: 0.9rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.info-label {
    font-weight: 500;
    color: var(--text-dark);
}

.info-value {
    color: #6c757d;
    font-family: monospace;
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.parametres-actions {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-save, .btn-reset {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-save {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-reset {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    color: white;
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Thèmes */
.theme-dark {
    --primary-color: #8b5fbf;
    --secondary-color: #9c7dd4;
    --accent-color: #ff8a80;
    --text-light: #ffffff;
    --text-dark: #e0e0e0;
    background: linear-gradient(135deg, #2c1810 0%, #1a1a2e 100%);
    color: var(--text-dark);
}

.theme-dark .hero,
.theme-dark .infos,
.theme-dark .fonctionnalites,
.theme-dark .parametres {
    background: rgba(30, 30, 50, 0.9);
}

.theme-dark .parametres-section,
.theme-dark .dossier-item,
.theme-dark .fichier-item,
.theme-dark #infos-text {
    background: #1e1e32;
    color: var(--text-dark);
    border-left-color: var(--primary-color);
}

.theme-light {
    --primary-color: #5a67d8;
    --secondary-color: #667eea;
    --accent-color: #ed64a6;
    --text-light: #2d3748;
    --text-dark: #1a202c;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: var(--text-dark);
}

.theme-light .hero,
.theme-light .infos,
.theme-light .fonctionnalites,
.theme-light .parametres {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Désactiver les animations */
.no-animations *,
.no-animations *::before,
.no-animations *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

/* Responsive pour les paramètres */
@media (max-width: 768px) {
    .nav-right {
        gap: 1rem;
    }
    
    .horloge {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
    
    .parametre-item-liste {
        padding: 1rem;
    }
    
    .parametre-icon {
        font-size: 1.5rem;
        width: 40px;
    }
    
    .parametre-info h3 {
        font-size: 1rem;
    }
    
    .parametre-info p {
        font-size: 0.8rem;
    }
} 