/* GFA Basic - Style Steampunk commun */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #2c1810 0%, #3d2617 50%, #4a2f1a 100%);
    background-attachment: fixed;
    color: #d4c4a0;
    min-height: 100vh;
    line-height: 1.4;
    position: relative;
}

/* Texture steampunk subtile */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(160, 82, 45, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            rgba(139, 69, 19, 0.02) 50px,
            rgba(139, 69, 19, 0.02) 52px
        );
    pointer-events: none;
    z-index: -1;
}

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

/* Header commun */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(145deg, #8b4513, #a0522d);
    border: 3px solid #654321;
    border-radius: 15px;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    pointer-events: none;
}

h1 {
    font-size: 2.2rem;
    color: #f4e4bc;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1rem;
    color: #daa520;
    font-style: italic;
    margin-bottom: 20px;
}

.gfa-logo {
    margin: 20px 0;
}

.gfa-logo img {
    border: 3px solid #654321;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Sections générales */
.section {
    margin-bottom: 40px;
    background: linear-gradient(145deg, #654321, #8b4513);
    border: 2px solid #a0522d;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.section-header {
    background: linear-gradient(145deg, #a0522d, #8b4513);
    color: #f4e4bc;
    padding: 20px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    border-bottom: 2px solid #654321;
}

.section-content {
    background: linear-gradient(145deg, #f5deb3, #ddbf94);
    padding: 30px;
    color: #3d2617;
    line-height: 1.6;
}

/* Contenu principal pour les tutoriels */
.main-content {
    background: linear-gradient(145deg, #f5deb3, #ddbf94);
    border: 3px solid #8b4513;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    color: #2c1810;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    line-height: 1.7;
}

/* Boîtes de téléchargement */
.download-box {
    background: linear-gradient(145deg, #fff8dc, #f5deb3);
    border: 3px solid #8b4513;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.download-box h3 {
    color: #654321;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-decoration: underline;
}

.download-link {
    display: inline-block;
    background: linear-gradient(145deg, #8b4513, #a0522d);
    color: #f4e4bc;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 0;
    transition: all 0.3s ease;
    border: 2px solid #654321;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.download-link:hover {
    background: linear-gradient(145deg, #a0522d, #8b7355);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Listes de mises à jour */
.updates-list {
    background: linear-gradient(145deg, #f5deb3, #ddbf94);
    border: 2px solid #8b4513;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.update-entry {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-left: 4px solid #8b4513;
    border-radius: 5px;
}

.update-date {
    font-weight: bold;
    color: #654321;
}

/* Boîtes de conseils */
.tips-box {
    background: linear-gradient(145deg, #ffe4b5, #ddb892);
    border: 2px solid #8b4513;
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tip-header {
    background: linear-gradient(145deg, #cd5c5c, #a0522d);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.tip-content {
    padding: 20px;
    color: #3d2617;
    line-height: 1.5;
}

/* Grilles d'exemples */
.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.sample-card {
    background: linear-gradient(145deg, #f5deb3, #ddbf94);
    border: 2px solid #8b4513;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sample-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.sample-card img {
    border: 2px solid #654321;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.sample-card a {
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.sample-card a:hover {
    color: #654321;
    text-decoration: underline;
}

/* Badges et étiquettes */
.new-badge {
    background: #ff4444;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

/* Boîtes d'information générales */
.info-box {
    background: linear-gradient(145deg, #ffe4b5, #ddb892);
    border: 2px solid #8b4513;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: #3d2617;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Éléments spécifiques aux tutoriels */
.code-block {
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    color: #00aa00;
    padding: 20px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 20px 0;
    border: 2px solid #654321;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
    overflow-x: auto;
    white-space: pre;
}

.syntax-highlight {
    background: linear-gradient(145deg, #4a2f1a, #3d2617);
    color: #cc99ff;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin: 15px 0;
    border: 2px solid #8b4513;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.comment-block {
    background: linear-gradient(145deg, #e6f3ff, #cce7ff);
    color: #0066cc;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    margin: 15px 0;
    border-left: 4px solid #0066cc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.screenshot {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(145deg, #654321, #8b4513);
    border-radius: 15px;
    border: 2px solid #a0522d;
}

.screenshot img {
    border: 3px solid #2c1810;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    max-width: 100%;
    height: auto;
}

/* Navigation */
.navigation {
    text-align: center;
    margin: 30px 0;
}

.nav-button {
    display: inline-block;
    background: linear-gradient(145deg, #8b4513, #a0522d);
    color: #f4e4bc;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #654321;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.nav-button:hover {
    background: linear-gradient(145deg, #a0522d, #8b7355);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.nav-button img {
    vertical-align: middle;
    margin-left: 10px;
}

/* Éléments de code inline */
.variable {
    color: #006600;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.instruction {
    color: #660099;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Liens généraux */
a {
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #654321;
    text-decoration: underline;
}

/* Informations de contact */
.contact-info {
    font-style: italic;
    color: #ffffff;
    margin: 10px 0;
}

/* Éléments code */
code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #006600;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .sample-grid {
        grid-template-columns: 1fr;
    }
    
    .section-content,
    .main-content {
        padding: 20px;
    }
    
    .code-block {
        font-size: 0.8rem;
        padding: 15px;
    }
}

/* Ajustements spécifiques pour les tutoriels */
.tutorial-container {
    max-width: 1000px;
}