:root {
    --pink: #ff2f8f;
    --orange: #ff5a1f;
    --ink: #171717;
    --ink-soft: #303030;
    --paper: #ffffff;
    --soft: #f5f5f4;
    --line: #e7e7e4;
    --muted: #6d6d68;
    --radius: 24px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

a { color: inherit; }

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.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;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.header-accent {
    height: 5px;
    background: linear-gradient(90deg, var(--pink), var(--orange));
}

.nav-wrap {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 1.05rem;
    letter-spacing: .08em;
}

.brand-copy span {
    color: var(--muted);
    font-size: .82rem;
    margin-top: 5px;
}

.main-nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    font-size: .95rem;
    font-weight: 750;
    padding: 11px 14px;
    border-radius: 999px;
    transition: .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--ink);
    color: white;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 25%, rgba(255,90,31,.12), transparent 30%),
        radial-gradient(circle at 15% 5%, rgba(255,47,143,.10), transparent 35%),
        linear-gradient(180deg, #fff, #fafafa);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 60px;
    align-items: center;
}

.eyebrow,
.section-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--orange);
}

.hero h1,
.page-hero h1 {
    margin: 16px 0 22px;
    font-size: clamp(3.2rem, 8vw, 6.8rem);
    line-height: .92;
    letter-spacing: -.055em;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 720px;
    font-size: 1.15rem;
    color: var(--ink-soft);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

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

.btn-primary {
    color: white;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    box-shadow: 0 12px 26px rgba(255, 79, 71, .22);
}

.btn-ghost {
    border: 1px solid var(--line);
    background: white;
}

.btn-dark {
    background: var(--ink);
    color: white;
}

.btn-light {
    background: white;
    color: var(--ink);
}

.btn-small {
    min-height: 42px;
    padding: 9px 16px;
    font-size: .9rem;
}

.hero-card {
    padding: 28px;
    border-radius: 38px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: var(--shadow);
}

.hero-card img {
    width: 100%;
    max-width: 410px;
    margin: auto;
}

.quick-section {
    padding: 0 0 86px;
}

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

.quick-card,
.content-card,
.sponsor-card,
.event-card,
.quote-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.quick-card {
    padding: 28px;
}

.quick-card.featured {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}

.quick-kicker {
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--orange);
}

.quick-card h2 {
    margin: 12px 0 10px;
    font-size: 1.45rem;
}

.quick-card p {
    color: var(--muted);
}

.quick-card.featured p {
    color: #cfcfca;
}

.quick-card a {
    display: inline-block;
    margin-top: 8px;
    font-weight: 850;
    text-decoration: none;
}

.section {
    padding: 90px 0;
}

.section-soft {
    background: var(--soft);
}

.section-dark {
    background: var(--ink);
    color: white;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section h2 {
    margin: 12px 0 18px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.lead {
    font-size: 1.14rem;
    color: var(--ink-soft);
}

.muted {
    color: var(--muted);
}

.strava-panel {
    min-height: 260px;
    padding: 34px;
    border-radius: 30px;
    background: white;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.strava-icon {
    width: 86px;
    height: 86px;
    border-radius: 24px;
    background: var(--orange);
    color: white;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    font-weight: 950;
}

.strava-panel strong {
    display: block;
    font-size: 1.6rem;
}

.strava-panel span {
    color: var(--muted);
}

.callout {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
}

.callout p {
    max-width: 720px;
}

.callout-dark p {
    color: #cfcfc9;
}

.page-hero {
    padding: 82px 0 64px;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,90,31,.11), transparent 32%),
        linear-gradient(180deg, white, #fafafa);
}

.page-hero h1 {
    font-size: clamp(3rem, 7vw, 5.9rem);
}

.page-hero p {
    max-width: 760px;
    font-size: 1.15rem;
    color: var(--muted);
}

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

.content-card {
    padding: 30px;
}

.number {
    font-size: .8rem;
    font-weight: 850;
    color: var(--orange);
}

.quote-card {
    padding: 40px;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}

.events-grid {
    display: grid;
    gap: 18px;
}

.event-card {
    display: grid;
    grid-template-columns: 230px 1fr;
    overflow: hidden;
}

.event-date {
    min-height: 230px;
    padding: 30px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: white;
    display: flex;
    align-items: flex-end;
    font-weight: 900;
    font-size: 1.5rem;
}

.event-body {
    padding: 30px;
}

.event-body h3 {
    font-size: 1.65rem;
    margin: 12px 0;
}

.event-meta {
    color: var(--muted);
    font-weight: 700;
}

.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff1eb;
    color: var(--orange);
    font-size: .75rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.info-banner {
    padding: 24px 28px;
    border-radius: 20px;
    background: white;
    display: grid;
    gap: 5px;
    box-shadow: var(--shadow);
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sponsor-card {
    padding: 28px;
}

.sponsor-card > span {
    color: var(--orange);
    font-size: .78rem;
    text-transform: uppercase;
    font-weight: 850;
    letter-spacing: .1em;
}

.sponsor-logo-placeholder {
    height: 150px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 18px;
    background: var(--soft);
    border: 1px dashed #cfcfc9;
    color: #9b9b96;
    font-weight: 900;
    letter-spacing: .15em;
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.contact-box {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 3px;
}

.contact-box span {
    color: var(--muted);
}

.contact-form {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
    font-weight: 800;
    font-size: .9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d8d8d3;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    background: #fcfcfb;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(255,90,31,.18);
    border-color: var(--orange);
}

.alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.alert.success {
    background: #ebf8ef;
    color: #23683c;
}

.alert.error {
    background: #fff0ef;
    color: #9b2f2a;
}

.site-footer {
    background: #111;
    color: white;
    padding: 54px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 950;
    letter-spacing: .1em;
}

.site-footer p {
    max-width: 460px;
    color: #aaa;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid #2d2d2d;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #888;
    font-size: .85rem;
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }

    .main-nav {
        position: absolute;
        top: 89px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        background: white;
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .main-nav.open { display: flex; }

    .main-nav a { text-align: center; }

    .hero-grid,
    .split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 520px;
    }

    .quick-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

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

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-date {
        min-height: 120px;
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .brand-copy span { display: none; }

    .hero {
        padding: 60px 0 54px;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 17vw, 4.8rem);
    }

    .page-hero {
        padding: 58px 0 44px;
    }

    .section {
        padding: 64px 0;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        display: grid;
    }
}

/* =========================================================
   CC T TES - AJUSTEMENTS CHARTE GRAPHIQUE
   ========================================================= */

:root {
    --cct-bg: #fafafa;
    --cct-white: #ffffff;
    --cct-black: #181818;
    --cct-pink: #ff2f8f;
    --cct-orange: #ff5a1f;
}

/* Fond g n ral proche du fond du logo */
body {
    background: var(--cct-bg);
}

/* HEADER */
.site-header {
    background: rgba(250, 250, 250, 0.97);
    border-bottom: 1px solid rgba(24, 24, 24, 0.08);
}
/* Menu normal */
.main-nav a {
    color: var(--cct-black);
    background: transparent;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

/* Hover : ORANGE uniquement */
.main-nav a:hover {
    color: var(--cct-orange);
    background: rgba(255, 90, 31, 0.08);
}

/* Page active : ORANGE */
.main-nav a.active {
    color: var(--cct-orange);
    background: rgba(255, 90, 31, 0.09);
}

/* Soulignement page active : ORANGE */
.main-nav a.active::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 5px;
    border-radius: 10px;
    background: var(--cct-orange);
}

/* Mobile */
@media (max-width: 900px) {
    .main-nav a:hover,
    .main-nav a.active {
        color: var(--cct-orange);
        background: rgba(255, 90, 31, 0.08);
    }
}


/* HERO : m me fond que le logo */
.hero {
    background: var(--cct-bg);
}

.hero-bg {
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(255, 90, 31, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 15% 5%,
            rgba(255, 47, 143, 0.07),
            transparent 35%
        ),
        var(--cct-bg);
}

/* Le cadre du logo devient quasiment invisible */
.hero-card {
    background: var(--cct-bg);
    border: none;
    box-shadow: none;
}

/* =========================================================
   BOUTONS
   ========================================================= */

/* Bouton principal : beaucoup plus visible */
.btn-primary {
    color: #ffffff;
    background: var(--cct-black);
    border: 2px solid var(--cct-black);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

/* Ligne color e rappelant le logo */
.btn-primary::after {
    content: "?";
    margin-left: 10px;
    color: var(--cct-orange);
    font-size: 1.1em;
}

.btn-primary:hover {
    color: #ffffff;
    background: #000000;
    border-color: #000000;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
}

/* Boutons secondaires */
.btn-ghost {
    color: var(--cct-black);
    background: transparent;
    border: 2px solid var(--cct-black);
}

.btn-ghost:hover {
    color: var(--cct-pink);
    background: rgba(255, 47, 143, 0.06);
    border-color: var(--cct-pink);
}

/* Cartes blanches l g rement diff renci es du fond */
.quick-card,
.content-card,
.sponsor-card,
.event-card,
.quote-card {
    background: var(--cct-white);
}

/* Version mobile du menu */
@media (max-width: 900px) {
    .main-nav {
        background: var(--cct-bg);
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: var(--cct-pink);
        background: rgba(255, 47, 143, 0.08);
    }
}
/* =========================================================
   CC TÔTES — INTERACTIONS / HOVER GLOBAL
   Orange dominant → légère touche rose
   ========================================================= */

:root {
    --cct-orange: #ff5a1f;
    --cct-pink: #ff2f8f;
    --cct-black: #181818;
}

/* -------------------------
   LIENS TEXTE
   ------------------------- */

main a:not(.btn),
.footer-links a {
    transition:
        color 0.22s ease,
        opacity 0.22s ease;
}

main a:not(.btn):hover,
.footer-links a:hover {
    color: var(--cct-orange);
}


/* -------------------------
   MENU
   ------------------------- */

.main-nav a {
    color: var(--cct-black);
    background: transparent;
    position: relative;
    transition:
        color 0.22s ease,
        background 0.22s ease;
}

.main-nav a:hover {
    color: var(--cct-orange);

    background: linear-gradient(
        90deg,
        rgba(255, 90, 31, 0.10),
        rgba(255, 47, 143, 0.05)
    );
}

.main-nav a.active {
    color: var(--cct-orange);

    background: linear-gradient(
        90deg,
        rgba(255, 90, 31, 0.11),
        rgba(255, 47, 143, 0.05)
    );
}

/* Trait sous page active */
.main-nav a.active::after {
    content: "";
    position: absolute;

    left: 18%;
    right: 18%;
    bottom: 4px;

    height: 2px;
    border-radius: 10px;

    background: linear-gradient(
        90deg,
        var(--cct-orange) 0%,
        var(--cct-orange) 65%,
        var(--cct-pink) 100%
    );
}


/* -------------------------
   BOUTONS PRINCIPAUX
   ------------------------- */

.btn-primary {
    color: #ffffff;

    background: linear-gradient(
        105deg,
        var(--cct-orange) 0%,
        var(--cct-orange) 65%,
        var(--cct-pink) 100%
    );

    border: none;

    box-shadow:
        0 8px 22px rgba(255, 90, 31, 0.20);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.btn-primary:hover {
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(255, 90, 31, 0.28);

    filter: brightness(1.04);
}


/* -------------------------
   BOUTONS SECONDAIRES
   ------------------------- */

.btn-ghost {
    color: var(--cct-black);
    background: transparent;
    border: 2px solid var(--cct-black);

    transition:
        color 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        transform 0.22s ease;
}

.btn-ghost:hover {
    color: var(--cct-orange);
    border-color: var(--cct-orange);

    background: linear-gradient(
        90deg,
        rgba(255, 90, 31, 0.08),
        rgba(255, 47, 143, 0.04)
    );

    transform: translateY(-2px);
}


/* -------------------------
   BOUTONS NOIRS
   ------------------------- */

.btn-dark:hover {
    color: #ffffff;

    background: linear-gradient(
        105deg,
        var(--cct-orange) 0%,
        var(--cct-orange) 70%,
        var(--cct-pink) 100%
    );
}


/* -------------------------
   CARTES AVEC LIEN
   ------------------------- */

.quick-card a {
    color: var(--cct-black);
    transition: color 0.22s ease;
}

.quick-card a:hover {
    color: var(--cct-orange);
}


/* -------------------------
   MOBILE
   ------------------------- */

@media (max-width: 900px) {

    .main-nav a:hover,
    .main-nav a.active {
        color: var(--cct-orange);

        background: linear-gradient(
            90deg,
            rgba(255, 90, 31, 0.10),
            rgba(255, 47, 143, 0.05)
        );
    }
}
/* =========================================================
   CC TÔTES — TEXTE DES BOUTONS TOUJOURS BLANC
   ========================================================= */

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-dark:hover,
.btn-dark:focus {
    color: #ffffff !important;
}

/* Flèche des boutons */
.btn-primary::after,
.btn-primary:hover::after {
    color: #ffffff !important;
}

/* Tous les éléments contenus dans un bouton */
.btn-primary *,
.btn-dark:hover * {
    color: #ffffff !important;
}

/* =========================================================
   SPONSORS SECONDAIRES
   ========================================================= */

.sponsor-secondary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.sponsor-secondary-card {
    min-height: 180px;
    padding: 22px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;

    text-align: center;

    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.sponsor-secondary-card:hover {
    transform: translateY(-4px);

    border-color: var(--cct-orange);

    box-shadow:
        0 12px 30px rgba(255, 90, 31, 0.10);
}

.sponsor-secondary-card img {
    width: 100%;
    height: 90px;
    object-fit: contain;
}

.sponsor-secondary-placeholder {
    width: 100%;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f5f4;
    border-radius: 14px;

    color: #999;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.sponsor-secondary-card strong {
    font-size: 0.95rem;
}

/* =========================================================
   SPONSORS PRINCIPAUX
   ========================================================= */

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

.sponsor-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-height: 260px;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.sponsor-card:hover {
    transform: translateY(-4px);
    border-color: var(--cct-orange);

    box-shadow:
        0 14px 32px rgba(255, 90, 31, 0.10);
}


/* Zone réservée au logo */

.sponsor-logo-wrap {
    width: 100%;
    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;
}


/* Logo */

.sponsor-logo {
    display: block;

    max-width: 90%;
    max-height: 130px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* Placeholder si pas de logo */

.sponsor-placeholder {
    width: 100%;
    height: 130px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f5f4;
    border-radius: 14px;

    color: #999;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}


/* Partie texte */

.sponsor-info {
    width: 100%;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}


/* Nom du sponsor */

.sponsor-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #181818;
}


/* Sponsor principal */

.sponsor-type {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    color: var(--cct-orange);
}
.sponsor-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.sponsor-card-link:hover .sponsor-name {
    color: var(--cct-orange);
}

.sponsor-card-link:hover {
    background:
        linear-gradient(
            135deg,
            rgba(255, 90, 31, 0.035),
            rgba(255, 47, 143, 0.025)
        ),
        #ffffff;
}

/* TABLETTE */

@media (max-width: 900px) {

    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* MOBILE */

@media (max-width: 560px) {

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

}

/* TABLETTE */
@media (max-width: 900px) {

    .sponsor-secondary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* MOBILE */
@media (max-width: 560px) {

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

}
/* =========================================================
   CONTACT
   ========================================================= */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 32px;
    align-items: start;
}

.contact-form-card,
.contact-side-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 800;
    color: #181818;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;

    border: 1px solid #dddddd;
    border-radius: 12px;

    background: #ffffff;
    color: #181818;

    font-family: inherit;
    font-size: 1rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 170px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;

    border-color: var(--cct-orange);

    box-shadow:
        0 0 0 3px rgba(255, 90, 31, 0.10);
}


/* Confirmation */

.form-success {
    padding: 18px 20px;
    margin-bottom: 24px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 90, 31, 0.10),
            rgba(255, 47, 143, 0.06)
        );

    border: 1px solid rgba(255, 90, 31, 0.25);
}

.form-success strong {
    display: block;
    margin-bottom: 5px;

    color: var(--cct-orange);
    font-size: 1.05rem;
}

.form-success p {
    margin: 0;
}


/* Erreurs */

.form-errors {
    padding: 18px 20px;
    margin-bottom: 24px;

    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 14px;
}

.form-errors strong {
    display: block;
    margin-bottom: 8px;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
}


/* Anti-spam */

.form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* Responsive */

@media (max-width: 850px) {

    .contact-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

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

    .contact-form-card,
    .contact-side-card {
        padding: 22px;
    }

}

/* =========================================================
   STRAVA
   ========================================================= */

.strava-section {
    width: 100%;
    text-align: center;
}

.strava-section .section-label,
.strava-section h2 {
    text-align: center;
}

.strava-section h2 {
    margin-bottom: 35px;
}


/* Zone générale */

.strava-widgets {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 28px;
}


/* =========================================================
   PC : agrandissement du widget Strava natif 500px
   ========================================================= */

.strava-frame {
    width: 700px;
    max-width: 100%;

    overflow: hidden;

    display: flex;
    justify-content: center;
}


/* Grand widget */

.strava-frame:not(.strava-frame-small) {
    height: 636px; /* 454 × 1.4 */
}

.strava-frame:not(.strava-frame-small) iframe {
    width: 500px;
    height: 454px;

    flex: 0 0 500px;

    transform: scale(1.4);
    transform-origin: top center;

    border: 0;
}


/* Petit widget */

.strava-frame-small {
    height: 224px; /* 160 × 1.4 */
}

.strava-frame-small iframe {
    width: 500px;
    height: 160px;

    flex: 0 0 500px;

    transform: scale(1.4);
    transform-origin: top center;

    border: 0;
}


/* =========================================================
   TABLETTE / MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .strava-widgets {
        max-width: 500px;
        gap: 20px;
    }

    .strava-frame {
        width: 100%;
    }

    .strava-frame:not(.strava-frame-small) {
        height: 454px;
    }

    .strava-frame-small {
        height: 160px;
    }

    .strava-frame iframe,
    .strava-frame:not(.strava-frame-small) iframe,
    .strava-frame-small iframe {
        width: 500px;
        max-width: 100%;

        transform: none;

        flex: initial;
    }

}

/* =========================================================
   ESPACE CLUB - CATÉGORIES ORGANISATION
   ========================================================= */

.categorie-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 18px;
    align-items: end;

    padding: 20px 0;

    border-bottom: 1px solid var(--line);
}

.categorie-row:first-child {
    padding-top: 5px;
}

.categorie-delete {
    padding-bottom: 20px;
}

@media (max-width: 800px) {

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

        padding: 24px 0;
    }

    .categorie-delete {
        padding-bottom: 20px;
    }

}