/* -------------------------------------- GLOBAL -------------------------------------- */
:root {
    /* Blanc */
    --bg-white-color: #fff;
    --text-white-color: #fff;

    /* Tons de Bleu / Bleu Ciel pour les gris clairs */
    --bg-gray-light-color: #a8d5e5; /* Bleu ciel doux */
    --text-gray-light-color: #a8d5e5;

    --bg-gray-extralight-color: #e3f2fd; /* Bleu ciel très clair (similaire au blanc cassé) */
    --text-gray-extralight-color: #e3f2fd;

    /* Bleu foncé pour les couleurs sombres */
    --bg-dark-color: #0d47a1; /* Bleu foncé profond */
    --text-dark-color: #0d47a1;

    /* Bleu pour la couleur principale (remplace le violet) */
    --main-color: #2196f3; /* Bleu standard */
    --main-color-rgb: 33, 150, 243;

    --theme-color: #4fc3f7; /* Bleu ciel plus clair */
    --theme-color-rgb: 79, 195, 247;

    --theme-dark-color: #1565c0; /* Bleu plus soutenu */
    --theme-dark-color-rgb: 21, 101, 192;

    /* Vert pour l'Orange (Accent) */
    --orange-color: #4caf50; /* Vert pomme */
    --orange-color-rgb: 76, 175, 80;
    --orange-light-color: #66bb6a; /* Vert plus clair */
    --orange-dark-color: #388e3c; /* Vert plus foncé */

    /* Couleurs de statut */
    --danger-color-rgb: 229, 57, 53; /* ROUGE (laissé pour le danger) */

    --success-color: #00c853; /* Vert foncé pour Succès */
    --warning-color: #ffb300; /* Jaune/Orange pour Avertissement (laissé pour la distinction) */
    --danger-color: #e53935; /* ROUGE pour Danger */
}

/* --- DÉGRADÉ BLEU UTILISÉ PARTOUT (Main vers Theme Dark) --- */
/* (33, 150, 243) -> (21, 101, 192) */
.card-border-bottom:after {
    background: linear-gradient(90deg, rgba(33, 150, 243, .95), rgba(21, 101, 192, .95)) !important;
}

.steps-container .step {
    background: linear-gradient(90deg, rgba(33, 150, 243, .95), rgba(21, 101, 192, .95));
    color: #fff;
    border-radius: 0.5rem !important;
    font-weight: 500;
    border: solid 3px #fff;
    box-shadow: 0 .4rem .5rem rgba(0, 0, 0, .08)!important;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background: linear-gradient(90deg, rgba(33, 150, 243, 1), rgba(21, 101, 192, 1));
}

.animate-bg-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(33, 150, 243, .95), rgba(21, 101, 192, .95)) !important;
}

.accordion-button {
    background: linear-gradient(90deg, rgba(33, 150, 243, .95), rgba(21, 101, 192, .95));
}

.bg-theme-img {
    background: linear-gradient(90deg, rgba(33, 150, 243, .95), rgba(21, 101, 192, .95)), url('/public/images/background.png');
}

.navbar-scroll {
    background: linear-gradient(90deg, rgba(33, 150, 243, 1), rgba(21, 101, 192, 1)) !important;
}

@media (min-width: 1px) {
    .navbar {
        background: linear-gradient(90deg, rgba(33, 150, 243, 1), rgba(21, 101, 192, 1));
        border-bottom: dashed rgba(255,255,255,.15) 2px;
        margin-bottom:5px;
    }
}
/* --- FIN DÉGRADÉ BLEU --- */

.input-search-light {
    border: 1px solid #fff;
    background: #fff;
}

.item-category {
    transition: transform .5s ease;
    background-color: var(--bg-white-color);
}

.item-category:hover {
    transform: scale(1.08);
}

.item-category h2 {
    font-size: 1rem;
}

.item-category-container a {
    text-decoration: none !important;
    color: inherit !important;
}

.item-post-preview {
    background-color: var(--bg-white-color);
    overflow: hidden;
    transition: transform .5s ease;
    border: solid transparent 3px;
    transform: scale(1);
}

.item-post-preview:hover {
    transform: scale(1.03);
}

.item-post-preview h3 {
    font-size: 1.1rem;
    min-height: 50px;
}

.post-preview-footer:before {
    content: "";
    width: 100%;
    height: 2px;
    background-color: rgba(0,0,0,.05);
    display: block;
    margin-bottom: 14px;
}

.post-preview-both:after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: rgba(0,0,0,.05);
    display: block;
    margin-top: 14px;
}

.post-preview-both:before {
    content: "";
    width: 100%;
    height: 2px;
    background-color: rgba(0,0,0,.05);
    display: block;
    margin-bottom: 14px;
}

.item-post-preview-premium {
    border-color: var(--orange-color) !important;
}

.item-post-preview .icon-flag {
    width: 25px !important;
    vertical-align:middle !important;
    margin-bottom: 2px;
}

.comment .icon-flag {
    width: 20px !important;
    vertical-align:middle !important;
    margin-bottom: 2px;
}

.badge-post {
    width:100%;
    background-color: rgba(var(--theme-color-rgb), .15);
    color: var(--theme-color);
    font-weight: 600;
    text-align: center;
    padding: 5px 10px;
    border-radius: 1.5rem;
}

.badge-post-premium {
    background-color: rgba(var(--orange-color-rgb), .15);
    color: var(--orange-color);
}

.badge-post-danger {
    background-color: rgba(var(--danger-color-rgb), .15);
    color: var(--danger-color);
}

.ribbon-premium {
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: absolute;
}
.ribbon-premium::before, .ribbon-premium::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    border: 5px solid var(--orange-color);;
}
.ribbon-premium span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 15px 0;
    background-color: var(--orange-color);
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,.2);
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
}

.ribbon-top-right {
    top: -10px;
    right: -10px;
}
.ribbon-top-right::before, .ribbon-premium-top-right::after {
    border-top-color: transparent;
    border-right-color: transparent;
}
.ribbon-top-right::before {
    top: 0;
    left: 0;
}
.ribbon-top-right::after {
    bottom: 0;
    right: 0;
}
.ribbon-top-right span {
    left: -25px;
    top: 30px;
    transform: rotate(45deg);
}

.breadcrumb a {
    color: var(--theme-color);
}

.post-meta li i {
    color: var(--theme-color);
}

a {
    color: var(--theme-color);
}

.blog-sidebar .sidebar-section .widget-list li a:hover {
    color: var(--theme-color);
}

.nav-theme .nav-link {
    -webkit-appearance: none;
}

.nav-categories li a {
    color: rgba(var(--theme-color-rgb),.6);
}

label {
    font-weight: 400;
    color: #6c757d;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    margin-right: 5px;
}

.form-switch .form-check-input {
    width: 2.2em;
}

.stats .stats-value {
    font-size: 2rem;
}

.stats .stats-label {
    font-size: 1rem;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #6c757d;
    font-weight: 500 !important;
    padding: 0;
    line-height: 1.5;
}

.card-desc {
    color: #6c757d;
    opacity: 1;
    font-size: 1rem;
    font-weight: 400;
}

.steps-container .step .discount {
    float: right;
}

.steps-container .active-step {
    border-color: var(--orange-color) !important;
}

.border-light {
    border:solid 2px #FFF !important;
}

.border-active {
    border-color: var(--orange-color) !important;
}

.reward {
    background-color: #fff;
    box-shadow: 0 .15rem .6rem rgba(0, 0, 0, .1)!important;
    border-radius: 0.5rem !important;
    overflow: hidden;
    border: solid 3px transparent;
}

.reward .reward-content  .title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #6c757d;
    font-weight: 500 !important;
    padding: 0;
    line-height: 1.5;
}

.reward .reward-content .subtitle {
    color: #6c757d;
    opacity: 1;
    font-size: .9rem;
}

.reward .reward-content .price {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 500 !important;
    line-height: 1.5;
}

.reward .badge-post {
    width: 100%;
    background-color: rgba(var(--theme-color-rgb), .15);
    color: var(--theme-color);
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
    box-shadow: 0 .4rem .5rem rgba(0, 0, 0, .08)!important;
    border: solid 3px #FFF !important;
}

.modal-content {
    border: solid 3px #FFF !important;
    border-radius: .5rem !important;
    outline: 0;
    overflow:hidden;
    background-clip: border-box;
}

.overlay-soon {
    background: rgba(255,255,255,.7);
    position:absolute;
    height:100%;
    left:0;
    right:0;
    top:0;
    bottom:0;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 2px solid rgba(0,0,0,.05);
}

.row-sidebar .sidebar-section .row-post .content .title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    min-height: 50px;
}

/* -------------------------------------- HEADER SLIDER -------------------------------------- */

.animate-bg-container .bg-slide {
    width: 100%;
    height: 200%;
    background: url(/public/images/background.png);
    background-size: 1500px 900px;
    animation: slideOnX 60s linear infinite;
    position:absolute;
    z-index:-1;
}

/* -------------------------------------- EDITOR -------------------------------------- */

.tox .tox-editor-container {
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
}

.tox .tox-statusbar {
    border-top: 0 !important;
    padding-top: 5px !important;
}

/* -------------------------------------- FORM -------------------------------------- */

.custom-range::-webkit-slider-thumb {
    background: rgba(var(--theme-color-rgb), 1);
    box-shadow:none !important;
    outline: none !important;
}

.custom-range::-moz-range-thumb {
    background: rgba(var(--theme-color-rgb), 1);
    box-shadow:none !important;
    outline: none !important;
}

.custom-range::-ms-thumb {
    background: rgba(var(--theme-color-rgb), 1);
    box-shadow:none !important;
    outline: none !important;
}

.custom-range::-webkit-slider-thumb:active {
    background-color: rgba(var(--theme-color-rgb), .7);
    box-shadow:none !important;
    outline: none !important;
}

.custom-range:focus::-webkit-slider-thumb,
.custom-range:focus::-moz-range-thumb,
.custom-range:focus::-ms-thumb {
    box-shadow:none !important;
    outline: none !important;
}

.custom-range::-webkit-slider-runnable-track {
    background: #f0f0f0
}

.custom-range::-moz-range-track {
    background: #f0f0f0
}

.custom-range::-ms-track {
    background: #f0f0f0
}

/* -------------------------------------- BUTTONS -------------------------------------- */

.btn-secondary {
    color: #fff;
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}

.btn-secondary:hover {
    color: #fff;
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}

.btn-check:focus+.btn-secondary, .btn-secondary:focus, .btn-secondary:active {
    color: #fff;
    background-color: var(--theme-color);
    border-color: var(--theme-color);
    box-shadow: 0 .4rem .5rem rgba(0, 0, 0, .25) !important;
}

.btn-secondary:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--theme-color);
    border-radius: 10rem;
    z-index: -2;
}

.btn-secondary:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--main-color);
    transition: all .3s;
    border-radius: 10rem;
    z-index: -1;
}
.btn-secondary:hover:before {
    width: 100%;
}

.btn-secondary.disabled, .btn-secondary:disabled {
    color: #fff;
    /* Couleur temporaire de désactivation basée sur un bleu clair */
    background-color: #A8D5E5;
    border-color: var(--theme-color);
}



.btn-danger {
    color: #fff;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    color: #fff;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-check:focus+.btn-danger, .btn-danger:focus, .btn-danger:active {
    color: #fff;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    box-shadow: 0 .4rem .5rem rgba(0, 0, 0, .25) !important;
}

.btn-danger:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--danger-color);
    border-radius: 10rem;
    z-index: -2;
}

.btn-danger:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    /* Couleur d'hover danger (rouge foncé) */
    background-color: #c43827;
    transition: all .3s;
    border-radius: 10rem;
    z-index: -1;
}
.btn-danger:hover:before {
    width: 100%;
}

.btn-danger.disabled, .btn-danger:disabled {
    color: #fff;
    /* Couleur temporaire de désactivation danger (orange clair) */
    background-color: #F9A981;
    border-color: var(--danger-color);
}

/* -------------------------------------- TOOLTIP -------------------------------------- */

.tippy-box[data-theme~=dangersmall] {
    color: #fff !important;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15)!important;
    background-color: var(--danger-color);
    padding:8px;
    font-size:1rem;
    text-align:center;
}

.tippy-box[data-theme~=dangersmall][data-placement^=top]>.tippy-arrow:before {
    border-top-color: var(--danger-color);
}

.tippy-box[data-theme~=dangersmall][data-placement^=bottom]>.tippy-arrow:before {
    border-bottom-color: var(--danger-color);
}

.tippy-box[data-theme~=dangersmall][data-placement^=left]>.tippy-arrow:before {
    border-left-color: var(--danger-color);
}

.tippy-box[data-theme~=dangersmall][data-placement^=right]>.tippy-arrow:before {
    border-right-color: var(--danger-color);
}

.tippy-box[data-theme~=dangersmall]>.tippy-backdrop {
    background-color: var(--danger-color);
}

.tippy-box[data-theme~=dangersmall]>.tippy-svg-arrow {
    fill: #fff
}

.tippy-box[data-theme~=mainsmall] {
    color: #fff !important;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15)!important;
    /* Utilise la nouvelle couleur d'accent (vert) */
    background-color: var(--orange-color);
    padding:8px;
    font-size:1rem;
    text-align:center;
}

.tippy-box[data-theme~=mainsmall][data-placement^=top]>.tippy-arrow:before {
    border-top-color: var(--orange-color);
}

.tippy-box[data-theme~=mainsmall][data-placement^=bottom]>.tippy-arrow:before {
    border-bottom-color: var(--orange-color);
}

.tippy-box[data-theme~=mainsmall][data-placement^=left]>.tippy-arrow:before {
    border-left-color: var(--orange-color);
}

.tippy-box[data-theme~=mainsmall][data-placement^=right]>.tippy-arrow:before {
    border-right-color: var(--orange-color);
}

.tippy-box[data-theme~=mainsmall]>.tippy-backdrop {
    background-color: var(--orange-color);
}

.tippy-box[data-theme~=mainsmall]>.tippy-svg-arrow {
    fill: #fff
}

/* -------------------------------------- COLORS -------------------------------------- */

.bg-primary {
    background-color: var(--main-color) !important;
}

.text-primary {
    color: var(--main-color) !important;
}

.text-orange {
    color: var(--orange-color) !important;
}

.text-color-theme {
    color: var(--theme-color) !important;
}

/* ------------------------------------ BACKGROUND ------------------------------------ */

.bg-light-gray {
    background-color: var(--bg-gray-extralight-color) !important;
}

.bg-orange {
    background-color: var(--orange-color) !important;
}

/* ------------------------------------ DROPDOWN ------------------------------------ */

.dropdown, .dropend, .dropstart, .dropup {
    position: relative;
    display: inline-block;
}

/* ------------------------------------ NAVIGATION ------------------------------------ */

.page-link {
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
}

.page-link:hover {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}

.page-link:focus {
    background-color: var(--theme-color);
}

.page-item.active .page-link {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}

/* ------------------------------------ RESPONSIVE ------------------------------------ */

@media (min-width: 576px) {

}

@media (min-width: 768px) {

}

@media (min-width: 992px) {
    .navbar {
        background: transparent;
        border-bottom: dashed rgba(255,255,255,.15) 2px;
        margin-bottom:0;
    }
}

@media (min-width: 1200px) {

}
