/* Gateripper GO — pages d'accueil (site principal et sites des clubs). */
:root {
    --grp-bg: #0f141a;
    --grp-card: #141b24;
    --grp-card-hover: #1a2330;
    --grp-border: #2f3a48;
    --grp-text: #f3f4f6;
    --grp-muted: #9ca3af;
    --grp-live: #f87171;
    /* --grp-accent / --grp-on-accent : posés par la page (couleur du club). */
}

* { box-sizing: border-box; }

body.grp-home {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--grp-accent) 14%, transparent), transparent 60%),
        var(--grp-bg);
    color: var(--grp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--grp-accent); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { margin: 0; line-height: 1.2; }

.grp-main {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 48px;
    flex: 1;
}

.grp-lead {
    color: var(--grp-muted);
    font-size: 17px;
    margin: 12px auto 0;
    max-width: 560px;
}

/* --- En-têtes --- */
.grp-club-hero,
.grp-platform-hero {
    text-align: center;
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 32px;
}
.grp-club-hero h1,
.grp-platform-hero h1 {
    font-size: clamp(28px, 6vw, 40px);
    font-weight: 800;
    letter-spacing: -0.3px;
}
.grp-club-logo {
    display: block;
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    margin: 0 auto 20px;
    object-fit: contain;
}
.grp-platform-logo {
    display: block;
    margin: 0 auto 28px;
    width: 160px;
    height: auto;
}

/* --- Sections --- */
.grp-section { margin-top: 32px; }
.grp-section h2 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grp-muted);
    margin-bottom: 12px;
}
.grp-section-live h2 { color: var(--grp-live); }

.grp-empty {
    text-align: center;
    color: var(--grp-muted);
    background: var(--grp-card);
    border: 1px dashed var(--grp-border);
    border-radius: 14px;
    padding: 32px 20px;
    margin-top: 16px;
}

/* --- Compétitions --- */
.grp-competitions,
.grp-clubs,
.grp-features {
    list-style: none;
    margin: 0;
    padding: 0;
}
.grp-competitions { display: grid; gap: 10px; }

.grp-competition {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: var(--grp-card);
    border: 1px solid var(--grp-border);
    border-left: 4px solid var(--grp-accent);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}
.grp-competition:hover { background: var(--grp-card-hover); transform: translateY(-1px); }
.grp-section-past .grp-competition { border-left-color: var(--grp-border); }
.grp-section-live .grp-competition { border-left-color: var(--grp-live); }

.grp-competition-info { display: flex; flex-direction: column; min-width: 0; }
.grp-competition-title { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.grp-competition-date { color: var(--grp-muted); font-size: 14px; }
.grp-competition-date::first-letter { text-transform: uppercase; }

.grp-badge {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--grp-accent);
    color: var(--grp-on-accent);
}
.grp-section-past .grp-badge { background: transparent; color: var(--grp-text); border: 1px solid var(--grp-border); }
.grp-badge-live {
    background: var(--grp-live);
    color: #1a0b0b;
    text-transform: uppercase;
    animation: grp-pulse 1.6s ease-in-out infinite;
}
@keyframes grp-pulse { 50% { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .grp-badge-live { animation: none; } }

/* --- Contact du club --- */
.grp-contact {
    background: var(--grp-card);
    border: 1px solid var(--grp-border);
    border-radius: 14px;
    padding: 20px;
}
.grp-address { margin: 0 0 14px; }
.grp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.grp-link {
    padding: 8px 14px;
    border: 1px solid var(--grp-border);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.grp-link:hover { border-color: var(--grp-accent); }

/* --- Site principal --- */
.grp-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}
.grp-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    background: var(--grp-accent);
    color: var(--grp-on-accent);
    font-weight: 700;
    text-decoration: none;
}
.grp-button:hover { filter: brightness(0.92); }
.grp-button-ghost {
    background: transparent;
    color: var(--grp-text);
    border: 1px solid var(--grp-border);
}
.grp-button-ghost:hover { border-color: var(--grp-accent); filter: none; }

.grp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 12px;
}
.grp-features li {
    background: var(--grp-card);
    border: 1px solid var(--grp-border);
    border-radius: 12px;
    padding: 18px;
}
.grp-features h3 { font-size: 16px; margin-bottom: 6px; }
.grp-features p { margin: 0; color: var(--grp-muted); font-size: 14px; }

.grp-clubs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 10px;
}
.grp-club {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--grp-card);
    border: 1px solid var(--grp-border);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}
.grp-club:hover { background: var(--grp-card-hover); border-color: var(--grp-accent); }
.grp-club img,
.grp-club-initial {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: contain;
}
.grp-club-initial {
    display: grid;
    place-items: center;
    background: var(--grp-border);
    font-weight: 800;
}

/* --- Photo d'arrière-plan du club : très atténuée pour ne pas gêner la lecture --- */
.grp-bg-photo {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    filter: grayscale(0.3);
    pointer-events: none;
}

/* --- Formulaire d'inscription --- */
.grp-signup-hero { padding-bottom: 24px; }
.grp-signup-hero .grp-platform-logo { width: 120px; margin-bottom: 20px; }
.grp-main-narrow { width: min(560px, calc(100% - 32px)); }

.grp-form {
    background: var(--grp-card);
    border: 1px solid var(--grp-border);
    border-radius: 14px;
    padding: 24px;
}
.grp-field { margin: 0 0 18px; }
.grp-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.grp-optional { color: var(--grp-muted); font-weight: 400; }
.grp-field input,
.grp-field textarea {
    width: 100%;
    background: var(--grp-bg);
    border: 1px solid var(--grp-border);
    border-radius: 8px;
    color: var(--grp-text);
    font: inherit;
    padding: 10px 12px;
}
.grp-field textarea { resize: vertical; }
.grp-field input:focus,
.grp-field textarea:focus {
    outline: none;
    border-color: var(--grp-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--grp-accent) 30%, transparent);
}
.grp-form-actions { margin: 0; display: flex; justify-content: flex-end; }
.grp-form .grp-button { border: none; cursor: pointer; font: inherit; font-weight: 700; }

/* Champ piège anti-robots : hors écran (pas display:none, que certains robots repèrent). */
.grp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.grp-notice {
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    border: 1px solid var(--grp-border);
}
.grp-notice strong { display: block; margin-bottom: 4px; }
.grp-notice-success { background: color-mix(in srgb, var(--grp-accent) 12%, var(--grp-card)); border-color: var(--grp-accent); }
.grp-notice-error { background: #3a1c1c; border-color: var(--grp-live); }
.grp-back { text-align: center; }
.grp-back a { color: var(--grp-muted); }

/* --- Pied de page --- */
.grp-site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    padding: 24px 16px 32px;
    border-top: 1px solid var(--grp-border);
    color: var(--grp-muted);
    font-size: 13px;
}
.grp-site-footer a { text-decoration: none; }
.grp-site-footer a:hover { color: var(--grp-text); }
.grp-powered { display: inline-flex; align-items: center; gap: 8px; }
.grp-powered img { opacity: 0.8; }

@media (max-width: 480px) {
    .grp-club-hero, .grp-platform-hero { padding-top: 40px; }
    .grp-competition { padding: 14px; }
}
