/* ===== RESET ET BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
.article-page {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #595959;
    background-color: #F2F2F2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.article-page a {
    color: #F23054;
    text-decoration: none;
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}
.article-page a:hover {
    color: #118e88;
}

/* ===== CHAPÔ ===== */
.article-chapo {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #118e88;
    font-style: italic;
    margin: 10px 0 15px;
    line-height: 1.6;
    border-left: 3px solid #F23054;
    padding-left: 15px;
}

/* ===== CONTAINER PRINCIPAL ===== */
.article-content {
    max-width: 800px;
    margin: 20px auto 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== EN-TÊTE DE L'ARTICLE ===== */
.article-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F23054;
}
.article-title {
    font-family: 'Roboto', sans-serif;
    color: #F23054;
    font-size: 28px;
    margin: 0 0 10px;
    line-height: 1.2;
    font-weight: 700;
}
.article-meta {
    font-family: 'Roboto', sans-serif;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    color: #118e88;
    font-size: 14px;
    font-weight: 500;
}

/* ===== CORPS DE L'ARTICLE ===== */
.article-body {
    margin-bottom: 30px;
}
.article-text {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #595959;
}
.article-text p {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 1.5em;
}
.article-text h2,
.article-text h3,
.article-text h4 {
    font-family: 'Roboto', sans-serif;
    color: #595959;
    font-weight: 700;
}
.article-text ul,
.article-text ol {
    font-family: 'Roboto', sans-serif;
    padding-left: 20px;
    margin-bottom: 1.5em;
}
.article-text li {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 6px;
}
.article-text blockquote {
    font-family: 'Roboto', sans-serif;
    border-left: 3px solid #F23054;
    padding-left: 15px;
    margin: 20px 0;
    font-style: italic;
    color: #118e88;
}
.article-text img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}
.article-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
    -webkit-box-shadow: 0 2px 5px rgba(242, 48, 84, 0.2);
    box-shadow: 0 2px 5px rgba(242, 48, 84, 0.2);
    display: block;
}

/* ===== MÉTADONNÉES ÉTENDUES ===== */
.article-meta-extended {
    margin: 20px 0;
    padding: 15px;
    background: #F2F2F2;
    border-radius: 4px;
    border-left: 3px solid #118e88;
}
.meta-item {
    font-family: 'Roboto', sans-serif;
    margin: 8px 0;
    font-size: 14px;
    color: #595959;
}

/* ===== DOCUMENTS ET PODCASTS ===== */
.article-documents {
    margin: 30px 0;
    padding: 15px;
    background: #F2F2F2;
    border-radius: 4px;
    border-left: 3px solid #F23054;
}
.article-documents h3 {
    font-family: 'Roboto', sans-serif;
    margin-top: 0;
    color: #F23054;
    font-size: 18px;
    font-weight: 700;
}
.podcast-player {
    margin: 15px 0;
}
.podcast-player audio {
    width: 100%;
    margin-bottom: 10px;
}
.podcast-details {
    font-family: 'Roboto', sans-serif;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    font-size: 14px;
    color: #595959;
}
.btn-download {
    font-family: 'Roboto', sans-serif;
    display: inline-block;
    padding: 8px 12px;
    background: #118e88;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    -webkit-transition: background 0.3s;
    transition: background 0.3s;
}
.btn-download:hover {
    background: #F23054;
}

/* ===== CATÉGORIE + MOTS-CLÉS ===== */
.article-footer-meta {
    font-family: 'Roboto', sans-serif;
    margin: 20px 0;
    padding: 15px;
    background: #F2F2F2;
    border-radius: 6px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 12px;
}
.article-categorie {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}
.article-categorie-label {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #595959;
}
.article-categorie-lien {
    font-family: 'Roboto', sans-serif;
    display: inline-block;
    padding: 4px 12px;
    background: #118e88;
    color: white !important;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    -webkit-transition: background 0.3s;
    transition: background 0.3s;
}
.article-categorie-lien:hover {
    background: #F23054 !important;
}
.article-tags {
    font-family: 'Roboto', sans-serif;
    margin: 10px 0 0;
}
.article-tags strong {
    font-family: 'Roboto', sans-serif;
    display: block;
    margin-bottom: 10px;
    color: #595959;
    font-weight: 700;
}
.tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-item {
    margin: 0;
}
.tag-link {
    font-family: 'Roboto', sans-serif;
    display: inline-block;
    padding: 5px 10px;
    background: #F2F2F2;
    color: #595959;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    -webkit-transition: background 0.3s;
    transition: background 0.3s;
    border: 1px solid #595959;
}
.tag-link:hover {
    background: #F23054;
    color: white;
    border-color: #F23054;
}

/* ===== LIEN DE RETOUR ===== */
.article-back {
    margin-top: 30px;
    text-align: left;
}
.btn-back {
    font-family: 'Roboto', sans-serif;
    display: inline;
    color: #118e88;
    text-decoration: underline;
    font-weight: 500;
    font-size: 14px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}
.btn-back:hover {
    color: #F23054;
}

/* ===== NOTES DE BAS DE PAGE ===== */
/* Appel de note dans le texte (syntaxe SPIP : [[note]]) */
.article-text a.note,
.article-text sup a {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: #F23054;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    text-decoration: none;
    vertical-align: super;
    line-height: 1;
    -webkit-transition: background 0.3s;
    transition: background 0.3s;
    margin: 0 2px;
}
.article-text a.note:hover,
.article-text sup a:hover {
    background: #118e88;
}
/* Bloc notes en bas de page */
.article-text .notes,
div.notes {
    font-family: 'Roboto', sans-serif;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}
.article-text .notes::before,
div.notes::before {
    content: 'Notes';
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #F23054;
    margin-bottom: 15px;
}
.article-text .notes p,
div.notes p {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #595959;
    line-height: 1.7;
    margin: 0 0 8px;
    padding-left: 28px;
    position: relative;
}
.article-text .notes p a:first-child,
div.notes p a:first-child {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: #595959;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    text-decoration: none;
    position: absolute;
    left: 0;
    top: 3px;
    -webkit-transition: background 0.3s;
    transition: background 0.3s;
}
.article-text .notes p a:first-child:hover,
div.notes p a:first-child:hover {
    background: #F23054;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .article-content {
        padding: 15px;
        margin: 10px;
    }
    .article-title {
        font-size: 24px;
    }
    .article-meta {
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 5px;
    }
}
@media (max-width: 480px) {
    .article-title {
        font-size: 20px;
    }
    .tag-list {
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 5px;
    }
}