/***********************************************************************
 *   _____ _      _____ _____  _      _    _  _____ 
 *  / ____| |    / ____|  __ \| |    | |  | |/ ____|
 * | (___ | |   | |  __| |__) | |    | |  | | (___  
 *  \___ \| |   | | |_ |  ___/| |    | |  | |\___ \ 
 *  ____) | |___| |__| | |    | |____| |__| |____) |
 * |_____/|______\_____|_|    |______|\____/|_____/ 
 *                                          
 * FILE        : styles.css
 * COPYRIGHT   : (c) 2026 SLGPlus
 * CONTEXT     : common_css
 ***********************************************************************/

:root {
    --bg-page: #f0f2f5;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f8f9fa;
    --box-bg: rgba(255, 255, 255, 0.8);
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #888;
    --text-body: #073761;
    --text-content: #444;
    --text-heading: #222;
    --text-label: #aaa;
    --icon-muted: #999;
    --border-light: #eee;
    --border-subtle: #f0f0f0;
    --hover-bg: #f0f0f0;
    --progress-track: #e6e6e6;
    --badge-bg: #eef0fb;
    --handle-bg: #e0e0e0;
    --modal-close-bg: #f2f2f2;
    --modal-close-text: #777;
    --modal-close-hover-bg: #e5e5e5;
    --img-bg: #f4f4f8;
    --placeholder-icon: #aab3e8;
    --placeholder-gradient: linear-gradient(135deg, #eef0fb, #dde1f7);
    --spinner-track: #e0e4f8;
    --chip-border: #e2e8f0;
    --border-table: black;
    --sixieme: #2a57de;
    --cinquieme: #F59E0B;
    --quatrieme: #2d7508;
    --troisieme: #c71010;
}

[data-bs-theme="dark"] {
    --bg-page: #121212;
    --bg-surface: #1e1e1e;
    --bg-surface-alt: #262626;
    --box-bg: rgba(20, 20, 20, 0.85);
    --text-primary: #eaeaea;
    --text-secondary: #b8b8b8;
    --text-muted: #999;
    --text-body: #d8e6f5;
    --text-content: #cccccc;
    --text-heading: #f0f0f0;
    --text-label: #888;
    --icon-muted: #888;
    --border-light: #333;
    --border-subtle: #333;
    --hover-bg: #2a2a2a;
    --progress-track: #3a3a3a;
    --badge-bg: #2a2d42;
    --handle-bg: #444;
    --modal-close-bg: #2a2a2a;
    --modal-close-text: #bbb;
    --modal-close-hover-bg: #383838;
    --img-bg: #202030;
    --placeholder-icon: #7d87c2;
    --placeholder-gradient: linear-gradient(135deg, #262a40, #1f2233);
    --spinner-track: #333850;
    --chip-border: #444;
    --border-table: #555;
    --sixieme: #034e99;
    --cinquieme: #997b03;
    --quatrieme: #027818;
    --troisieme: #8a0101;
}

#main-navbar {
    background-color: var(--bg-surface) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

#main-navbar .navbar-brand,
#main-navbar .navbar-brand a,
#main-navbar .nav-link {
    color: var(--text-primary) !important;
}

#main-navbar .nav-link.active {
    color: #667eea !important;
    font-weight: 600;
}

#main-navbar .navbar-toggler {
    border-color: var(--border-light);
}

@media screen and (min-width: 314px){
    .box{
        width: 89%;
    }
}
body {
    background-image: url(/assets/bgimage.png);
    background-size: cover;
    background-position: fixed;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
    color: var(--text-body);
    margin-left: 0px;
    margin-top: 0px;
}

.box {
    border-radius: 30px;
    /* Ilyès: J'ai changé car ct trp grand est pas mobil-friendly*/
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 700px;
    border: 50px solid rgba(255, 255, 255, 0);
    box-shadow: 0 0 20px black;
    background-color: var(--box-bg);
}

.auteur {
    /* Petit texte qui s'affiche en dessous de chaque nouveauté */
    color: var(--text-muted);
    margin-right: 5px;
}

/* Dark mode transition */
body, .box, .article-card, .modal-content, #main-navbar,
.section-header, .subsection-title, .logincard, .license-container {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/*tableau cantine*/

.sixieme{
    background-color: var(--sixieme);
}
.cinquieme{
    background-color: var(--cinquieme);
}
.quatrieme{
    background-color: var(--quatrieme);
}
.troisieme{
    background-color: var(--troisieme);
}