/* ==========================================
   FC Sombernon-Gissey — Séniors Horizon 2031
   ========================================== */

:root {
    /* Couleurs */
    --blue: #0552A5;
    --blue-dark: #04408A;
    --yellow: #FFE500;
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.75);
    --line: rgba(255, 255, 255, 0.18);

    /* Rayons */
    --radius: 14px;
    --radius-pill: 999px;

    /* Layout */
    --max-width: 640px;
    --nav-h: calc(84px + env(safe-area-inset-bottom, 0px));

    /* Typo */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background: var(--blue);
    color: var(--white);
    line-height: 1.55;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */
.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
}

section:last-of-type {
    border-bottom: 0;
}

@media (min-width: 720px) {
    section {
        padding: 72px 0;
    }
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 100px;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero .crest {
    width: 140px;
    height: auto;
    margin-bottom: 28px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.hero .sub {
    color: var(--yellow);
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.scroll-cue {
    position: absolute;
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.scroll-cue:hover {
    color: var(--yellow);
}

.scroll-cue .arrow {
    font-size: 1.1rem;
    animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue .arrow {
        animation: none;
    }
}

/* ---- Typography ---- */
h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    line-height: 1.15;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 24px 0 10px;
    color: var(--white);
}

p {
    margin-bottom: 14px;
    color: var(--muted);
}

p.lead {
    color: var(--white);
    font-size: 1.05rem;
}

.eyebrow {
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ---- Sommaire ---- */
.toc {
    list-style: none;
}

.toc li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
}

.toc li:last-child {
    border-bottom: 0;
}

.toc .num {
    color: var(--yellow);
    font-weight: 700;
    min-width: 32px;
}

.toc a {
    color: var(--white);
    text-decoration: none;
    flex: 1;
    transition: color 0.15s ease;
}

.toc a:hover {
    color: var(--yellow);
}

/* ---- Bullet list ---- */
ul.bul {
    list-style: none;
    padding: 0;
}

ul.bul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--muted);
}

ul.bul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--yellow);
    border-radius: 50%;
}

/* ---- Gallery / Photos ---- */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.gallery__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.photo {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--blue-dark);
    border: 1px solid var(--line);
    aspect-ratio: 5 / 6;
    margin: 0 0 16px;
}

.gallery .photo {
    margin: 0;
}

.photo--wide {
    aspect-ratio: 16 / 10;
}

.photo--tall {
    aspect-ratio: 4 / 5;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo__label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.photo__label small {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.7;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.photo:has(img) .photo__label {
    display: none;
}

/* ---- Card ---- */
.card {
    background: var(--blue-dark);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 18px;
}

.card h3 {
    margin-top: 0;
}

.card--accent {
    background: var(--yellow);
    color: var(--blue);
}

.card--accent h3 {
    color: var(--blue);
}

.card--accent p {
    color: var(--blue-dark);
}

/* ---- Stat ---- */
.stat {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.stat .n {
    font-size: 2rem;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
}

.stat .l {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ---- Coach ---- */
.coach {
    text-align: center;
    padding: 24px;
}

.coach .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 16px;
    border: 3px solid var(--yellow);
    background: var(--blue-dark);
}

.coach .name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.coach .role {
    color: var(--yellow);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.coach .meta {
    color: var(--muted);
    font-size: 0.92rem;
}

/* ---- Pillar ---- */
.pillar {
    margin-bottom: 18px;
}

.pillar h3 {
    color: var(--yellow);
}

/* ---- Contact ---- */
.contact {
    text-align: center;
    padding: 40px 24px;
    background: var(--blue-dark);
    border-radius: var(--radius);
}

.contact p {
    color: var(--white);
}

.contact-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-links a {
    color: var(--yellow);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: opacity 0.15s ease;
}

.contact-links a:hover {
    opacity: 0.8;
}

/* ---- Footer ---- */
footer {
    text-align: center;
    padding: 30px 20px 50px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ---- Bottom Nav ---- */
body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(4, 64, 138, 0.92);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-top: 1px solid var(--line);
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

.bottom-nav__track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 50vw 0 16px;
    scroll-snap-type: x mandatory;
}

.bottom-nav__track::-webkit-scrollbar {
    display: none;
}

.bottom-nav a {
    flex: 0 0 auto;
    scroll-snap-align: center;
    text-align: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.bottom-nav a:focus-visible {
    color: var(--yellow);
    background: rgba(255, 255, 255, 0.08);
}

.bottom-nav a.is-active {
    color: var(--blue);
    background: var(--yellow);
    border-color: var(--yellow);
    transform: scale(1.04);
}

.bottom-nav a:active {
    transform: scale(0.96);
}

/* ---- Subsection (inner block within a section) ---- */
.subsection {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.subsection__title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    color: var(--white);
}

/* ---- Schedule (jours d'entraînement) ---- */
.schedule {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.day {
    background: var(--blue-dark);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
}

.day__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.day__time {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
}
