/* ============================================
   ARTICLE.CSS - Mode Féminine Lifestyle
   Valentine Paris - 2026
   Palette: #c026d3, #1a1a1a, #fafafa
============================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

img, video, iframe, svg {
    max-width: 100%;
    height: auto;
}

/* ---- VARIABLES CSS ---- */
:root {
    --color-primary: #c026d3;
    --color-primary-dark: #9c1aac;
    --color-dark: #1a1a1a;
    --color-bg: #fafafa;
    --color-white: #ffffff;
    --color-grey-light: #f4f4f4;
    --color-grey-mid: #e8e8e8;
    --color-grey-text: #6b6b6b;
    --color-text: #2a2a2a;
    --color-camel: #c8a06e;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --max-width: 860px;
    --max-width-wide: 1160px;
}

/* ---- HERO ARTICLE ---- */
.article-hero {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 0;
    overflow: hidden;
}

.article-hero-inner {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 60px 40px 48px;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.article-category-tag {
    background-color: #c026d3;
    color: #ffffff;
    font-family: var(--font-system);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
}

.article-date {
    font-family: var(--font-system);
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.04em;
}

.article-hero-title {
    font-family: var(--font-system);
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    max-width: 820px;
}

.article-hero-subtitle {
    font-family: var(--font-system);
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 640px;
}

.article-author-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c026d3;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-family: var(--font-system);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.author-role {
    font-family: var(--font-system);
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

.article-reading-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-system);
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.article-hero-image-wrap {
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ---- DISCLAIMER BLOG ---- */
.blog-disclaimer {
    background-color: #fff8fe;
    border-left: 4px solid #c026d3;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    max-width: var(--max-width-wide);
    margin: 0 auto;
}

.blog-disclaimer svg {
    flex-shrink: 0;
    color: #c026d3;
    margin-top: 2px;
}

.blog-disclaimer p {
    font-family: var(--font-system);
    font-size: 13px;
    color: #6b6b6b;
    margin: 0;
    line-height: 1.6;
}

/* ---- ARTICLE CONTAINER ---- */
.article-container {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 40px;
}

/* ---- INTRO ---- */
.article-intro-section {
    padding: 52px 0 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.article-lead {
    font-family: var(--font-system);
    font-size: 19px;
    line-height: 1.75;
    color: #2a2a2a;
    margin: 0 0 20px;
    font-weight: 400;
}

.article-intro-section p {
    font-family: var(--font-system);
    font-size: 16px;
    line-height: 1.75;
    color: #4a4a4a;
    margin: 0;
}

/* ---- SECTION TITLES ---- */
.section-title-main {
    font-family: var(--font-system);
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.section-subtitle {
    font-family: var(--font-system);
    font-size: 15px;
    color: #6b6b6b;
    margin: 0 0 32px;
    line-height: 1.6;
}

.section-intro-text {
    font-family: var(--font-system);
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.7;
    margin: 0 0 36px;
    max-width: 660px;
}

/* ---- GALLERY SECTION ---- */
.gallery-section {
    padding: 56px 0 48px;
    border-top: 1px solid #e8e8e8;
}

.gallery-section-header {
    margin-bottom: 32px;
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.gallery-item {
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #f4f4f4;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-item:focus {
    outline: 3px solid #c026d3;
    outline-offset: 3px;
}

.gallery-item-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.gallery-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-img-wrap img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(192, 38, 211, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-caption {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-number {
    font-family: var(--font-system);
    font-size: 11px;
    font-weight: 700;
    color: #c026d3;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.item-name {
    font-family: var(--font-system);
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

/* ---- MODALES ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.75);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-box {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    max-width: 860px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e8e8e8;
    background-color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    z-index: 2;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
    background-color: #f4f4f4;
    border-color: #c026d3;
}

.modal-close:focus {
    outline: 3px solid #c026d3;
    outline-offset: 2px;
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    min-height: 400px;
}

.modal-img-side {
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    background-color: #f4f4f4;
}

.modal-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-text-side {
    padding: 36px 36px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-item-number {
    font-family: var(--font-system);
    font-size: 11px;
    font-weight: 700;
    color: #c026d3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.modal-item-title {
    font-family: var(--font-system);
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.modal-item-desc {
    font-family: var(--font-system);
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.7;
    margin: 0;
}

.modal-style-tips {
    background-color: #fafafa;
    border-radius: var(--radius-sm);
    padding: 16px;
}

.tips-label {
    display: block;
    font-family: var(--font-system);
    font-size: 12px;
    font-weight: 700;
    color: #c026d3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tips-list li {
    font-family: var(--font-system);
    font-size: 13px;
    color: #4a4a4a;
    line-height: 1.5;
    padding-left: 14px;
    position: relative;
}

.tips-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #c026d3;
}

.modal-criteria {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.criteria-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #f4f4f4;
    border-radius: var(--radius-sm);
}

.criteria-label {
    font-family: var(--font-system);
    font-size: 12px;
    color: #6b6b6b;
    font-weight: 500;
}

.criteria-value {
    font-family: var(--font-system);
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 700;
}

/* ---- TIMELINE ---- */
.timeline-section {
    padding: 60px 0 56px;
    border-top: 1px solid #e8e8e8;
}

.timeline-wrapper {
    position: relative;
    padding-left: 56px;
    margin-top: 40px;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e8e8e8;
}

.timeline-item {
    position: relative;
    margin-bottom: 52px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -56px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-number {
    font-family: var(--font-system);
    font-size: 12px;
    font-weight: 800;
    color: #c026d3;
    letter-spacing: 0.04em;
}

.timeline-content {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: var(--radius-md);
    padding: 28px;
    transition: box-shadow 0.25s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-sm);
}

.timeline-piece-header {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.timeline-piece-img {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: #f4f4f4;
    flex-shrink: 0;
}

.timeline-piece-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.timeline-piece-intro {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-category {
    font-family: var(--font-system);
    font-size: 11px;
    font-weight: 700;
    color: #c026d3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.timeline-piece-title {
    font-family: var(--font-system);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.timeline-piece-teaser {
    font-family: var(--font-system);
    font-size: 15px;
    color: #6b6b6b;
    line-height: 1.6;
    margin: 0;
}

.timeline-body-text {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.timeline-body-text p {
    font-family: var(--font-system);
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.75;
    margin: 0 0 16px;
}

.timeline-body-text p:last-child {
    margin-bottom: 0;
}

.piece-highlight-box {
    background-color: #fff8fe;
    border: 1px solid #e8a0f0;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
}

.piece-highlight-box svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.piece-highlight-box p {
    font-family: var(--font-system);
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0 !important;
}

.numbered-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    counter-reset: numbered-steps;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.numbered-list li {
    font-family: var(--font-system);
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.6;
    padding-left: 30px;
    position: relative;
    counter-increment: numbered-steps;
}

.numbered-list li::before {
    content: counter(numbered-steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #c026d3;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ---- ONGLETS ANIMÉS ---- */
.tabs-section {
    padding: 60px 0 56px;
    border-top: 1px solid #e8e8e8;
}

.tabs-container {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid #e8e8e8;
    background-color: #fafafa;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    font-family: var(--font-system);
    font-size: 14px;
    font-weight: 600;
    color: #6b6b6b;
    background-color: transparent;
    border: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
    color: #c026d3;
}

.tab-btn--active {
    color: #c026d3;
    border-bottom-color: #c026d3;
    background-color: #ffffff;
}

.tab-btn:focus {
    outline: 3px solid #c026d3;
    outline-offset: -3px;
}

.tabs-content {
    padding: 36px;
}

.tab-panel {
    display: none;
}

.tab-panel--active {
    display: block;
}

.tab-intro {
    margin-bottom: 28px;
}

.tab-title {
    font-family: var(--font-system);
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.tab-intro p {
    font-family: var(--font-system);
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.7;
    margin: 0;
}

.tab-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tab-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: #fafafa;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #c026d3;
    color: #ffffff;
    font-family: var(--font-system);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-content strong {
    font-family: var(--font-system);
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
}

.step-content p {
    font-family: var(--font-system);
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.6;
    margin: 0;
}

/* ---- TABLEAU RECAP ---- */
.recap-table-section {
    padding: 60px 0 56px;
    border-top: 1px solid #e8e8e8;
}

.table-responsive-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid #e8e8e8;
}

.recap-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-system);
    min-width: 700px;
}

.recap-table thead {
    background-color: #1a1a1a;
}

.recap-table thead th {
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.recap-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.recap-table tbody tr:last-child {
    border-bottom: none;
}

.recap-table tbody tr:hover {
    background-color: #fff8fe;
}

.recap-table tbody td {
    padding: 13px 16px;
    font-size: 13px;
    color: #4a4a4a;
    vertical-align: middle;
}

.num-cell {
    font-weight: 800;
    color: #c026d3 !important;
    font-size: 12px;
    letter-spacing: 0.06em;
}

.piece-cell {
    white-space: nowrap;
}

.piece-cell strong {
    color: #1a1a1a;
    font-size: 14px;
}

.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
}

.polyvalence-high {
    color: #c026d3;
    font-weight: 700;
}

.polyvalence-max {
    color: #1a1a1a;
    font-weight: 800;
}

/* ---- ACCORDÉON ---- */
.accordion-section {
    padding: 60px 0 56px;
    border-top: 1px solid #e8e8e8;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: var(--max-width);
}

.accordion-item {
    border: 1px solid #e8e8e8;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #ffffff;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-family: var(--font-system);
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.accordion-trigger:hover {
    background-color: #fff8fe;
}

.accordion-trigger:focus {
    outline: 3px solid #c026d3;
    outline-offset: -3px;
}

.accordion-question {
    flex: 1;
    line-height: 1.4;
}

.accordion-icon {
    flex-shrink: 0;
    color: #c026d3;
    display: flex;
    align-items: center;
}

.accordion-body {
    padding: 0 24px 20px;
    border-top: 1px solid #f0f0f0;
}

.accordion-body p {
    font-family: var(--font-system);
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.75;
    margin: 16px 0 0;
}

/* ---- CITATION ÉDITORIALE ---- */
.editorial-quote-section {
    padding: 56px 0;
    border-top: 1px solid #e8e8e8;
}

.editorial-quote-inner {
    background-color: #1a1a1a;
    border-radius: var(--radius-lg);
    padding: 52px 60px;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.quote-mark {
    display: block;
    margin: 0 auto 20px;
}

.editorial-quote-text {
    font-family: var(--font-system);
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
    margin: 0 0 20px;
    font-style: italic;
    letter-spacing: -0.01em;
}

.editorial-quote-author {
    font-family: var(--font-system);
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---- CONCLUSION ---- */
.article-conclusion {
    padding: 56px 0 72px;
    border-top: 1px solid #e8e8e8;
    max-width: var(--max-width);
}

.conclusion-title {
    font-family: var(--font-system);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.article-conclusion p {
    font-family: var(--font-system);
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.8;
    margin: 0 0 18px;
}

.article-conclusion p:last-child {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE - MOBILE FIRST
============================================ */

@media (max-width: 1024px) {
    .modal-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tab-steps-grid {
        grid-template-columns: 1fr;
    }

    .article-hero-inner {
        padding: 48px 24px 40px;
    }

    .article-container {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .article-hero-image-wrap {
        height: 260px;
    }

    .article-hero-inner {
        padding: 36px 20px 32px;
    }

    .article-hero-title {
        font-size: 26px;
    }

    .article-hero-subtitle {
        font-size: 16px;
    }

    /* Container */
    .article-container {
        padding: 0 16px;
    }

    /* Intro */
    .article-intro-section {
        padding: 36px 0 28px;
    }

    .article-lead {
        font-size: 17px;
    }

    /* Gallery */
    .modal-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Modales */
    .modal-content-grid {
        grid-template-columns: 1fr;
    }

    .modal-img-side {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 260px;
    }

    .modal-text-side {
        padding: 24px 20px;
    }

    .modal-item-title {
        font-size: 20px;
    }

    /* Timeline */
    .timeline-wrapper {
        padding-left: 44px;
    }

    .timeline-marker {
        left: -44px;
        width: 34px;
        height: 34px;
    }

    .timeline-piece-header {
        grid-template-columns: 1fr;
    }

    .timeline-piece-img {
        max-width: 120px;
    }

    .timeline-piece-img img {
        height: 150px;
    }

    .timeline-content {
        padding: 20px;
    }

    /* Onglets */
    .tabs-nav {
        flex-direction: column;
    }

    .tab-btn {
        justify-content: flex-start;
        border-bottom: none;
        border-right: 3px solid transparent;
        margin-bottom: 0;
    }

    .tab-btn--active {
        border-right-color: #c026d3;
        border-bottom: none;
    }

    .tabs-content {
        padding: 24px 16px;
    }

    .tab-steps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Citation éditoriale */
    .editorial-quote-inner {
        padding: 36px 24px;
    }

    .editorial-quote-text {
        font-size: 19px;
    }

    /* Conclusion */
    .article-conclusion {
        padding: 40px 0 56px;
    }

    /* Accordion */
    .accordion-trigger {
        padding: 16px 18px;
        font-size: 14px;
    }

    .accordion-body {
        padding: 0 18px 16px;
    }

    /* Sections spacings */
    .gallery-section,
    .timeline-section,
    .tabs-section,
    .recap-table-section,
    .accordion-section,
    .editorial-quote-section {
        padding-top: 40px;
        padding-bottom: 36px;
    }
}

@media (max-width: 480px) {
    /* Hero */
    .article-hero-title {
        font-size: 22px;
    }

    .article-meta-top {
        flex-wrap: wrap;
        gap: 8px;
    }

    .article-author-bar {
        gap: 10px;
    }

    .article-reading-info {
        padding-left: 0;
        border-left: none;
        margin-left: 0;
        width: 100%;
    }

    .article-hero-image-wrap {
        height: 200px;
    }

    /* Gallery */
    .modal-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item-caption {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 8px 10px;
    }

    /* Timeline */
    .timeline-wrapper {
        padding-left: 36px;
    }

    .timeline-wrapper::before {
        left: 14px;
    }

    .timeline-marker {
        left: -36px;
        width: 28px;
        height: 28px;
    }

    .timeline-number {
        font-size: 10px;
    }

    /* Recap table */
    .recap-table tbody td {
        padding: 10px 12px;
        font-size: 12px;
    }

    .recap-table thead th {
        padding: 12px;
        font-size: 10px;
    }

    /* Tabs */
    .tab-btn {
        font-size: 13px;
        padding: 14px 16px;
    }

    .tab-step {
        padding: 14px;
    }

    /* Modales */
    .modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .modal-box {
        max-height: 90vh;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .modal-text-side {
        padding: 20px 16px;
    }
}

/* ---- UTILITAIRES ANTI-OVERFLOW ---- */
.article-container,
.timeline-content,
.modal-box,
.accordion-body,
.tab-panel-inner {
    overflow-wrap: break-word;
    word-break: break-word;
}

pre, code {
    overflow-x: auto;
    max-width: 100%;
}