/* CSS extrait de tuto_serveur_et.php */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e92;
    --accent-color: #00d4ff;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --forum-accent: #007bff;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 80px;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #000000, #0a0a0a, #1a1a1a, #2a2a2a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: float 20s infinite linear;
    opacity: 0.6;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== HEADER RESPONSIVE CORRIGÉ ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff 0%, #0f3460 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

/* Menu desktop */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-item.dropdown {
    position: relative;
}

.user-menu {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    margin-top: 0.5rem;
    z-index: 1002;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-color);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.digital-clock {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: var(--accent-color);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Menu mobile - Hamburger */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

#google_translate_element {
    margin-left: 1rem;
}

/* Overlay mobile */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   /* background: rgba(0, 0, 0, 0.8);*/
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

h1 {
    text-align: center;
    color: #00d4ff;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

h2 {
    color: #ff6b6b;
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid #ff6b6b;
    padding-left: 15px;
}

h3 {
    color: #4ecdc4;
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

h4 {
    color: #ffe66d;
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    color: #c9d1d9;
    font-size: 1rem;
}

.intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.intro p {
    font-size: 1.2rem;
    color: #fff;
}

.method-card {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid #4ecdc4;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pros, .cons {
    padding: 20px;
    border-radius: 10px;
}

.pros {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
}

.cons {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid #f44336;
}

.pros h4, .cons h4 {
    margin-top: 0;
}

ul, ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 10px;
    color: #c9d1d9;
}

code {
    background: #0d1117;
    padding: 3px 8px;
    border-radius: 5px;
    color: #79c0ff;
    font-family: 'Courier New', monospace;
}

.code-block {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    color: #79c0ff;
    font-size: 0.9rem;
    line-height: 1.5;
}

.warning {
    background: rgba(255, 152, 0, 0.1);
    border-left: 5px solid #ff9800;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.tip {
    background: rgba(33, 150, 243, 0.1);
    border-left: 5px solid #2196f3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.mod-card {
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.2) 0%, rgba(63, 81, 181, 0.2) 100%);
    border: 2px solid #673ab7;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.mod-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(103, 58, 183, 0.4);
}

.mod-card h4 {
    color: #b388ff;
    margin-top: 0;
}

.badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 10px;
    margin-bottom: 5px;
}

.badge.popular {
    background: #ff6b6b;
}

.badge.easy {
    background: #4ecdc4;
}

.badge.advanced {
    background: #ff9800;
}

/* Table Responsive */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    font-weight: bold;
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h3 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00d4ff 0%, #0f3460 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.4);
}

.social-link img {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-primary);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablette */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .container {
        margin: 0 1rem;
        padding: 30px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

/* Smartphone */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .header {
        padding: 0.8rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    /* Cacher le menu desktop sur mobile */
@media (max-width: 768px) {
    .mobile-menu {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }
}
    
    /* Afficher le menu hamburger */
    .mobile-menu {
        display: flex;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        width: 80%;
        text-align: center;
    }
    
    /* Dropdown en mobile */
    .nav-item.dropdown {
        width: 80%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        padding: 0;
        margin-top: 1rem;
        display: none;
        width: 100%;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-item {
        padding: 0.8rem 1rem;
        margin: 0.5rem 0;
        background: rgba(0, 0, 0, 0.3);
    }
    
    /* Cacher éléments non essentiels en mobile */
    .digital-clock {
        display: none;
    }
    
    #google_translate_element {
        margin-left: 0;
        margin-top: 1rem;
        width: 80%;
    }
    
    /* Main content mobile */
    .container {
        margin: 0 0.5rem;
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .intro {
        padding: 20px;
    }
    
    .method-card {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .mod-grid {
        grid-template-columns: 1fr;
    }
    
    .code-block {
        padding: 15px;
        font-size: 0.8rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(55vh - 60px);
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
        width: 90%;
        padding: 0.8rem 1.5rem;
    }
    
    .nav-item.dropdown {
        width: 90%;
    }
    
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}
