/* public/style.css */

/* --- 1. Variables et Configuration Globale --- */
:root {
    --bg-image: url('./img/background.jpg'); /* Remplace par ton image de fond */
    --bg-color-dark: #1a1c23;
    --card-bg-color: rgba(38, 40, 51, 0.6);
    --text-color-primary: #ffffff;
    --text-color-secondary: #ffffff;
    --border-color: #ffff;
    --brand-gradient: linear-gradient(90deg, #ff79c6, #bd93f9);
    --discord-color: #5865F2;
    --success-color: #50fa7b;
    --error-color: #ff5555;
    --font-family: 'Archivo Black', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color-primary);
    background-color: var(--bg-color-dark);
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- 2. En-tête (Header) --- */
.main-header {
    margin-left: auto;      /* Centrer le bloc */
    margin-right: auto;     /* Centrer le bloc */
    width: fit-content; 
}
.coin{
    margin-right: 5px;
    width: 25px;
    height: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 3rem;
    font-weight: 700;
    
}
.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* --- 3. Contenu Principal et Colonnes --- */
.main-content {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    align-items: flex-start; /* Aligne les colonnes en haut */
}

.column-left, .column-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.plan-price{
    font-size: 20px;
    font-weight: 600;
}
/* --- 4. Le Style des Cartes "Glassmorphism" --- */
.card {
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Pour Safari */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card h2 {
    display: inline-block;
  background-color: white;
  color: #fd8d8b; /* Ajuste selon ton rose */
  font-weight: 600;
  margin: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 1.1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- 5. Éléments Spécifiques (Listes, Boutons, etc.) --- */

/* Avantages */
.card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.card ul li {
    color: var(--text-color-secondary);
    font-size: 20px;
    font-weight: 600;
}
.icon-check {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* "How it works" */
.how-it-works-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.how-it-works-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color-secondary);
}
.how-it-works-list li span:first-child {
    background: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 600;
    color: #fd8d8b;
}

/* Sélection des Plans */
.plan-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
}
.plan-options label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--brand-gradient);
    border-color:  rgba(130, 130, 130, 0.4);
    box-shadow: 0 0 15px rgba(91, 91, 91, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.plan-options label:hover {
    border-color: #bd93f9;
}
.plan-options input[type="radio"] {
    display: none; /* On cache le bouton radio natif */
}
.plan-options input[type="radio"]:checked + .plan-name {
    /* Cet élément n'existe plus, on style le label parent */
}
.plan-options label.selected {
    border-style: solid;
    border-color:  white;
}
.plan-name {
    font-size: 20px;
    font-weight: 600;
}
.badge {
    background-color: #fd8d8b;
    color: white;
    border-color: #bd93f9;
    border-width: 2px;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 0.5rem;
    font-weight: 700;
}

/* Section de connexion Discord */
 #payment-view, #subscription-status-view {
    margin: 2rem;

    text-align: center;
}
#plan-view{
        border-top: 1px solid var(--border-color);
         margin-top: 2rem;

    padding-top: 2rem;
}
#user-info {
    font-weight: 600;
    margin: 1rem;
    font-size: 1.5rem;
    text-align: center;
}
#user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
}

/* Boutons Génériques */
.btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}
.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-primary {
    background: #fd8d8b;
    color: white;
}

.btn-secondary {
    background: var(--card-bg-color);
    color: var(--text-color-primary);
    border: 1px solid var(--border-color);
}

.btn-discord {
    background-color: var(--discord-color);
    color: white;
}
.btn-discord img {
    width: 24px;
    height: auto;
}

/* Total et Messages */
#payment-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.total-amount {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
}
#status-message {
    margin-top: 1.5rem;
    font-weight: 500;
    min-height: 24px;
    text-align: center;
}
.success { color: var(--success-color); }
.error { color: var(--error-color); }

/* Utilitaires */
.hidden {
    display: none !important;
}
.card-warning {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }
}