/*
 * OuiCSport — pages serveur (blog, destinations, 404).
 * Chargé après /styles/css/style.css du site : on reprend son en-tête et son
 * pied de page, et on pose ici la mise en page éditoriale « carnet de stages ».
 * Mobile d'abord.
 */

.seo-site {
    --oc-red: #dd4124;
    --oc-red-ink: #b3311a;
    --oc-red-soft: #fbe3dd;
    --oc-cream: #fdf3f3;
    --oc-paper: #faf6f1;
    --oc-sand: #f3e9df;
    --oc-ink: #2b1d1a;
    --oc-ink-soft: #5f4a45;
    --oc-line: #e8d8cf;
    --oc-white: #fffdfb;
    --oc-display: 'Gagalin', 'Dosis', 'Trebuchet MS', sans-serif;
    --oc-text: 'Dosis', 'Trebuchet MS', sans-serif;
    --oc-wrap: 1180px;
    --oc-gutter: clamp(16px, 4vw, 40px);
    --oc-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --oc-radius: 6px;

    margin: 0;
    background: var(--oc-paper);
    color: var(--oc-ink);
    font-family: var(--oc-text);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

:where(.seo-site) img {
    max-width: 100%;
    height: auto;
}

.seo-site :focus-visible {
    outline: 3px solid var(--oc-red);
    outline-offset: 2px;
    border-radius: 2px;
}

.seo-wrap {
    width: 100%;
    max-width: calc(var(--oc-wrap) + 2 * var(--oc-gutter));
    margin: 0 auto;
    padding-left: max(var(--oc-gutter), env(safe-area-inset-left));
    padding-right: max(var(--oc-gutter), env(safe-area-inset-right));
}

.seo-main {
    display: block;
    min-height: 60vh;
    outline: none;
}

.seo-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--oc-ink);
    color: var(--oc-white);
    border-radius: var(--oc-radius);
    text-decoration: none;
    transition: top 0.2s var(--oc-ease);
}

.seo-skip:focus {
    top: 12px;
}

/* ------------------------------------------------------------ en-tête */

.seo-site .seo-header {
    position: sticky;
    top: 0;
    z-index: 900;
    padding: 8px 0;
    background: var(--oc-cream);
    box-shadow: 0 1px 0 rgba(43, 29, 26, 0.06);
}

.seo-site .seo-header .navbar {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 max(16px, env(safe-area-inset-left));
}

.seo-site .seo-header .logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.seo-site .seo-header .logo img {
    height: 44px;
    width: auto;
}

.seo-site .seo-header .menu-hamburger {
    position: static;
    margin-left: auto;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: var(--oc-radius);
    background: transparent;
    color: var(--oc-red);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.seo-site .seo-header nav ul {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    margin: 0;
    padding: 8px 16px 16px;
    list-style: none;
    background: var(--oc-cream);
    box-shadow: 0 12px 24px rgba(43, 29, 26, 0.12);
}

.seo-site .seo-header.is-open nav ul {
    display: flex;
}

.seo-site .seo-header nav ul li {
    margin: 0;
    border-bottom: 1px solid rgba(221, 65, 36, 0.12);
}

.seo-site .seo-header nav ul li:last-child {
    border-bottom: 0;
    padding-top: 12px;
}

.seo-site .seo-header nav ul li a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 4px;
    color: #dd4024;
    font-family: var(--oc-text);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
}

.seo-site .seo-header nav ul li a.login-button {
    justify-content: center;
    background: var(--oc-red);
    color: var(--oc-white);
    padding: 8px 20px;
}

.seo-site .seo-header nav ul li a.router-link-active {
    color: var(--oc-red-ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

@media (min-width: 769px) {
    .seo-site .seo-header .logo img {
        height: 50px;
    }

    .seo-site .seo-header .menu-hamburger {
        display: none;
    }

    .seo-site .seo-header nav ul,
    .seo-site .seo-header.is-open nav ul {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .seo-site .seo-header nav ul li,
    .seo-site .seo-header nav ul li:last-child {
        margin-left: 8px;
        padding-top: 0;
        border-bottom: 0;
    }

    .seo-site .seo-header nav ul li a {
        min-height: 44px;
        padding: 5px 12px;
        font-size: 17px;
        transition: background 0.2s var(--oc-ease), color 0.2s var(--oc-ease);
    }

    .seo-site .seo-header nav ul li a:hover,
    .seo-site .seo-header nav ul li a.router-link-active {
        background: #e8491d;
        color: var(--oc-white);
        text-decoration: none;
    }

    .seo-site .seo-header nav ul li a.login-button:hover {
        background: #f96332;
    }
}

/* -------------------------------------------------------- bandeau aperçu */

.seo-preview {
    position: relative;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    padding: 10px var(--oc-gutter);
    background: var(--oc-ink);
    color: var(--oc-white);
    font-size: 15px;
    font-weight: 600;
}

.seo-preview__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffc53d;
    box-shadow: 0 0 0 4px rgba(255, 197, 61, 0.25);
}

.seo-preview__hint {
    font-weight: 400;
    opacity: 0.8;
}

.seo-preview__link {
    margin-left: auto;
    color: #ffd8cf;
}

/* ------------------------------------------------------ typo commune */

:where(.seo-site) h1,
:where(.seo-site) h2,
:where(.seo-site) h3,
:where(.seo-site) h4 {
    margin: 0;
    font-weight: 400;
    color: var(--oc-ink);
}

:where(.seo-site) p {
    margin: 0;
}

:where(.seo-site) a {
    color: var(--oc-red-ink);
}

.seo-kicker {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--oc-red-ink);
}

.seo-kicker a {
    color: inherit;
    text-decoration: none;
    padding: 4px 10px;
    background: var(--oc-red);
    color: var(--oc-white);
    transform: rotate(-2deg);
    display: inline-block;
}

.seo-kicker a:hover {
    background: var(--oc-red-ink);
}

.seo-kicker__sep {
    opacity: 0.4;
}

.seo-accent {
    color: var(--oc-red);
}

.seo-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--oc-ink-soft);
}

.seo-crumbs li {
    display: inline-flex;
    align-items: center;
}

.seo-crumbs li + li::before {
    content: '/';
    margin: 0 8px;
    opacity: 0.45;
}

.seo-crumbs a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(43, 29, 26, 0.25);
    text-underline-offset: 3px;
}

.seo-crumbs a:hover {
    color: var(--oc-red-ink);
}

.seo-crumbs [aria-current] {
    max-width: 32ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------------ boutons */

.seo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 22px;
    border: 2px solid var(--oc-red);
    border-radius: var(--oc-radius);
    background: var(--oc-red);
    color: var(--oc-white);
    font-family: var(--oc-text);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s var(--oc-ease), color 0.2s var(--oc-ease), transform 0.2s var(--oc-ease);
}

.seo-site a.seo-btn {
    color: var(--oc-white);
}

.seo-btn:hover {
    background: var(--oc-red-ink);
    border-color: var(--oc-red-ink);
    transform: translateY(-1px);
}

.seo-site a.seo-btn--ghost,
.seo-btn--ghost {
    background: transparent;
    color: var(--oc-red-ink);
}

.seo-site a.seo-btn--ghost:hover {
    background: var(--oc-red-ink);
    color: var(--oc-white);
}

/* ---------------------------------------------------------- masthead */

.seo-masthead {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 56px) 0 clamp(32px, 6vw, 72px);
    background:
        repeating-linear-gradient(-12deg, transparent 0 46px, rgba(221, 65, 36, 0.05) 46px 48px),
        var(--oc-cream);
}

/* Signature : un « Allez ! » géant détouré, en arrière-plan, sur grand écran. */
@media (min-width: 900px) {
    .seo-masthead::after {
        content: 'Allez\00a0!';
        position: absolute;
        right: -2vw;
        bottom: -5vw;
        font-family: var(--oc-display);
        font-size: clamp(10rem, 24vw, 22rem);
        line-height: 1;
        color: transparent;
        -webkit-text-stroke: 2px rgba(221, 65, 36, 0.16);
        transform: rotate(-6deg);
        pointer-events: none;
        white-space: nowrap;
    }

    .seo-masthead > .seo-wrap {
        position: relative;
        z-index: 1;
    }
}

.seo-masthead__title {
    font-family: var(--oc-display);
    font-size: clamp(3rem, 11vw, 8.5rem);
    line-height: 0.92;
    letter-spacing: -0.01em;
    max-width: 12ch;
}

.seo-site .seo-masthead__title {
    color: var(--oc-ink);
}

.seo-masthead__lede {
    max-width: 52ch;
    margin-top: 20px;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: var(--oc-ink-soft);
}

.seo-chips {
    display: flex;
    gap: 8px;
    margin: 28px calc(-1 * var(--oc-gutter)) 0;
    padding: 4px var(--oc-gutter);
    overflow-x: auto;
    scrollbar-width: none;
}

.seo-chips::-webkit-scrollbar {
    display: none;
}

.seo-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 16px;
    border: 1.5px solid rgba(43, 29, 26, 0.2);
    border-radius: 999px;
    background: var(--oc-white);
    color: var(--oc-ink);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s var(--oc-ease), background 0.2s var(--oc-ease);
}

.seo-site a.seo-chip {
    color: var(--oc-ink);
}

.seo-chip:hover {
    border-color: var(--oc-red);
}

.seo-site a.seo-chip.is-active {
    background: var(--oc-ink);
    border-color: var(--oc-ink);
    color: var(--oc-white);
}

.seo-chip__count {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    opacity: 0.65;
}

/* --------------------------------------------------- cartes d'articles */

.seo-listing {
    padding-top: clamp(28px, 5vw, 56px);
    padding-bottom: clamp(40px, 7vw, 88px);
}

.seo-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.seo-site .seo-card__link {
    color: var(--oc-ink);
}

.seo-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: var(--oc-radius);
    background: var(--oc-sand);
}

.seo-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--oc-ease);
}

.seo-card__link:hover .seo-card__media img {
    transform: scale(1.04);
}

.seo-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 0 18px;
    font-family: var(--oc-display);
    font-size: 9rem;
    line-height: 0.8;
    color: rgba(221, 65, 36, 0.22);
    background:
        repeating-linear-gradient(-12deg, transparent 0 22px, rgba(221, 65, 36, 0.07) 22px 24px),
        var(--oc-red-soft);
}

.seo-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
}

.seo-card__tag {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--oc-red-ink);
}

.seo-site .seo-card__title {
    font-family: var(--oc-display);
    font-size: clamp(1.35rem, 2.6vw, 1.6rem);
    line-height: 1.12;
    transition: color 0.2s var(--oc-ease);
}

.seo-card__link:hover .seo-card__title {
    color: var(--oc-red-ink);
}

.seo-card__excerpt {
    color: var(--oc-ink-soft);
}

.seo-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: auto;
    padding-top: 4px;
    font-size: 14px;
    color: var(--oc-ink-soft);
    font-variant-numeric: tabular-nums;
}

.seo-card__meta > * + *::before {
    content: '·';
    margin-right: 14px;
}

@media (min-width: 640px) {
    .seo-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 28px;
    }
}

@media (min-width: 1000px) {
    .seo-cards--grid,
    .seo-cards--magazine {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Page 1 du blog : l'article le plus récent s'étale en une. */
    .seo-cards--magazine .seo-card--lead {
        grid-column: 1 / -1;
    }

    .seo-cards--magazine .seo-card--lead .seo-card__link {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 40px;
        align-items: center;
    }

    .seo-cards--magazine .seo-card--lead .seo-card__media {
        aspect-ratio: 16 / 10;
    }

    .seo-cards--magazine .seo-card--lead .seo-card__title {
        font-size: clamp(2rem, 3.4vw, 3rem);
    }

    .seo-cards--magazine .seo-card--lead .seo-card__excerpt {
        font-size: 1.15rem;
    }
}

.seo-empty {
    max-width: 56ch;
    padding: 32px 0;
    font-size: 1.1rem;
}

.seo-empty__title {
    font-family: var(--oc-display);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

/* ---------------------------------------------------------- pagination */

.seo-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: clamp(40px, 6vw, 72px);
}

.seo-pager__pages {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-pager__pages a,
.seo-pager__pages span,
.seo-pager__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--oc-radius);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.seo-site .seo-pager__pages a,
.seo-site .seo-pager__step {
    color: var(--oc-ink);
}

.seo-pager__pages a:hover,
.seo-pager__step:hover {
    background: var(--oc-red-soft);
}

.seo-pager__pages [aria-current] {
    background: var(--oc-ink);
    color: var(--oc-white);
}

/* ------------------------------------------------------------ article */

.seo-article__head {
    padding-top: clamp(20px, 4vw, 48px);
    padding-bottom: clamp(24px, 4vw, 40px);
}

.seo-site .seo-article__title {
    max-width: 18ch;
    font-family: var(--oc-display);
    font-size: clamp(2.3rem, 7vw, 5rem);
    line-height: 0.98;
    color: var(--oc-ink);
    text-wrap: balance;
}

.seo-article__lede {
    max-width: 60ch;
    margin-top: 20px;
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    line-height: 1.5;
    color: var(--oc-ink-soft);
}

.seo-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.4;
}

.seo-byline__avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--oc-red);
    color: var(--oc-white);
    font-family: var(--oc-display);
    font-size: 20px;
    text-transform: uppercase;
}

.seo-byline__date {
    color: var(--oc-ink-soft);
    font-variant-numeric: tabular-nums;
}

.seo-article__cover {
    margin: 0 auto;
    max-width: 1180px;
}

.seo-article__cover img {
    display: block;
    width: 100%;
    max-height: 72vh;
    object-fit: cover;
}

@media (min-width: 1180px) {
    .seo-article__cover img {
        border-radius: var(--oc-radius);
    }
}

.seo-article__layout {
    padding-top: clamp(28px, 5vw, 56px);
    padding-bottom: clamp(40px, 6vw, 72px);
}

.seo-toc {
    margin: 0 0 32px;
    padding: 4px 18px;
    border: 1.5px solid var(--oc-line);
    border-radius: var(--oc-radius);
    background: var(--oc-white);
}

.seo-toc__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.seo-toc__title::-webkit-details-marker {
    display: none;
}

.seo-toc__title::after {
    content: '+';
    font-size: 22px;
    color: var(--oc-red);
    transition: transform 0.2s var(--oc-ease);
}

.seo-toc[open] .seo-toc__title::after {
    transform: rotate(45deg);
}

.seo-toc__list {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.seo-toc__item a {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    color: var(--oc-ink);
    text-decoration: none;
    line-height: 1.35;
}

.seo-toc__item--h2 {
    counter-increment: toc;
}

.seo-toc__item--h2 a::before {
    content: counter(toc, decimal-leading-zero);
    flex: 0 0 auto;
    min-width: 24px;
    font-weight: 700;
    color: var(--oc-red);
    font-variant-numeric: tabular-nums;
}

.seo-toc__item--h3 a {
    padding-left: 34px;
    font-size: 15px;
    color: var(--oc-ink-soft);
}

.seo-toc__item a:hover,
.seo-toc__item a.is-current {
    color: var(--oc-red-ink);
}

@media (min-width: 1100px) {
    .seo-article__layout {
        display: grid;
        grid-template-columns: 250px minmax(0, 720px);
        justify-content: space-between;
        gap: 64px;
    }

    .seo-toc {
        position: sticky;
        top: 96px;
        align-self: start;
        max-height: calc(100vh - 120px);
        overflow: auto;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .seo-toc__title {
        cursor: default;
        pointer-events: none;
    }

    .seo-toc__title::after {
        display: none;
    }

    .seo-article__layout > .seo-prose:only-child {
        grid-column: 1 / -1;
        margin: 0 auto;
    }
}

/* ------------------------------------------------------------- prose */

.seo-prose {
    max-width: 720px;
    font-size: 1.125rem;
    line-height: 1.75;
}

.seo-prose > * + * {
    margin-top: 1.25em;
}

.seo-prose h2 {
    margin-top: 2.2em;
    font-family: var(--oc-display);
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    line-height: 1.08;
    scroll-margin-top: 96px;
}

.seo-prose h3 {
    margin-top: 1.8em;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    scroll-margin-top: 96px;
}

.seo-prose h4 {
    margin-top: 1.6em;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--oc-red-ink);
    scroll-margin-top: 96px;
}

.seo-prose h2 + *,
.seo-prose h3 + *,
.seo-prose h4 + * {
    margin-top: 0.6em;
}

.seo-prose > :first-child {
    margin-top: 0;
}

.seo-prose a {
    color: var(--oc-red-ink);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.seo-prose a:hover {
    color: var(--oc-red);
}

.seo-prose strong,
.seo-prose b {
    font-weight: 700;
}

.seo-prose mark {
    background: linear-gradient(transparent 55%, rgba(255, 197, 61, 0.55) 55%);
    color: inherit;
}

.seo-prose code {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--oc-sand);
    font-size: 0.9em;
}

.seo-prose ul,
.seo-prose ol {
    padding-left: 1.4em;
}

.seo-prose li {
    padding-left: 0.3em;
}

.seo-prose li + li,
.seo-prose li > ul,
.seo-prose li > ol {
    margin-top: 0.45em;
}

.seo-prose ul > li::marker {
    color: var(--oc-red);
}

.seo-prose ol > li::marker {
    color: var(--oc-red-ink);
    font-weight: 700;
}

.seo-figure {
    margin-left: 0;
    margin-right: 0;
}

.seo-figure img,
.seo-gallery img {
    display: block;
    width: 100%;
    border-radius: var(--oc-radius);
    background: var(--oc-sand);
}

.seo-figure figcaption,
.seo-gallery figcaption,
.seo-embed figcaption {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--oc-ink-soft);
}

@media (min-width: 1000px) {
    .seo-figure--wide {
        margin-left: -90px;
        margin-right: -90px;
    }
}

.seo-gallery {
    margin-left: 0;
    margin-right: 0;
}

.seo-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.seo-gallery__item img {
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.seo-gallery--1 .seo-gallery__grid {
    grid-template-columns: 1fr;
}

.seo-gallery--3 .seo-gallery__item:first-child {
    grid-column: 1 / -1;
}

.seo-gallery--3 .seo-gallery__item:first-child img {
    aspect-ratio: 16 / 9;
}

@media (min-width: 800px) {
    .seo-gallery--4 .seo-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .seo-gallery--4 .seo-gallery__item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.seo-quote {
    position: relative;
    margin: 2em 0;
    padding: 28px 24px 24px 64px;
    border-radius: var(--oc-radius);
    background: var(--oc-cream);
}

.seo-quote::before {
    content: '“';
    position: absolute;
    left: 14px;
    top: -6px;
    font-family: var(--oc-display);
    font-size: 96px;
    line-height: 1;
    color: var(--oc-red);
}

.seo-quote blockquote {
    margin: 0;
}

.seo-quote blockquote p {
    font-size: 1.3rem;
    line-height: 1.5;
    font-weight: 600;
}

.seo-quote figcaption {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--oc-red-ink);
}

.seo-quote figcaption::before {
    content: '— ';
}

.seo-callout {
    --callout-bg: #eef3f6;
    --callout-ink: #1d4a63;
    --callout-icon: 'i';
    position: relative;
    padding: 18px 20px 18px 64px;
    border-radius: var(--oc-radius);
    background: var(--callout-bg);
}

.seo-callout::before {
    content: var(--callout-icon);
    position: absolute;
    left: 18px;
    top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--callout-ink);
    color: var(--oc-white);
    font-family: var(--oc-display);
    font-size: 17px;
    line-height: 1;
}

.seo-callout--tip {
    --callout-bg: #fff4d4;
    --callout-ink: #7a4f00;
    --callout-icon: '★';
}

.seo-callout--warning {
    --callout-bg: #fde6e0;
    --callout-ink: #9e2b14;
    --callout-icon: '!';
}

.seo-callout__title {
    font-weight: 700;
    color: var(--callout-ink);
}

.seo-callout__text {
    margin-top: 4px;
    font-size: 1.05rem;
}

.seo-faq {
    border-top: 1.5px solid var(--oc-line);
}

.seo-faq__item {
    border-bottom: 1.5px solid var(--oc-line);
}

.seo-faq__item summary {
    position: relative;
    display: block;
    min-height: 48px;
    padding: 14px 44px 14px 0;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.seo-faq__item summary::-webkit-details-marker {
    display: none;
}

.seo-faq__item summary::after {
    content: '+';
    position: absolute;
    right: 6px;
    top: 10px;
    font-family: var(--oc-display);
    font-size: 26px;
    color: var(--oc-red);
    transition: transform 0.25s var(--oc-ease);
}

.seo-faq__item[open] summary::after {
    transform: rotate(45deg);
}

.seo-faq__answer {
    padding: 0 0 18px;
    color: var(--oc-ink-soft);
}

.seo-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 24px;
    border-radius: var(--oc-radius);
    background:
        repeating-linear-gradient(-12deg, transparent 0 30px, rgba(255, 255, 255, 0.04) 30px 32px),
        var(--oc-ink);
    color: var(--oc-white);
}

.seo-cta p {
    font-family: var(--oc-display);
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    line-height: 1.2;
}

.seo-cta a:not(.seo-btn) {
    color: #ffd8cf;
}

.seo-table {
    overflow-x: auto;
    border: 1.5px solid var(--oc-line);
    border-radius: var(--oc-radius);
    background: var(--oc-white);
}

.seo-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.seo-table th,
.seo-table td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--oc-line);
}

.seo-table th {
    background: var(--oc-cream);
    font-weight: 700;
}

.seo-table tbody tr:last-child td {
    border-bottom: 0;
}

.seo-delimiter {
    height: 12px;
    margin: 2.5em auto;
    border: 0;
    width: 120px;
    background: radial-gradient(circle, var(--oc-red) 3px, transparent 3.5px) center / 24px 12px repeat-x;
}

.seo-embed {
    margin-left: 0;
    margin-right: 0;
}

.seo-embed__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--oc-radius);
    background: var(--oc-ink);
}

.seo-embed__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* -------------------------------------------- billets « prochaines dates » */

.seo-tickets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-prose .seo-tickets {
    margin-top: 1.5em;
}

.seo-prose .seo-tickets li {
    padding-left: 0;
}

@media (min-width: 620px) {
    .seo-tickets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .seo-tickets--section {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.seo-ticket__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 10px;
    background: var(--oc-white);
    box-shadow: 0 1px 0 rgba(43, 29, 26, 0.06), 0 10px 28px -14px rgba(43, 29, 26, 0.35);
    color: var(--oc-ink);
    text-decoration: none;
    transition: transform 0.25s var(--oc-ease), box-shadow 0.25s var(--oc-ease);
}

.seo-site .seo-ticket__link,
.seo-prose .seo-ticket__link {
    color: var(--oc-ink);
    text-decoration: none;
}

.seo-ticket__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 1px 0 rgba(43, 29, 26, 0.06), 0 18px 36px -16px rgba(43, 29, 26, 0.45);
}

.seo-ticket__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 414 / 219;
    border-radius: 10px 10px 0 0;
    background: var(--oc-red-soft);
}

.seo-ticket__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.seo-ticket__noimg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--oc-display);
    font-size: 6rem;
    color: rgba(221, 65, 36, 0.3);
}

.seo-ticket__sport {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(43, 29, 26, 0.78);
    color: var(--oc-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.seo-ticket__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px 18px;
    flex: 1 1 auto;
}

.seo-ticket__type {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--oc-red-ink);
}

.seo-ticket__title {
    font-family: var(--oc-display);
    font-size: 1.3rem;
    line-height: 1.15;
}

.seo-ticket__place {
    color: var(--oc-ink-soft);
    font-size: 15px;
}

/* Le talon du billet : perforation + encoches. */
.seo-ticket__stub {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        'label label price'
        'date more price';
    align-items: end;
    gap: 0 12px;
    padding: 14px 18px 16px;
    border-top: 2px dashed var(--oc-line);
}

.seo-ticket__stub::before,
.seo-ticket__stub::after {
    content: '';
    position: absolute;
    top: -11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--oc-paper);
}

.seo-ticket__stub::before {
    left: -10px;
}

.seo-ticket__stub::after {
    right: -10px;
}

.seo-section--dates .seo-ticket__stub::before,
.seo-section--dates .seo-ticket__stub::after {
    background: var(--oc-cream);
}

.seo-ticket__label {
    grid-area: label;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--oc-ink-soft);
}

.seo-ticket__date {
    grid-area: date;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.seo-ticket__day {
    font-family: var(--oc-display);
    font-size: 2.3rem;
    line-height: 1;
    color: var(--oc-red);
    font-variant-numeric: tabular-nums;
}

.seo-ticket__month {
    font-weight: 700;
}

.seo-ticket__more {
    grid-area: more;
    align-self: center;
    font-size: 13px;
    color: var(--oc-ink-soft);
}

.seo-ticket__price {
    grid-area: price;
    align-self: end;
    text-align: right;
    font-size: 14px;
    line-height: 1.2;
    color: var(--oc-ink-soft);
}

.seo-ticket__price strong {
    display: block;
    font-size: 1.25rem;
    color: var(--oc-ink);
    font-variant-numeric: tabular-nums;
}

.seo-offers-empty {
    padding: 16px 18px;
    border: 1.5px dashed var(--oc-line);
    border-radius: var(--oc-radius);
    background: var(--oc-white);
}

/* ----------------------------------------------------------- sections */

.seo-section {
    padding: clamp(40px, 7vw, 88px) 0;
}

.seo-section--dates {
    background: var(--oc-cream);
}

.seo-section--paper {
    background: var(--oc-sand);
}

.seo-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 28px;
}

.seo-site .seo-section__title {
    font-family: var(--oc-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
    margin-bottom: 0;
}

.seo-section > .seo-wrap > .seo-section__title {
    margin-bottom: 28px;
}

.seo-section__sub {
    color: var(--oc-ink-soft);
}

.seo-section__more {
    margin-top: 24px;
    font-weight: 700;
}

.seo-destinations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1.5px solid rgba(43, 29, 26, 0.15);
}

@media (min-width: 760px) {
    .seo-destinations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.seo-destinations li {
    border-bottom: 1.5px solid rgba(43, 29, 26, 0.15);
}

.seo-destination {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 16px;
    min-height: 64px;
    padding: 14px 0;
    text-decoration: none;
}

.seo-site a.seo-destination {
    color: var(--oc-ink);
}

.seo-destination__title {
    font-family: var(--oc-display);
    font-size: 1.25rem;
    line-height: 1.15;
}

.seo-destination__place {
    grid-column: 1;
    font-size: 14px;
    color: var(--oc-ink-soft);
}

.seo-destination__arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 1.4rem;
    color: var(--oc-red);
    transition: transform 0.25s var(--oc-ease);
}

.seo-destination:hover .seo-destination__arrow {
    transform: translateX(6px);
}

/* ------------------------------------------------ hero destination */

.seo-hero {
    position: relative;
    padding: clamp(24px, 5vw, 56px) 0 clamp(40px, 7vw, 88px);
    background:
        repeating-linear-gradient(-12deg, transparent 0 46px, rgba(221, 65, 36, 0.05) 46px 48px),
        var(--oc-cream);
}

.seo-site .seo-hero__title {
    max-width: 14ch;
    font-family: var(--oc-display);
    font-size: clamp(2.6rem, 9vw, 6.5rem);
    line-height: 0.95;
    text-wrap: balance;
}

.seo-hero__lede {
    max-width: 56ch;
    margin-top: 20px;
    font-size: clamp(1.15rem, 2.3vw, 1.4rem);
    line-height: 1.5;
    color: var(--oc-ink-soft);
}

.seo-hero__actions,
.seo-band__actions,
.seo-nodate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.seo-hero--photo {
    display: flex;
    align-items: flex-end;
    min-height: min(78vh, 720px);
    overflow: hidden;
    background: var(--oc-ink);
}

.seo-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seo-hero--photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(43, 29, 26, 0.35) 0%, rgba(43, 29, 26, 0.05) 35%, rgba(43, 29, 26, 0.82) 100%);
}

.seo-hero--photo .seo-hero__inner {
    position: relative;
    z-index: 1;
}

.seo-hero--photo .seo-crumbs ol,
.seo-hero--photo .seo-hero__lede,
.seo-site .seo-hero--photo .seo-hero__title {
    color: var(--oc-white);
}

.seo-hero--photo .seo-kicker {
    color: #ffd8cf;
}

.seo-hero--photo .seo-crumbs a {
    text-decoration-color: rgba(255, 253, 251, 0.5);
}

.seo-site .seo-hero--photo .seo-btn--ghost {
    border-color: var(--oc-white);
    color: var(--oc-white);
}

.seo-dest-content {
    padding-top: clamp(40px, 6vw, 72px);
    padding-bottom: clamp(40px, 6vw, 72px);
}

.seo-dest-content .seo-prose {
    margin: 0 auto;
}

.seo-nodate {
    max-width: 760px;
    padding: clamp(24px, 4vw, 40px);
    border: 2px dashed rgba(221, 65, 36, 0.4);
    border-radius: 10px;
    background: var(--oc-white);
}

.seo-nodate__title {
    margin-bottom: 8px;
    font-family: var(--oc-display);
    font-size: clamp(1.5rem, 3.6vw, 2rem);
    line-height: 1.1;
}

/* ---------------------------------------------------- bandeau contact */

.seo-band {
    padding: clamp(48px, 8vw, 96px) 0;
    background:
        repeating-linear-gradient(-12deg, transparent 0 46px, rgba(255, 255, 255, 0.06) 46px 48px),
        var(--oc-red);
    color: var(--oc-white);
}

.seo-band__title {
    max-width: 20ch;
    font-family: var(--oc-display);
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    line-height: 1;
}

.seo-band__text {
    max-width: 52ch;
    margin-top: 14px;
    font-size: 1.15rem;
}

.seo-site .seo-band .seo-btn {
    background: var(--oc-white);
    border-color: var(--oc-white);
    color: var(--oc-red-ink);
}

.seo-site .seo-band .seo-btn:hover {
    background: var(--oc-ink);
    border-color: var(--oc-ink);
    color: var(--oc-white);
}

.seo-site .seo-band .seo-btn--ghost {
    background: transparent;
    color: var(--oc-white);
}

/* --------------------------------------------------------------- 404 */

.seo-lost {
    display: grid;
    gap: 8px;
    padding-top: clamp(32px, 7vw, 96px);
    padding-bottom: clamp(56px, 9vw, 120px);
}

.seo-lost__code {
    font-family: var(--oc-display);
    font-size: clamp(7rem, 30vw, 18rem);
    line-height: 0.8;
    color: var(--oc-red);
    letter-spacing: -0.03em;
}

.seo-site .seo-lost__title {
    font-family: var(--oc-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.02;
    margin-bottom: 14px;
}

.seo-lost__text p:not(.seo-kicker) {
    max-width: 50ch;
    font-size: 1.15rem;
}

.seo-lost__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 900px) {
    .seo-lost {
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 56px;
    }
}

/* ------------------------------------------------------------ pied */

.seo-site .site-footer .footer-contact {
    position: static;
}

.seo-site .site-footer .footer-contact p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.seo-site .site-footer .footer-contact a,
.seo-site .footer-links a {
    color: #fff;
}

.seo-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex: 0 0 auto;
}

.seo-site .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 4px;
    color: #fff;
}

.seo-icon--social {
    width: 26px;
    height: 26px;
}

.seo-site .footer-links {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}

/* -------------------------------------------- page d'offre de secours */

.seo-page-offer .oc-ssr {
    padding-top: 32px;
}

/* ------------------------------------------------------- animations */

@media (prefers-reduced-motion: no-preference) {
    .seo-js .seo-reveal {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.5s var(--oc-ease), transform 0.5s var(--oc-ease);
        transition-delay: var(--seo-delay, 0ms);
    }

    .seo-js .seo-reveal.is-in {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seo-site *,
    .seo-site *::before,
    .seo-site *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .seo-header,
    .seo-preview,
    .seo-band,
    .site-footer,
    .footer-links,
    .seo-toc {
        display: none !important;
    }
}
