@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;500&display=swap');

:root {
    --bg-color: #000000;
    --accent-blue: #00d8ff;
    --dark-blue: #001a2c;
    --text-white: #ffffff;
    --text-muted: rgba(0, 216, 255, 0.6);
    --card-bg: rgba(0, 46, 71, 0.2);
    --glow: 0 0 20px rgba(0, 216, 255, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
}

/* Noise & Grid Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3BaseFilter id='noiseFilter'%3BfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.08;
    pointer-events: none;
    z-index: 50;
}

.grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 216, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 216, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black, transparent 90%);
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
}

/* Navigation */
.nav {
    position: fixed;
    top: 2rem;
    left: 5%;
    right: 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 10px;
    border: 1px solid rgba(0, 216, 255, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 40px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent-blue);
    text-shadow: var(--glow);
}

.nav-links a i {
    margin-right: 6px;
    color: var(--accent-blue);
}

/* Layout */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
    z-index: 10;
    /* background image supprimé pour laisser voir la 3D */
}

.hero::after {
    display: none; /* plus besoin du filtre d'assombrissement */
}

.hero h1 {
    font-size: 4rem;
    color: var(--accent-blue);
    text-shadow: var(--glow);
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
}

.section {
    padding: 100px 10%;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--accent-blue);
    text-shadow: var(--glow);
    border-left: 5px solid var(--accent-blue);
    padding-left: 20px;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 3rem;
    max-width: 800px;
    line-height: 1.6;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 216, 255, 0.2);
}

.card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(0, 216, 255, 0.5);
}

.card-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

/* Boutons et formulaires */
.messenger-btn {
    display: inline-block;
    background: transparent;
    color: var(--accent-blue);
    padding: 15px 30px;
    border-radius: 5px;
    border: 1px solid var(--accent-blue);
    text-decoration: none;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.messenger-btn:hover {
    background: var(--accent-blue);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 216, 255, 0.6);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .nav { flex-direction: column; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero h1 { font-size: 3rem; }
}

/* DROPDOWN MENU */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--accent-blue);
    border-radius: 5px;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5), var(--glow);
    z-index: 200;
    margin-top: 10px;
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.dropdown-content a {
    color: var(--text-white);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 216, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(0, 216, 255, 0.1);
    color: var(--accent-blue);
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* WORKSHOP READER & GLASSMORPHISM */
.reader-container {
    max-width: 900px;
    margin: 150px auto 50px auto;
    background: rgba(0, 26, 44, 0.4);
    border: 1px solid rgba(0, 216, 255, 0.15);
    border-radius: 10px;
    padding: 3.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 216, 255, 0.05);
    z-index: 10;
    position: relative;
}

.tuto-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(0, 216, 255, 0.2);
}

.tuto-badge {
    background: rgba(0, 216, 255, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tuto-badge.level {
    border-color: #ff4a4a;
    color: #ff4a4a;
    background: rgba(255, 74, 74, 0.08);
}

.reader-container h1 {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.reader-container h2 {
    font-size: 1.8rem;
    color: var(--accent-blue);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 216, 255, 0.1);
    padding-bottom: 5px;
}

.reader-container p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 1.8rem;
}

.reader-container ul, .reader-container ol {
    margin-bottom: 1.8rem;
    padding-left: 25px;
}

.reader-container li {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.reader-image-container {
    width: 100%;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 216, 255, 0.2);
    box-shadow: 0 5px 25px rgba(0, 216, 255, 0.1);
}

.reader-image-container img {
    width: 100%;
    display: block;
}

/* Warning alert box */
.tactical-alert {
    background: rgba(255, 74, 74, 0.08);
    border: 1px solid #ff4a4a;
    border-left: 5px solid #ff4a4a;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 2rem 0;
    box-shadow: 0 0 15px rgba(255, 74, 74, 0.15);
}

.tactical-alert h4 {
    color: #ff4a4a;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tactical-alert p {
    margin-bottom: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Tip box */
.tactical-tip {
    background: rgba(0, 216, 255, 0.05);
    border: 1px solid var(--accent-blue);
    border-left: 5px solid var(--accent-blue);
    padding: 1.5rem;
    border-radius: 5px;
    margin: 2rem 0;
    box-shadow: 0 0 15px rgba(0, 216, 255, 0.1);
}

.tactical-tip h4 {
    color: var(--accent-blue);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tactical-tip p {
    margin-bottom: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Code Snippets */
pre {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(0, 216, 255, 0.2);
    padding: 1.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.8rem 0;
    font-family: 'Courier New', Courier, monospace;
}

code {
    color: var(--accent-blue);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
}

pre code {
    color: #fff;
}

/* Table Style */
.wiring-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: 'Rajdhani', sans-serif;
}

.wiring-table th, .wiring-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 216, 255, 0.1);
}

.wiring-table th {
    background: rgba(0, 216, 255, 0.1);
    color: var(--accent-blue);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.wiring-table tr:hover td {
    background: rgba(0, 216, 255, 0.05);
    color: #fff;
}

/* PATREON PAGE STYLES */
.patreon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.patreon-card {
    background: rgba(0, 26, 44, 0.25);
    border: 1px solid rgba(0, 216, 255, 0.15);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.patreon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    transform: scaleX(0);
    transition: all 0.4s ease;
}

.patreon-card.vip::before {
    background: linear-gradient(90deg, transparent, #ff4a4a, transparent);
}

.patreon-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 216, 255, 0.3);
}

.patreon-card.vip:hover {
    border-color: #ff4a4a;
    box-shadow: 0 15px 40px rgba(255, 74, 74, 0.3);
}

.patreon-card:hover::before {
    transform: scaleX(1);
}

.tier-title {
    font-size: 1.6rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.patreon-card.vip .tier-title {
    color: #ff4a4a;
    text-shadow: 0 0 10px rgba(255, 74, 74, 0.4);
}

.tier-price {
    font-size: 2.5rem;
    color: var(--accent-blue);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    margin-bottom: 2rem;
    text-shadow: var(--glow);
}

.patreon-card.vip .tier-price {
    color: #ff4a4a;
    text-shadow: 0 0 15px rgba(255, 74, 74, 0.6);
}

.tier-price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.tier-perks {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.tier-perks li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tier-perks li i {
    color: var(--accent-blue);
    font-size: 0.8rem;
}

.patreon-card.vip .tier-perks li i {
    color: #ff4a4a;
}

.patreon-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.patreon-btn:hover {
    background: var(--accent-blue);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 216, 255, 0.6);
}

.patreon-card.vip .patreon-btn {
    border-color: #ff4a4a;
    color: #ff4a4a;
}

.patreon-card.vip .patreon-btn:hover {
    background: #ff4a4a;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 74, 74, 0.6);
}

@media (max-width: 768px) {
    .reader-container {
        padding: 1.5rem;
        margin-top: 100px;
    }
    .reader-container h1 {
        font-size: 2rem;
    }
    .patreon-grid {
        grid-template-columns: 1fr;
    }
}

