/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

@keyframes pulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.5),
            0 0 30px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 255, 255, 0.7),
            0 0 45px rgba(255, 255, 255, 0.5);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   LOGO
   ========================================== */
.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.neon-text {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2);
    animation: pulse 3s infinite ease-in-out;
    transition: all 0.3s ease;
}

.neon-text:hover {
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 45px rgba(255, 255, 255, 0.6),
        0 0 60px rgba(255, 255, 255, 0.4);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #222222;
}

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

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    flex: 1;
    text-align: center;
}

.content-page {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #000000;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover,
.btn-secondary:hover {
    background-color: #000000;
    color: #ffffff;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.6),
        0 0 60px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0);
}

.btn-secondary {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   EDUCATION SECTION (Page d'accueil)
   ========================================== */
.education-section {
    margin-top: 5rem;
    text-align: left;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

.info-card {
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #666666;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 1rem;
}

.card-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ==========================================
   CTA BOX
   ========================================== */
.cta-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #444444;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.cta-text {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ==========================================
   INLINE LINKS
   ========================================== */
.inline-link,
.rgpd-link {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.inline-link:hover,
.rgpd-link:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    text-decoration-thickness: 2px;
}

/* ==========================================
   FORM
   ========================================== */
.form {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: left;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.form-input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: #ffffff;
    background-color: #000000;
    border: 2px solid #444444;
    border-radius: 8px;
    resize: vertical;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #666666;
}

.form-input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #888888;
    font-style: italic;
}

/* ==========================================
   RESULT CONTAINER
   ========================================== */
.result-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #0a0a0a;
    border: 2px solid #333333;
    border-radius: 12px;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.02);
    animation: fadeIn 0.5s ease-out;
}

.result-container.hidden {
    display: none;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.generated-letter {
    padding: 1.5rem;
    background-color: #000000;
    border: 1px solid #444444;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre-wrap;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

/* ==========================================
   COPY FEEDBACK
   ========================================== */
.copy-feedback {
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    color: #00ff00;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.copy-feedback.hidden {
    display: none;
}

/* ==========================================
   ARTICLE CONTENT (Pages informatives)
   ========================================== */
.article-content {
    margin-top: 2rem;
}

.article-section {
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.article-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #dddddd;
}

.custom-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.custom-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
    line-height: 1.7;
    color: #dddddd;
}

.custom-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
}

/* ==========================================
   HIGHLIGHT BOX
   ========================================== */
.highlight-box {
    background-color: #0f0f0f;
    border-left: 4px solid #ffffff;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 6px;
}

.highlight-box h4 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.1rem;
}

/* ==========================================
   WARNING BOX
   ========================================== */
.warning-box {
    background-color: #1a1a1a;
    border: 2px solid #555555;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.warning-box h4 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.1rem;
}

/* ==========================================
   RIGHTS GRID (Page RGPD)
   ========================================== */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-card {
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.right-card:hover {
    border-color: #666666;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.right-card.highlight {
    border-color: #ffffff;
    background-color: #111111;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.right-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.right-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

/* ==========================================
   STEPS CONTAINER (Page CNIL)
   ========================================== */
.steps-container {
    margin: 2rem 0;
}

.step-card {
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    min-width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.step-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

/* ==========================================
   RESOURCES BOX
   ========================================== */
.resources-box {
    background-color: #0f0f0f;
    border: 1px solid #444444;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.resources-box p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* ==========================================
   DANGER GRID (Page Données)
   ========================================== */
.danger-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.danger-card {
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.danger-card:hover {
    border-color: #666666;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.danger-card.critical {
    border-color: #ff4444;
    background-color: #1a0a0a;
}

.danger-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.danger-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

/* ==========================================
   DATA EXAMPLES
   ========================================== */
.data-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.data-category {
    background-color: #0f0f0f;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.data-category h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.data-category p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #cccccc;
    margin: 0;
}

/* ==========================================
   COLLECTION METHODS
   ========================================== */
.collection-methods {
    margin: 2rem 0;
}

.method-item {
    background-color: #0a0a0a;
    border-left: 3px solid #ffffff;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 6px;
}

.method-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
}

.method-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

/* ==========================================
   PROTECTION TIPS
   ========================================== */
.protection-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background-color: #0a0a0a;
    border: 1px solid #444444;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.tip-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.tip-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

/* ==========================================
   STATS GRID
   ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #444444;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #cccccc;
    margin: 0;
}

/* ==========================================
   LEGAL NOTICE
   ========================================== */
.legal-notice {
    max-width: 700px;
    margin: 3rem auto 2rem;
    padding: 1.5rem;
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #999999;
    text-align: center;
}

.legal-notice strong {
    color: #ffffff;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    margin-top: auto;
    padding-top: 3rem;
    text-align: center;
    color: #666666;
    font-size: 0.9rem;
    border-top: 1px solid #222222;
}

.footer-disclaimer {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-style: italic;
}

.footer-copyright {
    color: #888888;
}

/* ==========================================
   SCROLLBAR (Webkit)
   ========================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .neon-text {
        font-size: 2rem;
    }

    .title {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .main-nav {
        gap: 0.8rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .info-grid,
    .rights-grid,
    .danger-grid,
    .protection-tips {
        grid-template-columns: 1fr;
    }

    .result-container {
        padding: 1.5rem;
    }

    .generated-letter {
        font-size: 0.9rem;
        max-height: 400px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1.3rem;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

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

    .button-group {
        flex-direction: column;
    }

    .button-group .btn-secondary {
        width: 100%;
    }
}

.center-page .container {
    text-align: center;
    max-width: 600px;
}

@media (max-width: 480px) {
    .neon-text {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .title {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    .form-input {
        font-size: 0.95rem;
    }

    .result-container {
        padding: 1rem;
    }

    .legal-notice {
        font-size: 0.8rem;
        padding: 1rem;
    }

    .cta-box {
        padding: 1.5rem;
    }

    .cta-title {
        font-size: 1.2rem;
    }
}
