/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-maria: url("rousse.jpg"); /* une seule déclaration de l'image */

    --bg-card: #111827;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.15);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --radius: 18px;
    --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.6);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
}

/* -------- BODY -------- */
body {
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text);

    /* maria2.jpg en fond global, fixe, couvrant */
    background: var(--bg-maria) center center / cover fixed no-repeat;
}

/* -------- PARALLAX -------- */
.parallax {
    /* réutilise la même image via la variable */
    background: var(--bg-maria) center center / cover fixed no-repeat;

    height: 1080px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.parallax-overlay {
    background: rgba(15, 23, 42, 0.50);
    border-radius: 28px;
    padding: 32px 20px;
    max-width: 900px;
    width: calc(100% - 32px);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

/* -------- WRAPPER -------- */
.main-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 16px 48px;
    text-align: center;
    background: transparent;
}

.app-card {
    background: transparent;
    border-radius: 28px;
    box-shadow: none;
    padding: 28px 20px 24px;
    border: none;
}

/* -------- TITRES -------- */
.app-title {
    font-size: clamp(2.2rem, 4vw, 2.7rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(120deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    color: transparent;
}

.app-subtitle {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 18px;
}

/* -------- BADGE -------- */
.accent-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 24px;
}

.accent-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

/* -------- ARTICLES -------- */
.articles-container {
    margin-top: 10px;
}

.article-card {
    background: rgba(15, 23, 42, 0.50);
    border-radius: var(--radius);
    padding: 24px 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        border-color 0.18s ease-out,
        background 0.22s ease-out;

    /* centrage vertical du contenu */
    display: flex;
    align-items: center;       /* centre verticalement article-inner */
    justify-content: center;   /* centre horizontalement article-inner */
    min-height: 160px;         /* hauteur minimale pour bien voir le centrage */
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.1);
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.85);
}

/* -------- CONTENU INTÉRIEUR -------- */
.article-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   /* centre le bloc titre+date+texte en hauteur */
    gap: 10px;
    width: 100%;
}

/* Titre de l’article */
.article-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

/* Date */
.article-date {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    text-align: center;
    opacity: 0.9;
}

/* Texte */
.article-content {
    text-align: center;
    margin-top: 6px;
}

.article-text {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;      /* <-- au lieu de 0.2 */
    color: #d1d5db;
    white-space: normal;   /* ou pre-line si tu tiens à garder les retours à la ligne */
    text-align: center;
}


/* -------- FOOTER -------- */
.app-footer {
    margin-top: 24px;
    font-size: 0.75rem;
    color: var(--muted);
}

/* -------- BOUTONS -------- */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.4);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn-link:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.7);
}

/* -------- RESPONSIVE -------- */
@media (max-width: 768px) {
    .parallax {
        height: 70vh;
        /* sur mobile, on peut désactiver l'effet fixe si besoin :
           background-attachment: scroll; (mais ici on utilise la shorthand, donc optionnel) */
    }
}
