/*
 * Charte Vit'inser (design system « Vit'inser », offre de services de décembre 2025).
 * Header, footer and shared colours: loaded on every page, EasyAdmin's included (styles/admin.css pages),
 * so it must not style body or generic elements.
 *
 * Un seul thème, clair, comme la brochure. Polices de marque (Bliss Pro, Grenadine MVB, Moonblossom) sous
 * licence et absentes : on prend les remplaçants du design system (Source Sans 3, Bree Serif, Caveat).
 */
/* Polices hébergées (latin et latin étendu, woff2 de Google Fonts) : la CSP n'autorise que le site. */
@font-face { font-family: "Bree Serif"; font-weight: 400; font-display: swap; src: url("../fonts/bree-serif-latin-ext-Zzvh7wg.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bree Serif"; font-weight: 400; font-display: swap; src: url("../fonts/bree-serif-latin-EpYk2ej.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-weight: 500; font-display: swap; src: url("../fonts/caveat-500-latin-ext-ZIg4b_U.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-weight: 500; font-display: swap; src: url("../fonts/caveat-500-latin-pDIbSvQ.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 300 800; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-eCU7jd1.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 300 800; font-display: swap; src: url("../fonts/source-sans-3-latin-u4wvMPu.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --bar-h: 3.6rem; /* height of the header */

    /* palette de marque */
    --ocre: #bc8e4f;        /* motifs, pictogrammes, grands titres (2,95:1 sur blanc : jamais du texte courant) */
    --ocre-fonce: #8c6631;  /* ocre lisible : texte, boutons, fonds portant du texte blanc */
    --ocre-clair: #d3b58d;  /* filets, séparateurs */
    --sable: #e7d7c1;
    --creme: #f7f1e9;
    --brun: #4d3c36;        /* encre */
    --brun-doux: #7a6a63;   /* légendes */
    --orange-vitamine: #f47216; /* Groupe Vitamine T */
    --orange-fonce: #b5520c;

    /* rôles utilisés par toutes les pages */
    --bg: var(--creme);
    --card: #ffffff;
    --border: #e3d5bf;
    --text: var(--brun);
    --muted: var(--brun-doux);
    --accent: var(--ocre-fonce); /* boutons, liens actifs */
    --accent-text: #ffffff;
    --ok: #2d7a3e;           /* feux de l'état de lecture : le vert et le rouge gardent leur sens */
    --ok-bg: #e3f3e6;
    --wait: var(--orange-fonce);
    --wait-bg: #fbeadb;
    --bad: #b3261e;
    --bad-bg: #fbe6e3;

    --font-sans: "Bliss Pro", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --font-display: "Grenadine MVB", "Bree Serif", Georgia, serif;
    --font-hand: Moonblossom, Caveat, cursive;

    /* EasyAdmin (/admin, /historique) */
    --ea-primary: var(--ocre-fonce);
    --font-family-base: var(--font-sans);
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--bar-h);
    padding: 0 1.25rem;
    background: var(--card);
    border-bottom: 3px solid var(--ocre);
    font-family: var(--font-sans);
}

.brand { display: flex; align-items: center; }
.brand img { display: block; height: 2rem; width: auto; } /* le logo Vit'Cycle (PNG 361 × 98) */

.bar-nav { display: flex; gap: 1.5rem; margin-right: auto; margin-left: 1.5rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bar-nav a { padding: .35rem 0; color: var(--muted); border-bottom: 3px solid transparent; }
.bar-nav a:hover { color: var(--text); }
.bar-nav a[aria-current] { color: var(--text); border-bottom-color: var(--ocre); }
.bar-end .pill { max-width: none; }
.bar-end { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.bar-nav + .bar-end { margin-left: 0; }

/* téléphone et tablette : le menu devient un bouton « burger » qui déplie la navigation sous l'en-tête */
.bar-burger, .bar-mobile-user { display: none; }
@media (max-width: 1024px) {
    .bar { position: relative; padding: 0 .75rem; }
    .pill-user { display: none; }
    .bar-burger { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; }
    .bar-burger svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
    .bar-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50; flex-direction: column; gap: 0; margin: 0; padding: .25rem 1.25rem .75rem; background: var(--card); border-bottom: 3px solid var(--ocre); box-shadow: 0 6px 12px rgba(77, 60, 54, .12); font-size: .9rem; }
    .bar.ouvert .bar-nav { display: flex; }
    .bar-nav a { padding: .8rem 0; border-bottom: 1px solid var(--border); }
    .bar-nav a[aria-current] { border-bottom-color: var(--ocre); }
    .bar-mobile-user { display: block; padding-top: .8rem; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
    .bar-mobile-user a { display: inline; padding: 0; border: 0; color: var(--accent); text-decoration: underline; }
}

.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 1.25rem; font-family: var(--font-sans); font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); background: var(--card); }
.site-footer a { color: inherit; }
.site-footer .groupe { color: var(--orange-fonce); font-weight: 600; } /* la filiation s'écrit en orange, jamais en ocre */

.pill {
    padding: .2rem .7rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: .85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}
.pill[data-state="error"] { color: var(--bad); background: var(--bad-bg); border-color: transparent; }
.bar a { color: inherit; text-decoration: none; }
.pill a { color: inherit; }
