/* ==============================================
   main.css  —  Le Soir Numérique
   Feuille de style partagée (3 pages)
   ============================================== */


/* -----------------------------------------------
   RESET / BASE
----------------------------------------------- */
* {
    box-sizing: border-box;
}

body {
    background-color: #f0eeeb;
    color: #1a1a1a;
    font-family: 'Times New Roman', Times, serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.categorie-badge-inline {
    display: inline-block;
    background-color: #8e44ad;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: 10px;
}

a {
    color: #1a1a1a;
    text-decoration: none;
}

a:hover {
    color: #8e44ad;
}

img {
    display: block;
  
}

h1, h2, h3, h4, h5, h6 {
    font-family: Arial, sans-serif;
    color: #1a1a1a;
    margin-top: 0;
}

/* Tableaux (repris et amélioré depuis statement.css) */
table {
    border-collapse: collapse;
    width: 100%;
}

table td, table th {
    border: 1px solid #cccccc;
    padding: 10px 14px;
}

.table-calendrier {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 10px;
}

.table-calendrier th {
    background-color: #4a235a;
    color: #ffffff;
    text-align: center;
    padding: 6px 4px;
    font-size: 11px;
    text-transform: uppercase;
}

.table-calendrier td {
    text-align: center;
    padding: 6px 4px;
    border: 1px solid #eeeeee;
    color: #333333;
}

.table-calendrier td.today {
    background-color: #8e44ad;
    color: #ffffff;
    font-weight: 700;
    border-radius: 50%;
}

/* -----------------------------------------------
   BARRE SUPÉRIEURE
----------------------------------------------- */
#top-bar {
    background-color: #4a235a;
    color: #888aaa;
    font-size: 12px;
    padding: 5px 0;
}

#top-bar p {
    margin: 0;
    line-height: 24px;
}

#top-bar a {
    color: #888aaa;
    margin-left: 14px;
}

#top-bar a:hover {
    color: #e8c77d;
}

.top-social {
    text-align: right;
}


/* -----------------------------------------------
   HEADER
----------------------------------------------- */
#site-header {
    background-color: #4a235a;
    padding: 18px 0 14px;
    border-bottom: 3px solid #8e44ad;
}

#site-header h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 900;
}

#site-logo {
    color: #e8c77d;
    letter-spacing: 2px;
    display: block;
}

#site-logo:hover {
    color: #ffffff;
}

#site-tagline {
    color: #888aaa;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 4px 0 0;
}


/* -----------------------------------------------
   NAVIGATION PRINCIPALE
----------------------------------------------- */
#nav-principale {
    background-color: #4a235a;
    padding: 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-list li a {
    display: block;
    color: #ccccdd;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 14px;
    border-bottom: 3px solid transparent;
}

.nav-list li a:hover,
.nav-list li a.actif {
    color: #ffffff;
    border-bottom-color: #8e44ad;
}


/* -----------------------------------------------
   EN CE MOMENT
----------------------------------------------- */
#en-ce-moment {
    background-color: #e8e6e1;
    border-bottom: 1px solid #cccccc;
    padding: 7px 0;
    font-size: 13px;
}

.label-moment {
    background-color: #8e44ad;
    color: #ffffff;
    font-family: 'Times New Roman', Times, serif;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 3px 8px;
    margin-right: 12px;
    text-transform: uppercase;
}

#en-ce-moment a {
    color: #333333;
    margin-right: 14px;
    font-size: 13px;
}

#en-ce-moment a:hover {
    color: #8e44ad;
    text-decoration: underline;
}


/* -----------------------------------------------
   ÉLÉMENTS RÉUTILISABLES
----------------------------------------------- */
.categorie-tag {
    font-family: 'Times New Roman', Times, serif;
    font-size: 11px;
    font-weight: 700;
    color: #8e44ad;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
}

.article-meta {
    font-size: 12px;
    color: #888888;
    margin-top: 5px;
    margin-bottom: 0;
    font-family: 'Times New Roman', Times, serif;
}

.section-titre {
    font-size: 20px;
    font-weight: 700;
    color: #4a235a;
    border-left: 4px solid #8e44ad;
    padding-left: 10px;
    margin-top: 24px;
    margin-bottom: 16px;
}


/* -----------------------------------------------
   MAIN — index.html
----------------------------------------------- */
main {
    padding: 10px 0 30px;
}

#section-une {
    margin-bottom: 24px;
}

.une-card {
    background-color: #ffffff;
    border: 1px solid #e0ddd8;
    margin-bottom: 16px;
}

.une-figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    height: 320px;
}

.une-figure img {
    width: auto;
    height: 100%;
    max-width: none;
    object-fit: fill;
    margin: 0 auto;
}

.categorie-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #8e44ad;
    color: #ffffff;
    font-family: 'Times New Roman', Times, serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
}

.une-body {
    padding: 14px 16px;
}

.une-titre {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.une-titre a {
    color: #1a1a1a;
}

.une-titre a:hover {
    color: #8e44ad;
}

.article-chapeau {
    font-size: 14px;
    color: #555555;
    line-height: 1.65;
    margin-top: 8px;
}

#bloc-2 {
    background-color: #ffffff;
    border: 1px solid #e0ddd8;
    padding: 14px;
}

.article-side h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.article-side h4 a:hover {
    color: #8e44ad;
}

.side-img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    display: block;
}

.card-figure img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.une-card .une-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    background: #ddd;
}

.article-side .row {
    display: flex;
    align-items: center;
}

#section-bloc3 {
    border-top: 2px solid #4a235a;
    padding-top: 8px;
}

.article-card {
    background-color: #ffffff;
    border: 1px solid #e0ddd8;
    margin-bottom: 20px;
}

.article-card:hover {
    border-color: #8e44ad;
}



.card-body {
    padding: 12px;
}

.card-body h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.card-body h4 a:hover {
    color: #8e44ad;
}


/* -----------------------------------------------
   MAIN — article.html
----------------------------------------------- */
#article-principal {
    background-color: #ffffff;
    border: 1px solid #e0ddd8;
    padding: 28px 30px;
    margin-top: 16px;
}

.article-header {
    margin-bottom: 16px;
}

.breadcrumb-article {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12px;
    color: #888888;
    margin-bottom: 14px;
    display: block;
}

.breadcrumb-article a {
    color: #888888;
}

.breadcrumb-article a:hover {
    color: #8e44ad;
}

.article-cat {
    margin-bottom: 8px;
}

.article-titre-principal {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #4a235a;
}

.article-meta-bar {
    font-family: 'Times New Roman', Times, serif;
    font-size: 13px;
    color: #777777;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 8px 0;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
}

.auteur {
    font-style: normal;
    margin: 0;
}

.article-figure {
    margin: 0 0 20px;
    overflow: hidden;
    height: 400px;
}

/* Main article image */
.article-figure img {
    width: 60%;
    height: 50%;
    max-width: 500px;
    object-fit: fill;
    margin: 0 auto;
}

.article-figure figcaption {
    font-size: 12px;
    color: #999999;
    padding: 6px 0;
    border-bottom: 1px solid #eeeeee;
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
}

#article-principal p {
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
    color: #333333;
}

.article-sous-titre {
    font-size: 20px;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #4a235a;
    border-left: 3px solid #8e44ad;
    padding-left: 10px;
}

.table-article {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #cccccc;
    margin: 20px 0;
    font-size: 14px;
    font-family: 'Times New Roman', Times, serif;
}

.table-article td,
.table-article th {
    border: 1px solid #cccccc;
    padding: 10px 14px;
}

.table-article thead th {
    background-color: #4a235a;
    color: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-article tbody tr:nth-child(even) {
    background-color: #f7f6f3;
}

.article-footer {
    border-top: 1px solid #eeeeee;
    margin-top: 24px;
    padding-top: 16px;
}

.lien-retour {
    font-size: 13px;
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
}

.lien-retour a {
    color: #8e44ad;
    font-weight: 700;
}

#sidebar {
    background-color: #ffffff;
    border: 1px solid #e0ddd8;
    padding: 16px;
    margin-top: 16px;
}

.sidebar-titre {
    font-size: 17px;
    border-bottom: 2px solid #8e44ad;
    padding-bottom: 8px;
    margin-bottom: 14px;
    color: #4a235a;
}

.sidebar-item h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 4px;
}

.sidebar-item h4 a:hover {
    color: #8e44ad;
}


/* -----------------------------------------------
   MAIN — custom.html
----------------------------------------------- */
#custom-main {
    padding: 0;
}

.custom-row {
    margin: 0;
    min-height: 600px;
}

.panneau {
    padding: 20px 16px;
    min-height: 600px;
}

.panneau-gauche {
    background-color: #d4edda;
    border-right: 2px solid #b8dfc5;
}

.panneau-centre {
    background-color: #ffffff;
    border-right: 1px solid #dddddd;
    border-left: 1px solid #dddddd;
}

.panneau-droit {
    background-color: #f8d7da;
    border-left: 2px solid #e8b8bc;
}

.panneau-titre {
    font-family: 'Times New Roman', Times, serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0,0,0,0.15);
    padding-bottom: 8px;
    margin-bottom: 18px;
    color: #333333;
}

.panneau-titre-centre {
    font-family: 'Times New Roman', Times, serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999999;
    margin-bottom: 10px;
}

.controle-groupe {
    margin-bottom: 18px;
}

.controle-groupe label {
    display: block;
    font-family: 'Times New Roman', Times, serif;
    font-size: 11px;
    font-weight: 700;
    color: #444444;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.controle-select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #aaaaaa;
    background-color: #ffffff;
    font-size: 13px;
    color: #333333;
}

.controle-color {
    width: 100%;
    height: 34px;
    border: 1px solid #aaaaaa;
    padding: 2px;
    cursor: pointer;
}

.controle-range {
    width: 100%;
    margin-bottom: 3px;
}

.valeur-affichage {
    font-size: 11px;
    color: #666666;
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
    display: block;
}

#zone-apercu {
    border: 1px solid #dddddd;
    padding: 20px;
}

#zone-apercu .article-titre-principal {
    font-size: 20px;
}

#zone-apercu p {
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
    color: #333333;
}

/* Preview image in custom page */
#zone-apercu .article-figure {
    height: 250px;
    
}

/* -----------------------------------------------
   FOOTER
----------------------------------------------- */
#site-footer {
    background-color: #4a235a;
    color: #ccccdd;
    padding: 30px 0 0;
    margin-top: 40px;
}

.footer-logo-row {
    padding-bottom: 16px;
}

.footer-logo {
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #e8c77d;
    letter-spacing: 2px;
}

.footer-divider-top {
    border-color: #333355;
    margin: 0 0 24px;
}

.footer-cols {
    padding-bottom: 10px;
}

.footer-col {
    margin-bottom: 20px;
}

.footer-col h5 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e8c77d;
    border-bottom: 1px solid #333355;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 7px;
}

.footer-col ul li a {
    color: #aaaacc;
    font-size: 13px;
    font-family: 'Times New Roman', Times, serif;
}

.footer-col ul li a:hover {
    color: #e8c77d;
}

.footer-newsletter-text {
    font-size: 13px;
    color: #888899;
    margin-bottom: 10px;
    line-height: 1.5;
    font-family: 'Times New Roman', Times, serif;
}

.footer-email {
    width: 100%;
    padding: 9px 10px;
    background-color: #1e1e35;
    border: 1px solid #333355;
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
    font-family: 'Times New Roman', Times, serif;
}

.footer-email::placeholder {
    color: #666688;
}

.btn-subscribe {
    width: 100%;
    padding: 9px;
    background-color: #e8c77d;
    color: #4a235a;
    border: none;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: block;
}

.btn-subscribe:hover {
    background-color: #d4a800;
}

.footer-divider {
    border-color: #222244;
    margin: 10px 0 0;
}

.footer-bottom {
    padding: 14px 0;
}

.footer-bottom p {
    color: #555577;
    font-size: 12px;
    margin: 3px 0;
    font-family: 'Times New Roman', Times, serif;
}

.footer-bottom a {
    color: #666688;
    font-size: 12px;
}

.footer-bottom a:hover {
    color: #e8c77d;
}