/* ===========================
   TYPOGRAPHIE & BASE
   =========================== */

:root {
    --font-main: "Inter", "Segoe UI", Arial, sans-serif;
    --font-title: "Inter", "Segoe UI", Arial, sans-serif;

    --color-bg: #f7f7f7;
    --color-text: #222;
    --color-title: #0050d4;
    --color-accent: #7a1fa2;
    --color-border: #ddd;

    --shadow-soft: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-card: 0 6px 18px rgba(0,0,0,0.12);
}

body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.7;
}

/* ===========================
   HEADER
   =========================== */

.top-header {
    background: #333;
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 1rem;
}

.top-header a {
    color: #ffd700;
    font-weight: bold;
    text-decoration: none;
}

.top-header a:hover {
    text-decoration: underline;
}

/* ===========================
   GRID LAYOUT
   =========================== */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    padding: 30px;
    max-width: 1400px;
    margin: auto;
}

/* ===========================
   BLOCS / ARTICLES
   =========================== */

.bloc {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.bloc h1 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-top: 0;
    color: var(--color-title);
}
.bloc p {
    font-size: 1.05rem;
    margin-bottom: 15px;
}


.bloc .texte-long {
    max-height: 500px;      /* hauteur fixe sur desktop */
    overflow-y: auto;       /* scroll vertical */
    padding-right: 10px;    /* évite que le texte colle à la barre */
}


@media (max-width: 768px) {
    .bloc .texte-long {
        max-height: 300px;   /* plus petit sur mobile */
    }
}

@media (max-width: 480px) {
    .bloc .texte-long {
        max-height: 220px;   /* encore plus petit sur smartphone étroit */
    }
}


