:root {
    --ink: #163545;
    --paper: #fffbfb;
    --orange: #e08838;
    --lime: #00959a;
    --muted: #266d82;
    --line: #01afb5;
    --teal: #00959a;
    --deep-teal: #095b67;
    --navy: #163545;
    --red: #8b1d1d;
    --black: #000
}

/* Project typography */
body {
    font-family: "DM Sans";
    letter-spacing: .01em
}

h1, h2, h3, h4, .brand, .button {
    font-family: "Racing Sans One"
}

h1 em, h2 span, .hero-art em {
    font-family: "Pinyon Script";
    font-weight: 400
}

.story {
    background: var(--navy);
    color: var(--paper)
}

.story .eyebrow,
.story .story-lead {
    color: var(--lime)
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 55px
}

.story-step {
    border-top: 1px solid rgba(255, 251, 251, .35);
    padding-top: 22px
}

.story-number {
    display: block;
    color: var(--orange);
    font: 700 28px "DM Sans";
    margin-bottom: 45px
}

.story-step h3 {
    color: var(--paper);
    font-size: 27px;
    margin: 0 0 16px
}

.story-step p:not(.eyebrow) {
    color: #b8e1e2;
    line-height: 1.65;
    margin: 0
}

.story-lead {
    max-width: 330px;
    line-height: 1.6;
    margin: 0
}

.story-closing {
    max-width: 760px;
    border-left: 4px solid var(--orange);
    padding-left: 20px;
    margin: 55px 0 0;
    font-size: 20px;
    line-height: 1.5
}

body,
input,
textarea,
select,
button {
    font-family: "DM Sans"
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Racing Sans One" !important
}

h1 em,
h2 span,
.hero h1 em,
.section h2 span,
.social-band h2 em {
    font-family: "Pinyon Script" !important
}

.brand,
.main-nav,
.main-nav a,
.footer a,
.button,
.eyebrow,
.ticker,
.art-label,
.art-caption,
.zigzag,
.event-tag,
.event-date,
.rsvp,
.sponsor-link,
.form-note {
    font-family: "DM Sans", sans-serif !important
}

.brand {
    font-family: "Racing Sans One" !important
}

.hero-intro,
.large-copy,
.value-grid p,
.event-main,
.training-location,
.sponsor-details,
.sponsor-intro,
.story-step p,
.story-lead,
.story-closing,
.contact-copy,
.contact-form,
input,
textarea,
select {
    font-family: "DM Sans" !important
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans"
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
    z-index: 5
}

.site-header {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 251, 251, .96);
    box-shadow: 0 3px 14px rgba(22, 53, 69, .08);
    backdrop-filter: blur(8px)
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .08em;
    font-size: 12px;
    transition: color .25s ease, letter-spacing .25s ease
}

.brand:hover {
    color: var(--teal);
    letter-spacing: .12em
}

.brand-logo {
    transition: transform .45s cubic-bezier(.22, 1, .36, 1)
}

.brand:hover .brand-logo {
    transform: rotate(-8deg) scale(1.08)
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    background: var(--orange);
    color: var(--paper);
    font-weight: 700;
    letter-spacing: -.03em;
    font-size: 14px;
    transform: rotate(-7deg)
}

.brand-mark span {
    color: var(--lime)
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    font-size: 13px
}

.main-nav a, .footer a {
    color: var(--ink);
    text-decoration: none;
    position: relative
}

.main-nav a::after {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left
}

.nav-admin {
    border-left: 1px solid var(--line);
    padding-left: 2.2rem
}

.nav-admin span, .text-link span, .email-link span {
    color: var(--orange)
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 24px
}

.product-image {
    min-height: 220px;
    background: var(--navy);
    display: grid;
    place-items: center;
    overflow: hidden
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover
}

.shop-order-panel {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .55);
    scroll-margin-top: 110px
}

.shop-order-panel h3 {
    margin-top: 0
}

.shop-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px
}

.shop-order-form label {
    display: grid;
    gap: 7px;
    margin-bottom: 18px
}

.preorder-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.preorder-actions form,
.preorder-actions .button {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.preorder-actions form {
    display: flex;
}

.preorder-actions form .button {
    flex: 1;
}

.preorder-actions .button {
    min-height: 48px;
    height: 48px;
    justify-content: center;
    text-align: center;
}

.size-guide {
    margin: 28px 0;
    border: 1px solid var(--line);
    background: rgba(1, 175, 181, .06)
}

.size-guide summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    list-style-position: inside
}

.size-guide summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400
}

.size-guide > p,
.size-guide-tables {
    margin-left: 18px;
    margin-right: 18px
}

.size-guide-tables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 20px
}

.size-guide-tables h3 {
    margin: 8px 0 10px;
    font-size: 20px
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px
}

.size-guide-table th,
.size-guide-table td {
    border: 1px solid rgba(22, 53, 69, .2);
    padding: 8px 10px;
    text-align: left
}

.size-guide-table thead th {
    background: rgba(22, 53, 69, .08);
    font-weight: 700
}

.size-guide-table tbody th {
    color: var(--orange)
}

.hero {
    min-height: 645px;
    display: grid;
    grid-template-columns:52% 48%;
    padding: 7.5vw 5vw 5vw;
    position: relative;
    overflow: hidden
}

.hero-copy {
    animation: hero-copy-in .8s cubic-bezier(.22, 1, .36, 1) both
}

.hero-art {
    animation: hero-art-in 1s cubic-bezier(.22, 1, .36, 1) .12s both
}

.hero-art img {
    transition: transform .7s cubic-bezier(.22, 1, .36, 1)
}

.hero-art:hover img {
    transform: scale(1.035)
}

@keyframes hero-copy-in {
    from { opacity: 0; transform: translateY(22px) }
    to { opacity: 1; transform: translateY(0) }
}

@keyframes hero-art-in {
    from { opacity: 0; transform: translateX(24px) rotate(1deg) }
    to { opacity: 1; transform: translateX(0) rotate(0) }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease var(--reveal-delay), transform .7s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay)
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0)
}

.scroll-reveal.is-visible .eyebrow,
.scroll-reveal.is-visible h2,
.scroll-reveal.is-visible h3,
.scroll-reveal.is-visible p,
.scroll-reveal.is-visible .button,
.scroll-reveal.is-visible .sponsor-link {
    animation: content-rise .55s cubic-bezier(.22, 1, .36, 1) both
}

.scroll-reveal.is-visible h2,
.scroll-reveal.is-visible h3 {
    animation-delay: 80ms
}

.scroll-reveal.is-visible p {
    animation-delay: 140ms
}

.scroll-reveal.is-visible .button,
.scroll-reveal.is-visible .sponsor-link {
    animation-delay: 200ms
}

@keyframes content-rise {
    from { opacity: 0; transform: translateY(8px) }
    to { opacity: 1; transform: translateY(0) }
}

.value-grid article,
.sponsor-card,
.event,
.button,
.text-link,
.social-link,
.lightbox-trigger {
    transition: transform .25s ease, box-shadow .25s ease, color .25s ease, background-color .25s ease
}

.value-grid article:hover {
    transform: translateY(-6px)
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(22, 53, 69, .18)
}

/* Survol d'un événement : la date et le texte glissent (transform, fluide, sans recalcul de mise en page),
   le trait du bas et un léger fond passent au turquoise. Les boutons restent fixes sous le curseur. */
.event {
    transition: opacity .7s ease var(--reveal-delay, 0s), transform .7s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0s), border-color .4s ease, background-color .4s ease
}

.event > .event-date,
.event > .event-main {
    transition: transform .5s cubic-bezier(.22, 1, .36, 1)
}

.event-date strong {
    transition: color .4s ease
}

@media (hover: hover) {
    .event:hover,
    .event:focus-within {
        border-color: var(--line);
        background-color: rgba(1, 175, 181, .06)
    }

    .event:hover > .event-date,
    .event:hover > .event-main,
    .event:focus-within > .event-date,
    .event:focus-within > .event-main {
        transform: translateX(10px)
    }

    .event:hover .event-date strong {
        color: var(--line)
    }
}

.button:hover {
    transform: translateY(-2px)
}

.lightbox-trigger:hover {
    transform: scale(1.02)
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important
    }
}

.hero-copy {
    position: relative;
    z-index: 2
}

.eyebrow {
    font: 500 11px "DM Sans";
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
    margin: 0 0 26px
}

.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    margin-right: 8px
}

.hero h1 {
    font-size: clamp(55px, 7.4vw, 112px);
    line-height: .88;
    letter-spacing: -.08em;
    margin: 0 0 35px;
    font-weight: 700
}

.hero h1 em, .section h2 span, .social-band h2 em {
    font-style: normal;
    color: var(--orange)
}

.hero-intro {
    font-size: 16px;
    line-height: 1.55;
    max-width: 390px;
    color: #266d82
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 32px
}

.button {
    border: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    font: 500 12px "DM Sans";
    padding: 15px 18px;
    letter-spacing: .01em
}

.button span {
    font-size: 18px;
    line-height: 0
}

.button-primary {
    background: var(--orange);
    color: #fffbfb
}

.button-primary:hover {
    background: var(--ink)
}

.button-outline {
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-size: 11px
}

.text-link {
    color: var(--ink);
    text-decoration: none;
    font-size: 12px
}

.text-link span {
    font-size: 17px;
    margin-left: 5px
}

.hero-art {
    height: 500px;
    position: relative;
    background: var(--lime);
    overflow: hidden;
    clip-path: polygon(8% 0, 100% 5%, 92% 100%, 0 94%);
    transform: translateY(calc(var(--hero-shift, 0px) * -1))
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 251, 251, .2) 50%, transparent 65%);
    transform: translateX(-65%) rotate(8deg);
    animation: hero-shine 8s ease-in-out 1.3s infinite;
    z-index: 2;
    pointer-events: none
}

@keyframes hero-shine {
    0%, 35% { transform: translateX(-65%) rotate(8deg) }
    65%, 100% { transform: translateX(65%) rotate(8deg) }
}

.sun {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: var(--orange);
    left: 26%;
    top: 20%
}

.ring {
    position: absolute;
    border: 1px solid var(--ink);
    border-radius: 50%;
    width: 390px;
    height: 390px;
    left: 15%;
    top: 10%
}

.ring-two {
    width: 510px;
    height: 510px;
    left: 0;
    top: -2%
}

.art-label {
    position: absolute;
    top: 13%;
    left: 10%;
    font: 11px "DM Sans";
    line-height: 1.4
}

.art-label strong {
    font-size: 24px
}

.art-caption {
    position: absolute;
    right: 8%;
    bottom: 15%;
    font: 700 18px "DM Sans";
    line-height: 1.05;
    text-align: right;
    transform: rotate(-8deg)
}

.zigzag {
    position: absolute;
    bottom: 8%;
    left: 10%;
    font: 700 40px "DM Sans";
    letter-spacing: -14px
}

.hero-stamp {
    position: absolute;
    right: 45%;
    bottom: 3%;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: #fffbfb;
    overflow: hidden;
    transform: rotate(12deg)
}

.hero-stamp img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.ticker {
    background: var(--orange);
    color: #fffbfb;
    white-space: nowrap;
    overflow: hidden;
    padding: 15px 0;
    font: 500 12px "DM Sans";
    letter-spacing: .13em
}

.ticker div {
    word-spacing: 12px;
    animation: slide 25s linear infinite
}

.ticker:hover div {
    animation-play-state: paused
}

.ticker i {
    display: inline-block;
    animation: ticker-star 2.2s ease-in-out infinite
}

@keyframes ticker-star {
    0%, 100% { transform: rotate(0) scale(1) }
    50% { transform: rotate(90deg) scale(1.2) }
}

.ticker span {
    color: var(--lime)
}

@keyframes slide {
    to {
        transform: translateX(-20%)
    }
}

.section {
    padding: 120px 5vw
}

.section-heading h2, .social-band h2 {
    font-size: clamp(42px, 5.5vw, 78px);
    line-height: .95;
    letter-spacing: -.03em;
    margin: 0
}

.collective {
    display: grid;
    grid-template-columns:39% 61%;
    gap: 7vw
}

.collective-content {
    padding-top: 58px
}

.large-copy {
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -.04em;
    max-width: 570px;
    margin: 0 0 65px
}

.value-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 25px
}

.value-grid article {
    border-top: 1px solid var(--ink);
    padding-top: 14px
}

.value-grid b {
    font: 11px "DM Sans";
    color: var(--orange)
}

.value-grid h3 {
    font-size: 20px;
    margin: 30px 0 10px
}

.value-grid p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0
}

.agenda {
    background: var(--ink);
    color: var(--paper)
}

.agenda .eyebrow {
    color: #7dbfc1
}

.heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 55px
}

.agenda .button-outline {
    color: var(--paper);
    border-color: #7dbfc1
}

.event-album-page .section-heading {
    margin-bottom: 35px;
}

.event-album-page h1 {
    margin: 0;
}

.event-album-page .event-photo-grid figure {
    border: 1px solid var(--line);
    padding: 8px;
}

.event-album-page .event-photo-grid figcaption {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-album-page .event-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.past-events {
    margin-top: 28px;
    border-top: 1px solid #095b67;
    border-bottom: 1px solid #095b67;
}

.past-events summary {
    cursor: pointer;
    padding: 18px 0;
    color: var(--lime);
    font: 500 12px "DM Sans";
    list-style-position: inside;
}

.past-events-list {
    border-top: 1px solid #095b67;
}

.past-events-list .event {
    opacity: .8;
}

.event-album-page .public-photo-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.event-album-page .event-photo-grid figcaption .button {
    margin-top: 8px;
    padding: 8px 10px;
    gap: 8px;
    font-size: 11px;
}

.events-list {
    border-top: 1px solid #095b67
}

.event {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 35px;
    border-bottom: 1px solid #095b67;
    padding: 25px 0
}

.event:has(.event-photos-link) {
    grid-template-columns: 90px minmax(0, 1fr) auto auto auto;
}

.event-photos-link {
    grid-column: 4;
    grid-row: 1;
}

.event-date {
    font: 11px "DM Sans";
    color: var(--lime);
    text-transform: uppercase;
    line-height: 1.4
}

.event-date strong {
    display: block;
    font: 700 32px "DM Sans";
    color: var(--paper);
    letter-spacing: -.06em
}

.event-main h3 {
    margin: 0 0 6px;
    font-size: 21px
}

.event-main p {
    margin: 0;
    color: #7dbfc1;
    font-size: 12px
}

.event-tag {
    font: 10px "DM Sans";
    border: 1px solid #0e7e8e;
    padding: 7px 10px;
    text-transform: uppercase
}

.rsvp {
    background: transparent;
    color: var(--lime);
    border: 0;
    cursor: pointer;
    font: 11px "DM Sans";
    padding: 10px
}

.event-rsvp-form {
    grid-column: 4;
    grid-row: 1;
    white-space: nowrap
}

.event-rsvp-form .rsvp {
    white-space: nowrap
}

.rsvp.rsvp-button {
    min-width: 190px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--lime);
    color: var(--ink) !important;
    border: 2px solid var(--lime);
    border-radius: 4px;
    box-shadow: 5px 5px 0 #095b67;
    font: 700 12px "Barlow Condensed", "DM Sans", sans-serif;
    line-height: 1.1;
    letter-spacing: .06em;
    padding: 12px 16px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease
}

.rsvp.rsvp-button:hover,
.rsvp.rsvp-button:focus-visible {
    background: var(--paper);
    color: var(--ink) !important;
    border-color: var(--paper);
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 #095b67
}

.rsvp.rsvp-button:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 #095b67
}

.rsvp.confirmed {
    background: transparent;
    color: var(--paper) !important;
    border-color: var(--lime);
    box-shadow: 5px 5px 0 #095b67
}

.rsvp.confirmed:hover,
.rsvp.confirmed:focus-visible {
    color: var(--ink) !important;
    background: var(--lime)
}

.attendance-table-card {
    margin-top: 30px
}

.attendance-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px
}

.attendance-table-header h2 {
    margin: 0
}

.attendance-table-header .button {
    margin: 0;
    text-decoration: none
}

.attendance-table-wrap {
    width: 100%;
    overflow-x: auto
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "DM Sans", sans-serif;
    font-size: 13px
}

.attendance-table th,
.attendance-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #095b67;
    text-align: left;
    vertical-align: middle
}

.attendance-table th {
    color: #7dbfc1;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em
}

.attendance-table td a {
    color: inherit;
    overflow-wrap: anywhere
}

.attendance-empty {
    padding: 24px 0 6px;
    color: #7dbfc1
}

@media (max-width: 700px) {
    .attendance-table-header {
        align-items: stretch;
        flex-direction: column
    }

    .attendance-table-header .button {
        width: 100%;
        justify-content: center
    }

    .attendance-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0)
    }

    .attendance-table tr {
        display: block;
        border-bottom: 1px solid #095b67;
        padding: 12px 0
    }

    .attendance-table td {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        border: 0;
        padding: 6px 0
    }

    .attendance-table td::before {
        content: attr(data-label);
        color: #7dbfc1;
        font-size: 10px;
        text-transform: uppercase
    }
}

.photo-albums-page {
    background: var(--paper);
    color: var(--ink)
}

.photo-albums-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px
}

.photo-album-card {
    display: block;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid #b7d4d5;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease
}

.photo-album-card:hover,
.photo-album-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 var(--lime)
}

.photo-album-card > img,
.photo-album-placeholder {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: grid;
    place-items: center
}

.photo-album-placeholder {
    background: var(--ink);
    color: var(--lime)
}

.photo-album-placeholder .icon {
    width: 44px;
    height: 44px
}

.photo-album-card-copy {
    padding: 18px
}

.photo-album-card-copy h2 {
    margin: 0 0 8px;
    font-size: 22px
}

.photo-album-card-copy p {
    min-height: 48px;
    margin: 0 0 12px;
    color: #4d6871;
    line-height: 1.5
}

.photo-album-card-copy span {
    color: var(--lime);
    font: 700 11px "DM Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: .06em
}

@media (max-width: 760px) {
    .photo-albums-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px
    }

    .photo-album-card > img,
    .photo-album-placeholder {
        height: 160px
    }
}

@media (max-width: 380px) {
    .photo-albums-grid {
        grid-template-columns: 1fr
    }

    .photo-album-card > img,
    .photo-album-placeholder {
        height: 220px
    }
}

.empty-state {
    display: none;
    color: #7dbfc1;
    font-size: 14px
}

.journal {
    background: #fffbfb
}

.articles-grid {
    display: grid;
    grid-template-columns:1.25fr 1fr 1fr;
    gap: 18px;
    margin-top: 55px
}

.article-visual {
    height: 260px;
    position: relative;
    overflow: hidden
}

.visual-orange {
    background: var(--orange)
}

.visual-green {
    background: var(--lime)
}

.visual-ink {
    background: var(--ink);
    color: var(--paper)
}

.article-number {
    position: absolute;
    top: 15px;
    left: 18px;
    font: 11px "DM Sans"
}

.visual-word {
    position: absolute;
    right: 18px;
    bottom: 15px;
    font: 700 34px "DM Sans";
    line-height: .9;
    text-align: right;
    letter-spacing: -.1em
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font: 10px "DM Sans";
    margin: 18px 0 12px;
    text-transform: uppercase
}

.article-card h3 {
    font-size: 19px;
    line-height: 1.1;
    letter-spacing: -.04em;
    margin: 0 0 15px
}

.article-card > a {
    font-size: 12px;
    color: var(--orange);
    text-decoration: none
}

.social-band {
    background: var(--lime);
    padding: 100px 5vw 80px;
    position: relative
}

.social-band .eyebrow {
    color: #095b67
}

.social-handle {
    position: absolute;
    right: 5vw;
    top: 105px;
    color: var(--ink);
    font: 12px "DM Sans";
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 8px
}

.social-handle span {
    color: var(--orange);
    font-size: 17px
}

.social-blocks {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 12px;
    margin-top: 75px
}

.social-blocks div {
    background: var(--orange);
    color: var(--paper);
    padding: 35px 25px;
    font: 18px "DM Sans";
    line-height: .95
}

.social-blocks div:nth-child(2) {
    background: var(--ink)
}

.social-blocks div:nth-child(3) {
    background: var(--paper);
    color: var(--ink)
}

.social-blocks b {
    font-size: 32px
}

.contact {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 10vw
}

.contact-copy > p:not(.eyebrow) {
    max-width: 380px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 30px
}

.email-link {
    display: inline-block;
    color: var(--ink);
    font: 14px "DM Sans";
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding: 10px 0;
    margin-top: 20px
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.contact-form label, .admin-panel label {
    display: grid;
    gap: 7px;
    font: 10px "DM Sans";
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 12px
}

.contact-form label:has(input[type="checkbox"]),
.admin-panel label:has(input[type="checkbox"]) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.contact-form input, .contact-form textarea, .admin-panel input, .admin-panel select {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ink);
    padding: 9px 0;
    font: 15px "DM Sans";
    color: var(--ink);
    outline: none;
    resize: vertical
}

/* L’en-tête sticky ne doit jamais recouvrir le libellé du champ qui reçoit le focus. */
.contact-form input,
.contact-form textarea,
.contact-form select,
.admin-card input,
.admin-card textarea,
.admin-card select,
.admin-panel input,
.admin-panel textarea,
.admin-panel select {
    scroll-margin-top: 112px;
}

.contact-form button {
    align-self: flex-start;
    margin-top: 25px
}

.form-note {
    font-size: 12px;
    color: var(--orange);
    min-height: 18px
}

footer {
    background: var(--ink);
    color: var(--paper);
    padding: 32px 5vw;
    display: flex;
    align-items: center;
    gap: 30px
}

footer .brand {
    color: var(--paper)
}

footer p {
    font-size: 12px;
    color: #7dbfc1;
    margin-right: auto
}

footer div {
    display: flex;
    gap: 22px
}

footer div a {
    color: var(--paper);
    font-size: 12px
}

.admin-panel {
    background: var(--paper);
    border: 0;
    padding: 52px;
    max-width: 560px;
    width: calc(100vw - 40px);
    position: relative
}

.admin-panel::backdrop {
    background: rgba(22, 53, 69, .7)
}

dialog {
    border: 0;
    background: transparent
}

.admin-panel h2 {
    font-size: 38px;
    letter-spacing: -.06em;
    margin: 0 0 18px
}

.admin-help {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 26px;
    max-width: 430px
}

.close-dialog {
    position: absolute;
    right: 22px;
    top: 18px;
    border: 0;
    background: none;
    font-size: 27px;
    cursor: pointer
}

.admin-panel label {
    display: block;
    margin-top: 22px
}

.admin-panel input, .admin-panel select {
    width: 100%;
    margin-top: 7px
}

.admin-panel .button {
    margin-top: 34px
}

.form-row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 24px
}

.form-row > div {
    display: flex;
    flex-direction: column
}

.admin-row-actions {
    display: flex;
    align-items: center;
    gap: 18px
}

.admin-row-actions a {
    text-decoration: none
}

.social-band {
    background: var(--lime);
    padding: 100px 5vw 80px;
    position: relative
}

.social-band .eyebrow {
    color: #095b67
}

.social-handle {
    position: absolute;
    right: 5vw;
    top: 105px;
    color: var(--ink);
    font: 12px "DM Sans";
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 8px
}

.social-handle span {
    color: var(--orange);
    font-size: 17px
}

.social-blocks {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 12px;
    margin-top: 75px
}

.social-blocks div {
    background: var(--orange);
    color: var(--paper);
    padding: 35px 25px;
    font: 18px "DM Sans";
    line-height: .95
}

.social-blocks div:nth-child(2) {
    background: var(--ink)
}

.social-blocks div:nth-child(3) {
    background: var(--paper);
    color: var(--ink)
}

.social-blocks b {
    font-size: 32px
}

.contact {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 10vw
}

.contact-copy > p:not(.eyebrow) {
    max-width: 380px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 30px
}

.email-link {
    display: inline-block;
    color: var(--ink);
    font: 14px "DM Sans";
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding: 10px 0;
    margin-top: 20px
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.contact-form label, .admin-panel label {
    font: 10px "DM Sans";
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 12px
}

.contact-form input, .contact-form textarea, .admin-panel input, .admin-panel select {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ink);
    padding: 9px 0;
    font: 15px "DM Sans";
    color: var(--ink);
    outline: none;
    resize: vertical
}

.contact-form button {
    align-self: flex-start;
    margin-top: 25px
}

.form-note {
    font-size: 12px;
    color: var(--orange);
    min-height: 18px
}

footer {
    background: var(--ink);
    color: var(--paper);
    padding: 32px 5vw;
    display: flex;
    align-items: center;
    gap: 30px
}

footer .brand {
    color: var(--paper)
}

footer p {
    font-size: 12px;
    color: #7dbfc1;
    margin-right: auto
}

footer div {
    display: flex;
    gap: 22px
}

footer div a {
    color: var(--paper);
    font-size: 12px
}

.admin-panel {
    background: var(--paper);
    border: 0;
    padding: 52px;
    max-width: 560px;
    width: calc(100vw - 40px);
    position: relative
}

.admin-panel::backdrop {
    background: rgba(22, 53, 69, .7)
}

dialog {
    border: 0;
    background: transparent
}

.admin-panel h2 {
    font-size: 38px;
    letter-spacing: -.06em;
    margin: 0 0 18px
}

.admin-help {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 26px;
    max-width: 430px
}

.close-dialog {
    position: absolute;
    right: 22px;
    top: 18px;
    border: 0;
    background: none;
    font-size: 27px;
    cursor: pointer
}

.admin-panel label {
    display: block;
    margin-top: 22px
}

.admin-panel input, .admin-panel select {
    width: 100%;
    margin-top: 7px
}

.admin-panel .button {
    margin-top: 34px
}

.form-row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 24px
}

.form-row > div {
    display: flex;
    flex-direction: column
}

.training-location {
    margin-top: 60px;
    border: 1px solid #0e7e8e;
    padding: 28px;
    display: grid;
    grid-template-columns:1fr auto;
    gap: 22px;
    position: relative
}

.training-location h3 {
    font-size: 26px;
    letter-spacing: -.05em;
    margin: 0 0 8px
}

.training-location p:not(.eyebrow) {
    color: #8ed4d5;
    font-size: 13px;
    margin: 0
}

.map-actions {
    display: flex;
    align-items: center;
    gap: 20px
}

.agenda .map-actions .button-outline {
    color: var(--paper);
    border-color: #7dbfc1
}

.training-location iframe {
    grid-column: 1 / -1;
    width: 100%;
    height: 230px;
    border: 0;
    filter: saturate(.75)
}

.map-consent {
    grid-column: 1 / -1;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    border: 1px dashed #0e7e8e
}

.training-location .map-consent p {
    max-width: 520px
}

.map-consent a {
    color: #8ed4d5
}

.agenda .map-consent .button-outline {
    color: var(--paper);
    border-color: #7dbfc1
}

.image-rights {
    margin-top: 24px;
    border: 1px solid #0e7e8e;
    padding: 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 32px
}

.image-rights-qr {
    display: block;
    background: #fff;
    padding: 10px;
    line-height: 0
}

.image-rights-qr img {
    width: 180px;
    height: 180px
}

.image-rights h3 {
    font-size: 26px;
    letter-spacing: -.05em;
    margin: 0 0 8px
}

.image-rights p:not(.eyebrow) {
    color: #8ed4d5;
    font-size: 13px;
    max-width: 560px;
    margin: 0 0 18px
}

.sponsors {
    background: var(--paper)
}

.sponsor-intro {
    max-width: 310px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
    margin: 0
}

.sponsor-card {
    display: grid;
    grid-template-columns:280px 1fr;
    min-height: 260px;
    background: var(--ink);
    color: var(--paper);
    margin-top: 55px
}

.sponsor-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 55px
}

.sponsor-card-featured {
    display: block;
    margin-top: 0;
    min-height: 0
}

.sponsor-card-featured .sponsor-logo {
    min-height: 380px;
    padding: 30px
}

.sponsor-card-featured .sponsor-logo img {
    width: auto;
    height: 320px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px
}

.sponsor-logo {
    background: #163545;
    display: grid;
    place-items: center;
    padding: 25px
}

.sponsor-logo img {
    width: 190px;
    height: 190px;
    object-fit: contain;
    border-radius: 10px
}

.sponsor-image-lowres {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    image-rendering: auto
}

.sponsor-image-featured {
    image-rendering: auto
}

.sponsor-details {
    padding: 45px
}

.sponsor-details .eyebrow {
    color: var(--lime)
}

.sponsor-details h3 {
    font-size: 38px;
    letter-spacing: -.06em;
    margin: 0 0 12px
}

.sponsor-details > p:not(.eyebrow) {
    color: #b8e1e2;
    margin: 0 0 28px
}

.sponsor-details .text-link {
    color: var(--paper)
}

.sponsor-details .text-link span {
    color: var(--orange)
}

.sponsor-note {
    font: 11px "DM Sans";
    color: #7dbfc1
}

.sponsor-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 20px;
    margin-top: 20px
}

.sponsor-grid-secondary {
    margin-top: 20px
}

.sponsor-grid-tertiary {
    grid-template-columns: repeat(3, 1fr);
    opacity: .88
}

.sponsor-card-small {
    margin-top: 0;
    grid-template-columns:150px 1fr;
    min-height: 210px
}

.sponsor-card-small .sponsor-logo {
    padding: 18px
}

.sponsor-card-small .sponsor-logo img {
    width: 115px;
    height: 115px
}

.sponsor-card-small .sponsor-details {
    padding: 30px
}

.sponsor-card-small .sponsor-details h3 {
    font-size: 25px
}

.sponsor-link {
    display: block;
    color: var(--paper);
    font: 11px "DM Sans";
    text-decoration: none;
    margin-top: 11px
}

.sponsor-link span {
    color: var(--orange)
}

@media (max-width: 760px) {
    .size-guide summary {
        display: block
    }

    .size-guide summary span {
        display: block;
        margin: 5px 0 0 20px
    }

    .size-guide-tables {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .size-guide-table-wrap {
        overflow-x: auto
    }

    .story-grid {
        grid-template-columns: 1fr
    }

    .story-number {
        margin-bottom: 22px
    }

    .sponsor-featured-grid,
    .sponsor-grid-tertiary {
        grid-template-columns: 1fr
    }

    .site-header {
        height: 68px;
        padding: 0 6vw
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        right: 0;
        /* Panneau calé à droite, aussi large que l'onglet le plus long ; onglets alignés à gauche dedans. */
        width: max-content;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        border-left: 1px solid var(--line);
        padding: 20px 6vw 20px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px
    }

    .main-nav.open {
        display: flex
    }

    /* Menu burger : un chevron devant chaque onglet. */
    .main-nav a::before {
        content: "›";
        display: inline-block;
        margin-right: .55em;
        color: var(--orange);
        font-size: 1.35em;
        line-height: 0;
        vertical-align: -.08em
    }

    .nav-admin {
        border: 0;
        padding: 0
    }

    .menu-toggle {
        display: block
    }

    .hero {
        display: block;
        padding: 65px 6vw 35px;
        min-height: 770px
    }

    .hero-art {
        height: 380px;
        margin: 50px -6vw 0;
        clip-path: polygon(4% 0, 100% 5%, 96% 100%, 0 93%)
    }

    .hero-stamp {
        right: 7%;
        bottom: 14%;
        width: 105px;
        height: 105px
    }

    .sun {
        width: 220px;
        height: 220px
    }

    .ring {
        width: 310px;
        height: 310px
    }

    .ring-two {
        width: 400px;
        height: 400px
    }

    .section {
        padding: 80px 6vw
    }

    .collective, .contact {
        display: block
    }

    .collective-content {
        padding-top: 35px
    }

    .large-copy {
        font-size: 22px;
        margin-bottom: 45px
    }

    .value-grid {
        grid-template-columns:1fr;
        gap: 10px;
    }

    .value-grid h3 {
        margin: 14px 0 7px
    }

    .heading-row {
        display: block;
        margin-bottom: 38px
    }

    .heading-row .button, .heading-row .text-link {
        margin-top: 25px
    }

    .event {
        grid-template-columns:58px 1fr;
        gap: 14px
    }

    .event-tag {
        display: none
    }

    .rsvp {
        grid-column: 2;
        text-align: left;
        padding: 0
    }

    .event-rsvp-form {
        grid-column: 2;
        grid-row: auto;
        justify-self: end;
        width: auto
    }

    .articles-grid {
        grid-template-columns:1fr;
        gap: 45px
    }

    .article-visual {
        height: 250px
    }

    .social-band {
        padding: 75px 6vw 55px
    }

    .social-handle {
        position: static;
        display: inline-block;
        margin-top: 30px
    }

    .social-blocks {
        margin-top: 45px
    }

    .social-blocks div {
        padding: 24px 12px;
        font-size: 12px
    }

    .social-blocks b {
        font-size: 20px
    }

    footer {
        padding: 28px 6vw;
        display: block
    }

    footer p {
        margin: 20px 0
    }

    footer div {
        gap: 14px
    }

    .contact-form {
        margin-top: 55px
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px
    }
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: saturate(.8) contrast(1.05)
}

.hero-art-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 91, 103, .15), rgba(22, 53, 69, .64))
}

.hero-art {
    background: #266d82
}

.hero-art .art-label, .hero-art .art-caption {
    z-index: 1;
    color: #fffbfb;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35)
}

.hero-art .art-label strong {
    color: #01afb5
}

.brand-logo {
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: #fffbfb;
    border: 2px solid var(--ink)
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block
}

.lightbox-trigger {
    cursor: zoom-in
}

.lightbox-open {
    overflow: hidden
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5vw;
    background: rgba(22, 53, 69, .9)
}

.lightbox.is-open {
    display: flex
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    background: #fffbfb
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 30px;
    border: 0;
    background: transparent;
    color: #fffbfb;
    font-size: 42px;
    line-height: 1;
    cursor: pointer
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-top: 20px
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font: 600 17px "DM Sans";
    text-decoration: none;
    border-bottom: 2px solid var(--orange);
    padding: 13px 0
}

.social-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    color: var(--orange)
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.contact-copy > p:not(.eyebrow) {
    max-width: 440px
}

.admin-panel .button {
    white-space: nowrap
}

@media (max-width: 760px) {
    .training-location {
        display: block;
        padding: 22px
    }

    /* Le bandeau des valeurs ne défile pas : sur téléphone, sa taille suit la largeur de l'écran pour tenir sur une ligne. */
    section.ticker {
        font-size: min(2.1vw, 12px)
    }

    .ticker .ticker-track i {
        margin: 0 .5em
    }

    /* Sur téléphone, on ne peut pas scanner son propre écran : le lien passe avant le QR code. */
    .image-rights {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 22px
    }

    .image-rights-qr {
        order: 2;
        justify-self: start
    }

    .image-rights-qr img {
        width: 150px;
        height: 150px
    }

    .map-actions {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 24px
    }

    .training-location iframe {
        margin-top: 26px;
        height: 210px
    }

    .sponsor-card {
        display: block
    }

    .sponsor-logo {
        min-height: 210px
    }

    .sponsor-details {
        padding: 30px
    }

    .sponsor-details h3 {
        font-size: 30px
    }

    .admin-panel {
        padding: 38px 26px
    }

    .admin-panel h2 {
        font-size: 31px
    }

    .form-row {
        grid-template-columns:1fr;
        gap: 0
    }

    .admin-panel .button {
        width: 100%;
        white-space: normal
    }
}

:root {
    --turquoise: #00959a;
    --orange: var(--turquoise)
}

.ticker {
    background: var(--ink);
    color: var(--paper);
    padding: 15px 20px;
    font: 500 12px "DM Sans";
    letter-spacing: .13em;
    text-align: center
}

.ticker-track {
    display: block;
    width: 100%;
    white-space: nowrap;
    animation: none !important;
    transform: none !important
}

.ticker i {
    font-style: normal;
    color: var(--lime);
    margin: 0 .8em
}

#event-panel h3 {
    font-size: 22px;
    letter-spacing: -.04em;
    margin: 20px 0
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px
}

.admin-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 56px
}

.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px
}

.admin-header-actions .button {
    white-space: nowrap
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -24px 0 36px
}

.admin-tabs .button {
    white-space: nowrap
}

.admin-shop-create-action {
    display: flex;
    justify-content: flex-end;
    margin: -20px 0 36px;
}

.admin-shop-create-action .button {
    white-space: nowrap;
}

.admin-count {
    color: var(--muted);
    font-size: .6em
}

.admin-row-actions .button:disabled {
    opacity: .4;
    cursor: not-allowed
}

.text-button {
    border: 0;
    background: none;
    color: var(--muted);
    font: 11px "DM Sans";
    cursor: pointer;
    padding: 8px 0
}

.text-button:hover {
    color: var(--ink)
}

.field-help {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    margin: 18px 0
}

.admin-page-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 5vw
}

.admin-page-main h1 {
    font-size: clamp(50px, 7vw, 90px);
    line-height: .9;
    letter-spacing: -.03em;
    margin: 0 0 clamp(28px, 4vw, 52px);
}

.admin-page-main h1 span {
    color: var(--orange)
}

.admin-page-intro {
    max-width: 530px;
    color: var(--muted);
    line-height: 1.5;
    margin: 28px 0 0
}

.admin-page-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 20px
}

.admin-card {
    background: #fffbfb;
    border: 1px solid var(--line);
    padding: clamp(24px, 3vw, 38px);
    box-shadow: 0 12px 30px rgba(22, 53, 69, .04)
}

.admin-card h2 {
    font-size: 30px;
    letter-spacing: -.06em;
    margin: 0 0 26px
}

.admin-create-card {
    align-self: start
}

.admin-events-card {
    min-width: 0
}

.admin-edit-header {
    align-items: center;
    margin-bottom: 34px
}

.admin-edit-header .eyebrow {
    margin: 0
}

.admin-edit-card,
.admin-photos-card {
    max-width: 820px;
    margin: 0 auto 22px
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px
}

.admin-form-actions .button {
    margin-top: 0
}

.admin-product-card {
    max-width: 1080px;
    margin: 0 auto;
}

.admin-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.admin-product-fields {
    min-width: 0;
}

.admin-form-section {
    padding: 0 0 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.admin-form-section:last-child {
    margin-bottom: 0;
}

.admin-form-section > .eyebrow,
.admin-product-preview > .eyebrow {
    margin: 0 0 18px;
    color: var(--orange);
}

.admin-form-section .field-help {
    display: block;
    margin: 5px 0 0;
    font: 11px "DM Sans";
    text-transform: none;
    letter-spacing: 0;
}

.admin-checkbox-list {
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
}

.admin-checkbox-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid var(--line);
    background: rgba(1, 175, 181, .05);
    color: var(--ink);
    font: 13px "DM Sans";
    text-transform: none;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-checkbox-list input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--orange);
}

.admin-checkbox-list label span {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.admin-card .admin-checkbox-list input[type="checkbox"] {
    width: 18px;
    max-width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: auto;
}

.admin-product-preview {
    position: sticky;
    top: 100px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    background: #fffbfb;
}

.admin-product-form .admin-form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-product-form .admin-form-actions .button {
    width: 100%;
    justify-content: center;
}

@media (max-width: 700px) {
    .admin-product-card {
        padding: 18px;
    }

    .admin-product-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .admin-product-preview {
        position: static;
        order: -1;
    }

    .admin-product-preview-image {
        min-height: 180px;
    }

    .admin-product-form .admin-form-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

.admin-product-preview-image {
    min-height: 220px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--navy);
    margin-bottom: 18px;
}

.admin-product-preview-image img,
.admin-product-preview-image .product-art {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.admin-product-preview .product-type {
    margin: 0 0 8px;
}

.admin-product-preview h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -.03em;
}

.admin-product-preview > p:not(.eyebrow):not(.product-type) {
    min-height: 42px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.admin-product-preview-price {
    font: 20px "DM Sans";
}

.form-note-error {
    color: #8b1d1d;
    background: rgba(224, 136, 56, .12);
    border-color: rgba(224, 136, 56, .35)
}

.admin-photo-album-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.admin-photo-album-layout .album-details-card,
.admin-photo-album-layout .album-photos-card {
    width: 100%;
    max-width: 820px;
    margin: 0 auto
}

.album-photo-upload {
    max-width: none;
}

.album-photo-upload .photo-dropzone-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--ink);
    background: var(--lime);
    border-radius: 50%;
}

.album-photo-upload .photo-dropzone-icon .icon {
    width: 26px;
    height: 26px;
}

.album-photo-upload .photo-dropzone strong {
    font: 700 22px "Barlow Condensed", "DM Sans", sans-serif;
    letter-spacing: .02em;
}

.album-photo-upload .photo-dropzone-action {
    display: inline-flex;
    margin-top: 8px;
    padding: 10px 16px;
    color: var(--ink) !important;
    background: var(--lime);
    border: 1px solid var(--lime);
    font: 700 11px "DM Sans", sans-serif;
    text-transform: uppercase;
}

.album-photo-upload .photo-dropzone.is-dragging {
    border-style: solid;
    border-color: var(--lime);
    background: rgba(0,149,154,.12);
    transform: scale(.995);
}

.album-photo-upload .photo-dropzone.has-selection {
    min-height: 180px;
}

.album-photo-upload .photo-upload-status.has-selection {
    color: var(--ink);
    font-weight: 700;
}

.photo-preview-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #b7d4d5;
    background: #fff;
}

.photo-preview-card img {
    aspect-ratio: 4 / 3;
}

.photo-preview-card .photo-preview-name {
    display: block;
    min-height: 44px;
    padding: 10px 38px 10px 10px;
}

.photo-preview-remove {
    position: absolute;
    right: 6px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.photo-preview-remove:hover,
.photo-preview-remove:focus-visible {
    background: var(--orange);
}

.photo-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 42px 20px;
    border: 2px dashed var(--line);
    color: var(--ink);
    text-align: center;
    cursor: pointer;
    margin-top: 0 !important;
    font: inherit !important;
    text-transform: none !important;
    position: relative;
}

.photo-dropzone.is-dragging,
.photo-dropzone:hover {
    border-color: var(--orange);
    background: rgba(224, 136, 56, .08);
}

.photo-dropzone span {
    color: var(--muted);
    font-size: 13px;
}

.admin-card .photo-dropzone input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
}

.photo-upload-preview,
.event-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.photo-upload-preview:empty {
    display: none
}

.photo-upload-status {
    margin-top: 18px;
    color: var(--muted);
    font: 11px "DM Sans";
}

.photo-upload-preview .photo-preview-name {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    color: var(--muted);
    font: 11px "DM Sans";
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.photo-upload-preview img,
.event-photo-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #fffbfb;
}

.event-photo-grid figure {
    margin: 0;
    min-width: 0;
}

.event-photo-grid figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    font-size: 11px;
}

.event-photo-grid figcaption span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-card label {
    display: grid;
    gap: 7px;
    font: 10px "DM Sans";
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 20px
}

.admin-card input:not([type="checkbox"]):not([type="radio"]), .admin-card select, .admin-card textarea {
    width: 100%;
    max-width: 100%;
    resize: vertical;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 11px 0;
    font: 15px "DM Sans";
    color: var(--ink);
    outline: none
}

.admin-card .button {
    margin-top: 28px
}

.admin-create-card .button {
    width: 100%;
    justify-content: center
}

.admin-content-list {
    margin-top: 8px
}

/* Archive repliée des événements passés (tableau de bord admin). */
.admin-past-events {
    margin-top: 18px;
    border-top: 1px solid var(--line)
}

.admin-past-events summary {
    padding: 16px 0 4px;
    font: 600 13px "DM Sans";
    color: var(--muted);
    cursor: pointer
}

.admin-past-events summary:hover {
    color: inherit
}

.admin-event-row.is-past strong {
    opacity: .7
}

.admin-list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between
}

.admin-event-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(215px, 250px);
    align-items: center;
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid var(--line)
}

.admin-event-row > div:first-child {
    min-width: 0;
}

.admin-event-row strong {
    font-size: 15px;
    line-height: 1.3
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px
}

.admin-row-actions .button {
    margin-top: 0;
    padding: 10px 12px;
    font-size: 11px
}

.admin-event-row > div:first-child strong, .admin-event-row > div:first-child span {
    display: block
}

.admin-event-row > div:first-child span {
    font: 11px "DM Sans";
    color: var(--muted);
    margin-top: 5px
}

@media (max-width: 760px) {
    .admin-page-main {
        padding: 64px 6vw
    }

    .admin-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
        margin-bottom: 34px
    }

    .admin-header-actions {
        justify-content: flex-start
    }

    .admin-page-grid {
        grid-template-columns:1fr
    }

    .admin-actions {
        align-items: flex-start;
        flex-direction: column
    }

    .admin-event-row {
        grid-template-columns: 1fr;
        align-items: flex-start
    }

    .admin-row-actions {
        justify-content: flex-start;
        width: 100%
    }
}

@media (max-width: 760px) {
    .sponsor-grid {
        grid-template-columns:1fr
    }

    .sponsor-card-small {
        display: block
    }

    .sponsor-card-small .sponsor-logo {
        min-height: 150px
    }
}

.shop-hero {
    min-height: 470px;
    padding: 105px 5vw 75px;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    animation: shop-hero-in .8s cubic-bezier(.22, 1, .36, 1) both
}

.shop-hero .eyebrow {
    color: var(--lime)
}

.shop-hero h1 {
    font-size: clamp(58px, 8vw, 115px);
    line-height: .86;
    letter-spacing: -.03em;
    margin: 0 0 30px
}

.shop-hero h1 em {
    font-style: normal;
    color: var(--lime)
}

.shop-hero p:not(.eyebrow) {
    max-width: 470px;
    color: #b8e1e2;
    line-height: 1.5
}

.shop-hero-sticker {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: #fffbfb;
    overflow: hidden;
    transform: rotate(10deg);
    flex-shrink: 0;
    animation: shop-sticker-in .9s cubic-bezier(.22, 1, .36, 1) .18s both, shop-sticker-float 5s ease-in-out 1.1s infinite
}

.shop-hero-sticker img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.shop-section {
    padding: 105px 5vw
}

.shop-intro {
    max-width: 300px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
    margin: 0
}

.product-grid {
    display: grid;
    grid-template-columns:1.3fr 1fr 1fr;
    gap: 18px;
    margin-top: 55px
}

.product-card {
    background: #fffbfb;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-7px) rotate(-.35deg);
    border-color: var(--orange);
    box-shadow: 8px 10px 0 rgba(224, 136, 56, .14)
}

.product-image img {
    transition: transform .65s cubic-bezier(.22, 1, .36, 1), filter .35s ease
}

.product-card:hover .product-image img,
.product-card:focus-within .product-image img {
    transform: scale(1.06);
    filter: saturate(1.12)
}

.product-card .product-bottom .button {
    transition: transform .25s ease, background-color .25s ease, color .25s ease
}

.product-card:hover .product-bottom .button,
.product-card:focus-within .product-bottom .button {
    transform: translateX(4px)
}

.product-card-wide {
    grid-row: span 1
}

@keyframes shop-hero-in {
    from { opacity: 0; transform: translateY(16px) }
    to { opacity: 1; transform: translateY(0) }
}

@keyframes shop-sticker-in {
    from { opacity: 0; transform: translateX(24px) rotate(25deg) scale(.8) }
    to { opacity: 1; transform: translateX(0) rotate(10deg) scale(1) }
}

@keyframes shop-sticker-float {
    0%, 100% { transform: rotate(10deg) translateY(0) }
    50% { transform: rotate(7deg) translateY(-8px) }
}

.product-art {
    height: 285px;
    position: relative;
    overflow: hidden;
    padding: 20px
}

.product-art b {
    font: 700 28px "DM Sans"
}

.product-art span {
    position: absolute;
    top: 22px;
    right: 22px;
    font: 11px "DM Sans"
}

.product-art strong {
    position: absolute;
    right: 20px;
    bottom: 18px;
    text-align: right;
    font: 700 38px "DM Sans";
    line-height: .85;
    letter-spacing: -.1em
}

.product-art-orange {
    background: var(--orange);
    color: #fffbfb
}

.product-art-lime {
    background: var(--lime)
}

.product-art-ink {
    background: var(--ink);
    color: var(--paper)
}

.product-info {
    padding: 23px
}

.product-type {
    font: 10px "DM Sans";
    text-transform: uppercase;
    color: var(--orange);
    margin: 0 0 10px
}

.product-info h3 {
    font-size: 24px;
    letter-spacing: -.05em;
    margin: 0 0 10px
}

.product-info > p:not(.product-type) {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    min-height: 58px;
    margin: 0
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 25px
}

.product-bottom strong {
    font: 20px "DM Sans"
}

.product-bottom .button {
    font-size: 10px;
    padding: 11px 12px;
    gap: 10px
}

.shop-empty-state {
    grid-column: 1 / -1;
    padding: clamp(32px, 6vw, 72px) clamp(22px, 5vw, 64px);
    border: 1px solid var(--line);
    background: rgba(1, 175, 181, .06);
    text-align: center;
}

.shop-empty-state .eyebrow {
    margin: 0 0 14px;
    color: var(--orange);
}

.shop-empty-state h3 {
    margin: 0 auto 12px;
    max-width: 620px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: .95;
}

.shop-empty-state p:last-child {
    max-width: 560px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.shop-equipment {
    background: #fffbfb
}

.equipment-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 12px;
    margin-top: 55px
}

.equipment-grid article {
    background: var(--paper);
    padding: 25px;
    position: relative;
    border-top: 3px solid var(--ink)
}

.equipment-number {
    position: absolute;
    right: 20px;
    top: 20px;
    font: 11px "DM Sans";
    color: var(--orange)
}

.equipment-icon {
    font-size: 48px;
    line-height: 1;
    margin: 25px 0 30px
}

.equipment-grid h3 {
    font-size: 21px;
    letter-spacing: -.05em;
    margin: 0 0 10px
}

.equipment-grid p:not(.product-type) {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    min-height: 78px
}

.equipment-grid strong {
    font: 18px "DM Sans"
}

.shop-tips {
    background: var(--lime);
    padding: 105px 5vw 115px
}

.tips-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px
}

.tips-grid article {
    border-top: 1px solid var(--ink);
    padding-top: 15px
}

.tips-grid b {
    font: 11px "DM Sans";
    color: var(--orange)
}

.tips-grid h3 {
    font-size: 25px;
    letter-spacing: -.05em;
    margin: 35px 0 10px
}

.tips-grid p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 310px;
    margin: 0
}

@media (max-width: 760px) {
    .shop-hero {
        display: block;
        padding: 75px 6vw
    }

    .shop-hero-sticker {
        width: 130px;
        height: 130px;
        font-size: 15px;
        margin: 50px 0 0 auto
    }

    .shop-section, .shop-tips {
        padding: 75px 6vw
    }

    .product-grid, .equipment-grid, .tips-grid {
        grid-template-columns:1fr;
        gap: 20px
    }

    .product-art {
        height: 230px
    }

    .equipment-grid article {
        padding: 22px
    }

    .equipment-grid p:not(.product-type) {
        min-height: 0
    }

    .tips-grid {
        gap: 28px
    }
}

.product-art::before, .product-art::after, .equipment-icon::before, .equipment-icon::after {
    content: "";
    position: absolute;
    display: block
}

.product-art {
    isolation: isolate
}

.product-drawing-jersey::before {
    width: 112px;
    height: 135px;
    left: 35%;
    top: 72px;
    background: var(--paper);
    clip-path: polygon(22% 0, 38% 13%, 62% 13%, 78% 0, 100% 20%, 82% 37%, 76% 27%, 76% 100%, 24% 100%, 24% 27%, 18% 37%, 0 20%);
    filter: drop-shadow(8px 10px 0 rgba(22, 53, 69, .18));
    z-index: -1
}

.product-drawing-jersey::after {
    width: 52px;
    height: 56px;
    left: calc(35% + 30px);
    top: 110px;
    border: 4px solid var(--orange);
    border-radius: 50%;
    color: var(--orange);
    font: 700 18px "DM Sans";
    content: "VR";
    display: grid;
    place-items: center;
    z-index: 0
}

.product-drawing-shorts::before {
    width: 136px;
    height: 112px;
    left: 32%;
    top: 95px;
    background: var(--ink);
    clip-path: polygon(8% 0, 92% 0, 100% 100%, 58% 100%, 50% 48%, 42% 100%, 0 100%);
    filter: drop-shadow(8px 10px 0 rgba(22, 53, 69, .18));
    z-index: -1
}

.product-drawing-shorts::after {
    width: 38px;
    height: 4px;
    left: calc(32% + 49px);
    top: 110px;
    background: var(--lime);
    z-index: 0
}

.product-drawing-socks::before {
    width: 42px;
    height: 137px;
    left: 37%;
    top: 70px;
    background: var(--lime);
    border-radius: 8px 8px 5px 5px;
    box-shadow: 50px 24px 0 var(--paper);
    transform: rotate(8deg);
    z-index: -1
}

.product-drawing-socks::after {
    width: 52px;
    height: 19px;
    left: 35%;
    top: 190px;
    background: var(--lime);
    border-radius: 0 0 18px 18px;
    box-shadow: 50px 24px 0 var(--paper);
    transform: rotate(8deg);
    z-index: -1
}

.equipment-icon {
    height: 60px;
    position: relative
}

.equipment-ball::before {
    width: 58px;
    height: 40px;
    left: 8px;
    top: 9px;
    background: var(--orange);
    border: 3px solid var(--ink);
    border-radius: 50%;
    transform: rotate(-22deg)
}

.equipment-ball::after {
    width: 30px;
    height: 25px;
    left: 23px;
    top: 17px;
    border-top: 2px solid var(--paper);
    border-bottom: 2px solid var(--paper);
    border-radius: 50%;
    transform: rotate(-22deg)
}

.equipment-cones::before {
    width: 0;
    height: 0;
    left: 8px;
    top: 4px;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 52px solid var(--orange);
    filter: drop-shadow(38px 9px 0 var(--lime))
}

.equipment-cones::after {
    width: 88px;
    height: 7px;
    left: 0;
    bottom: 0;
    background: var(--ink);
    border-radius: 8px
}

.equipment-bottle::before {
    width: 32px;
    height: 52px;
    left: 20px;
    top: 7px;
    border: 3px solid var(--ink);
    border-radius: 8px 8px 10px 10px;
    background: var(--lime)
}

.equipment-bottle::after {
    width: 15px;
    height: 8px;
    left: 29px;
    top: 0;
    border: 3px solid var(--ink);
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    background: var(--paper)
}

.equipment-bag::before {
    width: 82px;
    height: 45px;
    left: 5px;
    top: 20px;
    background: var(--ink);
    border-radius: 8px 8px 15px 15px
}

.equipment-bag::after {
    width: 48px;
    height: 27px;
    left: 22px;
    top: 7px;
    border: 5px solid var(--orange);
    border-bottom: 0;
    border-radius: 25px 25px 0 0
}

/* Responsive layout refinements */
img, iframe {
    max-width: 100%
}

body {
    overflow-x: hidden
}

@media (min-width: 1200px) {
    .hero, .section, .shop-hero, .shop-section, .shop-tips {
        padding-left: max(5vw, calc((100vw - 1320px) / 2));
        padding-right: max(5vw, calc((100vw - 1320px) / 2))
    }

    .site-header {
        padding-left: max(5vw, calc((100vw - 1320px) / 2));
        padding-right: max(5vw, calc((100vw - 1320px) / 2))
    }
}

@media (min-width: 761px) and (max-width: 1050px) {
    .main-nav {
        gap: 1rem;
        font-size: 12px
    }

    .hero {
        grid-template-columns:48% 52%;
        padding-top: 90px
    }

    .hero h1 {
        font-size: clamp(52px, 7vw, 78px)
    }

    .hero-art {
        height: 430px
    }

    .section {
        padding-top: 90px;
        padding-bottom: 90px
    }

    .collective {
        grid-template-columns:42% 58%;
        gap: 4vw
    }

    .articles-grid {
        grid-template-columns:1fr 1fr
    }

    .article-featured {
        grid-column: 1 / -1
    }

    .product-grid {
        grid-template-columns:1fr 1fr
    }

    .product-card-wide {
        grid-column: 1 / -1
    }

    .equipment-grid {
        grid-template-columns:1fr 1fr
    }

    .sponsor-card {
        grid-template-columns:220px 1fr
    }

    .sponsor-grid {
        grid-template-columns:1fr
    }

    .contact {
        gap: 5vw
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 0 5vw
    }

    .brand {
        font-size: 10px;
        gap: 8px
    }

    .brand-logo {
        width: 31px;
        height: 31px
    }

    .main-nav {
        z-index: 20
    }

    .hero {
        padding: 58px 6vw 35px;
        min-height: 0
    }

    .hero h1 {
        font-size: clamp(52px, 15vw, 78px);
        max-width: 620px
    }

    .hero-intro {
        font-size: 15px
    }

    .hero-art {
        height: min(92vw, 390px);
        margin: 48px -6vw 0
    }

    /* Sur téléphone, le logo passe en bas à gauche de la photo pour ne pas cacher « Laissez-nous nous présenter ». */
    .hero-stamp {
        bottom: 4%;
        left: 5%;
        right: auto;
        width: 92px;
        height: 92px
    }

    .section {
        padding: 72px 6vw
    }

    .section-heading h2, .social-band h2 {
        font-size: clamp(42px, 13vw, 66px)
    }

    .heading-row {
        margin-bottom: 36px
    }

    .large-copy {
        font-size: 21px
    }

    .agenda .heading-row {
        margin-bottom: 30px
    }

    .event {
        grid-template-columns:56px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 22px 0
    }

    .event-main h3 {
        font-size: 18px
    }

    .event-main p {
        line-height: 1.5
    }

    .event-tag {
        display: block;
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        margin-top: 4px
    }

    .rsvp {
        grid-column: 2;
        text-align: left;
        padding: 6px 0
    }

    .rsvp.rsvp-button {
        width: 190px;
        min-width: 190px;
        max-width: 190px;
        margin: 0;
        padding: 12px 14px
    }

    .event-rsvp-form {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        width: auto
    }

    .training-location {
        margin-top: 42px
    }

    .training-location iframe {
        height: 210px
    }

    .articles-grid {
        gap: 38px
    }

    .article-card h3 {
        font-size: 21px
    }

    .social-band {
        padding: 72px 6vw 56px
    }

    .social-band h2 {
        max-width: 360px
    }

    .social-handle {
        top: auto
    }

    .social-blocks {
        grid-template-columns:1fr;
        gap: 10px
    }

    .social-blocks div {
        min-height: 100px
    }

    .sponsor-card {
        display: block
    }

    .sponsor-logo {
        min-height: 190px
    }

    .sponsor-details {
        padding: 28px
    }

    .sponsor-grid {
        grid-template-columns:1fr
    }

    .contact {
        display: block
    }

    .contact-form {
        margin-top: 52px
    }

    .contact-form button {
        width: 100%;
        justify-content: center
    }

    .form-row {
        grid-template-columns:1fr;
        gap: 0
    }

    .shop-hero {
        min-height: 0;
        padding: 72px 6vw
    }

    .shop-hero h1 {
        font-size: clamp(56px, 15vw, 82px)
    }

    .shop-section, .shop-tips {
        padding: 72px 6vw
    }

    .shop-intro {
        margin-top: 26px
    }

    .product-grid, .equipment-grid, .tips-grid {
        grid-template-columns:1fr
    }

    .product-art {
        height: min(72vw, 280px)
    }

    .product-info h3 {
        font-size: 22px
    }

    .product-bottom {
        align-items: flex-start;
        flex-direction: column
    }

    .product-bottom .button {
        width: 100%;
        justify-content: center
    }

    .equipment-grid p:not(.product-type) {
        min-height: 0
    }

    .tips-grid {
        gap: 30px
    }

    .tips-grid h3 {
        margin-top: 25px
    }

    footer {
        padding: 30px 6vw
    }

    footer div {
        flex-wrap: wrap;
        row-gap: 12px
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 48px
    }

    .event {
        grid-template-columns:56px minmax(0, 1fr) auto
    }

    .event-date,
    .event-main,
    .event-tag,
    .rsvp {
        grid-column: auto
    }

    .event-rsvp-form {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        width: auto
    }

    .rsvp.rsvp-button {
        width: 190px;
        min-width: 190px;
        max-width: 190px
    }

    .event-album-page .event-photo-grid {
        grid-template-columns: 1fr;
    }

    .event-date {
        display: flex;
        align-items: baseline;
        gap: 8px
    }

    .event-date strong {
        display: inline;
        font-size: 28px
    }

    .event-tag {
        justify-self: start
    }

    .hero-actions .button {
        width: 100%
    }

    .product-art strong {
        font-size: 29px
    }
}

/* Liens, onglets et boutons : police condensée et sportive, en majuscules, pour un rendu net. */
.main-nav a,
footer a,
.button,
.text-link,
.text-button,
.rsvp,
.sponsor-link {
    font-family: "Barlow Condensed", "DM Sans", sans-serif !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em
}

.main-nav {
    font-size: 15px
}

.button,
.text-link {
    font-size: 14px
}

.button-outline,
.text-button {
    font-size: 13px
}

@media (min-width: 761px) and (max-width: 1050px) {
    .main-nav {
        font-size: 14px
    }
}

.text-link {
    white-space: nowrap
}

.secret-santa-page .admin-page-header {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 5vw, 58px);
    margin-bottom: 32px;
    background:
        radial-gradient(circle at 88% 18%, rgba(245, 207, 123, .16), transparent 23%),
        linear-gradient(125deg, #123f35, #1d5a48 68%, #245f4c);
    border: 1px solid rgba(18, 63, 53, .2);
    box-shadow: 0 18px 45px rgba(18, 63, 53, .13)
}

.secret-santa-page .admin-page-header::after {
    content: "✦  ❄  ✦";
    position: absolute;
    top: 20px;
    right: 24px;
    color: #f5cf7b;
    font-size: clamp(22px, 4vw, 38px);
    letter-spacing: .3em;
    opacity: .8;
    pointer-events: none
}

.secret-santa-page .admin-page-header h1 {
    color: #fffaf0;
    margin-bottom: 0
}

.secret-santa-page .admin-page-header h1 span {
    color: #f1c96e
}

.secret-santa-page .admin-page-intro {
    color: #e0eee4;
    max-width: 620px
}

.secret-santa-page .admin-card {
    border-top: 5px solid transparent;
    border-image: linear-gradient(90deg, #b83b43 0 50%, #28664d 50% 100%) 1
}

.secret-santa-page .admin-card .eyebrow {
    color: #28664d
}

.secret-santa-card {
    max-width: 760px
}

.secret-santa-card > p {
    line-height: 1.6
}

.secret-santa-registered {
    border-left: 4px solid #28664d;
    padding: 14px 18px;
    background: #edf5ee;
    line-height: 1.6
}

.secret-santa-result {
    margin-top: 30px;
    padding: clamp(24px, 5vw, 48px);
    background:
        radial-gradient(circle at 12% 18%, rgba(245, 207, 123, .18), transparent 28%),
        linear-gradient(135deg, #173f35, #205d47);
    color: var(--paper);
    text-align: center
}

.secret-santa-result p {
    margin: 0 0 12px;
    color: #e0eee4
}

.secret-santa-result strong {
    display: block;
    color: #f1c96e;
    font-family: "Racing Sans One", sans-serif;
    font-size: clamp(36px, 8vw, 64px);
    line-height: 1.1;
    margin: 16px 0 24px
}

.secret-santa-page .button-primary {
    background: #a93640;
    border-color: #a93640;
    color: #fffaf0
}

.secret-santa-page .button-primary:hover {
    background: #872a33;
    border-color: #872a33
}

@media (max-width: 600px) {
    .secret-santa-page .admin-page-header {
        padding: 32px 22px
    }

    .secret-santa-page .admin-page-header::after {
        top: 12px;
        right: 12px;
        font-size: 19px
    }
}

/* Bandeau des informations légales, sous le pied de page. */
.footer-legal {
    background: var(--ink);
    border-top: 1px solid rgba(125, 191, 193, .25);
    padding: 14px 5vw;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    font-size: 12px;
    color: #7dbfc1
}

.footer-legal span {
    margin-right: auto
}

.footer-legal a {
    color: var(--paper);
    text-decoration: none
}

.footer-legal a:hover {
    text-decoration: underline
}

/* Pages légales : texte long lisible. */
.legal-page {
    max-width: 900px
}

.legal-page section {
    margin-top: 44px
}

.legal-page h2 {
    font-size: 24px;
    letter-spacing: -.03em;
    margin-bottom: 14px
}

.legal-page p,
.legal-page li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink)
}

.legal-page a {
    color: var(--orange)
}

.legal-updated {
    color: var(--muted) !important;
    font-size: 13px !important
}

.legal-todo {
    background: #ffe9a8;
    padding: 0 4px
}

.legal-table-wrapper {
    overflow-x: auto;
    margin: 18px 0
}

.legal-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.5
}

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

.legal-table th {
    background: rgba(22, 53, 69, .06);
    font-weight: 600
}

/* Mention d'information sous les formulaires qui collectent des données. */
.privacy-notice {
    font-size: 12px !important;
    line-height: 1.5;
    color: var(--muted) !important;
    margin-top: 14px;
    max-width: 480px
}

.privacy-notice a {
    color: inherit;
    text-decoration: underline
}

.site-flash {
    margin: 0;
    padding: 14px 5vw;
    background: rgba(1, 175, 181, .1)
}

@media (max-width: 760px) {
    /* Bandeau légal sur téléphone : copyright sur sa ligne, liens alignés dessous. */
    .footer-legal {
        padding: 16px 6vw 20px;
        gap: 10px 18px
    }

    .footer-legal span {
        flex-basis: 100%;
        margin-right: 0
    }
}

@media (max-width: 760px) {
    /* Pied de page sur téléphone : tous les éléments centrés. */
    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        text-align: center
    }

    footer p {
        margin: 0
    }

    footer div {
        justify-content: center
    }

    .footer-legal {
        justify-content: center;
        text-align: center
    }

    .footer-legal span {
        text-align: center
    }
}

/* ===== Accessibilité WCAG 2.1 AA ===== */

/* 1.4.3 Contraste : turquoise assombri sur fond clair (4,87:1 sur le fond, 5:1 pour le texte blanc des boutons)… */
:root {
    --turquoise: #007c81;
    --orange: var(--turquoise);
    --lime: var(--turquoise);
    --teal: var(--turquoise)
}

/* … et turquoise clair sur les sections bleu foncé (4,79:1). */
.story,
.agenda,
.join,
.ticker,
.sponsor-card,
footer,
.footer-legal {
    --turquoise: #01afb5;
    --orange: #01afb5;
    --lime: #01afb5;
    --teal: #01afb5
}

/* Lien « Itinéraire » : il était bleu foncé sur fond bleu foncé (invisible). */
.agenda .text-link {
    color: var(--paper)
}

/* Texte posé sur la photo d'accueil : couleur plus claire et ombre renforcée pour rester lisible. */
.hero-art .art-label strong {
    color: #5ed0d4
}

.hero-art .art-label,
.hero-art .art-caption {
    text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 2px 14px rgba(0, 0, 0, .55)
}

/* 2.4.7 Focus visible : contour net et contrasté (au moins 3:1) pour la navigation au clavier. */
:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px
}

.story :focus-visible,
.agenda :focus-visible,
.sponsor-card :focus-visible,
footer :focus-visible,
.footer-legal :focus-visible,
.lightbox :focus-visible {
    outline-color: var(--paper)
}

/* Les champs avaient leur contour supprimé : on marque le champ actif par un contour turquoise. */
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible,
.admin-card input:focus-visible,
.admin-card textarea:focus-visible,
.admin-card select:focus-visible,
.admin-panel input:focus-visible,
.admin-panel textarea:focus-visible,
.admin-panel select:focus-visible {
    outline: 3px solid var(--turquoise);
    outline-offset: 4px
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 88px;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select,
    .admin-card input,
    .admin-card textarea,
    .admin-card select,
    .admin-panel input,
    .admin-panel textarea,
    .admin-panel select {
        scroll-margin-top: 88px;
    }
}

/* Zone d'import de photos : le vrai champ fichier est masqué, c'est la zone qui montre le focus. */
.photo-dropzone:focus-within {
    outline: 3px solid var(--ink);
    outline-offset: 3px
}

/* Lien d'évitement : invisible jusqu'à ce qu'on le sélectionne au clavier. */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    font-weight: 600
}

.skip-link:focus {
    top: 12px
}

/* La cible du lien « Aller au contenu » reçoit le focus sans afficher de cadre autour de toute la page. */
main:focus {
    outline: none
}

/* Flèches décoratives des boutons pleins : même couleur que le texte du bouton. */
.button-primary span {
    color: inherit !important
}

/* Bouton « Déconnexion » du menu : même apparence que les autres liens. */
.nav-logout-form {
    display: contents
}

.main-nav .nav-logout {
    background: none;
    border: 0;
    padding: 0;
    color: var(--ink);
    cursor: pointer;
    font-family: "Barlow Condensed", "DM Sans", sans-serif;
    font-size: inherit;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: inherit
}

.main-nav .nav-logout:hover {
    text-decoration: underline;
    text-underline-offset: 7px;
    text-decoration-color: var(--orange)
}

@media (max-width: 760px) {
    .main-nav .nav-logout::before {
        content: "›";
        display: inline-block;
        margin-right: .55em;
        color: var(--orange);
        font-size: 1.35em;
        line-height: 0;
        vertical-align: -.08em
    }
}

/* Champ piège anti-robots : retiré de l’écran sans display:none (que certains robots détectent). */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden
}

/* Téléchargement des photos : sur téléphone, le ZIP passe en lien secondaire sous le bouton d'enregistrement. */
.photo-download-actions {
    flex-wrap: wrap
}

.photo-zip-secondary {
    border: 0 !important;
    padding: 6px 0 !important;
    font-size: 12px !important;
    text-decoration: underline;
    text-underline-offset: 4px
}

.photo-zip-secondary span {
    display: none
}

.photo-share-status {
    margin-top: 10px
}

/* Variantes de boutons selon l’écran. */
.mobile-only {
    display: none !important
}

@media (max-width: 760px) {
    .mobile-only {
        display: inline-flex !important
    }

    .desktop-only {
        display: none !important
    }
}

/* ===== Planning du mois (section Agenda) ===== */
.month-calendar {
    margin-bottom: 55px;
    border: 1px solid #095b67;
    padding: 22px
}

.month-calendar[hidden] {
    display: none
}

.month-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px
}

.month-calendar-title {
    margin: 0;
    font-size: 24px;
    text-align: center
}

.month-calendar-nav {
    width: 40px;
    height: 40px;
    border: 1px solid #7dbfc1;
    background: transparent;
    color: var(--paper);
    font: 700 22px/1 "DM Sans";
    cursor: pointer
}

.month-calendar-nav:hover:not(:disabled) {
    background: var(--turquoise);
    border-color: var(--turquoise);
    color: var(--ink)
}

.month-calendar-nav:disabled {
    opacity: .3;
    cursor: default
}

.month-calendar-weekdays,
.month-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px
}

.month-calendar-weekdays {
    margin-bottom: 4px;
    font: 11px "DM Sans";
    text-transform: uppercase;
    color: #7dbfc1;
    text-align: center
}

.month-calendar-grid {
    list-style: none;
    margin: 0;
    padding: 0
}

.month-calendar-day {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 84px;
    min-width: 0;
    padding: 6px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid transparent
}

.month-calendar-day.is-outside {
    background: transparent
}

.month-calendar-day.is-past {
    opacity: .4
}

.month-calendar-day.is-today {
    border-color: var(--turquoise)
}

.month-calendar-number {
    font: 600 13px "DM Sans";
    color: #7dbfc1
}

.month-calendar-day.is-today .month-calendar-number,
.month-calendar-day.has-events .month-calendar-number {
    color: var(--paper)
}

.month-calendar-event {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--turquoise);
    color: var(--ink);
    font: 600 11px "DM Sans";
    text-decoration: none;
    transition: transform .15s ease, background .15s ease
}

.month-calendar-event:hover {
    background: var(--paper);
    transform: translateY(-1px)
}

/* Événement passé : contour seul (la journée est déjà grisée) ; cliquable seulement pour un admin (photos). */
.month-calendar-event.is-past {
    background: transparent;
    color: var(--paper);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5)
}

span.month-calendar-event.is-past:hover {
    background: transparent;
    transform: none
}

a.month-calendar-event.is-past:hover {
    background: var(--paper);
    color: var(--ink)
}

/* La fiche visée par une bulle reste visible sous l'en-tête fixe et s'illumine un instant. */
.event {
    scroll-margin-top: 100px
}

.event.is-highlighted {
    animation: event-highlight 2.2s ease
}

@keyframes event-highlight {
    0%, 40% { background: rgba(1, 175, 181, .22) }
    100% { background: transparent }
}

@media (prefers-reduced-motion: reduce) {
    .event.is-highlighted {
        animation: none;
        outline: 2px solid var(--turquoise)
    }
}

/* Sur téléphone, les bulles deviennent des pastilles : le titre reste lu par les lecteurs d'écran. */
@media (max-width: 760px) {
    .month-calendar {
        padding: 14px 10px;
        margin-bottom: 40px
    }

    .month-calendar-title {
        font-size: 19px
    }

    .month-calendar-weekdays,
    .month-calendar-grid {
        gap: 2px
    }

    .month-calendar-day {
        min-height: 52px;
        padding: 4px 2px;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-content: flex-start
    }

    .month-calendar-number {
        flex-basis: 100%;
        text-align: center;
        font-size: 12px
    }

    /* Pastille de 14px visibles, zone tactile de 24px (WCAG 2.5.8). */
    .month-calendar-event {
        width: 24px;
        height: 24px;
        padding: 0;
        border: 5px solid transparent;
        background-clip: padding-box;
        font-size: 0;
        color: transparent
    }
}

/* ===== Barre du haut des pages secondaires : surtitre à gauche, bouton retour à droite. ===== */
.page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px
}

.page-topbar .eyebrow {
    margin: 0;
    min-width: 0
}

.page-topbar-actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px
}

.page-topbar .button {
    flex-shrink: 0;
    white-space: nowrap;
    gap: 10px
}

/* ===== Tableau de bord admin : formulaire à gauche, listes à droite. ===== */
.admin-page-grid {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: start
}

.admin-create-card {
    position: sticky;
    top: 96px
}

.admin-stack {
    display: grid;
    gap: 20px;
    min-width: 0
}

.admin-card h2 .admin-count {
    font-size: .55em;
    letter-spacing: 0
}

.admin-event-row {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 20px;
    padding: 20px 0
}

.admin-event-date {
    display: block;
    margin-bottom: 4px;
    font: 600 11px "DM Sans";
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--orange)
}

.admin-event-row.is-past .admin-event-date {
    color: var(--muted)
}

/* Actions d'une ligne : grille de boutons de même taille. */
.admin-event-row .admin-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
}

.admin-row-actions form {
    margin: 0
}

.admin-row-actions .button,
.photo-actions .button {
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 0 10px;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    white-space: nowrap
}

.admin-row-actions .button span {
    font-size: 15px
}

.button-danger {
    border: 1px solid #a12d2d;
    background: transparent;
    color: #a12d2d;
    font-size: 12px
}

.button-danger:hover {
    background: #a12d2d;
    color: #fffbfb
}

/* Page utilisateurs : une seule action, alignée à droite. */
.admin-row-actions:has(> form:only-child) {
    grid-template-columns: 1fr
}

/* Grille des photos d'un événement. */
.event-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr))
}

.event-photo-grid figcaption {
    display: block;
    padding-top: 8px
}

.event-photo-grid figcaption > span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px
}

.photo-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px
}

.photo-actions form {
    margin: 0
}

.photo-actions .button {
    min-height: 34px;
    padding: 0 6px;
    font-size: 11px;
    gap: 5px
}

.photo-actions .button span {
    font-size: inherit;
    line-height: inherit
}

@media (max-width: 1050px) {
    .admin-page-grid {
        grid-template-columns: 1fr
    }

    .admin-create-card {
        position: static
    }
}

@media (max-width: 760px) {
    .page-topbar {
        margin-bottom: 20px
    }

    .page-topbar .button {
        padding: 10px 12px
    }

    .admin-page-header {
        margin-bottom: 28px
    }

    .admin-tabs {
        margin: 0 0 24px
    }

    .admin-shop-create-action {
        justify-content: stretch;
        margin: -8px 0 24px;
    }

    .admin-shop-create-action .button {
        width: 100%;
        justify-content: center;
    }

    .admin-tabs .button {
        flex: 1 1 0;
        justify-content: center;
        white-space: normal;
        text-align: center
    }

    .admin-card h2 {
        font-size: 26px;
        margin-bottom: 14px
    }

    .admin-event-row {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .admin-row-actions .button {
        min-height: 44px
    }

    .event-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .event-album-page .event-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-photos-link {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: start;
    }

    .past-events-list .event {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .shop-order-panel {
        padding: 20px 16px;
    }

    .shop-order-panel h1 {
        font-size: clamp(34px, 10vw, 52px);
        overflow-wrap: anywhere;
    }

    .shop-order-grid,
    .size-guide-tables {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .size-guide summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .size-guide-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .size-guide-table {
        min-width: 330px;
    }

    .admin-card-head {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .admin-card-head .button {
        width: 100%;
        justify-content: center;
    }

    .admin-product-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .admin-product-preview {
        position: static;
        order: -1;
    }

    .admin-event-row .admin-event-info {
        width: 100%;
        overflow-wrap: anywhere;
    }

    .admin-event-row .admin-event-info strong {
        font-size: 16px;
    }

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

    .admin-row-actions .button {
        min-width: 0;
        overflow-wrap: anywhere;
        white-space: normal;
        text-align: center;
    }

    .admin-row-actions form {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .past-events-list .event-photos-link {
        grid-column: 2;
    }

    .event-album-page .public-photo-download-actions .button {
        width: 100%;
        justify-content: center;
    }

    .event-album-page .event-photo-grid figcaption {
        overflow: visible;
        white-space: normal;
    }

    .event-album-page .event-photo-grid figcaption .button {
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }

    /* Sur téléphone, actions photo en icônes (libellé gardé pour les lecteurs d'écran via aria-label). */
    .photo-action-label {
        display: none
    }

    /* Options du formulaire produit : la case et son texte restent dans la carte
       malgré les règles générales des formulaires admin. */
    .admin-product-form .admin-checkbox-list label {
        display: grid;
        grid-template-columns: 18px minmax(0, 1fr);
        align-items: center;
        column-gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .admin-product-form .admin-checkbox-list label input[type="checkbox"] {
        grid-column: 1;
        grid-row: 1;
        display: block;
        width: 18px !important;
        min-width: 18px;
        max-width: 18px !important;
        height: 18px;
        margin: 0;
    }

    .admin-product-form .admin-checkbox-list label span {
        grid-column: 2;
        grid-row: 1;
        display: block;
        width: auto;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .photo-actions .button {
        min-height: 40px;
        font-size: 16px
    }

    .photo-download-actions .button,
    .event-photo-upload .button {
        width: 100%;
        justify-content: center
    }

    .admin-photo-album-layout {
        gap: 16px
    }

    .album-photo-upload .photo-dropzone {
        min-height: 190px;
        padding: 28px 18px
    }

    .album-photo-upload .photo-dropzone strong {
        font-size: 20px
    }

    .album-photo-upload .photo-upload-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px
    }
}

@media (max-width: 420px) {
    .admin-page-main {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .admin-card {
        padding: 20px 16px;
    }

    .admin-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .admin-tabs .button {
        min-height: 46px;
        padding: 10px 8px;
        font-size: 10px;
    }

    .admin-row-actions {
        grid-template-columns: 1fr;
    }

    .shop-order-panel {
        padding: 18px 14px;
    }

    .product-info {
        padding: 20px 17px;
    }

    .product-bottom .button,
    .shop-order-form button,
    .shop-order-panel > form + form .button {
        min-height: 46px;
        padding: 12px 14px;
    }
}

/* Photos déjà en ligne : séparées du formulaire d'envoi. */
.admin-photos-card .photo-download-actions {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line)
}

.photo-download-actions .button {
    margin-top: 0
}

.admin-edit-card {
    margin-top: 28px
}

/* Pictogrammes des boutons (à la place des flèches). */
.button .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0
}

.admin-row-actions .button .icon,
.photo-actions .button .icon {
    width: 16px;
    height: 16px
}

.photo-zip-secondary .icon {
    display: none
}

/* Règle commune finale : tous les champs affichent leur intitulé au-dessus,
   y compris les formulaires Symfony dont le label est séparé du champ. */
.contact-form label:not(.photo-dropzone),
.admin-card form label:not(.photo-dropzone),
.admin-panel label:not(.photo-dropzone) {
    display: grid;
    gap: 7px;
}

.contact-form label:not(.photo-dropzone):has(input[type="checkbox"]),
.admin-card form label:not(.photo-dropzone):has(input[type="checkbox"]),
.admin-panel label:not(.photo-dropzone):has(input[type="checkbox"]) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

/* Les formulaires Symfony génèrent souvent le label et le champ comme deux
   éléments frères : réserve un espace réel entre les deux. */
.contact-form > label + input,
.contact-form > label + textarea,
.contact-form > label + select,
.admin-card form > label + input,
.admin-card form > label + textarea,
.admin-card form > label + select,
.admin-panel > label + input,
.admin-panel > label + textarea,
.admin-panel > label + select {
    margin-top: 6px;
}

.contact-form > label,
.admin-card form > label,
.admin-panel > label {
    line-height: 1.25;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible,
.admin-card input:focus-visible,
.admin-card textarea:focus-visible,
.admin-card select:focus-visible,
.admin-panel input:focus-visible,
.admin-panel textarea:focus-visible,
.admin-panel select:focus-visible {
    outline-offset: -3px;
}

/* Vignettes photo : actions en icône seule (libellé via aria-label et infobulle). */
.photo-action-label {
    display: none
}

.photo-actions .button .icon {
    width: 18px;
    height: 18px
}

/* Connexion et création de compte : deux parcours voisins, chacun avec son propre accent visuel. */
.auth-page {
    max-width: 1120px
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(270px, .82fr) minmax(0, 1.18fr);
    align-items: stretch;
    margin-top: 24px;
    background: #fffbfb;
    border: 1px solid var(--line);
    box-shadow: 0 22px 60px rgba(22, 53, 69, .1)
}

.auth-aside {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 490px;
    padding: clamp(30px, 5vw, 58px);
    background: linear-gradient(150deg, #163545, #20596a);
    color: #fffbfb
}

.auth-aside::before,
.auth-aside::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    pointer-events: none
}

.auth-aside::before {
    width: 270px;
    height: 270px;
    right: -110px;
    top: -90px
}

.auth-aside::after {
    width: 180px;
    height: 180px;
    right: -65px;
    top: -45px
}

.auth-kicker {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: #a9e3df;
    font: 600 13px "DM Sans", sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase
}

.auth-aside h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fffbfb;
    font-size: clamp(42px, 5vw, 64px);
    line-height: .98
}

.auth-aside h1 span {
    color: #f0ad64
}

.auth-aside > p:last-of-type {
    position: relative;
    z-index: 1;
    max-width: 310px;
    margin: 24px 0 0;
    color: #d3e2e4;
    font-size: 16px;
    line-height: 1.65
}

.auth-aside-mark {
    position: absolute;
    right: 48px;
    bottom: 42px;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(240, 173, 100, .75);
    border-radius: 50%
}

.auth-aside-mark::before,
.auth-aside-mark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1px;
    height: 36px;
    background: #f0ad64;
    transform: translate(-50%, -50%)
}

.auth-aside-mark::after {
    transform: translate(-50%, -50%) rotate(90deg)
}

.auth-form-card {
    align-self: center;
    width: 100%;
    max-width: 610px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 58px)
}

.auth-form-card > .eyebrow {
    margin: 0 0 8px;
    color: var(--teal)
}

.auth-form-card h2 {
    margin: 0 0 28px;
    color: var(--ink);
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: -.04em
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none
}

.auth-form > label {
    margin: 0 0 7px;
    color: var(--ink);
    font: 600 14px "DM Sans", sans-serif
}

.auth-form > input:not([type="hidden"]),
.auth-form > .password-field {
    width: 100%;
    min-height: 48px;
    margin: 0 0 20px;
    padding: 11px 14px;
    border: 1px solid #c8d8d8;
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font: 15px "DM Sans", sans-serif
}

.auth-form > .password-field {
    padding: 0;
    border: 0;
    background: transparent
}

.auth-form > .password-field input {
    min-height: 48px;
    padding: 11px 48px 11px 14px;
    border: 1px solid #c8d8d8;
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font: 15px "DM Sans", sans-serif
}

.auth-form > input:focus,
.auth-form > .password-field input:focus {
    border-color: var(--teal);
    outline: 3px solid rgba(1, 175, 181, .16);
    outline-offset: 0
}

.auth-form .button {
    align-self: flex-start;
    min-height: 48px;
    margin: 2px 0 0;
    padding: 0 24px
}

.auth-help-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--deep-teal);
    font: 600 14px "DM Sans", sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px
}

.auth-switch {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid #e1e9e9;
    color: var(--muted);
    font-size: 14px
}

.auth-switch a {
    color: var(--deep-teal);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px
}

.auth-register .auth-aside {
    background: linear-gradient(150deg, #1d563f, #387252)
}

.auth-register .auth-kicker {
    color: #f0d59a
}

.auth-register .auth-aside h1 span {
    color: #f0d59a
}

.auth-register .auth-aside-mark {
    border-color: rgba(240, 213, 154, .8)
}

.auth-register .auth-aside-mark::before,
.auth-register .auth-aside-mark::after {
    background: #f0d59a
}

.auth-register .auth-form-card > .eyebrow {
    color: #387252
}

.auth-register .auth-form-card h2 {
    margin-bottom: 20px
}

.auth-register .auth-form .privacy-notice {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55
}

.auth-register .auth-form .privacy-notice a {
    color: var(--deep-teal);
    text-decoration: underline;
    text-underline-offset: 2px
}

.auth-register .auth-form .button {
    background: #28664d;
    border-color: #28664d
}

.auth-register .auth-form .button:hover {
    background: #1d503c;
    border-color: #1d503c
}

@media (max-width: 760px) {
    .auth-layout {
        grid-template-columns: 1fr;
        margin-top: 16px
    }

    .auth-aside {
        min-height: 0;
        padding: 34px 28px
    }

    .auth-aside h1 {
        max-width: 480px;
        font-size: clamp(40px, 9vw, 56px)
    }

    .auth-aside > p:last-of-type {
        max-width: 460px;
        margin-top: 16px
    }

    .auth-aside-mark {
        right: 28px;
        bottom: 24px;
        width: 44px;
        height: 44px
    }

    .auth-aside-mark::before,
    .auth-aside-mark::after {
        height: 26px
    }

    .auth-form-card {
        max-width: none;
        padding: 30px 28px 36px
    }
}

/* Fenêtre de confirmation des actions sensibles (suppression, etc.). */
.confirm-dialog {
    width: min(420px, calc(100vw - 32px));
    padding: 28px;
    border: 1px solid var(--line);
    background: #fffbfb;
    color: var(--ink);
    box-shadow: 0 20px 50px rgba(22, 53, 69, .2)
}

.confirm-dialog::backdrop {
    background: rgba(22, 53, 69, .45)
}

.confirm-dialog-message {
    margin: 0 0 22px;
    font: 16px/1.5 "DM Sans", sans-serif
}

.confirm-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.confirm-dialog-actions .button {
    justify-content: center;
    min-height: 44px;
    margin: 0
}

/* Section « Nous rejoindre » : licence, règles du jeu et club partenaire. */
.join {
    background: var(--ink);
    color: var(--paper)
}

.join .eyebrow,
.join-lead {
    color: #7dbfc1
}

.join-lead {
    max-width: 330px;
    line-height: 1.6;
    margin: 0
}

.join-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0
}

/* Petite précision sous une étape (ex. mail Oval-e non reçu) : lien lisible sur le fond bleu nuit. */
.join-step .join-step-note {
    font-size: 14px;
    opacity: .85
}

.join-step-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px
}

/* Tablette et petit PC : les quatre étapes de la licence passent en 2 × 2 pour rester lisibles. */
@media (min-width: 761px) and (max-width: 1100px) {
    .join-steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 34px
    }
}

.join-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 251, 251, .35);
    padding-top: 22px
}

.join-step .story-number {
    margin-bottom: 30px
}

.join-step h3,
.join-card h3 {
    color: var(--paper);
    font-size: 27px;
    margin: 0 0 16px
}

.join-step p:not(.eyebrow),
.join-card p:not(.eyebrow) {
    color: #b8e1e2;
    line-height: 1.65;
    margin: 0 0 22px
}

.join .button-outline {
    color: var(--paper);
    border-color: #7dbfc1;
    margin-top: auto
}

.join-prices {
    display: grid;
    gap: 14px;
    margin: 0
}

.join-prices div {
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: baseline;
    gap: 12px
}

.join-prices dt {
    color: var(--orange);
    font: 700 28px "DM Sans"
}

.join-prices dd {
    color: #b8e1e2;
    line-height: 1.5;
    margin: 0
}

.join-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    margin-top: 60px;
    border: 1px solid #0e7e8e;
    padding: 28px
}

.join-card p:last-child {
    margin-bottom: 0
}

/* Club partenaire (Novas) : carte pleine largeur entre les partenaires principaux et les autres. */
.sponsor-card-club {
    margin-top: 20px;
    min-height: 0
}

.sponsor-card-club .sponsor-details > p:not(.eyebrow) {
    max-width: 720px;
    line-height: 1.6;
    margin-bottom: 12px
}

@media (max-width: 760px) {
    .join-steps {
        grid-template-columns: 1fr
    }

    .join-step .story-number {
        margin-bottom: 18px
    }

    .join-card {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 22px
    }

    .join .heading-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px
    }
}

/* Onglet admin « Liens et partenaires ». */
#liens {
    margin-bottom: 22px
}

.admin-link-field {
    padding: 4px 0 18px;
    border-bottom: 1px solid var(--line)
}

.admin-link-field .field-help {
    margin: 10px 0 0
}

.admin-link-field ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    color: var(--red);
    font-size: 13px
}

.admin-link-test {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--deep-teal)
}

.admin-qr-field {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding-top: 18px
}

.admin-qr-field > div:only-child {
    grid-column: 1 / -1
}

.admin-qr-preview,
.admin-sponsor-preview {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    padding: 6px
}

.admin-sponsor-preview {
    background: var(--ink)
}

.admin-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.admin-card-head h2 {
    margin: 0
}

.admin-card .admin-card-head .button {
    margin-top: 0
}

.admin-tier-title {
    font-size: 20px;
    letter-spacing: -.04em;
    margin: 34px 0 6px
}

.admin-tier-title .admin-count {
    font-size: .7em;
    letter-spacing: 0
}

.admin-event-row.admin-sponsor-row {
    grid-template-columns: 64px minmax(0, 1fr) 340px
}

.admin-sponsor-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: var(--ink);
    padding: 4px
}

.admin-row-actions .admin-icon-button {
    justify-content: center
}

.admin-row-actions .button:disabled {
    opacity: .35;
    cursor: default
}

@media (max-width: 760px) {
    .admin-event-row.admin-sponsor-row {
        grid-template-columns: 56px minmax(0, 1fr)
    }

    .admin-product-row {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 14px;
    }

    .admin-product-thumb-placeholder {
        width: 56px;
        height: 56px;
    }

    .admin-product-row .admin-sponsor-thumb {
        width: 56px;
        height: 56px;
    }

    .admin-product-row .admin-row-actions {
        grid-column: 1 / -1;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-sponsor-row .admin-row-actions {
        grid-column: 1 / -1
    }

    .admin-sponsor-thumb {
        width: 56px;
        height: 56px
    }

    .admin-qr-field {
        grid-template-columns: 1fr;
        gap: 12px
    }
}

/* Ligne d'un partenaire : nom et détails l'un sous l'autre, flèches compactes à côté des boutons. */
.admin-sponsor-row .admin-event-info strong,
.admin-sponsor-row .admin-event-info span {
    display: block
}

.admin-sponsor-row .admin-event-info span {
    font: 11px "DM Sans";
    color: var(--muted);
    margin-top: 5px;
    overflow-wrap: anywhere
}


.admin-sponsor-row .admin-row-actions {
    grid-template-columns: 44px 44px minmax(0, 1fr) minmax(0, 1fr)
}

.admin-product-row {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
}

.admin-product-thumb-placeholder {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    background: var(--orange);
    color: var(--paper);
    font: 700 20px "DM Sans";
}

.admin-product-row .admin-sponsor-thumb {
    width: 72px;
    height: 72px;
}

.admin-product-row .admin-event-info {
    min-width: 0;
}

.admin-product-row .admin-event-info strong {
    display: block;
    font-size: 19px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.admin-product-row .admin-product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
    font: 12px "DM Sans";
    color: var(--muted);
}

.admin-product-row .admin-product-meta b {
    padding: 5px 9px;
    background: rgba(224, 136, 56, .12);
    color: var(--ink);
    font-weight: 700;
}

.admin-product-row .admin-product-meta i {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-style: normal;
}

.admin-product-row .admin-product-meta i::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.admin-product-row .admin-product-meta .is-visible {
    color: var(--teal);
}

.admin-product-row .admin-product-meta .is-hidden {
    color: var(--muted);
}

.admin-product-row .admin-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.admin-product-row .admin-row-actions .button {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
}

.admin-product-form .admin-checkbox-list label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.admin-product-form .admin-checkbox-list label input[type="checkbox"] {
    grid-column: 1;
    grid-row: 1;
    display: block;
    width: 18px !important;
    min-width: 18px;
    max-width: 18px !important;
    height: 18px;
    margin: 0;
}

.admin-product-form .admin-checkbox-list label span {
    grid-column: 2;
    grid-row: 1;
    display: block;
    width: auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Menu : les onglets ne passent jamais sur deux lignes. Quand ils ne tiennent plus sur une ligne
   (tablette, ou admin connecté avec plus d'onglets), site.js ajoute .nav-compact et le menu passe en burger. */
.main-nav a,
.main-nav .nav-logout {
    white-space: nowrap
}

.site-header.nav-compact .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: max-content;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
    padding: 20px 5vw 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    font-size: 15px;
    z-index: 20
}

.site-header.nav-compact .main-nav.open {
    display: flex
}

.site-header.nav-compact .main-nav a::before,
.site-header.nav-compact .main-nav .nav-logout::before {
    content: "›";
    display: inline-block;
    margin-right: .55em;
    color: var(--orange);
    font-size: 1.35em;
    line-height: 0;
    vertical-align: -.08em
}

.site-header.nav-compact .nav-admin {
    border: 0;
    padding: 0
}

.site-header.nav-compact .menu-toggle {
    display: block
}

/* Tablette : boutons du hero l'un sous l'autre et tampon posé en bas à gauche de la photo,
   pour qu'il ne recouvre plus « Découvrir le collectif ». */
@media (min-width: 761px) and (max-width: 1050px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px
    }

    .hero-stamp {
        right: auto;
        left: 46%;
        bottom: 4%;
        width: 100px;
        height: 100px
    }
}

/* Téléphone et tablette : liens du pied de page et des partenaires assez hauts pour le doigt (24 px minimum). */
@media (max-width: 1050px) {
    footer div a,
    .footer-legal a {
        display: inline-block;
        padding-top: 5px;
        padding-bottom: 5px
    }

    .sponsor-link {
        padding-top: 5px;
        padding-bottom: 5px
    }
}

/* Boutique : l'animation d'entrée de l'autocollant ne doit pas créer de scroll horizontal. */
.shop-hero {
    overflow-x: clip
}

/* Très petits écrans : les longs titres (« Confidentialité ») restent dans la largeur. */
@media (max-width: 380px) {
    .admin-page-main h1 {
        font-size: clamp(38px, 13vw, 50px);
        overflow-wrap: break-word
    }
}

@media (max-width: 760px) {
    .hero-actions .text-link {
        padding-top: 4px;
        padding-bottom: 4px
    }
}

/* « Le collectif » : 39 % + 61 % + l'espacement dépassaient 100 % et créaient un scroll horizontal sur PC.
   Les colonnes se partagent maintenant la place restante après l'espacement. */
@media (min-width: 1051px) {
    .collective {
        grid-template-columns: minmax(0, 39fr) minmax(0, 61fr)
    }
}

@media (min-width: 761px) and (max-width: 1050px) {
    .collective {
        grid-template-columns: minmax(0, 42fr) minmax(0, 58fr)
    }
}

/* Lien « Ouvrir le lien » de l'admin : zone cliquable de 24 px minimum au doigt. */
@media (max-width: 1050px) {
    .admin-link-test {
        display: inline-block;
        padding-top: 4px;
        padding-bottom: 4px
    }
}

/* Menu burger : l'en-tête est collant, donc un menu plus haut que l'écran (téléphone en paysage,
   admin connecté) doit défiler à l'intérieur pour que les derniers onglets restent accessibles. */
.site-header.nav-compact .main-nav {
    max-height: calc(100vh - 82px);
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    overscroll-behavior: contain
}

@media (max-width: 760px) {
    .main-nav {
        max-height: calc(100vh - 68px);
        max-height: calc(100dvh - 68px);
        overflow-y: auto;
        overscroll-behavior: contain
    }
}

/* Œil des champs mot de passe (ajouté par site.js). */
.password-field {
    position: relative;
    display: block;
    width: 100%
}

.password-field input {
    width: 100%;
    padding-right: 48px
}

.contact-form > label + .password-field,
.admin-card form > label + .password-field,
.admin-panel > label + .password-field {
    margin-top: 6px
}

.contact-form .password-toggle,
.password-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    align-self: auto
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
    color: var(--teal)
}

.password-toggle:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: -4px
}

/* Edge affiche déjà son propre œil : on le masque pour n'en garder qu'un. */
.password-field input::-ms-reveal,
.password-field input::-ms-clear {
    display: none
}

/* ===== Boutons de présence aux événements =====
   « Je serai là » : bouton plein turquoise clair, le plus visible de la ligne.
   Inscrit·e : coche + « Tu y vas déjà ! » et liseré turquoise sur l'événement ; « Annuler » reste un lien secondaire.
   Format compact : il accompagne la ligne de l'événement sans la dominer. */
.rsvp.rsvp-button {
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 0 14px;
    background: var(--line);
    color: var(--ink) !important;
    border: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    font: 600 13px "Barlow Condensed", "DM Sans", sans-serif !important;
    letter-spacing: .08em;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease
}

.rsvp.rsvp-button .rsvp-icon {
    align-self: stretch;
    display: grid;
    place-items: center;
    width: 32px;
    background: var(--ink);
    color: var(--line);
    font-size: 16px;
    line-height: 1;
    transition: background .2s ease, color .2s ease
}

.rsvp.rsvp-button:hover,
.rsvp.rsvp-button:focus-visible {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink) !important;
    transform: translateY(-2px);
    box-shadow: none
}

.rsvp.rsvp-button:hover .rsvp-icon,
.rsvp.rsvp-button:focus-visible .rsvp-icon {
    background: var(--line);
    color: var(--ink)
}

.rsvp.rsvp-button:active {
    transform: translateY(0);
    box-shadow: none
}

.rsvp.rsvp-button:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 3px
}

/* Visiteur non connecté : même forme, en contour, pour ne pas voler la vedette aux membres. */
.rsvp.rsvp-login {
    background: transparent;
    color: var(--paper) !important;
    border-color: var(--line)
}

.rsvp.rsvp-login .rsvp-icon {
    background: transparent;
    border-left: 2px solid var(--line);
    color: var(--line)
}

/* État « inscrit·e » */
.event-rsvp-form.is-confirmed {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0
}

.rsvp-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--paper);
    font: 700 15px "Barlow Condensed", "DM Sans", sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap
}

.rsvp-check {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--line);
    color: var(--ink)
}

.rsvp.rsvp-cancel {
    min-height: 28px;
    padding: 2px 0 2px 30px;
    background: none;
    border: 0;
    color: rgba(255, 251, 251, .72) !important;
    font: 500 12px "Barlow Condensed", "DM Sans", sans-serif !important;
    letter-spacing: .06em;
    text-decoration: underline;
    text-decoration-color: rgba(255, 251, 251, .35);
    text-underline-offset: 4px;
    cursor: pointer;
    transition: color .2s ease, text-decoration-color .2s ease
}

.rsvp.rsvp-cancel:hover,
.rsvp.rsvp-cancel:focus-visible {
    color: var(--paper) !important;
    text-decoration-color: var(--line)
}

.rsvp.rsvp-cancel:focus-visible {
    outline: 2px solid var(--line);
    outline-offset: 2px
}

/* Ligne de l'événement auquel on participe : liseré et léger fond turquoise. */
.event.is-attending {
    position: relative;
    background: linear-gradient(90deg, rgba(1, 175, 181, .12), rgba(1, 175, 181, 0) 70%)
}

.event.is-attending::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 16px;
    bottom: 16px;
    width: 4px;
    background: var(--line)
}

.event.is-attending .event-date strong {
    color: var(--line)
}

@media (max-width: 760px) {
    /* Téléphone : la description prend toute la largeur, la présence passe sur sa propre ligne en dessous. */
    .events-list .event {
        grid-template-columns: 56px minmax(0, 1fr)
    }

    .events-list .event-tag {
        display: none
    }

    .events-list .event-rsvp-form,
    .events-list .event > .rsvp-login {
        grid-column: 2 / -1;
        grid-row: auto;
        justify-self: start;
        width: auto;
        margin-top: 6px
    }

    .rsvp.rsvp-button {
        min-width: 0;
        width: auto;
        max-width: none;
        font-size: 14px !important;
        padding-left: 14px
    }

    .rsvp.rsvp-button .rsvp-icon {
        width: 32px
    }

    .event-rsvp-form.is-confirmed {
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 18px
    }

    .rsvp-status {
        font-size: 14px;
        gap: 8px
    }

    .rsvp-check {
        width: 22px;
        height: 22px
    }

    .rsvp.rsvp-cancel {
        padding-left: 0
    }

    .event.is-attending::before {
        left: -10px
    }
}

@media (prefers-reduced-motion: reduce) {
    .rsvp.rsvp-button,
    .rsvp.rsvp-button:hover {
        transition: none;
        transform: none
    }
}

/* ===== Menu burger animé =====
   Icône : trois barres qui se croisent en ✕. Panneau : se déroule depuis l'en-tête, onglets en cascade ;
   à la fermeture (.is-closing ajoutée par site.js), il se replie avant de disparaître. */
.menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--ink);
    cursor: pointer
}

.menu-toggle-bars {
    position: relative;
    display: block;
    width: 24px;
    height: 16px;
    margin: 0 auto
}

.menu-toggle-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, top .35s cubic-bezier(.22, 1, .36, 1)
}

.menu-toggle-bars span:nth-child(1) { top: 0 }
.menu-toggle-bars span:nth-child(2) { top: 7px }
.menu-toggle-bars span:nth-child(3) { top: 14px }

.menu-toggle.is-open .menu-toggle-bars span:nth-child(1) { top: 7px; transform: rotate(45deg) }
.menu-toggle.is-open .menu-toggle-bars span:nth-child(2) { opacity: 0; transform: scaleX(.2) }
.menu-toggle.is-open .menu-toggle-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg) }

.menu-toggle:hover,
.menu-toggle.is-open {
    color: var(--teal)
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px
}

@keyframes menu-panel-open {
    from { clip-path: inset(0 0 100% 0); opacity: .6 }
    to { clip-path: inset(0 0 0 0); opacity: 1 }
}

@keyframes menu-panel-close {
    from { clip-path: inset(0 0 0 0); opacity: 1 }
    to { clip-path: inset(0 0 100% 0); opacity: 0 }
}

@keyframes menu-item-in {
    from { opacity: 0; transform: translateX(14px) }
    to { opacity: 1; transform: none }
}

.main-nav.open {
    animation: menu-panel-open .38s cubic-bezier(.22, 1, .36, 1) both;
    box-shadow: 0 18px 40px rgba(22, 53, 69, .14)
}

.main-nav.open.is-closing {
    animation: menu-panel-close .24s ease-in both
}

.main-nav.open > a,
.main-nav.open > .nav-logout-form .nav-logout {
    animation: menu-item-in .4s cubic-bezier(.22, 1, .36, 1) both
}

.main-nav.open > :nth-child(1), .main-nav.open > :nth-child(1) .nav-logout { animation-delay: .05s }
.main-nav.open > :nth-child(2), .main-nav.open > :nth-child(2) .nav-logout { animation-delay: .09s }
.main-nav.open > :nth-child(3), .main-nav.open > :nth-child(3) .nav-logout { animation-delay: .13s }
.main-nav.open > :nth-child(4), .main-nav.open > :nth-child(4) .nav-logout { animation-delay: .17s }
.main-nav.open > :nth-child(5), .main-nav.open > :nth-child(5) .nav-logout { animation-delay: .21s }
.main-nav.open > :nth-child(6), .main-nav.open > :nth-child(6) .nav-logout { animation-delay: .25s }
.main-nav.open > :nth-child(7), .main-nav.open > :nth-child(7) .nav-logout { animation-delay: .29s }
.main-nav.open > :nth-child(8), .main-nav.open > :nth-child(8) .nav-logout { animation-delay: .33s }
.main-nav.open > :nth-child(n+9), .main-nav.open > :nth-child(n+9) .nav-logout { animation-delay: .37s }

.main-nav.open.is-closing > a,
.main-nav.open.is-closing > .nav-logout-form .nav-logout {
    animation: none
}

@media (prefers-reduced-motion: reduce) {
    .menu-toggle-bars span { transition: none }

    .main-nav.open,
    .main-nav.open > a,
    .main-nav.open > .nav-logout-form .nav-logout {
        animation: none
    }
}

/* ===== Corrections de l'audit responsive ===== */

/* Listes déroulantes des formulaires (tailles de maillot/short…) : même style et même hauteur que les autres champs,
   au lieu du rendu natif de 20 px de haut, trop petit au doigt. */
.contact-form select {
    width: 100%;
    min-height: 42px;
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    padding: 9px 28px 9px 0;
    font: 15px "DM Sans", sans-serif;
    color: var(--ink);
    cursor: pointer
}

/* Guide des tailles : la colonne peut rétrécir, le tableau défile dans son cadre au lieu d'élargir la page. */
.size-guide-tables > div {
    min-width: 0
}

@media (max-width: 760px) {
    .size-guide-table {
        min-width: 260px
    }

    /* En-tête de page (titre + bouton retour) : le bouton passe sous le titre s'il n'y a plus la place. */
    .page-topbar {
        flex-wrap: wrap;
        align-items: flex-start
    }

    .page-topbar > div {
        flex: 1 1 200px;
        min-width: 0
    }

    .page-topbar h1 {
        overflow-wrap: anywhere
    }
}

/* Petits liens isolés (« Découvrir le collectif », événements du calendrier) : au moins 24 px de haut au doigt. */
.text-link,
.month-calendar-event {
    min-height: 24px
}

.text-link {
    display: inline-flex;
    align-items: center
}

/* Présence : transition quand l'état change sans rechargement (site.js). */
.event-rsvp-form.is-busy button {
    opacity: .6;
    cursor: progress
}

@keyframes rsvp-in {
    from { opacity: 0; transform: translateY(6px) }
    to { opacity: 1; transform: none }
}

@keyframes rsvp-pop {
    0% { transform: scale(0) }
    70% { transform: scale(1.18) }
    100% { transform: scale(1) }
}

@keyframes rsvp-bar {
    from { transform: scaleY(0) }
    to { transform: scaleY(1) }
}

@keyframes rsvp-shake {
    0%, 100% { transform: none }
    25% { transform: translateX(-4px) }
    75% { transform: translateX(4px) }
}

.event-rsvp-form.rsvp-enter > :not(input) {
    animation: rsvp-in .35s cubic-bezier(.22, 1, .36, 1) both
}

.event-rsvp-form.rsvp-enter > .rsvp-cancel {
    animation-delay: .08s
}

.event-rsvp-form.rsvp-enter .rsvp-check {
    animation: rsvp-pop .45s cubic-bezier(.34, 1.56, .64, 1) .05s both
}

.event.rsvp-changed.is-attending::before {
    transform-origin: center;
    animation: rsvp-bar .4s cubic-bezier(.22, 1, .36, 1) both
}

.event-rsvp-form.rsvp-error {
    animation: rsvp-shake .3s ease
}

/* ===== Transitions entre les pages =====
   View Transitions du navigateur (Chrome, Edge, Safari récents) : l'ancienne page s'efface en remontant légèrement,
   la nouvelle arrive en fondu par en dessous. L'en-tête garde sa place et ne clignote pas.
   Les navigateurs qui ne connaissent pas cette fonction changent de page normalement. */
@view-transition {
    navigation: auto;
}

.site-header {
    view-transition-name: site-header
}

::view-transition-group(site-header) {
    animation-duration: 0s
}

::view-transition-old(root) {
    animation: page-out .22s cubic-bezier(.4, 0, 1, 1) both
}

::view-transition-new(root) {
    animation: page-in .42s cubic-bezier(.22, 1, .36, 1) .06s both
}

@keyframes page-out {
    to { opacity: 0; transform: translateY(-10px) }
}

@keyframes page-in {
    from { opacity: 0; transform: translateY(14px) }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none !important
    }
}
