/* 🌙 Mode clair et sombre */
:root {
    --bg-color: #f5f5f5;
    --text-color: #222;
    --muted-color: #555;
    --main-bg: #fff;
    --accent-color: #d63333;
}
.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --muted-color: #adb5bd;
    --main-bg: #2b2b2b;
    --accent-color: #ff6347;
}
.title-with-bg {
    /* Fond de couleur noire pour garantir un contraste avec le texte blanc */
    background-color: rgba(0, 0, 0, 0.5); /* Noir avec 50% d'opacité */
    
    /* Ajouter un peu d'espace autour du texte pour mieux encapsuler le background */
    padding: 10px; 

    margin: right 25px; ;
    
    /* Ajustez les coins pour un look plus doux (optionnel) */
    border-radius: 5px; 
    
    /* Assurez-vous que le texte reste bien Blanc */
    color: white; 
    
    /* Pour que le background ne prenne que la largeur du texte */
    display: inline-block; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.5s, color 0.5s;
    font-family: 'Georgia', serif;
}


html, body {
  width: 100%;
  overflow-x: hidden;
}

/* Cache l'intégralité du contenu par défaut */
.hidden-content {
    display: none;
}

/* Cette classe sera ajoutée/retirée par JavaScript */
.show-content {
    display: block; /* ou 'initial', 'unset', etc., selon le type d'élément */
}
/* 🎯 Bannière avec hauteur fixe */
.article-banner {
    position: relative;
    width: 100%;
    height: 570px; /* hauteur fixe au lieu de 100vh */
    overflow: hidden;
    color: white;
    margin-top: -50px; /* remplace top: -50px pour éviter les problèmes de positionnement */
}

/* articleDetail.css */

/* ... (Vos autres styles CSS doivent être ici) ... */

/* Classe personnalisée pour le coin arrondi de 5px */
.btn-rounded {
    /* Cette propriété CSS standard est la seule qui fonctionne */
    border-radius: 5px; 
    
    /* Styles optionnels pour que le lien ressemble à un bouton */
    display: inline-block;
    padding: 10px 20px; /* Ajustez le padding selon vos besoins */
    text-decoration: none;
    color: white; /* Pour garantir la couleur du texte si bg-green est sombre */
}

/* * NOTE SUR BG-GREEN: 
* Si 'bg-green' est une classe Tailwind, elle appliquera la couleur de fond. 
* Si 'bg-green' n'est pas une classe Tailwind, ajoutez-le ici :
*/
.bg-green {
    background-color: #4CAF50; /* Exemple de vert, ajustez si besoin */
}

.title-background {
    /* Fond de couleur noire semi-transparent (60% opacité) */
    background-color: rgba(0, 0, 0, 0.6); 
    padding: 15px 25px; 
    border-radius: 8px; 
    
    /* Permet au fond de prendre uniquement la largeur du texte */
    display: inline-block; 
}



.article-banner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* utilise cover au lieu de fill pour un meilleur rendu */
    object-position: center !important; /* centre l'image */
    display: block;
}
.article-banner p {
    color: white;        /* le texte devient blanc */
    font-size: 1.4rem;   

}
.banner-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}
.banner-caption {
    position: absolute;
    top: 2rem; left: 25rem;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    width: 90%;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.banner-caption h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-top: 1rem;
}

/* 📖 Corps article */
.article-container {
    width: 100%;
    margin: 0 auto;
}
.article-body {
    background-color: var(--main-bg);
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    padding: 3rem;
    line-height: 1.8;
}
.article-category {
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
}
.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--text-color);
}
.article-subtitle {
    color: var(--muted-color);
    font-size: 1.2rem;
}
.article-meta span {
    color: var(--muted-color);
    font-size: 0.95rem;
}

 .article-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}
.article-body p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    margin-top: 3%;
    color: var(--text-color);
}
.article-body .paragraph-accent {
    padding-left: 1rem;
    border-left: 5px solid var(--accent-color);
}

/* Bouton */
.article-button a {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--accent-color), #000);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s;
}
.article-button a:hover {
    transform: scale(1.05);
}
.article-banner {
   
    text-align: center; /* <<< AJOUTEZ CECI */
}

