/* 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;
}

/* 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: 0rem!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: inline-block;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    width: 100%;
}

.sub-header h3 {
    margin: 0;
    font-size: 1rem;
}

/* Section profile */
.profile-section {
    margin-bottom: var(--spacing-xl);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.profile-details h2 {
    margin: 0;
    font-size: 1rem;
}

.verified-badge {
    width: 16px;
    height: 16px;
}

/* 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 {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    text-decoration: none;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s;
    cursor: pointer;
}

.settings-option:last-child {
    border-bottom: none;
}

.option-info {
    flex: 1;
    margin-left: var(--spacing-md);
}

.option-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.option-info p {
    margin: 0.3rem 0 0;
    font-size: 0.75rem;
    color: white;
    font-weight: 400;
}

.chevron {
    width: 24px;
    opacity: 0.8;
    filter: brightness(0) invert(1); /* Rend l'icône blanche */
}

/* Ajustement de l'espacement des icônes */
.option-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    filter: brightness(0) invert(1); /* Rend l'icône blanche */
}

.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;
}


.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%;
    background-color: white;
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.3s ease-out;
}

@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: 18px;
}

.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;
}

.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);
    }

    .profile-image {
        width: 50px;
        height: 50px;
    }

    .modal-header,
    .modal-body {
        padding: var(--spacing-md);
    }
}
















/* Menu coulissant pour médias privés */
.slide-menu {
    position: fixed;
    bottom: -63vh;
    left: 0;
    right: 0;
    height: 63vh;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 999;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 63vh;
}

.slide-menu.active {
    transform: translateY(-100%);
}

.show-header {
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1;
    color: black;
}

/* Styles pour les formulaires et inputs */
.show_body_radio,
.show_body_text {
    padding: 20px;
    flex-grow: 1;
    display: none;
}

.show_body_radio.active,
.show_body_text.active {
    display: block;
}

.show_option {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    justify-content: space-between; /* Place les éléments aux extrémités */
    align-items: center;
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    color: black;
    margin-bottom: 10px;
}

.radio-option label {
    flex-grow: 1; /* Permet au label de prendre l'espace disponible */
    margin-right: 10px; /* Espace entre le texte et le radio */
}

.radio-option input[type="radio"] {
    margin: 0;
    /* Style personnalisé avec apparence personnalisée */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked {
    border-color: red;
    background-color: red;
    box-shadow: inset 0 0 0 3px white;
}

.show-button {
    margin-top: 20px;
}

.msgPM {
    width: 99%!important;
    min-height: 100px;
    border: 2px solid black;
    border-radius: 20px;
    background-color: transparent;
    resize: vertical;
    color: black;
}

.char-counter {
    color: #888;
    font-size: 0.875rem;
    text-align: right;
    padding: 0.5rem;
}

#modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

#modal-backdrop.active {
    display: block;
}

/* Succès et confirmation */
.show_sucess_container {
    padding: 20px;
    flex-grow: 1;
    display: none;
    text-align: center;
    color: black;
}

.show_sucess_container.active {
    display: block;
}

/* Styles pour les boutons d'action */
.next-btn {
    width: 100%;
    padding: 1rem;
    background: black;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.next-btn:hover {
    background: #333;
}

/* Styles pour les boutons de fermeture */
.close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.close-btn svg {
    width: 24px;
    height: 24px;
}

button {
    background: transparent;
    border: none;
}

.show_body_radio h3, .show_body_text h3 {
    color: black;
}

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;
}

/* 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%;
    background-color: white;
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.3s ease-out;
}

@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;
}

.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;
}

.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);
    }

    .profile-image {
        width: 50px;
        height: 50px;
    }

    .modal-header,
    .modal-body {
        padding: var(--spacing-md);
    }
}

.certification-content p {
    color: black;
}

.certification-content .certification-button {
    background-color: black;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}