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

/* Classe pour les lecteurs d'écran (accessibilité) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
    padding-top: 0; /* Pas de padding car la navbar est transparente */
}

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

/* Variables CSS */
:root {
    --twitch-purple: #9146ff;
    --twitch-purple-light: #a855f7;
    --twitch-gray: #1a1a1a;
    --twitch-gray-light: #2d2d2d;
    --twitch-white: #ffffff;
    --twitch-text: #e0e0e0;
    --twitch-text-alt: #b0b0b0;
    --twitch-success: #48bb78;
    --twitch-error: #f56565;
    --twitch-warning: #ed8936;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.logo i {
    font-size: 2rem;
    color: #9146ff;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    transition: color 0.3s ease;
}

/* Styles pour la navbar quand elle est scrollée */
.header.scrolled .logo h1 {
    color: #9146ff;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Styles pour la navbar quand elle est scrollée */
.header.scrolled .nav-link {
    color: #333;
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    background: #9146ff;
    color: white;
}

/* Styles pour le menu profil */
.nav-profile {
    position: relative;
    display: inline-block;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(145, 70, 255, 0.1);
    border: 1px solid rgba(145, 70, 255, 0.3);
    transition: all 0.3s ease;
}

.profile-link:hover {
    background: rgba(145, 70, 255, 0.2);
    border-color: rgba(145, 70, 255, 0.5);
    transform: translateY(-1px);
}

.profile-link i {
    font-size: 1.2rem;
    color: #9146ff;
}

.profile-link span {
    font-weight: 500;
    color: white;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(145, 70, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-profile:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.profile-dropdown a:hover {
    background: rgba(145, 70, 255, 0.1);
    color: #9146ff;
}

.profile-dropdown a i {
    width: 16px;
    text-align: center;
}

/* Responsive pour le menu profil */
@media (max-width: 768px) {
    .profile-link span {
        display: none;
    }
    
    .profile-dropdown {
        right: -50px;
        min-width: 160px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    padding-top: 100px; /* Espace pour la navbar transparente */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particles 20s linear infinite;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.9) 0%, 
        rgba(118, 75, 162, 0.9) 50%,
        rgba(145, 70, 255, 0.8) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge i {
    color: #9146ff;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.title-line {
    display: block;
    color: rgba(255, 255, 255, 0.9);
}

.title-highlight {
    display: block;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #9146ff, #7c3aed);
    color: white;
    box-shadow: 0 10px 30px rgba(145, 70, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(145, 70, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #9146ff, #7c3aed);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-visual {
    position: relative;
    height: 500px;
    animation: fadeInUp 0.8s ease 1s both;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.floating-card i {
    font-size: 2rem;
    color: #9146ff;
}

.floating-card span {
    font-size: 0.9rem;
    font-weight: 600;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 10%;
    right: 20%;
    animation: float 6s ease-in-out infinite 1.5s;
}

.card-3 {
    bottom: 30%;
    left: 20%;
    animation: float 6s ease-in-out infinite 3s;
}

.card-4 {
    bottom: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite 4.5s;
}

/* Search Section */
.search-section {
    padding: 3rem 0;
    background: white;
}

.search-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.search-container h3 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1.1rem;
}

.search-box button {
    padding: 1rem 1.5rem;
    background: #9146ff;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #7c3aed;
}

.search-suggestions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.suggestion-tag {
    background: #f8f9fa;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.suggestion-tag:hover {
    background: #9146ff;
    color: white;
    transform: translateY(-2px);
    border-color: #9146ff;
}

/* FAQ Section */
.faq-section {
    background: white;
}

.faq-section h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #9146ff;
    background: transparent;
    color: #9146ff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: #9146ff;
    color: white;
    transform: translateY(-2px);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h4 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.faq-question i {
    color: #9146ff;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 1rem;
    color: #555;
}

.faq-answer ul,
.faq-answer ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: #555;
}

.faq-answer strong {
    color: #333;
}

/* Loading et erreur FAQ */
.faq-loading, .faq-error {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.faq-loading i, .faq-error i {
    font-size: 3rem;
    color: #9146ff;
    margin-bottom: 1rem;
}

.faq-error i {
    color: #dc3545;
}

.faq-loading p, .faq-error p {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Discussion FAQ */
.faq-discussion {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.faq-item.active .faq-discussion {
    padding: 1.5rem;
    max-height: 2000px;
}

.discussion-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #9146ff;
}

.discussion-header h5 {
    margin: 0;
    color: #9146ff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discussion-header h5 i {
    font-size: 1.2rem;
}

.discussion-comments {
    margin-bottom: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.discussion-comments::-webkit-scrollbar {
    width: 6px;
}

.discussion-comments::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.discussion-comments::-webkit-scrollbar-thumb {
    background: #9146ff;
    border-radius: 10px;
}

.discussion-comments::-webkit-scrollbar-thumb:hover {
    background: #772ce8;
}

.comment-item {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.comment-author i {
    color: #9146ff;
    font-size: 1.2rem;
}

.comment-author strong {
    color: #333;
    font-weight: 600;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-date {
    color: #666;
    font-size: 0.85rem;
}

.btn-delete-comment {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-delete-comment:hover {
    background: #f8d7da;
    color: #c82333;
}

.comment-content {
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.no-comments {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
}

.discussion-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #9146ff;
    box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.1);
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.char-count {
    color: #666;
    font-size: 0.85rem;
}

.btn-comment {
    background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(145, 70, 255, 0.3);
}

.btn-comment:active {
    transform: translateY(0);
}

.btn-comment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.discussion-login-prompt {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    text-align: center;
}

.discussion-login-prompt p {
    margin: 0;
    color: #856404;
}

.discussion-login-prompt a {
    color: #9146ff;
    text-decoration: none;
    font-weight: 600;
}

.discussion-login-prompt a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #9146ff;
    margin-bottom: 1rem;
}

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

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

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

.footer-section a:hover {
    color: #9146ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* Bouton remonter en haut */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(145, 70, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #772ce8 0%, #9146ff 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(145, 70, 255, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top:focus {
    outline: 3px solid rgba(145, 70, 255, 0.5);
    outline-offset: 2px;
}

/* Responsive pour le bouton remonter en haut */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ===== STYLES POUR LOGIN/REGISTER ===== */

/* Main content pour les pages d'authentification */
.main-content {
    padding-top: 120px;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 450px;
    margin: 20px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}



.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #9146ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: #ffffff;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.input-group input::placeholder {
    color: #999;
}

.input-group input:focus {
    outline: none;
    border-color: #9146ff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.1);
    transform: translateY(-2px);
}

.input-group input:disabled {
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.input-group input:disabled::placeholder {
    color: #adb5bd !important;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #9146ff;
}

.forgot-password {
    color: #9146ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #7c3aed;
    text-decoration: underline;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: #9146ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-footer a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.notification.error {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.notification.info {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.notification.warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

/* Messages d'erreur */
.error-message {
    color: var(--twitch-error);
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

/* États de chargement */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

.loading i.fa-spinner {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #a855f7, #8b5cf6) !important;
    cursor: not-allowed !important;
    transform: scale(0.98) !important;
    box-shadow: 0 5px 15px rgba(145, 70, 255, 0.2) !important;
}

.btn-primary:disabled:hover {
    transform: scale(0.98) !important;
    box-shadow: 0 5px 15px rgba(145, 70, 255, 0.2) !important;
}

/* Overlay de chargement */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 20px;
}

.loading-content {
    text-align: center;
    color: #9146ff;
}

.loading-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

.loading-content p {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===== STYLES POUR DASHBOARD ===== */

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 20px;
    min-height: 100vh;
    background: #f8f9fa;
    position: relative;
}

.dashboard-header {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.welcome-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-text h1 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.welcome-text p {
    color: #666;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--twitch-purple) 0%, var(--twitch-purple-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.logout-btn {
    background: var(--twitch-error);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.logout-btn:hover {
    background: #d32f2f;
}

.dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9146ff, #7c3aed);
    border-radius: 16px 16px 0 0;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(145, 70, 255, 0.15);
    border-color: #9146ff;
}

.card-title {
    color: #333;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-content {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

.card-content p {
    margin-bottom: 12px;
}

.card-content strong {
    color: #333;
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    background: rgba(145, 70, 255, 0.05);
    padding-left: 10px;
    border-radius: 8px;
}

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

.coming-soon {
    background: linear-gradient(135deg, #9146ff, #7c3aed);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(145, 70, 255, 0.3);
}

/* ===== LOGO STYLES ===== */

.logo-img {
    width: 100px;
    transition: opacity 0.3s ease;
}

/* Logo transparent par défaut */
.logo-transparent {
    opacity: 1;
}

.logo-scrolled {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Quand la navbar est scrollée, afficher le logo blanc */
.header.scrolled .logo-transparent {
    opacity: 0;
}

.header.scrolled .logo-scrolled {
    opacity: 1;
}

/* ===== ANIMATIONS ===== */

@keyframes particles {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

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

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

.faq-item {
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(7) { animation-delay: 0.7s; }
.faq-item:nth-child(8) { animation-delay: 0.8s; }

/* Scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #9146ff;
    animation: spin 1s ease-in-out infinite;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    body {
        padding-top: 0; /* Pas de padding car la navbar est transparente */
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 20px;
    }

    .nav {
        gap: 1rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

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

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        min-width: 120px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero-visual {
        height: 300px;
    }

    .floating-card {
        padding: 1rem;
    }

    .floating-card i {
        font-size: 1.5rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: 15px;
    }

    .search-box input {
        border-radius: 15px 15px 0 0;
    }

    .search-box button {
        border-radius: 0 0 15px 15px;
    }

    .faq-categories {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .faq-question h4 {
        font-size: 1rem;
    }

    /* Responsive pour les formulaires */
    .form-container {
        padding: 30px;
        margin: 10px;
    }

    .form-header h2 {
        font-size: 1.8rem;
    }

    /* Responsive pour le dashboard */
    .dashboard-container {
        padding: 100px 15px 20px;
    }

    .dashboard-header {
        padding: 25px;
    }

    .welcome-message {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dashboard-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-card {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .hero-visual {
        height: 200px;
    }

    .floating-card {
        padding: 0.8rem;
    }

    .floating-card i {
        font-size: 1.2rem;
    }

    .floating-card span {
        font-size: 0.8rem;
    }

    .search-container h3 {
        font-size: 1.5rem;
    }

    .faq-section h3 {
        font-size: 2rem;
    }

    /* Mobile pour les formulaires */
    .form-container {
        padding: 20px;
        margin: 5px;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .input-group input {
        padding: 12px 15px;
    }

    .btn-primary {
        padding: 15px 25px;
    }
}

/* Responsive pour la grille des informations du compte */
@media (max-width: 768px) {
    .account-info-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Transitions pour les formulaires */
.hidden {
    display: none !important;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.form-container {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

.form-container.hidden {
    display: none !important;
    opacity: 0;
    transform: translateX(100px);
}

/* Animation d'apparition */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-container:not(.hidden) {
    animation: slideInFromRight 0.3s ease-out;
}