/* ===================================
   GLOBAL CSS — Coiffure Disangro
   Blog passion coiffure 2026
   =================================== */

/* RESET & BOX MODEL */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #2c3e2c;
    background-color: #f8faf8;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* MEDIA RESPONSIVE */
img, video, iframe, embed, object, svg {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.2;
    font-weight: 700;
    color: #1a2a1a;
}

p {
    line-height: 1.7;
    color: #3a4a3a;
}

a {
    color: #3d9140;
    text-decoration: none;
}

a:hover {
    color: #4caf50;
}

a:focus-visible {
    outline: 2px solid #4caf50;
    outline-offset: 3px;
    border-radius: 3px;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* SECTION BASE */
section {
    padding: 80px 0;
}

/* SECTION LABELS */
.section-label {
    display: inline-block;
    background-color: #e8f5e9;
    color: #3d9140;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid #c8e6c9;
}

.section-label--light {
    background-color: #2d4a2d;
    color: #a8d5a8;
    border-color: #3b4f3b;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    color: #1a2a1a;
    margin-bottom: 16px;
}

.section-title--light {
    color: #f0f8f0;
}

.section-desc {
    font-size: 16px;
    color: #5a7a5a;
    max-width: 580px;
    margin: 0 auto;
}

.section-desc--light {
    color: #7a9a7a;
}

/* ARTICLE META STYLES */
.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #7a9a7a;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.article-meta time {
    color: #7a9a7a;
}

.article-reading {
    color: #7a9a7a;
}

.meta-sep {
    color: #a0b8a0;
}

/* TABLEAUX RESPONSIVE */
table {
    width: 100%;
    border-collapse: collapse;
    max-width: 100%;
}

.table-responsive,
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border-radius: 8px;
    border: 1px solid #d4e8d4;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e8f5e9;
    font-size: 14px;
}

th {
    background-color: #f0f8f0;
    color: #3b4f3b;
    font-weight: 600;
    font-size: 13px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #f8fdf8;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:focus-visible {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: #4caf50;
    color: #fff;
}

.btn-primary:hover {
    background-color: #3d9140;
    color: #fff;
}

.btn-secondary {
    background-color: #f0f8f0;
    color: #3b4f3b;
    border: 1px solid #c8e6c9;
}

.btn-secondary:hover {
    background-color: #e8f5e9;
    color: #3b4f3b;
}

/* FORMS */
input, textarea, select {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* SCREEN READER ONLY */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* FOCUS VISIBLE GLOBAL */
:focus-visible {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
    border-radius: 3px;
}

/* OVERFLOW WRAP */
p, li, td, th, span, div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* PRE/CODE */
pre, code {
    overflow-x: auto;
    max-width: 100%;
    font-size: 13px;
}

/* ===== RESPONSIVE (auto-repair) ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: clamp(24px, 3.5vw, 34px);
    }

    .section-desc {
        font-size: 15px;
        max-width: 480px;
    }

    th, td {
        padding: 10px 14px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    section {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 28px;
    }

    .section-title {
        font-size: clamp(22px, 5vw, 28px);
    }

    .section-desc {
        font-size: 14px;
        max-width: 100%;
    }

    .section-label {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 12px;
    }

    .article-meta {
        gap: 6px;
        font-size: 11px;
        margin-bottom: 8px;
    }

    .btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    th, td {
        padding: 8px 12px;
        font-size: 13px;
    }

    th {
        font-size: 12px;
    }

    .table-responsive,
    .table-wrapper {
        margin: 16px 0;
    }

    pre, code {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    section {
        padding: 36px 0;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: clamp(20px, 6vw, 24px);
    }

    .section-desc {
        font-size: 13px;
    }

    .section-label {
        font-size: 9px;
        padding: 3px 8px;
        letter-spacing: 0.08em;
        margin-bottom: 10px;
    }

    .article-meta {
        gap: 4px;
        font-size: 11px;
        margin-bottom: 6px;
    }

    .meta-sep {
        display: none;
    }

    .btn {
        padding: 8px 14px;
        font-size: 13px;
        gap: 6px;
    }

    th, td {
        padding: 6px 10px;
        font-size: 12px;
    }

    th {
        font-size: 11px;
    }

    .table-responsive,
    .table-wrapper {
        margin: 12px 0;
        border-radius: 6px;
    }

    pre, code {
        font-size: 11px;
    }
}