@font-face {
    font-family: Tangerine;
    src: url(/assets/Tangerine-Bold.ttf);
}

@font-face {
    font-family: AmaranthRegular;
    src: url(/assets/Amaranth-Regular.ttf);
}

/* ── Reset & base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-brand: #2563eb;
    --color-brand-dark: #1e40af;
    --color-surface: #f8fafc;
    --color-text: #1e293b;
    --color-muted: #64748b;
    --color-border: #e2e8f0;
    --color-nav-bg: #1e293b;
    --color-nav-txt: #f1f5f9;
    --font-sans: "Segoe UI", system-ui, sans-serif;
    --banner-h: 222px;
    --nav-h: 24px;
    --footer-h: 20px;
}

html,
body {
    /*height: 100%;*/
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-surface);
}

/* ── Mise en page globale ── */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    background: #cbd5e1;
    /* fond visible en dehors des 1200px */
}




/* ── Conteneur limité à 1200px, centré ── */
.page-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    background: var(--color-surface);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.10);
}




/* ── Bandeau logo ── */
#bandeau {
    height: var(--banner-h);
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0 0px;
    gap: 12px;
}

/* ── En-tête / navigation ── */
header {
    height: var(--nav-h);
    background: var(--color-nav-bg);
    flex-shrink: 0;
}

header nav {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 4px;
}

header nav a {
    color: var(--color-nav-txt);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: background 0.15s;
}

header nav a:hover,
header nav a.active {
    background: rgba(255, 255, 255, 0.12);
}

header nav a.active {
    background: var(--color-brand);
}

/* ── Corps principal ── */
main {
    flex: 1 1 auto;
    /* prend TOUTE la hauteur restante */
    overflow-y: auto;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main a:visited,
a:link {
    color: var(--color-muted);
}

main>* {
    width: 100%;
    max-width: 960px;
}

/* Exemple de contenu */
main .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

main .page-intro {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    text-align: justify;
}

main .page-intro a:visited,
a:link {
    color: var(--color-muted);
}

main .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

main .card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 20px;
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.5;
    align-items: center;
    text-align: center;


}

main .card a:visited,
a:link {
    color: var(--color-muted);
}




/* ── Pied de page ── */
footer {
    height: var(--footer-h);
    background: var(--color-nav-bg);
    color: var(--color-muted);
    display: flex;
    align-items: right;
    justify-content: right;
    font-size: 0.75rem;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer a {
    font-size: 0.5rem;
    color: var(--color-nav-txt);
}
