/* Login */
.container-login {
    max-width:600px;
    margin: 0 auto;
}
.container-login a {
    text-decoration: none;
    color: var(--text-color);
}
.container-login a:hover {
    text-decoration: underline;
}
.container-login a.btn-google:hover, .container-login a.btn--ghost:hover {
    text-decoration: none;
}

.container-signin {
    text-align: center;
    margin-top: 1rem;
    color: var(--muted);
}

.container-signin .separator-point {
    margin: 0 0.5rem;
    color: var(--muted);
}

 .oauth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}
.oauth-separator::before,
.oauth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--line);
}
.oauth-separator span {
    padding: 0 1rem;
    color: var(--muted);
    font-size: 0.875rem;
}

/* Page profil */
.add_batiment {
    margin-top: 20px;
}

.flex_column input:checked + .slider, .switch-container input:checked + .slider  {
    background-color: var(--main-color);
}

.flex_column input:focus + .slider, .switch-container input:focus + .slider {
    box-shadow: 0 0 1px var(--main-color);
}

.flex_column input:checked + .slider:before, .switch-container input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}
.type_compte {
    grid-area: informations;
    display: inline-block;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.8em;
}

.type_compte.gratuit {
    background-color: gray;
    color: white;
}

.type_compte.premium {
    background-color: var(--main-color);
    color: white;
}

.type_compte.VIP {
    background-color: darkblue;
    color: white;
}

.type_compte.équipe {
    background-color: darkgreen;
    color: white;
}

.classements.card, .notices.card, .outils_favoris.card, .profil.card {
    margin-bottom:30px;
}
.classements.card {
    padding:16px;
}

.classements h2, .notices h2, .outils_favoris h2, .profil h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.25em;
    color: var(--main-color);
}

.classements_header, .notices_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
    margin-bottom: 20px;
}
.classements_header a {
    text-decoration: none;
    color: var(--main-color);
}
.classements_header a:hover {
    text-decoration: underline;
}
.classements_header.header_toutelargeur, .notices_header.header_toutelargeur {
    max-width: none;
}

.classements_info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.classements_info a {
    text-decoration: none;
    color: var(--text-color-main);
}

.row__email .adresse_email {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: 500;
}
.row__email .adresse_email a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    text-decoration: none;
}
.row__email .adresse_email.green {
    color: green;
    background-color: lightgreen;
}
.row__email .adresse_email.red {
    color: red;
    background-color: lightcoral;
}

#nb_classements_par_page {
    width: 70px;
    padding: 10px;
    border-radius: 10px;
    border: none;
    font-size: 1em;
    background-color: #ccc;
}


/* Page formules VIP */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.formules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px,350px));
    grid-template-rows: repeat(auto-fit, minmax(100px,1fr));
    grid-gap:10px;
    justify-content: center;
}

.switch-container {
    display: flex;
    justify-content: center;
    gap:30px;
    align-items: center;
    margin-bottom: 20px;
}

.formules .an {
    display:none;
}

.formules .an.show {
    display:block;
}

.formules .mois.hide {
    display:none;
}

.formule {
    border-radius: 10px;
    padding:10px;
}

.formule h1 {
    font-size: 1.2em;
    margin:5px 0;
}

.formule-card {
    height:100%;
}

.formule-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.formule-card-body ul {
    flex:1;
}

.formule.gratuit {
    border:1px solid gray;
}
.formule.gratuit h1 {
    color:gray;
}

.formule.premium {
    border:1px solid var(--main-color);
}
.formule.premium h1 {
    color:var(--main-color);
}

.formule.vip {
    border:1px solid darkblue;
}
.formule.vip h1 {
    color:darkblue;
}

.choix-periode {
    font-weight: 600;
    color:var(--main-color);
}

#row_classement {
    display:none;
}
#row_classement.show {
    display:flex;
}

.user-message {
    background-color: var(--main-color);
    color: white;
    align-self: flex-end;
    text-align: right;
}

.admin-message {
    background-color: #f0f0f0;
    color: black;
    align-self: flex-start;
    text-align: left;
}

.admin-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}





/* Tables */


.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.admin-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.admin-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.813rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.938rem;
    color: #374151;
}

.admin-table tbody tr {
    transition: background-color 0.15s ease;
}

.admin-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.admin-table tbody tr:nth-child(odd) {
    background-color: white;
}

.admin-table tbody tr:hover {
    background-color: #f0f9ff !important;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.notification-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    min-width: 1.5rem;
    text-align: center;
}

/* Section footer pour actions principales */




/* Responsive */
@media (max-width: 768px) {
    .quick-access-category {
        padding: 1rem;
    }

    .quick-access-card {
        padding: 0.875rem 1rem;
    }

    .quick-access-card > .material-symbols-outlined:first-child {
        font-size: 1.75rem;
    }
}

/* ============================================
   Messages Notification Card
   ============================================ */
.messages-notification-card {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.1);
}

.message-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.message-notification-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc2626;
    font-size: 1.125rem;
    font-weight: 600;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
}

.message-preview {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.message-preview p {
    margin: 0 0 0.75rem 0;
    color: #374151;
    font-size: 0.9rem;
}

.message-summary {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
}

@media (max-width: 768px) {
    .message-notification-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .message-summary {
        justify-content: space-between;
    }
}

.credit-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.credit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.credit-balance {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.pack-card {
    border: 2px solid transparent;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.pack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.pack-card.popular {
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.pack-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: bold;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.transaction-icon.credit {
    background-color: #dcfce7;
    color: #16a34a;
}

.transaction-icon.debit {
    background-color: #fee2e2;
    color: #dc2626;
}
