/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1A1A2E; /* Fond bleu nuit foncé */
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* OPTIMISATION SEO : Images toujours responsives */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* OPTIMISATION SEO : Accessibilité Clavier (Focus) */
a:focus {
    outline: 2px dashed #FF8C00;
    outline-offset: 4px;
}

/* Navigation (Menu principal) */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: rgba(26, 26, 46, 0.95);
    position: fixed;
    width: 100%;
    top: 0; 
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    z-index: 1000;
}

.logo {
    font-weight: 900;
    font-size: 1.2rem;
    color: #FF8C00; /* Orange Hytale */
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001; /* Pour rester au-dessus du menu mobile */
}

/* Logo image dans le menu */
.nav-logo-img {
    height: 40px;
    width: auto;
}

.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-nav {
    color: #ddd;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
    text-transform: uppercase;
    padding: 8px 15px;
    border-radius: 5px;
}

.btn-nav:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu (Caché sur PC) */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #FF8C00;
    z-index: 1001;
}

/* Bandeau Construction */
.construction-banner {
    background: #FFCC00;
    color: #000;
    text-align: center;
    padding: 8px;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 900;
    margin-top: 65px;
    background-image: repeating-linear-gradient(
        45deg,
        #FFCC00,
        #FFCC00 10px,
        #FFB300 10px,
        #FFB300 20px
    );
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(15, 12, 41, 0.7), rgba(36, 36, 62, 0.7)), url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px 40px 20px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

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

/* CORRECTION LOGO : Le cercle est sur le conteneur */
.main-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid #FF8C00;
    box-shadow: 0 0 50px rgba(255, 140, 0, 0.4);
    background: radial-gradient(circle at 30% 30%, #2a2a40, #1A1A2E); 
}

/* CORRECTION LOGO : L'image est libre à l'intérieur */
.main-logo-img {
    width: 75%; /* Ajuste la taille de l'image DANS le cercle */
    height: auto;
    object-fit: contain;
    display: block;
    /* On retire les bordures/fond de l'image elle-même */
    border-radius: 0; 
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
    line-height: 1.1;
}

.highlight {
    color: #FF8C00;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 140, 0, 0.3);
    z-index: -1;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: #eee;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Boutons */
.cta-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #FF8C00;
    color: white;
    border: 2px solid #FF8C00;
    box-shadow: 0 5px 0 #cc7000;
}

.btn-primary:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #cc7000;
    background-color: #ff9933;
    border-color: #ff9933;
}

.btn-primary:active {
    transform: translateY(5px);
    box-shadow: none;
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary:active {
    transform: translateY(5px);
    box-shadow: none;
}

/* Section YouTube */
.youtube-feed {
    padding: 60px 20px;
    background-color: #0d0d14;
    text-align: center;
    box-shadow: inset 0 10px 20px -10px rgba(0,0,0,0.5);
}

.youtube-feed h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    border-bottom: 3px solid #FF8C00;
    padding-bottom: 10px;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.video-card {
    width: 320px;
    background: #1A1A2E;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: #FF8C00;
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.video-card p {
    padding: 15px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Features */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 80px 20px;
    background-color: #111;
    border-top: 5px solid #FF8C00;
}

.card {
    background: linear-gradient(145deg, #1A1A2E, #16213e);
    padding: 40px 30px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #FF8C00;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.1);
}

.icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 140, 0, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 12px;
    color: #FF8C00;
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.card h3 {
    margin-bottom: 15px;
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
}

.card p {
    color: #aaa;
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #0a0a0f;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Adjustments (MENU MOBILE ICI) */
@media (max-width: 768px) {
    /* Afficher le bouton hamburger */
    .hamburger {
        display: block;
    }

    /* Transformer la liste de liens en menu déroulant plein écran */
    .social-links {
        position: fixed;
        top: 0;
        left: -100%; /* Caché à gauche par défaut */
        width: 100%;
        height: 100vh;
        background-color: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s ease-in-out;
        z-index: 1000;
    }

    /* Classe ajoutée par JS pour afficher le menu */
    .social-links.active {
        left: 0;
    }

    .btn-nav {
        font-size: 1.5rem; /* Plus gros sur mobile */
        padding: 15px 30px;
        width: 80%;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero { padding-top: 100px; }
    .btn { width: 100%; justify-content: center; }
}
/* --- PAGE ARTICLES & TUTORIELS --- */

/* Conteneur principal de l'article */
.article-header {
    padding: 120px 20px 60px 20px; /* Plus d'espace en haut pour le menu fixe */
    background: linear-gradient(rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 1)), url('images/background.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    border-bottom: 2px solid #FF8C00;
}

.article-header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}

.article-meta {
    color: #FFCC00;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Corps du texte */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.article-content h2 {
    color: #FF8C00;
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 4px solid #FF8C00;
    padding-left: 15px;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

/* Style des Blocs de Code (Commandes) */
pre {
    background: #0a0a0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto; /* Scroll horizontal si la ligne est longue */
    margin-bottom: 25px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    position: relative;
}

/* Petit label "BASH" ou "CMD" en haut du code */
pre::before {
    content: 'TERMINAL';
    position: absolute;
    top: 0;
    right: 0;
    background: #333;
    color: #aaa;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-bottom-left-radius: 8px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #FFCC00; /* Jaune pour le code */
}

/* Bouton retour */
.back-link {
    display: inline-block;
    margin-top: 40px;
    color: #FF8C00;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #FF8C00;
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
}

.back-link:hover {
    background: #FF8C00;
    color: white;
}
/* --- MODULES TUTORIELS (VIDÉO & LIENS) --- */

/* Conteneur Vidéo Responsive (16:9) */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 140, 0, 0.3); /* Bordure orange subtile */
    margin: 30px 0;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Bloc de liaison entre les tutos (Cross-link) */
.tuto-switch {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #FFCC00; /* Barre jaune */
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
}

.tuto-switch a {
    color: #FFCC00;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed #FFCC00;
    transition: 0.3s;
}

.tuto-switch a:hover {
    color: white;
    border-bottom-style: solid;
}

/* Icone info pour le switch */
.info-icon {
    font-size: 1.5rem;
}