/* Club Cochon — feuille de style du site.
   Brun sur crème le jour, crème sur nuit en mode sombre, police mono.
   Aucun outil à installer : ce fichier est servi tel quel. */

:root {
    --paper: #f4ede2;
    --ink: #6d201d;
    --hot: #ef8b77;
    --night: #1a1210;
    --bg: var(--paper);
    --fg: var(--ink);
    --fg-rgb: 109, 32, 29;
    --surface: rgba(var(--fg-rgb), 0.06);
    --line: rgba(var(--fg-rgb), 0.14);
    --muted: rgba(var(--fg-rgb), 0.62);
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --gutter: clamp(1rem, 4vw, 3.75rem);
    --radius: 1.25rem;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: var(--night);
        --fg: var(--paper);
        --fg-rgb: 244, 237, 226;
    }
}

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

html { background: var(--bg); scroll-behavior: smooth; }
body {
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }

.caps {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* Le nom du Club, dessiné : les logos prennent la couleur de l'encre. */
.wordmark {
    display: inline-block;
    background: var(--fg);
    -webkit-mask: var(--src) no-repeat center / contain;
    mask: var(--src) no-repeat center / contain;
}
.wordmark--club { --src: url("img/title-left.svg"); aspect-ratio: 940 / 324; }
.wordmark--cochon { --src: url("img/title-right.svg"); aspect-ratio: 940 / 296; }
.groin { display: inline-block; width: 1.4em; height: 1.4em; vertical-align: -0.35em; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand .wordmark--club { height: 1.3rem; }
.brand .wordmark--cochon { height: 1.1rem; }
.status { display: inline-flex; align-items: center; gap: 0.45rem; }
.status::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--muted);
}
.status.is-open::before { background: #3a9d5d; }

.nav { display: flex; gap: 1.5rem; }
.nav a { text-decoration: none; padding: 0.25rem 0; border-bottom: 1px solid transparent; transition: border-color 0.4s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { border-color: currentColor; }

.menu-button {
    display: none;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0.5rem 0;
}

@media (max-width: 720px) {
    .menu-button { display: block; }
    .site-header .status { display: none; }
    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 4rem;
        flex-direction: column;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem var(--gutter) 1rem;
        z-index: 10;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 0.75rem 0; }
    .site-header { position: relative; }
}

/* Accueil : vidéo et titre */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--paper); }
.hero video, .hero .hero-poster {
    width: 100%;
    height: min(78vh, 46rem);
    object-fit: cover;
    opacity: 0.72;
}
.hero-text {
    position: absolute;
    inset: auto 0 0 0;
    padding: var(--gutter);
    padding-bottom: clamp(1.5rem, 5vw, 3.5rem);
    background: linear-gradient(to top, rgba(26, 18, 16, 0.8), transparent);
}
.hero-text .wordmark { background: var(--paper); display: block; }
.hero-text .wordmark--club { height: clamp(3rem, 12vw, 8rem); }
.hero-text .wordmark--cochon { height: clamp(2.4rem, 9.5vw, 6.4rem); margin-top: 0.5rem; }
.hero-text p { margin-top: 1.25rem; max-width: 34rem; font-size: 1rem; }

/* Sections */
.section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-transform: uppercase; }
h2 { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
h3 { font-size: 1rem; font-weight: 700; }
.lead { margin-top: 1rem; max-width: 40rem; font-size: 1rem; }
.page-head { padding-top: clamp(2.5rem, 7vw, 4.5rem); }
.group + .group { margin-top: clamp(2.5rem, 6vw, 4rem); }
.group h2 { margin-bottom: 1.25rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: 0.4rem; }
.card .caps { display: block; margin-bottom: 0.75rem; }

.link-more { text-decoration: none; border-bottom: 1px solid currentColor; }

/* Lignes : agenda et carte */
.rows { list-style: none; border-top: 1px solid var(--line); }
.row {
    display: grid;
    grid-template-columns: 9rem 1fr auto;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}
.row .price { white-space: nowrap; }
@media (max-width: 640px) {
    .row { grid-template-columns: 1fr auto; }
    .row > :first-child { grid-column: 1 / -1; }
}

.feature { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: center; }
.feature img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.note { margin-top: 1.5rem; }

/* Contact */
.contact-list { list-style: none; display: grid; gap: 1.5rem; }
.contact-list span.caps { display: block; margin-bottom: 0.25rem; }
.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--fg);
    color: var(--bg);
    text-decoration: none;
    transition: opacity 0.4s var(--ease);
}
.button:hover { opacity: 0.85; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
