/* ==========================================================================
   STYLE DES ARTICLES
   ========================================================================== */

/* 1. CONFIGURATION DE BASE (Mobile & Approche Mobile-First)
   ========================================================================== */
main {
    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: 70%;
	max-width: 350px;
	margin: auto;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media screen and (max-width: 320px) {
	.img-articles {
		width: 90%;	
	}
}
/* Titres */
h1 {
    line-height: 1.3;
    margin-bottom: 20px;
	font-family: var(--p-font);
	font-weight: 800;
	padding-top: 10px;
}

h2 {
    font-size: 1.3rem;
    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;
}

h4 {
    font-size: 1.05rem;
    color: var(--p-violet);
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
    font-weight: 700;
}

/* 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;
}



/* ==========================================================================
   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 {
		margin-right: auto;
		margin-left: auto;
        border-radius: 16px;
        max-width: 400px;
    }

    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}


/* ==========================================================================
   DESKTOP STANDARD (A partir de 1024px)
   ========================================================================== */
@media screen and (min-width: 1024px) {
    main {
        max-width: 800px;
        font-size: 1.05rem;
    }

    .img-articles {
        max-width: 500px;
    }

    h1 { 
		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;
}

/* ==========================================================================
   SPÉCIFIQUE : PAGE VENIR AU CABINET (LOGISTIQUE)
   ========================================================================== */


/* Zone et effet zoom du plan de quartier */
.plan-article-wrapper {
    margin: 35px 0;
    text-align: center;
}
.plan-zoomable {
    width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: zoom-in;
    transition: all 0.3s ease-in-out;
    border: 1px solid #eedff5;
}
.plan-zoomable.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 95vw !important;
    max-width: 1100px !important;
    z-index: 9999;
    cursor: zoom-out;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.4) !important;
}
body:has(.plan-zoomable.zoomed)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

/* ==========================================================================
   BANDE CLAIRE D'INTRODUCTION (façon landing page)
   Uniquement à partir du desktop (menu horizontal) : sépare visuellement
   le dégradé de fond du bloc image + titre, comme sur la page d'accueil.
   ========================================================================== */
@media screen and (min-width: 1024px) {

    main {
        margin-top: 0;
		    max-width: 1024px;
			margin: 80px auto;
			box-shadow: 0 10px 40px rgba(20, 20, 20, 0.08); 
			background: rgba(255, 255, 255, 0.3);
			min-height: 100vh;
			padding: 0 50px 50px;
			border-radius: 40px 40px;
    }

    .article-hero {
        padding: 115px 0 0;
        margin: 0 0 0;
        text-align: center;
    }

    .article-hero .img-articles {
        margin-bottom: 25px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    }

}

@media screen and (min-width: 1400px) {
    .article-hero {
        border-radius: 0 0 40px 40px;
    }
}

.article-illustration {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.article-illustration__media {
    margin: 0;
    text-align: center;
}

.article-illustration__media img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.article-illustration__media figcaption {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

.article-illustration__text p {
    margin-bottom: 0;
}
@media screen and (max-width: 767px) {
	.article-illustration__media img {
	    width: 50%;
		max-width: 300px;
		height: auto;	
	}
}
@media screen and (min-width: 768px) {
    .article-illustration {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
    }

    .article-illustration--right {
        flex-direction: row-reverse;
    }

    .article-illustration__media {
        flex: 0 0 40%;
        max-width: 300px;
    }

    .article-illustration__media img {
        max-width: 100%;
    }

    .article-illustration__text {
        flex: 1;
    }
}

/* ==========================================================================
   GRILLE DES ARTICLES (page articles/index.php)
   ========================================================================== */


.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 2em 0;
    padding: 0 10px;
}

.article-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(112, 48, 131, 0.1);
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(112, 48, 131, 0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.article-content h2 {
    font-size: 1.3rem;
    color: var(--p-violet);
    margin-top: 0;
    margin-bottom: 10px;
    text-align: left;
}
.article-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-read-more {
    align-self: flex-start;
    background-color: var(--p-glycine2);
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.btn-read-more:hover {
    background-color: var(--p-violet);
}

/* ==========================================================================
   ENCART LÉGAL (articles + a-propos)
   ========================================================================== */

.legal-notice {
    margin: 60px auto;
    max-width: 1024px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}
.legal-notice p {
    margin: 0;
    font-style: italic;
    font-size: 0.95rem;
    color: #555;
}

/* ==========================================================================
   LAYOUT PRINCIPAL (issu de css-v1.css)
   ========================================================================== */

.container-z {
    padding: 15px;
}
@media (min-width: 768px) {
    .container-z {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}