﻿html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    margin-bottom: 60px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: white !important;
    background-image: linear-gradient(-225deg, #231557 0%, #44107A 29%, #FF1361 67%, #fa9b48 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: white;
}

/* Theme clair: texte noir global et corrections */
.theme-light body, .theme-light {
    color: #222 !important;
}

    .theme-light .h1, .theme-light .h2, .theme-light .h3, .theme-light h1, .theme-light h2, .theme-light h3,
    .theme-light .h4, .theme-light .h5, .theme-light .h6, .theme-light h4, .theme-light h5, .theme-light h6 {
        color: #000 !important;
    }

#title {
    font-size: 70px;
    margin-top: 5rem;
    text-align: center
}

.left {
    text-align: left;
}

.right {
    font-size: 20px;
    display: flex;
    justify-content: flex-end;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Base : caché */
.afficher {
    opacity: 0;
    transition: opacity 1s ease;
}

/* État : visible */
.is-visible {
    opacity: 1;
}

img {
    width: 100%;
    margin: 2rem 0;
}

.removed {
    color: red;
}

/* Tableau global rendu transparent (sauf calendrier ciblé plus bas) */
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: rgba(255,255,255,0.08);
    background-color: transparent !important;
}

    /* Les cellules reçoivent un background via Bootstrap : on force transparent */
    .table > :not(caption) > * > * {
        background-color: transparent !important;
    }

/* Exceptions pour le calendrier */
.calendar.table > :not(caption) > * > * {
    background-color: initial !important;
}

.calendar td.bg-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.calendar td.bg-success {
    background-color: #198754 !important;
    color: #fff !important;
}

.calendar td.bg-light {
    /*    background-color:#f8f9fa !important; */
    color: #000 !important;
}

/* En-tête calendrier transparent en thème sombre, visible en thème clair */
.calendar .d-flex.bg-primary {
    background: transparent !important;
}

.theme-light .calendar .d-flex.bg-primary {
    background: #0d6efd !important;
}

/* Tbody calendrier transparent (bordures conservées) */
.calendar table tbody {
    background: transparent !important;
}

/* Todo list transparent */
#todo-list {
    background: transparent !important;
}

    /* Items todo: bordure et couleur texte adaptative */
    #todo-list .list-group-item, .list-group-item.todo-item, .list-group-item.todo-item:hover {
        background: transparent !important;
        border-color: rgba(255,255,255,.15);
        color: inherit;
    }

.theme-light #todo-list .list-group-item, .theme-light .list-group-item.todo-item {
    color: #222 !important;
    border-color: #ced4da !important;
}

/* Inputs style global + bordure comme les cards */
.form-control,
.form-control:focus,
textarea.form-control,
.form-select,
.form-select:focus,
.btn {
    color: inherit;
    box-shadow: none;
    background: rgba(255, 255, 255, .2) !important;
    border-radius: 12px;
}

.theme-light .form-control,
.theme-light .form-control:focus,
.theme-light textarea.form-control,
.theme-light .form-select,
.theme-light .form-select:focus {
    background: #fff !important;
    color: #222 !important;
}

/* Bold visible dans l’éditeur Summernote */
.note-editor .note-editable b,
.note-editor .note-editable strong {
    font-weight: 700 !important;
}

/* Bold côté rendu article */
.article-content b,
.article-content strong {
    font-weight: 700;
}

.card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-radius: 12px;
    color: white;
    margin-top: 2rem;
    padding: 30px;
}





.theme-light .card {
    background: transparent !important;
    color: #222 !important;
    border: 1px solid #ced4da !important;
}


/*PARTIE ARTICLE*/


/* Styles spécifiques aux pages Articles */
.article-page {
    /* pas de fond, on garde seulement l’espacement */
    background: transparent;
    border-radius: 20px;
}

/* Thème clair global (fond blanc, texte sombre) */
.theme-light {
    background: #fff !important;
    color: #222 !important;
    background-image: none !important;
}

    .theme-light h1, .theme-light .h1,
    .theme-light h2, .theme-light .h2,
    .theme-light h3, .theme-light .h3 {
        color: #000 !important;
    }
    /* Navbar noire en thème clair */
    .theme-light .navbar {
        background-color: #000 !important;
    }


    /* Thème clair pour les articles: texte noir, pas de background, bordure grise */
    .theme-light .card {
        background: transparent !important;
        color: #222 !important;
        border: 1px solid #ced4da !important; /* gris Bootstrap */
        border-radius: 12px;
    }

    .theme-light .article-card .card-footer {
        background: transparent !important;
        /*  border-top: 1px solid #ced4da !important; 
*/
    }

    .theme-light .article-content.card {
        background: transparent !important;
        color: #222 !important;
        border: 1px solid #ced4da !important;
    }

    /* Thème clair : normaliser fond des form controls */
    .theme-light .form-control,
    .theme-light .form-select,
    .theme-light .input-group-text {
        background: #fff !important;
        color: #222 !important;
    }

.article-card .card-title {
    font-weight: 700;
}

.article-card .excerpt b, .article-card .excerpt strong {
    font-weight: 700;
}

.article-content b, .article-content strong {
    font-weight: 700;
}



/* En thème clair sur cartes transparentes */
.theme-light .article-card {
    color: #222;
    border-color: #6c757d;
}

    .theme-light .article-card:hover {
        background: #6c757d;
        color: #fff;
    }

/* Images: taille naturelle (ne pas forcer 100% comme dans site.css) */
.article-content img,
.note-editor .note-editable img {
    width: auto !important;
    height: auto;
    max-width: 100%; /* réduire si trop large */
}

/* Summernote zone dans thème sombre: forcer fond clair pour contraste lors d’édition */
.note-editor.note-frame .note-editing-area .note-editable {
    background: #fff;
    color: #222;
}
