/* Variables globales */
:root {
    --header-height: 60px;
    --container-max-width: 800px;
    --border-radius: 12px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

.certification-banner {
    background: linear-gradient(45deg, rgba(100, 108, 255, 0.1), rgba(83, 91, 242, 0.1));
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.certification-banner h2 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    color: white;
}

.certification-banner p {
    margin: 0 0 1rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Layout principal */
.settings-container {
    max-width: var(--container-max-width);
    margin: 50px auto 0;
    padding: var(--spacing-md);
}

/* Header principal */
.main-header {
    position: fixed;
    width: 100%;
    height: var(--header-height);
    background-color: black;
    top: 0;
    z-index: 99;
}

.main-header-content {
    max-width: var(--container-max-width);
    height: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-md);
}

.logo {
    height: 55px;
    width: auto;
    margin-bottom: 0px!important;
}

.back-link {
    background-color:transparent !important;
    border:none !important;
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Sous-header */
.sub-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.sub-header h3 {
    margin: 0;
    font-size: 1rem;
}

/* Section profile */
/* Section profile */
.profile-section {
    margin-bottom: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.profile-image-container {
    position: relative;
    margin-bottom: var(--spacing-md);
    padding: 5px; /* Ajoute un espace pour le cercle extérieur */
    border-radius: 50%;
    background-color: black;
    border: 1px solid silver;
}

.profile-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2; /* Pour s'assurer que la photo est au-dessus du cercle */
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.edit-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25px;
    height: 25px;
    background: #ff4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid black;
    z-index: 3; /* Pour s'assurer que l'icône d'édition est au-dessus de tout */
}

.edit-icon img {
    width: 15px;
    height: 15px;
    filter: brightness(0) invert(1);
}

.profile-details {
    display: flex;
    flex-direction: row; /* Changé de 'column' à 'row' */
    align-items: center;
    gap: var(--spacing-sm);
}

.profile-details h2 {
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
}


.verified-badge {
    width: 16px;
    height: 16px;
    /* Supprimé margin-left car nous utilisons déjà gap dans profile-details */
}

/* Bandeau Flammes */
.flames-banner {
    background-color: #202020;
    padding: var(--spacing-lg);
    margin: var(--spacing-md) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    border-radius: var(--border-radius);
}

.flames-title {
    font-size: 1rem;
    margin: 0;
    color: silver;
    opacity: 0.8;
}

.flames-count {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
}

.flame-icon {
    height: 20px;
}

.count {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.buy-flames {
    color: grey;
    text-decoration: none;
    font-size: 0.9rem;
}

.buy-flames:hover {
    text-decoration: underline;
}

/* Styles pour le nombre de flammes sélectionné */
.selected-flames {
    text-align: right;
    margin: 20px 5% 20px 0;
}

/* Animation pour les flammes */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flames-amount {
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    color: black;
    margin-right: 5px;
    transition: all 0.5s ease-out;
    border: none;
    background: transparent;
    width: 150px;
    text-align: right;
}

.flames-amount:focus {
    outline: none;
    border-bottom: 2px solid #ff4444;
}

.flames-amount.animating {
    animation: countUp 0.5s ease-out;
}

.flames-label {
    font-size: 14px;
    color: silver;
}

/* Styles pour les options d'achat */
.purchase-options {
    padding: 0 5%;
    margin-bottom: 20px;
}

.purchase-option {
    position: relative;
    margin-bottom: 15px;
}

.most-bought-tag {
    position: absolute;
    top: -10px;
    left: 10px;
    background: black;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 1;
}

.option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 12px;
    border: 1px solid silver;
    cursor: pointer;
}

.option-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-flame {
    height: 20px;
    color: silver;
}

.option-flames {
    font-weight: 500;
    color: silver;
}

.option-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price {
    font-weight: 500;
    color: silver;
}

.discount {
    color: silver;
    font-size: 12px;
}

/* Cache le radio button par défaut */
.purchase-option input[type="radio"] {
    display: none;
}

/* Style personnalisé pour le radio button */
.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid silver;
    border-radius: 50%;
    position: relative;
}

.purchase-option input[type="radio"]:checked + label .radio-circle::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Bouton de paiement */
.pay-button {
    width: 90%;
    margin: 20px 5%;
    padding: 15px;
    background: black;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pay-button:hover {
    background: #333;
}

/* Sections paramètres */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.settings-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Options paramètres */
.settings-option,
.settings-option-desactivate {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
    cursor: pointer;
}

.settings-option:last-child,
.settings-option-desactivate:last-child {
    border-bottom: none;
}

.settings-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.option-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.option-info {
    flex: 1;
}

.option-info h3 {
    margin: 0;
    font-size: 1rem;
}

.option-info p {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.chevron {
    width: 20px;
    opacity: 0.5;
}

/* Bouton déconnexion */
.logout-button {
    width: 100%;
    padding: var(--spacing-md);
    background: none;
    border: none;
    color: #ff4444;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background: rgba(255, 68, 68, 0.1);
}

/* Styles Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 90vh; /* hauteur maximale de 90% de la hauteur de la fenêtre */
    background-color: white;
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    padding: var(--spacing-xl);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 15px;
}

.modal-header .back-button {
    position: absolute;
    left: var(--spacing-xl);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    padding: 0;
}

.back-button:hover {
    opacity: 0.7;
}

.close-modal {
    position: absolute;
    right: var(--spacing-xl);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

.modal-divider {
    height: 1px;
    background-color: silver;
    width: 100%;
}

.modal-body {
    text-align: center;
    max-height: 80vh; /* hauteur maximale de 80% de la hauteur de la fenêtre */
    overflow-y: auto; /* permet le défilement vertical */
    padding-bottom: 20px; /* ajoute un peu d'espace en bas */
}

.modal-title {
    font-weight: bold;
    margin-bottom: var(--spacing-md);
    color: #000;
}

.modal-text {
    color: #666;
    line-height: 1.5;
}

/* Media Queries */
@media (max-width: 480px) {
    .settings-container {
        padding: var(--spacing-md);
    }


    .modal-header,
    .modal-body {
        padding: var(--spacing-md);
    }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    background: black;
    display: flex;
    justify-content: space-around;
    padding: 0.4rem;
    z-index: 1;
}

.nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center; /* Ajout de cette ligne */
    width: 100%;
    z-index: 1;
    margin: 0 auto; /* Ajout de cette ligne */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    opacity: 1;
}

.nav-item.active {
    opacity: 1;
}

.nav-item img {
    width: 50px;
    height: 50px;
}

.nav-item .addItem {
    width: 90px;
    height: 90px;
    margin-top: -35px;
}

.user-flames {
    width: 90%;
    margin-left: 5%;
    text-align: left;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-flames .flame-icon {
    height: 20px;
    margin-top: 0;
}

/* Styles pour le formulaire de paiement */
.payment-form {
    padding: 20px 5%;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group.half {
    flex: 1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    text-align: left;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid silver;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: black;
    outline: none;
}

.payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
}

.total-label {
    font-weight: bold;
    color: black;
}

.total-amount {
    font-weight: bold;
    color: black;
}

.payment-button {
    width: 100%;
    padding: 15px;
    background: black;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.payment-button:hover {
    background: #333;
}


.confirmation-content {
    padding: 30px 20px;
    text-align: center;
}

.confirmation-amount {
    font-weight: bold;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: black;
}

.confirmation-amount .flame-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin: 0 5px;
}

.confirmation-message {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.confirmation-button {
    width: 90%;
    padding: 15px;
    background: black;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.confirmation-button:hover {
    background: #333;
}

/* Premium option */
.premium-option {
    display: flex;
    justify-content: space-between; /* Pour séparer les éléments à gauche et à droite */
    align-items: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #8B0000, #4A0404);
    border-radius: var(--border-radius);
    text-decoration: none;
}

.option-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.option-info h3 {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.flame-icon {
    height: 20px;
    margin-top: 0; /* Pour supprimer tout margin par défaut */
    vertical-align: middle;
}

.premium-chevron {
    opacity: 1;
}

/* Premium Modal */
.premium-modal-body {
    padding: var(--spacing-xl);
}

.premium-title {
    font-size: 1.2rem;
    text-align: left;
    color: black;
    margin-bottom: var(--spacing-xl);
}

.premium-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Exhib banner */
.exhib-banner {
    width: 95%;
    margin: 20px auto;
    background-image: url('../images/coin-exhib-background.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 15px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-repeat: no-repeat;
}

.exhib-banner h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.exhib-banner p {
    margin-bottom: 20px;
    max-width: 300px;
}

.discover-btn {
    background: white;
    color: black;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    width: fit-content;
}

.payment-summary {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

#paypal-button-container {
    margin-top: 20px;
    padding: 0 20px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Pour Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}



#paypal-button-container {
    margin: 20px auto !important;
    width: fit-content !important;
    display: flex !important;
    justify-content: center !important;
}