:root {
    --noir: #000;
    --blanc: #fff;
    --gris-texte: #595959;     /* contraste 7,0:1 sur blanc — WCAG AA texte normal et large */
    --gris-deco: #888;          /* éléments décoratifs (pointillés, séparateurs, aria-hidden) */
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --largeur-max: 1280px;
    --col-meta: 260px;
    --gap-col: 3rem;
    --gap-images: 1.25rem;
    --interligne: 1.55;
    --pad-x: 1.5rem;
    --bp: 760px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--blanc);
    color: var(--noir);
}

body {
    font-family: var(--mono);
    font-size: 16px;
    line-height: var(--interligne);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

a:hover, a:focus {
    background: var(--noir);
    color: var(--blanc);
    outline: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Bandeau (logo + devise) */
.bandeau {
    max-width: var(--largeur-max);
    margin: 0 auto;
    padding: 2.5rem var(--pad-x) 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 2rem;
}

.logo {
    margin: 0;
    font-family: "Novecento Sans Condensed", var(--mono);
    font-weight: 700;
    font-stretch: condensed;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.logo a {
    text-decoration: none;
}

.logo a:hover, .logo a:focus {
    background: transparent;
    color: var(--noir);
    text-decoration: underline;
}

.devise {
    margin: 0;
    font-size: 0.95rem;
}

/* Bandeau index horizontal */
.bandeau-index {
    max-width: var(--largeur-max);
    margin: 0 auto;
    padding: 0.75rem var(--pad-x);
    border-top: 1px solid var(--noir);
    border-bottom: 1px solid var(--noir);
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.95rem;
}

.bandeau-index-label {
    color: var(--gris-texte);
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.bandeau-index-liste {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.4rem;
    font-family: "Novecento Sans Condensed", var(--mono);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.bandeau-index-liste li {
    margin: 0;
}

/* Touch target ≥ 44 px (WCAG 2.5.5) en gardant l'aspect compact */
.bandeau-index-liste a,
.bandeau-index-liste .actuel {
    display: inline-block;
    padding: 0.55rem 0.5em;
    line-height: 1;
}

.bandeau-index-liste .actuel {
    background: var(--noir);
    color: var(--blanc);
}

/* Composition principale */
.composition {
    max-width: var(--largeur-max);
    margin: 0 auto;
    padding: 2.5rem var(--pad-x) 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 760px) {
    .composition {
        grid-template-columns: var(--col-meta) 1fr;
        gap: var(--gap-col);
        align-items: start;
    }
}

/* Sidebar méta (la fiche cartel) */
.meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 760px) {
    .meta {
        position: sticky;
        top: 1.5rem;
        max-height: calc(100vh - 3rem);
        overflow-y: auto;
    }
}

.numero {
    margin: 0 0 0.25rem;
    font-family: "Novecento Sans Condensed", var(--mono);
    font-weight: 700;
    font-size: clamp(4.5rem, 11vw, 7rem);
    line-height: 0.85;
    letter-spacing: 0.01em;
}

.titre {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.sous-titre {
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.4;
}

.date {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gris-texte);
}

.fiche {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--noir);
    font-size: 0.85rem;
    line-height: 1.5;
}

.fiche p {
    margin: 0 0 0.85rem;
}

.fiche p:last-child {
    margin-bottom: 0;
}

.fiche-prix {
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.fiche-prix li {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.fiche-prix .lib {
    flex: 0 1 auto;
}

.fiche-prix .points {
    flex: 1 1 auto;
    border-bottom: 1px dotted var(--gris-deco);
    transform: translateY(-4px);
    min-width: 0.5rem;
}

.fiche-prix .val {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
}

/* Colonne contenu : grille 2 colonnes (1 en mobile) */
.contenu {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-images);
}

@media (min-width: 560px) {
    .contenu {
        grid-template-columns: repeat(2, 1fr);
    }
}

.planche {
    margin: 0;
}

.planche img {
    width: 100%;
    height: auto;
}

/* Pied */
.pied {
    max-width: var(--largeur-max);
    margin: 0 auto;
    padding: 1.5rem var(--pad-x) 2rem;
    border-top: 1px solid var(--noir);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 1.5rem;
    font-size: 0.85rem;
}

.pied p {
    margin: 0;
}

.pied-commande {
    color: var(--noir);
}

.pied-sep {
    margin: 0 0.5em;
    color: var(--gris-deco);
}

.pied-mention {
    color: var(--gris-texte);
    font-size: 0.8rem;
}

/* Vide */
.vide {
    margin: 2rem 0;
    font-size: 0.95rem;
}
