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

html {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
    color: var(--bbb-text);
    background: var(--bbb-surface);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--bbb-text);
    background: var(--bbb-surface);
}

a {
    color: var(--bbb-navy-900);
    text-underline-offset: .2em;
}

a:hover {
    color: var(--bbb-teal-700);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--bbb-navy-900);
    line-height: 1.13;
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 820;
}

h2 {
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 780;
}

h3 {
    font-size: 1.05rem;
}

p {
    margin-top: 0;
}

.site-shell {
    width: min(var(--bbb-content), calc(100% - 2rem));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 9999;
    transform: translateY(-180%);
    padding: .75rem 1rem;
    border-radius: 10px;
    background: var(--bbb-navy-900);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.bbb-highlight {
    color: var(--bbb-teal-600);
}

.bbb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .7rem;
    color: var(--bbb-teal-700);
    font-size: .76rem;
    font-weight: 820;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bbb-eyebrow::before {
    content: "";
    width: 1.8rem;
    height: 2px;
    border-radius: 99px;
    background: var(--bbb-orange-500);
}

.bbb-lead {
    max-width: 720px;
    color: var(--bbb-muted);
    font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.bbb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .65rem 1rem;
    border: 1px solid var(--bbb-navy-900);
    border-radius: 8px;
    background: #fff;
    color: var(--bbb-navy-900);
    font-size: .84rem;
    font-weight: 760;
    line-height: 1;
    text-decoration: none;
    transition:
        transform var(--bbb-transition),
        box-shadow var(--bbb-transition),
        background var(--bbb-transition);
}

.bbb-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--bbb-shadow-sm);
    color: var(--bbb-navy-900);
}

.bbb-button--navy {
    border-color: var(--bbb-navy-900);
    background: var(--bbb-navy-900);
    color: #fff;
}

.bbb-button--navy:hover {
    background: var(--bbb-navy-800);
    color: #fff;
}

.bbb-button--teal {
    border-color: var(--bbb-teal-600);
    background: var(--bbb-teal-600);
    color: #fff;
}

.bbb-button--teal:hover {
    background: var(--bbb-teal-700);
    color: #fff;
}

/* Pages libres (Content) : une colonne de lecture. */
.content-page {
    max-width: 780px;
    padding-block: 1.2rem 3rem;
}

.content-page h1 {
    margin: .4rem 0 1.2rem;
    color: var(--bbb-navy-900);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.content-page__body h2 {
    margin: 1.8rem 0 .6rem;
    color: var(--bbb-navy-900);
    font-size: 1.15rem;
}

.content-page__body p,
.content-page__body li {
    line-height: 1.65;
}

.content-page__date {
    margin-top: 2rem;
    color: var(--bbb-muted);
    font-size: .85rem;
}

/* Bouton dans un formulaire (déconnexion en POST) : même rendu qu'un lien bouton. */
button.bbb-button {
    font-family: inherit;
    cursor: pointer;
}

.header-logout {
    display: inline-flex;
    margin: 0;
}

.bbb-button--disabled {
    opacity: .58;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 560px) {
    .site-shell {
        width: min(var(--bbb-content), calc(100% - 1.25rem));
    }
}
