/* === VARIABLES === */
:root {
    --primary: #ffc107;
    --dark: #111111;
    --light: #f4f1eb;
    --muted: #666;
    --border: #d4c89a;
}

/* === BASE === */
* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: Garamond, Georgia, serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.75;
}

/* === HEADER === */
header {
    background-color: var(--primary);
    border-bottom: 3px solid var(--dark);
    padding: 0;
}

header h1 {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    color: var(--dark);
}

header nav a {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.78rem;
    text-decoration: none;
    margin: 0 2px;
}

header .btn-warning,
header .btn-outline-light {
    background-color: var(--primary);
    color: var(--dark);
    border: 2px solid var(--dark);
    font-weight: 700;
}
header .btn-warning:hover,
header .btn-outline-light:hover { background-color: #e6ac00; border-color: var(--dark); color: var(--dark); }

/* === BREAKING NEWS === */
.breaking {
    background-color: #c0392b;
    color: white;
    text-align: center;
    padding: 5px 15px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* === MAIN === */
main { margin-top: 20px; margin-bottom: 20px; }

/* === TITRES === */
h2, h3, h4, h5 { font-family: 'Roboto', Arial, sans-serif; color: var(--dark); }

.section-titre {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 5px;
    margin-bottom: 18px;
}

/* === UNE === */
.une-section { border-bottom: 2px solid var(--border); padding-bottom: 28px; }
.une-article { padding-right: 28px; border-right: 1px solid var(--border); }

.une-titre {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 10px;
}

.une-chapeau {
    font-family: Garamond, Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--muted);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    margin-bottom: 10px;
}

.auteur-ligne {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.une-article img { width:100%; height:270px; object-fit:cover; display:block; margin-bottom:12px; border:1px solid var(--border); }
.une-article p { font-family: Garamond, Georgia, serif; font-size:1rem; text-align:justify; margin-bottom:10px; }
.tags-ligne { margin-top: 12px; }

/* === LABELS === */
.categorie-label {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.68rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 7px;
    display: inline-block;
}

.categorie-mini {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.63rem;
    font-weight: bold;
    padding: 1px 4px;
    display: inline-block;
    margin-bottom: 3px;
}

/* === SIDEBAR ACCUEIL === */
.sidebar-actu { padding-left: 18px; }

.sidebar-titre {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 5px;
}

.sidebar-item { padding: 8px 4px; border-bottom: 1px solid var(--border); background: transparent; }

.sidebar-item a {
    font-family: Garamond, Georgia, serif;
    font-size: 0.93rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: bold;
    line-height: 1.3;
    display: block;
}

.sidebar-item a:hover { color: #b8860b; text-decoration: underline; }

/* === ARTICLE CARDS === */
.article-card { background-color: white; border: 1px solid var(--border); padding: 12px; transition: box-shadow 0.25s; }
.article-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.11); }
.article-card img { width:100%; height:175px; object-fit:cover; display:block; margin-bottom:8px; border:1px solid var(--border); }
.article-card h5 { font-family: 'Roboto', Arial, sans-serif; font-size:0.97rem; font-weight:700; line-height:1.3; margin-bottom:6px; }
.article-card p { font-family: Garamond, Georgia, serif; font-size:0.89rem; color:#444; text-align:justify; margin-bottom:8px; }

/* === PAGE ARTICLE === */
article.col-lg-8 { background-color: white; padding: 26px; line-height: 1.9; border: 1px solid var(--border); }
article h1 { font-family: 'Roboto', Arial, sans-serif; font-size:1.8rem; font-weight:900; line-height:1.25; margin-bottom:10px; }
article h2 { font-family: 'Roboto', Arial, sans-serif; margin-top:26px; margin-bottom:8px; border-left:4px solid var(--primary); padding-left:10px; font-size:1.15rem; }
article p { font-family: Garamond, Georgia, serif; }

.article-main-img { width:100%; height:300px; object-fit:cover; margin:14px 0; display:block; border:1px solid var(--border); }

blockquote {
    background: #fff8e1;
    padding: 12px 16px;
    border-left: 5px solid var(--primary);
    font-family: Garamond, Georgia, serif;
    font-style: italic;
    color: #555;
    margin: 18px 0;
}

/* === ASIDE === */
aside .card { border: 1px solid var(--border); margin-bottom: 14px; background-color: white; }
aside ul { list-style: none; padding-left: 0; }
aside ul li { padding: 5px 0; border-bottom: 1px solid var(--border); }
aside a { font-family: Garamond, Georgia, serif; color: var(--dark); text-decoration: none; }
aside a:hover { color: #b8860b; text-decoration: underline; }

/* === FORMULAIRE === */
.menu-green { background-color: #d4edda; border: 1px solid #b8dacc; overflow-y: auto; }
.menu-red   { background-color: #f8d7da; border: 1px solid #f5c2c7; overflow-y: auto; }
.config-row { margin-bottom: 12px; }
.config-label { display:block; font-family:'Roboto',Arial,sans-serif; font-weight:bold; font-size:0.8rem; margin-bottom:3px; }
.config-control { width: 100%; }
.preview-scroll { overflow-y:auto; max-height:70vh; font-family:Garamond,Georgia,serif; }
.preview-scroll img { max-height:160px; width:auto; display:block; margin:0 auto; }

/* === FOOTER === */
footer {
    background-color: var(--primary);
    color: var(--dark);
    border-top: 4px solid var(--dark);
}

footer .footer-top { padding: 8px 0 4px; border-bottom: 1px solid #c8960a; }
footer .footer-col { padding-top: 8px; padding-bottom: 4px; }

footer .footer-heading {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

footer .footer-list { list-style:none; padding:0; margin:0; }
footer .footer-list li { margin-bottom: 2px; }
footer .footer-list a { font-family:Garamond,Georgia,serif; font-size:0.82rem; color:var(--dark); text-decoration:none; }
footer .footer-list a:hover { color: #555; text-decoration: underline; }

footer .footer-input {
    width: 100%;
    padding: 3px 7px;
    background-color: white;
    border: 1px solid var(--dark);
    color: var(--dark);
    font-family: Garamond, Georgia, serif;
    font-size: 0.8rem;
    margin-bottom: 4px;
    display: block;
}

footer .footer-input::placeholder { color: #888; }

footer .footer-btn {
    background-color: var(--primary);
    color: var(--dark);
    border: 2px solid var(--dark);
    padding: 3px 12px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    width: 100%;
}

footer .footer-btn:hover { background-color: #e6ac00; }

footer .footer-bottom {
    padding: 5px 0 4px;
    text-align: center;
    font-size: 0.7rem;
}

footer .footer-bottom p { margin-bottom: 2px; color: var(--dark); opacity: 0.7; }

footer .footer-bottom-nav a {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.68rem;
    color: var(--dark);
    text-decoration: none;
    margin: 0 5px;
    opacity: 0.7;
}

footer .footer-bottom-nav a:hover { opacity: 1; text-decoration: underline; }

/* === UTILITAIRES === */
img { max-width: 100%; height: auto; }
.badge { font-family: Consolas, 'Courier New', monospace; font-size: 0.68rem; }
