:root {
    --header-ink: #21182a;
    --header-plum: #500d41;
    --header-mint: #b6d8d2;
    --discord-blurple: #5865f2;
    --discord-blurple-dark: #4752c4;
}

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

html {
    font-family: "Quicksand", sans-serif;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    font-family: "Quicksand", sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header & hero section */
.intro {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding: 8rem clamp(1.5rem, 10vw, 9rem) 5rem;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--header-ink);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 7, 25, 0.78), rgba(17, 7, 25, 0.12));
    content: "";
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem clamp(1.25rem, 5vw, 5rem);
    color: white;
    transition: background-color 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}

.site-nav.scrolled,
.site-nav.menu-open {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    background: rgba(33, 24, 42, 0.88);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.brand-mark {
    width: 2.5rem;
    height: 2.5rem;
}

.menu-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.75rem);
}

.menu-links a {
    position: relative;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.menu-links a::after {
    position: absolute;
    right: 0;
    bottom: -0.45rem;
    left: 0;
    height: 2px;
    background: var(--header-mint);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

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

/* Discord button in the navigation bar */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-discord {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.05rem;
    border-radius: 999px;
    background: var(--discord-blurple);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.nav-discord i {
    font-size: 1.1rem;
}

.nav-discord:hover,
.nav-discord:focus-visible {
    background: var(--discord-blurple-dark);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: white;
    cursor: pointer;
}

.hero-content {
    max-width: 38rem;
    color: white;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--header-mint);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.07em;
}

.hero-content h1 em {
    color: var(--header-mint);
    font-family: "Sour Gummy", sans-serif;
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.hero-description {
    max-width: 24rem;
    margin: 1.75rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.1rem;
    border: 1px solid rgba(182, 216, 210, 0.65);
    border-radius: 999px;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero-link:hover {
    background: var(--header-mint);
    color: var(--header-ink);
}

.hero-link-discord {
    gap: 0.6rem;
    padding: 0.9rem 1.4rem;
    border-color: transparent;
    background: var(--discord-blurple);
    font-size: 0.95rem;
    box-shadow: 0 0.75rem 1.75rem rgba(88, 101, 242, 0.4);
}

.hero-link-discord i {
    font-size: 1.25rem;
}

.hero-link-discord:hover,
.hero-link-discord:focus-visible {
    background: var(--discord-blurple-dark);
    color: white;
    transform: translateY(-2px);
}

.hero-note {
    max-width: 26rem;
    margin: 1.1rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Association section */
.asso {
    padding: clamp(3rem, 8vw, 6rem) 0;
    text-align: center;
}

.asso .titre {
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
    color: var(--header-plum);
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.asso .cards-container {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100% - 2rem, 1100px);
    margin: 0 auto;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.asso .card {
    display: grid;
    grid-template-columns: minmax(220px, 42%) 1fr;
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(80, 13, 65, 0.12);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgba(80, 13, 65, 0.08);
    text-align: left;
}

.asso .card .imgAsso {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 100%;
}

.asso .card .imgAsso img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.asso .card h3 {
    grid-column: 2;
    align-self: end;
    margin: 2.5rem 2.5rem 0.5rem;
    color: var(--header-plum);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.asso .card p {
    grid-column: 2;
    align-self: start;
    margin: 0 2.5rem 2.5rem;
    line-height: 1.65;
}

.asso .card:nth-child(even) .imgAsso {
    grid-column: 2;
}

.asso .card:nth-child(even) h3,
.asso .card:nth-child(even) p {
    grid-column: 1;
}

/* Discord highlight banner */
.discordBanner {
    padding: 0 1rem clamp(3rem, 8vw, 5rem);
}

.discord-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 2.5rem);
    width: min(100% - 1rem, 1100px);
    margin: 0 auto;
    overflow: hidden;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: 1.5rem;
    background: linear-gradient(120deg, var(--discord-blurple), #7a5cf0 55%, var(--header-plum));
    color: white;
    box-shadow: 0 1.25rem 3rem rgba(88, 101, 242, 0.28);
    text-align: left;
}

.discord-glyph {
    font-size: clamp(3rem, 7vw, 4.5rem);
    line-height: 1;
    opacity: 0.95;
}

.discord-eyebrow {
    margin: 0 0 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.discord-text h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    line-height: 1.15;
}

.discord-text p:last-child {
    margin: 0;
    max-width: 46rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.discord-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    background: white;
    color: var(--discord-blurple-dark);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.discord-button i {
    font-size: 1.25rem;
}

.discord-button:hover,
.discord-button:focus-visible {
    background: var(--header-ink);
    color: white;
    transform: translateY(-2px);
}

/* Schedule and location section */
.accesHoraires {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: min(100% - 2rem, 1180px);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 7rem) 0;
    text-align: center;
}

.accesHoraires .titre {
    margin: 0 0 0.5rem;
    color: var(--header-plum);
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.calendar {
    width: min(100%, 1000px);
    margin: 0 auto 1rem;
    padding: clamp(0.75rem, 2vw, 1.25rem);
    border: 1px solid rgba(80, 13, 65, 0.12);
    border-radius: 1.25rem;
    background: white;
    box-shadow: 0 1rem 2.5rem rgba(80, 13, 65, 0.08);
    text-align: center;
}

.calendar figcaption {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #6a5d72;
    font-style: italic;
}

.calendar img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.calendar-legend {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.85rem;
    background: #fbf8f5;
    border: 1px solid rgba(80, 13, 65, 0.08);
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--header-ink);
}

.calendar-legend .legend-intro {
    margin: 0 0 0.75rem;
    color: #382c42;
}

.calendar-legend .legend-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .calendar-legend .legend-items {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem 1.5rem;
    }
}

.calendar-legend .legend-item {
    font-size: 0.9rem;
    color: #4a3d54;
}

.calendar-legend .legend-item strong {
    color: var(--header-plum);
    font-weight: 700;
}

.map-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.map-container address {
    margin: 0 0 1rem;
    font-weight: 700;
    font-style: normal;
    text-align: center;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    max-width: 100%;
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.2);
}

/* How to join section */
.jouerAvecNous {
    margin: 0;
    padding: clamp(4rem, 9vw, 8rem) 1rem;
    background: var(--header-ink);
    color: white;
    text-align: center;
}

.jouerAvecNous .titre {
    margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
    color: white;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.jouerAvecNous .progress-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: min(100%, 850px);
    margin: 0 auto;
    padding: 0;
}

.jouerAvecNous .progress-container::before {
    position: absolute;
    top: 4.5rem;
    bottom: 4.5rem;
    left: 3.8rem;
    width: 2px;
    background: linear-gradient(var(--header-mint), rgba(182, 216, 210, 0.15));
    content: "";
}

.jouerAvecNous .step-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 7rem 1fr;
    align-items: center;
    min-height: 8rem;
    padding: 1rem;
    border: 1px solid rgba(182, 216, 210, 0.15);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    text-align: left;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.jouerAvecNous .step-card:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateX(0.35rem);
}

.jouerAvecNous .step-card img {
    position: relative;
    z-index: 2;
    width: 5.75rem;
    height: 5.75rem;
    border: 0.35rem solid var(--header-ink);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--header-mint);
}

.jouerAvecNous .step-card .content {
    padding: 0.5rem 1.5rem;
}

.jouerAvecNous .step-card h3 {
    margin: 0 0 0.4rem;
    color: var(--header-mint);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.25;
}

.jouerAvecNous .step-card .description {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.5;
}

.jouerAvecNous .step-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding: 0.6rem 1.05rem;
    border-radius: 999px;
    background: var(--discord-blurple);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.jouerAvecNous .step-link i {
    font-size: 1.05rem;
}

.jouerAvecNous .step-link:hover,
.jouerAvecNous .step-link:focus-visible {
    background: var(--discord-blurple-dark);
    transform: translateY(-2px);
}

/* Membership call to action: mint rather than Discord blurple, so the two
   actions in the timeline stay visually distinct. */
.jouerAvecNous .step-link-join {
    background: var(--header-mint);
    color: var(--header-ink);
}

.jouerAvecNous .step-link-join:hover,
.jouerAvecNous .step-link-join:focus-visible {
    background: white;
}

/* Contact section */
.contact {
    padding: clamp(4rem, 9vw, 8rem) 1rem;
    background: #f8f3ed;
    text-align: center;
}

.contact .titre {
    margin: 0 auto 2.5rem;
    color: var(--header-plum);
    font-size: clamp(1.8rem, 5vw, 3rem);
}

.contact .titre a {
    color: var(--header-plum);
    text-decoration: none;
}

.contact .titre a:hover {
    text-decoration: underline;
}

.contact-hint {
    max-width: 34rem;
    margin: -1.25rem auto 2rem;
    color: var(--header-ink);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-hint a {
    color: var(--discord-blurple-dark);
    font-weight: 700;
}

.contact-form {
    display: grid;
    gap: 1.25rem;
    width: min(100%, 650px);
    margin: 0 auto 2rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid rgba(80, 13, 65, 0.12);
    border-radius: 1.25rem;
    background: white;
    box-shadow: 0 1rem 2.5rem rgba(80, 13, 65, 0.08);
    text-align: left;
}

.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-field label {
    color: var(--header-plum);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #d8ced6;
    border-radius: 0.65rem;
    background: #fff;
    color: var(--header-ink);
    font: inherit;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 3px solid rgba(182, 216, 210, 0.55);
    border-color: #719991;
}

.contact-form button {
    justify-self: start;
    padding: 0.85rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--header-plum);
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
    background: #719991;
    transform: translateY(-2px);
}

.contact-form input[name="_honey"] {
    position: absolute;
    left: -9999px;
}

.form-privacy {
    margin: 0;
    color: #6b5f68;
    font-size: 0.8rem;
    line-height: 1.5;
}

.form-privacy a {
    color: var(--header-plum);
    font-weight: 700;
}

/* Social links */
.contact .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    padding: 1rem 0 0;
    list-style: none;
}

.contact .wrapper .icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    margin: 0;
    border: 1px solid rgba(80, 13, 65, 0.12);
    border-radius: 50%;
    background: white;
    box-shadow: 0 0.5rem 1.25rem rgba(80, 13, 65, 0.1);
    color: var(--header-plum);
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.contact .wrapper .icon a {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.contact .wrapper .icon i,
.contact .wrapper .icon svg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.contact .wrapper .icon.discord i,
.contact .wrapper .icon.discord svg {
    font-size: 1.6rem;
    width: 1.6rem;
    height: 1.6rem;
}

.contact .wrapper .icon:hover,
.contact .wrapper .icon:focus-within {
    background: var(--header-plum);
    color: white;
    transform: translateY(-0.25rem);
}

.contact .wrapper .icon:hover .tooltip,
.contact .wrapper .icon:focus-within .tooltip {
    opacity: 1;
}

/* Tooltips */
.contact .wrapper .tooltip {
    position: absolute;
    bottom: calc(100% + 0.9rem);
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 0.5rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    background: var(--header-ink);
    color: white;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 0.5rem 1rem rgba(33, 24, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact .wrapper .tooltip::before {
    position: absolute;
    bottom: -0.3rem;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--header-ink);
    content: "";
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Site footer */
.site-footer {
    padding: 2.5rem 1rem;
    background: var(--header-ink);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: min(100% - 1rem, 1100px);
    margin: 0 auto;
}

.footer-brand {
    margin: 0;
    color: white;
    font-weight: 700;
    line-height: 1.5;
}

.footer-brand span {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--header-mint);
    text-decoration: underline;
}

/* Standalone text pages (legal notices, privacy policy, form confirmation) */
.legal {
    width: min(100% - 2rem, 48rem);
    margin: 0 auto;
    padding: 8rem 0 4rem;
}

.legal h1 {
    margin: 0 0 0.5rem;
    color: var(--header-plum);
    font-size: clamp(1.8rem, 5vw, 2.75rem);
}

.legal .legal-updated {
    margin: 0 0 2.5rem;
    color: #6b5f68;
    font-size: 0.85rem;
}

.legal h2 {
    margin: 2.5rem 0 0.75rem;
    color: var(--header-plum);
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
}

.legal p,
.legal li {
    line-height: 1.7;
}

.legal ul {
    padding-left: 1.25rem;
}

.legal li {
    margin-bottom: 0.4rem;
}

.legal a {
    color: var(--discord-blurple-dark);
    font-weight: 600;
}

.legal .legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    background: var(--header-plum);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.legal .legal-back:hover,
.legal .legal-back:focus-visible {
    background: #719991;
}

/* Form confirmation page */
.thanks {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: 2rem 1rem;
    background: #f8f3ed;
    text-align: center;
}

.thanks-card {
    width: min(100%, 34rem);
    padding: clamp(2rem, 6vw, 3.5rem);
    border: 1px solid rgba(80, 13, 65, 0.12);
    border-radius: 1.25rem;
    background: white;
    box-shadow: 0 1rem 2.5rem rgba(80, 13, 65, 0.08);
}

/* Direct child only: the icons inside .thanks-actions buttons must stay white. */
.thanks-card > i {
    color: #719991;
    font-size: 3rem;
}

.thanks-card h1 {
    margin: 1.25rem 0 0.75rem;
    color: var(--header-plum);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.thanks-card p {
    margin: 0 0 1.75rem;
    line-height: 1.6;
}

.thanks-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.thanks-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    background: var(--header-plum);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.25s ease;
}

.thanks-actions a.is-discord {
    background: var(--discord-blurple);
}

.thanks-actions a:hover,
.thanks-actions a:focus-visible {
    background: #719991;
}

.thanks-actions a.is-discord:hover,
.thanks-actions a.is-discord:focus-visible {
    background: var(--discord-blurple-dark);
}

/* Responsive media queries */
@media (max-width: 930px) {
    .menu-toggle {
        position: relative;
        display: block;
        z-index: 2;
        width: 2.25rem;
        height: 2.25rem;
        padding: 0;
    }

    .menu-toggle > span:not(.sr-only) {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 1.6rem;
        height: 2px;
        margin: 0;
        background: currentColor;
        transform: translate(-50%, -50%);
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .menu-toggle > span:nth-child(2) {
        transform: translate(-50%, calc(-50% - 0.3rem));
    }

    .menu-toggle > span:nth-child(3) {
        transform: translate(-50%, -50%);
    }

    .menu-toggle > span:nth-child(4) {
        transform: translate(-50%, calc(-50% + 0.3rem));
    }

    .menu-open .menu-toggle > span:nth-child(2) {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .menu-open .menu-toggle > span:nth-child(3) {
        opacity: 0;
        transform: translate(-50%, -50%) scaleX(0);
    }

    .menu-open .menu-toggle > span:nth-child(4) {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .menu-links {
        position: absolute;
        top: 100%;
        right: 1rem;
        left: 1rem;
        display: grid;
        gap: 0;
        padding: 0.5rem;
        border: 1px solid rgba(182, 216, 210, 0.2);
        border-radius: 1rem;
        background: rgba(33, 24, 42, 0.97);
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.75rem);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .menu-open .menu-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu-links a {
        padding: 1rem;
        border-radius: 0.6rem;
    }

    .menu-links a:hover,
    .menu-links a:focus-visible {
        background: rgba(182, 216, 210, 0.1);
    }

    .menu-links a::after {
        display: none;
    }

    /* Discord stays a one-tap icon button, outside the collapsible menu */
    .nav-discord {
        display: grid;
        place-items: center;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        border-radius: 50%;
    }

    .nav-discord-label {
        display: none;
    }

    .nav-discord i {
        font-size: 1.2rem;
    }

    .intro {
        padding: 7rem 1.5rem 4rem;
    }

    /* 16vw rather than 18vw: at 320px the old value left only ~16px of slack on
       "Peins, joue,", which the wider fallback font can eat before Quicksand loads. */
    .hero-content h1 {
        font-size: clamp(3rem, 16vw, 6rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-link {
        justify-content: center;
    }

    .hero-note {
        font-size: 0.8rem;
    }

    .discord-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

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

    .asso .cards-container {
        width: min(100% - 2rem, 32rem);
    }

    .asso .card,
    .asso .card:nth-child(even) {
        display: flex;
        flex-direction: column;
    }

    .asso .card .imgAsso,
    .asso .card:nth-child(even) .imgAsso {
        order: 0;
        min-height: 0;
    }

    .asso .card .imgAsso img {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .asso .card h3,
    .asso .card:nth-child(even) h3 {
        order: 1;
        margin: 1.5rem 1.5rem 0.5rem;
    }

    .asso .card p,
    .asso .card:nth-child(even) p {
        order: 2;
        margin: 0 1.5rem 1.5rem;
        line-height: 1.55;
    }

    .accesHoraires {
        width: min(100% - 2rem, 32rem);
        padding: 3.5rem 0;
    }

    .map-container {
        min-height: 0;
        margin-top: 1.5rem;
        padding: 0.5rem;
    }

    .map-container address {
        margin-bottom: 0.75rem;
        font-size: 0.85rem;
    }

    .map-container iframe {
        height: clamp(280px, 80vw, 360px);
    }

    .jouerAvecNous {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .jouerAvecNous .progress-container {
        gap: 1rem;
    }

    .jouerAvecNous .progress-container::before {
        top: 3.5rem;
        bottom: 3.5rem;
        left: 2.5rem;
    }

    .jouerAvecNous .step-card {
        grid-template-columns: 5rem 1fr;
        min-height: 6.5rem;
        padding: 0.75rem;
        border-radius: 1rem;
    }

    .jouerAvecNous .step-card img {
        width: 4rem;
        height: 4rem;
        border-width: 0.25rem;
    }

    .jouerAvecNous .step-card .content {
        padding: 0.25rem 0.5rem;
    }

    .jouerAvecNous .step-card .description {
        font-size: 0.85rem;
    }

    .contact .titre a {
        display: inline-block;
        max-width: 100%;
        font-size: clamp(0.85rem, 4.5vw, 1.15rem);
        overflow-wrap: anywhere;
    }

    .contact .wrapper {
        gap: 0.75rem;
    }

    .contact .wrapper .icon {
        width: 3.75rem;
        height: 3.75rem;
    }

    .contact .wrapper .tooltip {
        display: none;
    }
}

@media (max-width: 380px) {
    .brand {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .jouerAvecNous .step-card img {
        width: 3.5rem;
        height: 3.5rem;
    }
}

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

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
