/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #000000;
    --card-bg: #050505;
    --text-main: #FFFFFF;
    --text-dim: #666666;
    --border-color: #333333;
    
    /* Couleurs Spécifiques */
    --accent-agon: #FFFFFF;
    --accent-arsenal: #ff0000;

    /* Fontes */
    --font-title: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* =========================================
   2. EFFETS VISUELS & BACKGROUND
   ========================================= */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: -1; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* =========================================
   3. NAVIGATION (LOGIN & DEVISE)
   ========================================= */

/* Switch Devise (Gauche) */
.currency-switch {
    position: absolute; 
    top: 25px; 
    left: 25px; 
    background: transparent;
    padding: 10px 20px;
    color: var(--text-dim);
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
}

.currency-switch:hover {
    color: var(--text-main);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* Login (Droite) */
.top-nav {
    position: absolute;
    top: 40px;
    right: 50px;
    z-index: 10;
}

.login-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: var(--text-main);
}

.login-icon {
    fill: currentColor;
    width: 14px;
    height: 14px;
}

/* =========================================
   4. TITRES & LAYOUT GÉNÉRAL
   ========================================= */
.page-title {
    font-family: var(--font-title);
    font-size: 3rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding-top: 50px;
}

.pricing-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: stretch; /* Hauteur égale */
    width: 100%;
    max-width: 1100px;
    flex-wrap: nowrap; /* Force l'alignement horizontal sur desktop */
}

/* =========================================
   5. CARTES (BASE & SPÉCIFIQUES)
   ========================================= */

/* --- Style de base pour toutes les cartes --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

/* --- LOGIQUE DES 3 PLANS --- */

/* PLAN 1: STANDARD (Gauche) */
.card:nth-child(1) {
    border-color: #333;
}
.card:nth-child(1):hover {
    border-color: #555;
}

/* PLAN 2: AGON (Milieu - Focus) */
.card:nth-child(2) {
    border: 1px solid var(--accent-agon);
    background: #080808;
    transform: scale(1.05); /* Plus grand */
    z-index: 10;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.card:nth-child(2):hover {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

/* PLAN 3: ARSENAL (Droite - Ultimate) */
.card:nth-child(3) {
    border: 1px solid var(--accent-arsenal);
    /* Dégradé subtil rouge sombre */
    background: linear-gradient(180deg, rgba(20,0,0,1) 0%, rgba(5,5,5,1) 100%);
}
.card:nth-child(3):hover {
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.25);
    border-color: #ff3333;
}

/* =========================================
   6. CONTENU INTERNE DES CARTES
   ========================================= */

/* Header & Badges */
.card-header {
    padding: 40px 40px 20px;
}

/* Badge Agon (Milieu) */
.badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--accent-agon);
    color: #000;
    padding: 5px 15px;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Badge Arsenal (Droite) */
.badge-2 {
    position: absolute;
    top: 0; right: 0;
    background: var(--accent-arsenal);
    color: #FFF;
    padding: 5px 15px;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

/* Titres des plans */
.plan-name {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--text-dim);
    margin-bottom: 10px;
    transition: color 0.3s;
}

/* Wrapper Titre + Image (Optionnel si tu l'utilises) */
.plan-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}
.plan-img {
    width: 35px; height: auto;
    object-fit: contain;
}

/* Couleurs de titres spécifiques */
.card:nth-child(2) .plan-name { color: var(--accent-agon); }
.card:nth-child(3) .plan-name { 
    color: var(--accent-arsenal);
    text-shadow: 0 0 15px rgba(255,0,0,0.3);
}

/* Prix */
.price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}
.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dim);
}

/* Liste des fonctionnalités */
.card-body {
    padding: 0 40px 40px;
    flex-grow: 1; /* Pousse le footer vers le bas */
}

.features {
    list-style: none;
    margin-top: 30px;
}

.features li {
    margin-bottom: 15px;
    color: var(--text-dim);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features li.active {
    color: var(--text-main);
}

/* Icones */
.icon {
    width: 16px; height: 16px;
    fill: var(--text-dim);
}
.icon.active {
    fill: var(--text-main);
}
/* Icones rouges pour Arsenal */
.card:nth-child(3) .icon.active {
    fill: var(--accent-arsenal);
}

/* =========================================
   7. BOUTONS
   ========================================= */
.card-footer {
    padding: 0 40px 40px;
}

.btn {
    display: block;
    width: 100%;
    padding: 18px;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s;
    cursor: pointer;
}

/* Bouton Outline (Standard) */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dim);
}
.btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

/* Bouton Fill (Agon par défaut) */
.btn-fill {
    background: var(--text-main);
    color: #000;
    border: 1px solid var(--text-main);
}
.btn-fill:hover {
    background: transparent;
    color: var(--text-main);
}

/* Bouton Fill (Spécifique Arsenal - ROUGE) */
.card:nth-child(3) .btn-fill {
    background: var(--accent-arsenal);
    border-color: var(--accent-arsenal);
    color: #FFF;
}
.card:nth-child(3) .btn-fill:hover {
    background: transparent;
    color: var(--accent-arsenal);
    box-shadow: inset 0 0 15px rgba(255, 0, 0, 0.2);
}

/* =========================================
   8. RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 850px) {
    .pricing-container {
        flex-direction: column;
        align-items: center;
        padding-bottom: 40px;
    }

    .card {
        max-width: 100%; /* Pleine largeur sur mobile */
    }

    /* On annule l'effet d'agrandissement du plan du milieu */
    .card:nth-child(2) {
        transform: scale(1);
        margin: 20px 0;
    }
    
    .top-nav {
        top: 20px;
        right: 20px;
    }
    
    .currency-switch {
        top: 15px;
        left: 15px;
        font-size: 0.8rem;
    }
    
    .page-title {
        font-size: 2rem;
        padding-top: 30px;
        margin-bottom: 40px;
    }
}