:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Glassmorphism utilities */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
}

/* Layout */
header {
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

main {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

/* Typography & Buttons */
h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: var(--primary);
    color: white;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0px 12px rgba(59, 130, 246, 0.3);
}

.btn-accent {
    background: var(--accent);
}
.btn-accent:hover {
    background: #7c3aed;
    box-shadow: 0 0px 12px rgba(139, 92, 246, 0.3);
}

/* Grids & Cards */
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0px 25px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.card .operator {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.card .number {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.card .stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card .price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.card .price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--success);
}

/* Tier Colors */
.tier-1 {
    /* Gratuit: white/gray */
    --tier-color: #f8fafc; 
}
.tier-2 {
    /* Bronze */
    --tier-color: #cd7f32;
}
.tier-3 {
    /* Argent */
    --tier-color: #c0c0c0;
}
.tier-4 {
    /* OR */
    --tier-color: #ffd700;
}
.tier-5 {
    /* Diamant */
    --tier-color: #00ffff;
}

/* Apply Tier Styles to Cards */
.card.tier-1, .card.tier-2, .card.tier-3, .card.tier-4, .card.tier-5 {
    border-color: var(--tier-color);
}
.card.tier-1:hover, .card.tier-2:hover, .card.tier-3:hover, .card.tier-4:hover, .card.tier-5:hover {
    box-shadow: 0 0px 25px -5px var(--tier-color);
}

/* Apply Tier Styles to Filter Buttons */
.filter-tier {
    transition: all 0.3s ease;
}
.filter-tier[data-tier=""] {
    border: 1px solid var(--border-color);
}
.filter-tier[data-tier="1"] {
    border: 1px solid #f8fafc;
    color: #f8fafc;
}
.filter-tier[data-tier="1"].btn-accent { background: #f8fafc; color: var(--bg-color); }

.filter-tier[data-tier="2"] {
    border: 1px solid #cd7f32;
    color: #cd7f32;
}
.filter-tier[data-tier="2"].btn-accent { background: #cd7f32; color: white; }

.filter-tier[data-tier="3"] {
    border: 1px solid #c0c0c0;
    color: #c0c0c0;
}
.filter-tier[data-tier="3"].btn-accent { background: #c0c0c0; color: var(--bg-color); }

.filter-tier[data-tier="4"] {
    border: 1px solid #ffd700;
    color: #ffd700;
}
.filter-tier[data-tier="4"].btn-accent { background: #ffd700; color: var(--bg-color); }

.filter-tier[data-tier="5"] {
    border: 1px solid #00ffff;
    color: #00ffff;
}
.filter-tier[data-tier="5"].btn-accent { background: #00ffff; color: var(--bg-color); }


/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

input, select, textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Specific Sections */
.hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.newsletter-section {
    margin-top: 4rem;
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto 0 auto;
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
}

/* Video Demo Placeholder */
.video-demo {
    width: 100%;
    max-width: 800px;
    margin: 3rem auto;
    aspect-ratio: 16 / 9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-demo::after {
    content: "▶";
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.video-demo:hover::after {
    color: white;
    transform: scale(1.1);
}

.trustpilot-stub {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: #00b67a;
    font-weight: bold;
    font-size: 1.25rem;
}

.trustpilot-stub span {
    color: var(--text-main);
    font-weight: normal;
}

#plugin_menu {
    padding: 0 10px 0 10px;
    border-radius: 50px;
}

#searchInput {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
    font-size: 1.2rem;
    border-radius: 50px;
    border: 2px solid white;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
    transform: scale(1.02);
}
