/* ========================================================
   ARTICLES CSS - FL Avignon
   Design moderne cohérent avec le site principal
   ======================================================== */

/* ========== Design Tokens ========== */
:root {
    /* Brand Colors */
    --clr-white: #FFFFFF;
    --clr-black: #030001;
    --clr-copper: #EADDCA;
    --clr-deep: #3D4843;
    --clr-warm: #EDDDCE;
    --clr-light-bg: #F8F6F3;
    --clr-cream: #FFF9F0;

    /* Semantic Colors */
    --primary: #B8936D;
    --surface: var(--clr-light-bg);
    --surface-2: var(--clr-cream);
    --surface-3: var(--clr-warm);
    --text: var(--clr-black);
    --muted: rgba(3, 0, 1, .65);

    /* Typography */
    --ff-title: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
    --ff-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;

    /* Spacing & Layout */
    --gutter: clamp(16px, 3vw, 40px);
    --radius: 12px;

    /* Shadows */
    --shadow-sm: 0 4px 20px rgba(0,0,0,.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,.12);

    /* Motion */
    --easing: cubic-bezier(.17, .67, .2, 1);
    --dur-1: 220ms;
    --dur-2: 360ms;
    --dur-3: 500ms;
    --speed: 300ms;

    /* Articles specific */
    --copper: #EADDCA;
    --copper-accent: #B8936D;
    --copper-dark: #8e7254;
    --black: #030001;
    --bg: #FFFFFF;
    --bg-alt: #FFF9F0;
}

/* ========== Reset & Base ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
    font-family: "Poppins", sans-serif;
    color: var(--black);
    letter-spacing: -0.01em;
    margin: 0 0 0.8rem;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-top: 2rem;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

p {
    margin: 0 0 1.2rem;
    color: var(--text);
    font-size: 1.05rem;
}

strong {
    color: var(--copper-dark);
    font-weight: 700;
}

/* ========== Main Layout ========== */
main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

/* Container for header/footer */
.container {
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Container for article content */
main .container {
    width: 90%;
    max-width: 1200px;
    margin-top: 30px;
    margin-bottom: 60px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    min-height: 90vh;
    border: 1px solid rgba(0,0,0,.06);
}

main .container h1 {
    text-align: center;
    padding: 40px 20px 20px;
    border-bottom: 3px solid var(--copper-dark);
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

/* ========== Article Content ========== */
article {
    margin: 0;
    padding: 50px;
}

.content {
    padding: 30px 50px;
}

.content h2 {
    font-size: 1.8em;
    margin: 30px 0 15px;
    color: var(--black);
    border-left: 4px solid var(--copper-dark);
    padding-left: 16px;
}

.content pre {
    margin: 10px 0 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========== Figures & Images ========== */
figure {
    margin: 30px 0;
    padding: 0;
}

figure img {
    max-width: 100%;
    border-radius: var(--radius);
    max-height: 600px;
    width: 100%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--copper);
}

/* ========== Responsive ========== */
@media (max-width: 800px) {
    .container {
        width: 95%;
        margin-top: 20px;
    }

    .container h1 {
        font-size: 1.8rem;
        padding: 30px 15px 15px;
    }

    h2 {
        font-size: 1.4rem;
    }

    .content {
        padding: 20px;
    }

    article {
        padding: 30px 15px;
    }

    main {
        margin-top: 70px;
    }
}

@media (max-width: 480px) {
    .container h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .content pre {
        font-size: 0.95rem;
    }
}
