/* ===================================
   GeoFast - Styles globaux
   =================================== */

/* Conteneur principal - Laisser le thème Quartz gérer le style */
.main-container {
    max-width: 1400px;
    margin: 50px auto;
}

/* Titre principal */
.main-container h1 {
    margin-bottom: 1.5rem;
}

/* Spinner de chargement */
.spinner-border {
    display: none;
}

.loading .spinner-border {
    display: inline-block;
}

/* Spin animation for icons */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.navbar-brand img {
    max-height: 35px;
}

/* ===================================
   Dashboard - Jauge de score
   =================================== */
.score-gauge-container {
    position: relative;
    height: 250px;
    margin: 20px 0;
}

.score-value-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.score-value-display {
    font-size: 2.5rem;
    font-weight: bold;
}

.score-value-display-total {
    font-size: 2.8rem;
    font-weight: bold;
}

.chart-container {
    position: relative;
    height: 250px;
}

/* ===================================
   Badges de pondération (garder les couleurs)
   =================================== */
.weight-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--bs-border-radius);
    color: var(--bs-white);
}

.weight-high {
    background-color: var(--bs-danger);
}

.weight-medium-high {
    background-color: var(--bs-warning);
    color: var(--bs-body-color);
}

.weight-medium {
    background-color: var(--bs-info);
}

.weight-normal {
    background-color: var(--bs-success);
}

.weight-low {
    background-color: var(--bs-secondary);
}

/* ===================================
   Modal - Slider de pondération
   =================================== */
.weight-slider-label {
    font-weight: 600;
    color: var(--bs-heading-color);
}

.weight-slider-container {
    margin-top: 1rem;
}

.weight-slider {
    width: 100%;
    accent-color: var(--bs-primary);
}

.weight-slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.weight-slider-ticks span {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

.weight-description {
    margin-top: 0.5rem;
}

.weight-description .weight-label {
    font-weight: 600;
}

.weight-label.very-important {
    color: var(--bs-warning);
}

.weight-label.important {
    color: var(--bs-info);
}

.weight-label.standard {
    color: var(--bs-secondary-color);
}

.weight-label.medium {
    color: var(--bs-tertiary-color);
}

.weight-label.low {
    color: var(--bs-danger);
}

/* ===================================
   Conteneurs de résultats
   =================================== */
.result-container {
    display: none;
}

.result-container.visible {
    display: block;
}

.error-container {
    display: none;
}

.error-container.visible {
    display: block;
}

/* ===================================
   Boutons d'action dans les tableaux
   =================================== */
.table-actions button {
    margin-right: 0.25rem;
}

.table-actions button:last-child {
    margin-right: 0;
}

/* ===================================
   Badges de sujet
   =================================== */
.subject-badge {
    font-size: 0.75rem;
}

/* ===================================
   Badges de résultat (garder les couleurs)
   =================================== */
.result-badge {
    font-size: 0.75rem;
    font-weight: 500;
}

.result-yes {
    background-color: var(--bs-success);
    color: var(--bs-white);
}

.result-no {
    background-color: var(--bs-danger);
    color: var(--bs-white);
}

.result-needs-optimization {
    background-color: var(--bs-warning);
    color: var(--bs-body-color);
}

.table {
    --bs-table-bg: none !important;
}

.result-container .card {
    min-height: 100%;
}

/* ===================================
   Tableaux - Forcer les couleurs du thème
   =================================== */
.table>thead>tr>th {
    color: var(--bs-body-color);
    font-weight: 600;
}

.table td {
    color: var(--bs-body-color);
    padding: 12px 15px;
}

.table th {
    padding: 12px 15px;
}

/* Contenu conseil (Markdown) */
.advice-content {
    font-size: 0.85rem;
    color: var(--bs-body-color);
    padding: 8px;
}

.advice-content strong {
    color: var(--bs-body-color);
    font-weight: 600;
}

/* ===================================
   Alertes
   =================================== */
.alert-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.alert-dismissible {
    cursor: pointer;
}

/* ===================================
   Cookie Consent Banner
   =================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(20, 20, 30, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    backdrop-filter: blur(8px);
    animation: cookie-slide-up 0.3s ease-out;
}

.cookie-banner.cookie-banner-hide {
    animation: cookie-slide-down 0.4s ease-in forwards;
}

@keyframes cookie-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes cookie-slide-down {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    flex: 1;
    min-width: 200px;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-banner-actions .btn {
        flex: 1;
    }
}

/* ===================================
   Summernote - Corrections thème Quartz
   =================================== */

/* Forcer fond clair et texte sombre dans les modales Summernote */
.note-modal .modal-content {
    background-color: #fff;
    color: #212529;
}

.note-modal .modal-header {
    background-color: #f8f9fa;
    color: #212529;
    border-bottom-color: #dee2e6;
}

.note-modal .modal-title {
    color: #212529;
}

.note-modal .modal-body label {
    color: #212529;
}

.note-modal .modal-body input,
.note-modal .modal-body select,
.note-modal .modal-body textarea {
    color: #212529;
    background-color: #fff;
    border-color: #ced4da;
}

.note-modal .modal-body input::placeholder {
    color: #6c757d;
}

.note-modal .modal-body .checkbox label,
.note-modal .modal-body .radio label {
    color: #212529;
}

.note-modal .modal-footer {
    border-top-color: #dee2e6;
}

/* Z-index pour que la modale passe au-dessus du backdrop */
.note-modal {
    z-index: 1060 !important;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .main-container {
        margin: 20px;
        padding: 15px;
    }

    .table-responsive {
        font-size: 0.8rem;
    }

    .score-gauge-container {
        height: 200px;
    }
}

.icon-home {
    font-size: 1.5em;
}

.icon-home-2 {
    font-size: 2.0em;
}

.site-footer {
    width: 100%;
    text-align: center;
    opacity: 0.5;
}

.plyr {
    border-radius: 10px;
    cursor: pointer;
}

.demo-box::after {
    pointer-events: none;
}

:root {
    --plyr-color-main: #e83283;
    /* ta couleur principale */
}

.accordion-button.collapsed {
    background-color: rgba(255, 255, 255, 0);
}
