/* =========================
   RESET ET BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Garamond, serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.7;
}

/* =========================
   HEADER
========================= */
header {
    background-color: #343a40; /* gris sombre */
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    text-align: center;
}

header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

header nav a {
    font-family: Consolas, monospace;
    text-decoration: none;
    color: white;
    margin: 0 10px;
}

header nav a:hover {
    color: #ffc107; /* doré */
    text-decoration: underline;
}

/* =========================
   MAIN
========================= */
main {
    margin-top: 30px;
}

/* =========================
   BREAKING NEWS
========================= */
section h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

section img {
    width: 100%;
    height: 250px; /* taille fixe uniforme */
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
}

/* =========================
   ARTICLES INDEX
========================= */
article {
    margin-bottom: 30px;
    padding-right: 15px;
}

article h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

article p {
    font-size: 16px;
    line-height: 1.6;
}

/* uniformiser toutes les images */
article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* =========================
   SIDEBAR / ASIDE
========================= */
aside {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
}

aside ul {
    list-style: none;
    padding-left: 10px;
}

aside a {
    color: #0d6efd;
    text-decoration: none;
}

aside a:hover {
    text-decoration: underline;
}

/* =========================
   ARTICLE DETAIL (article.html)
========================= */
.resume {
    font-style: italic;
    margin-bottom: 15px;
}

article img.detail {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin: 15px 0;
    border-radius: 10px;
}

/* =========================
   FORMULAIRE (custom.html)
========================= */
section label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

section input,
section select,
section textarea {
    width: 100%;
    margin-top: 5px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

button {
    width: 100%;
    margin-top: 15px;
}

/* =========================
   CARDS & PREVIEW
========================= */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.col-md-6.card {
    background-color: #e6f0ff;
    padding: 15px;
}

/* =========================
   FOOTER
========================= */
footer {
    background-color: #343a40;
    color: white;
    font-size: 14px;
    padding: 20px 0;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    color: #ffc107;
    text-decoration: underline;
}

footer h5 {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: bold;
}

/* =========================
   RESPONSIVE
========================= */
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    header nav {
        margin-top: 10px;
    }
    section img {
        height: 180px;
    }
}
/* =========================
   IMAGES UNIFORMES
========================= */
/* Articles 1 à 10 */
/* =========================
   IMAGES ARTICLES - TAILLE UNIFORME
========================= */
.img-fluid1,
.img-fluid2,
.img-fluid3,
.img-fluid4,
.img-fluid5,
.img-fluid6,
.img-fluid7,
.img-fluid8,
.img-fluid9,
.img-fluid10 {
    width: 100%;           /* pleine largeur du container */
    height: 220px;         /* même hauteur pour tous les articles */
    object-fit: cover;     /* recadrage sans déformation */
    border-radius: 8px;    /* coins arrondis */
    display: block;
    margin-bottom: 15px;
}

/* Responsive sur mobile */
@media (max-width: 767px) {
    .img-fluid1,
    .img-fluid2,
    .img-fluid3,
    .img-fluid4,
    .img-fluid5,
    .img-fluid6,
    .img-fluid7,
    .img-fluid8,
    .img-fluid9,
    .img-fluid10 {
        height: 180px;
    }
}
/* =========================
   IMAGE ARTICLE PRINCIPAL
========================= */
.article-main-img {
    width: 100%;         /* pleine largeur du container */
    max-height: 400px;   /* hauteur moyenne confortable */
    object-fit: cover;   /* recadrage sans déformation */
    border-radius: 8px;  /* coins arrondis */
    margin: 15px 0;      /* marge verticale */
}

/* =========================
   IMAGES ARTICLES SECONDAIRES
========================= */
.article-thumbnail {
    width: 100%;         /* prend toute la largeur de la colonne */
    height: 250px;       /* hauteur uniforme */
    object-fit: cover;   /* recadrage sans déformation */
    border-radius: 6px;  /* coins légèrement arrondis */
    margin-bottom: 10px; /* espacement sous l’image */
}

/* Responsive pour mobile */
@media (max-width: 767px) {
    .article-main-img {
        max-height: 250px;
    }
    .article-thumbnail {
        height: 180px;
    }
}
/* =========================
   RESET & BASE
========================= */
/* 🔥 STYLE DES ARTICLES */
article.col-md-4 {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* ✨ HOVER EFFECT (pro) */
article.col-md-4:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 🖼 IMAGES */
[class^="img-fluid"] {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* 📰 TITRE */
article h5 {
    font-weight: bold;
    margin-top: 10px;
}

/* 📄 TEXTE */
article p {
    color: #555;
    font-size: 14px;
}

/* 🔘 BOUTON */
article .btn {
    border-radius: 20px;
}

/* IMAGE ARTICLE */
.article-main-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ARTICLE STYLE */
article {
    line-height: 1.8;
}

/* BLOCKQUOTE */
blockquote {
    font-style: italic;
    border-left: 4px solid #ffc107;
}

/* SIDEBAR */
aside .card {
    border-radius: 12px;
}

/* =========================
   VARIABLES (COULEURS PRO)
========================= */
:root {
    --primary: #0d6efd;      /* bleu principal */
    --dark: #0b1c2c;         /* bleu très foncé */
    --accent: #ffc107;       /* doré */
    --light: #f8f9fa;
    --text: #212529;
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.7;
}

/* =========================
   HEADER (ULTRA PRO)
========================= */
header {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: white;
    padding: 25px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 32px;
    font-weight: 700;
}

header .btn {
    border-radius: 25px;
    padding: 6px 18px;
    transition: 0.3s;
}

header .btn-warning {
    background-color: var(--accent);
    border: none;
    color: black;
}

header .btn-warning:hover {
    background-color: #ffca2c;
}

/* =========================
   BREAKING NEWS
========================= */
.bg-danger {
    background: linear-gradient(90deg, #dc3545, #ff4d4d);
    letter-spacing: 1px;
}

/* =========================
   ARTICLES CARDS
========================= */
article.col-md-4 {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

article.col-md-4:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* =========================
   IMAGES
========================= */
[class^="img-fluid"] {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

/* IMAGE ARTICLE PRINCIPAL */
.article-main-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin: 15px 0;
}

/* =========================
   ARTICLE PAGE (DETAIL)
========================= */
article.col-lg-8 {
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    line-height: 1.9;
}

article h1 {
    font-weight: 700;
}

article h2 {
    margin-top: 25px;
    color: var(--primary);
}

/* CITATION PRO */
blockquote {
    background: #f1f3f5;
    padding: 15px;
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    font-style: italic;
}

/* =========================
   SIDEBAR
========================= */
aside .card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
/* =========================
   VARIABLES COULEUR PRO
========================= */
:root {
    --primary: #f4b400;   /* jaune pro */
    --dark: #1a1a1a;      /* noir élégant */
    --light: #f8f9fa;
    --text: #212529;
}

/* =========================
   BASE
========================= */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light);
    color: var(--text);
}

/* =========================
   HEADER
========================= */
header {
    background-color: var(--dark);
    color: white;
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

header h1 {
    font-weight: bold;
}

/* BOUTONS NAV */
header .btn {
    border-radius: 25px;
}

header .btn-warning {
    background-color: var(--primary);
    border: none;
    color: black;
}

header .btn-warning:hover {
    background-color: #ffd54f;
}

/* =========================
   BREAKING NEWS
========================= */
.bg-danger {
    background: linear-gradient(90deg, #ff0000, #ff4d4d);
}

/* =========================
   ARTICLES CARDS
========================= */
article.col-md-4 {
    background-color: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

article.col-md-4:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* =========================
   IMAGES
========================= */
[class^="img-fluid"] {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

/* IMAGE PRINCIPALE */
.article-main-img {
    height: 350px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* =========================
   TITRES
========================= */
h2, h3 {
    color: var(--primary);
}

/* =========================
   BOUTONS
========================= */
.btn-warning {
    background-color: var(--primary);
    border: none;
    border-radius: 20px;
    font-weight: bold;
}

.btn-warning:hover {
    background-color: #ffd54f;
}

/* =========================
   SIDEBAR
========================= */
aside .card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =========================
   COULEUR DOMINANTE JAUNE
========================= */
:root {
    --primary: #ffc107;   /* jaune bootstrap propre */
    --dark: #111111;
    --light: #f8f9fa;
}

/* =========================
   HEADER (JAUNE DOMINANT)
========================= */
header {
    background: linear-gradient(135deg, #ffc107, #ffca2c);
    color: black;
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

header h1 {
    font-weight: bold;
}

/* NAV BUTTONS */
header .btn {
    border-radius: 25px;
}

/* bouton actif */
header .btn-warning {
    background-color: black;
    color: #ffc107;
    border: none;
}

header .btn-warning:hover {
    background-color: #333;
}

/* autres boutons */
header .btn-outline-light {
    border-color: black;
    color: black;
}

header .btn-outline-light:hover {
    background-color: black;
    color: #ffc107;
}

/* =========================
   TITRES JAUNES
========================= */
h2, h3 {
    color: #ffc107;
}

/* =========================
   BOUTONS
========================= */
.btn-warning {
    background-color: #ffc107;
    color: black;
    border: none;
    font-weight: bold;
}

.btn-warning:hover {
    background-color: #ffca2c;
}

/* =========================
   CARDS ARTICLES
========================= */
article.col-md-4 {
    border-top: 4px solid #ffc107; /* touche jaune pro */
}

/* =========================
   FOOTER (NOIR + JAUNE)
========================= */
footer {
    background-color: #111;
    color: white;
    padding: 30px 0;
}

footer h5 {
    color: #ffc107;
}

footer a {
    color: #ffc107;
}

footer a:hover {
    color: #ffca2c;
}

/* =========================
   BLOCKQUOTE
========================= */
blockquote {
    border-left: 5px solid #ffc107;
    background: #fff3cd;
    padding: 10px;
    border-radius: 8px;
}

/* FOOTER JAUNE DOMINANT (comme header) */
footer {
    background: linear-gradient(135deg, #ffc107, #ffca2c); /* même gradient que le header */
    color: black;
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

/* Titres du footer */
footer h5 {
    color: #111; /* noir élégant */
    font-weight: bold;
    margin-bottom: 15px;
}

/* Liens dans le footer */
footer a {
    color: #111; /* noir élégant */
    text-decoration: none;
    margin: 0 5px;
    font-weight: 500;
}

footer a:hover {
    color: #333; /* léger foncé au hover */
    text-decoration: underline;
}

/* Texte général du footer */
footer p {
    color: #111;
    font-size: 14px;
    margin: 5px 0;
}



.csshead {
    color: #111111; /* noir professionnel */
}


/* =========================
   HEADER - PAGE INDEX
========================= */
.header-index {
    background: linear-gradient(135deg, #ffc107, #ffca2c);
    color: black;
    padding: 12px 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.header-index h1.csshead-index {
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 8px;
}

.header-index .nav-index .btn {
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 14px;
}

.header-index .btn-warning {
    background-color: black;
    color: #ffc107;
    border: none;
}

.header-index .btn-warning:hover {
    background-color: #333;
}

.header-index .btn-outline-light {
    border-color: black;
    color: black;
}

.header-index .btn-outline-light:hover {
    background-color: black;
    color: #ffc107;
}