/* ==========================================================================
   STYLE DES ARTICLES
   ========================================================================== */

/* 1. CONFIGURATION DE BASE (Mobile & Approche Mobile-First)
   ========================================================================== */
main {
    width: 100%;
    margin-top: 85px;
    padding: 0 20px 20px 20px;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
    color: #333333;
    line-height: 1.6;
}

/* Image principale (Hero) */
.img-articles {
    width: 100vw;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
}

/* Titres */
h1 {
    font-size: 1.8rem;
    color: var(--p-violet);
    line-height: 1.3;
    margin-bottom: 20px;
	font-family: var(--p-font);
	font-weight: 800;
	padding-top: 10px;
}

h2 {
    font-size: 1.4rem;
    color: #4a4a4a;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 4px solid var(--p-glycine2, #8a63a5);
    padding-left: 15px;
}

h3 {
    font-size: 1.15rem;
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
	text-align: left;
}

/* Paragraphes et listes */
p {
    margin-bottom: 18px;
}

.chapeau {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #555555;
    margin-bottom: 30px;
}

ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* Encadré Disclaimer */
.disclaimer {
    background-color: #f9f6fa; /* Teinte douce */
    border-radius: 12px;
    padding: 20px;
    margin: 35px 0;
    border: 1px solid #eedff5;
}
.disclaimer p:last-child {
    margin-bottom: 0;
}

/* Boutons d'action (CTA) */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.cta-buttons .btn {
    text-align: center;
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background-color: var(--p-glycine2, #8a63a5);
    color: #ffffff;
}

.cta-buttons .btn-secondary {
    background-color: transparent;
    color: var(--p-glycine2, #8a63a5);
    border: 2px solid var(--p-glycine2, #8a63a5);
}


/* ==========================================================================
   TABLETTE (A partir de 768px)
   ========================================================================== */
@media screen and (min-width: 768px) {
    main {
        /* On centre le texte sous forme de colonne d'article agréable à lire */
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 0 60px 0;
    }

    .img-articles {
        width: 100%;
        margin-left: 0;
        border-radius: 16px;
        max-height: 380px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    .cta-buttons .btn {
        flex: 1;
        max-width: 280px;
    }
}


/* ==========================================================================
   DESKTOP STANDARD (A partir de 1024px)
   ========================================================================== */
@media screen and (min-width: 1024px) {
    main {
        max-width: 800px;
        font-size: 1.05rem;
    }

    .img-articles {
        max-height: 450px;
    }

    h1 { 
		font-size: 2rem;
		max-width: 700px;
		}
    h2 { font-size: 1.8rem; }
}


/* ==========================================================================
   GRAND ÉCRAN / CONFORT (A partir de 1400px)
   ========================================================================== */
@media screen and (min-width: 1400px) {
    main {
        max-width: 850px;
    }
}

/* ==========================================================================
   AJUSTEMENTS D'HARMONISATION DE LA CHARTE GRAPHIQUE
   ========================================================================== */

/* Alignement du contenu principal */
main {
    margin-left: auto;
    margin-right: auto;
}

/* Méta-données de l'article (Catégorie, temps de lecture) */
.meta-info {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(112, 48, 131, 0.1);
    padding-bottom: 15px;
}

.meta-info .category {
    color: var(--p-glycine3, #804E8E);
    font-weight: 700;
    text-transform: uppercase;
}

/* Paragraphe d'introduction mis en valeur */
.lead {
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
    font-weight: 500;
    margin-bottom: 30px;
}

/* Typographie de l'article */
.article-body p {
    margin-bottom: 1.5em;
    text-align: left;
}

.article-body h2 {
    color: var(--p-violet, #703083);
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    font-weight: 700;
    text-align: left;
}

/* Listes à puces esthétiques */
.article-body ul {
    margin: 1.5em 0;
    padding-left: 20px;
    text-align: left;
}

.article-body li {
    margin-bottom: 0.8em;
    list-style-type: square;
}

/* Citation stylisée (Blockquote) */
blockquote {
    margin: 2em 0;
    padding: 15px 25px;
    border-left: 4px solid var(--p-violet, #703083);
    background-color: #fcfaff;
    font-style: italic;
    font-size: 1.1rem;
    color: #4a4a4a;
}

/* Note légale en fin d'article */
.legal-notice {
    background-color: #f9f9f9;
    padding: 15px;
    font-size: 0.85rem;
    margin: 30px 0;
    border-radius: 8px;
    color: #555;
    text-align: center;
}

/* Alignement et design des boutons d'actions en bas */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 2em 0;
}

.cta-buttons .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--p-violet, #703083);
    color: #fff !important;
}

.btn-primary:hover {
    background-color: var(--p-glycine3, #804E8E);
}

.btn-secondary {
    background-color: transparent;
    color: var(--p-glycine2, #906B9A) !important;
    border: 2px solid var(--p-glycine2, #906B9A);
}

.btn-secondary:hover {
    background-color: var(--p-glycine2, #906B9A);
    color: #fff !important;
}

/* Repassage responsive pour les boutons sur ordinateur */
@media screen and (min-width: 768px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}