/* =========================================================
   Nos Jeunes à Cœur — One-page static site
   Design language matches existing nosjeunesacoeur.ca:
   - Black header / footer, light grey body
   - Photo-led editorial layouts (LDN page reference)
   - Black solid buttons, regular case
   - Armata for headings, system stack for body
   - Restraint over polish — photos do the loud work
   ========================================================= */

:root {
    --black:        #000000;
    --white:        #FFFFFF;
    --grey-bg:      #F5F5F5;
    --grey-line:    #E4E4E4;
    --text:         #333333;
    --text-muted:   #6B6B6B;
    --red:          #C62630;

    --font-display: "Armata", system-ui, -apple-system, sans-serif;
    --font-body:    -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --container:    1180px;
    --container-narrow: 800px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-family: var(--font-display); font-weight: 600; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================================
   HEADER — sticky black bar, parent logo + nav
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--black);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    gap: 1.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--white);
}
.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
}
.brand-name-divider {
    display: inline-block;
    padding-top: 2px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    position: relative;
}
.brand-name-divider::before,
.brand-name-divider::after {
    content: "-";
    color: var(--white);
    margin: 0 0.3em;
    opacity: 0.6;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.site-nav a {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: opacity 0.15s ease;
}
.site-nav a:hover {
    opacity: 0.65;
}
.site-nav a.nav-link-active {
    border-bottom: 2px solid var(--white);
}

/* =========================================================
   HERO — photo collage + overlay text card (LDN pattern)
   ========================================================= */
.hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    overflow: hidden;
    background: var(--black);
}
.hero-photo {
    position: absolute;
    inset: 0;
    background-image: url('assets/hero_loups.jpg');
    background-size: cover;
    background-position: center 40%;
    opacity: 0.55;
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero-card {
    background: var(--white);
    padding: 3rem 3rem 2.5rem;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.hero-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--black);
    margin-bottom: 1rem;
    line-height: 1.1;
}
.hero-lead {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 1.75rem;
    max-width: 480px;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* =========================================================
   Eyebrow + section titles
   ========================================================= */
.eyebrow {
    font-family: var(--font-display);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--red);
    margin: 0 0 0.85rem;
    font-weight: 400;
}
.eyebrow-light { color: var(--white); opacity: 0.7; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--black);
    margin: 0 0 1.25rem;
    line-height: 1.2;
}
.section-title-light { color: var(--white); }
.section-lead {
    font-size: 1.05rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
}
.section-dark .section-lead { color: rgba(255, 255, 255, 0.85); }

/* =========================================================
   BUTTONS — flat solid black, regular case
   ========================================================= */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border: 0;
    cursor: pointer;
    transition: opacity 0.15s ease;
    text-decoration: none;
    line-height: 1.2;
}
.btn-solid {
    background: var(--black);
    color: var(--white);
}
.btn-solid:hover {
    opacity: 0.85;
    color: var(--white);
}
.section-dark .btn-solid {
    background: var(--white);
    color: var(--black);
}
.section-dark .btn-solid:hover {
    opacity: 0.9;
    color: var(--black);
}
.btn-link {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--black);
    border-bottom: 1px solid var(--black);
    padding-bottom: 2px;
}
.btn-link:hover { opacity: 0.65; }
.section-dark .btn-link {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 6rem 0; }
.section-light { background: var(--grey-bg); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, 0.85); }

/* À propos: editorial split */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split-text p {
    font-size: 1.02rem;
    line-height: 1.7;
}
.split-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    filter: grayscale(100%) contrast(1.05);
    transition: filter 0.4s ease;
}
.split-photo img:hover {
    filter: grayscale(0%) contrast(1);
}

/* =========================================================
   ÉQUIPES — banner image + horizontal team rows
   ========================================================= */
.teams-banner {
    margin: 2rem 0 3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.teams-banner img {
    width: 100%;
    display: block;
}
.teams-list {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
}
.team-row-text {
    flex: 1 1 60%;
    min-width: 300px;
}
.team-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--white);
    margin: 0 0 0.6rem;
    line-height: 1.2;
}
.team-row-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.6;
}

/* =========================================================
   PHOTO SECTION (calendar) — full-bleed photo + overlay card
   ========================================================= */
.section-photo {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    background: var(--black);
}
.section-photo-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}
.section-photo .container {
    position: relative;
    z-index: 1;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0;
    margin-top: 1.5rem;
    border-top: 1px solid var(--grey-line);
}
.contact-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--grey-line);
    color: var(--text);
    transition: color 0.15s ease;
}
.contact-item:is(a):hover {
    color: var(--red);
}
.contact-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.contact-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--black);
}

.contact-followup {
    margin-top: 2.5rem;
    font-size: 1rem;
    color: var(--text);
}

.social-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--black);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 0.9rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.social-link:hover {
    background: var(--black);
    color: var(--white);
}

/* =========================================================
   FOOTER — black, two-column, matches existing site
   ========================================================= */
.site-footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.85);
    padding: 4.5rem 0 3rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.footer-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}
.footer-list a {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: color 0.15s ease;
}
.footer-list a:hover {
    color: var(--white);
}
.footer-logo {
    width: 80px;
    height: auto;
    margin-top: 1rem;
}

/* =========================================================
   MISSION PILLARS (À propos)
   ========================================================= */
.pillars {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--grey-line);
}
.pillars-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}
.pillar-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem 2.5rem;
    margin-top: 1.5rem;
}
.pillar-list li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--text);
    line-height: 1.5;
}
.pillar-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: var(--red);
}

/* =========================================================
   ÉQUIPES — age tag + per-team social link
   ========================================================= */
.team-age {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.15rem 0.65rem;
    margin-bottom: 0.7rem;
}
.team-social {
    display: inline-block;
    margin-top: 0.75rem;
    font-family: var(--font-display);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid transparent;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}
.team-social:hover {
    opacity: 1;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   PROGRAM GRID — community programs + self-financing cards
   ========================================================= */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.program-card {
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-top: 3px solid var(--red);
    padding: 1.75rem;
}
.program-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--black);
    margin: 0 0 0.65rem;
    line-height: 1.25;
}
.program-card p {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--text);
}
.section-dark .program-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    border-top-color: var(--red);
}
.section-dark .program-card h3 { color: var(--white); }
.section-dark .program-card p { color: rgba(255, 255, 255, 0.8); }

.soutenir-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.75rem;
}

/* =========================================================
   PHOTOS — team rows, program photo band, card images
   ========================================================= */
.team-row-photo {
    flex: 0 0 200px;
}
.team-row-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.photo-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 0 0 2.5rem;
}
.photo-band figure { margin: 0; }
.photo-band img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.photo-band figcaption {
    margin-top: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.program-card-img {
    display: block;
    width: calc(100% + 3.5rem);
    max-width: none;
    margin: -1.75rem -1.75rem 1.25rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 920px) {
    .split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .split-photo img {
        aspect-ratio: 16 / 10;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: auto;
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .site-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 1rem 1.25rem;
    }
    .site-nav a { font-size: 0.85rem; padding: 0.25rem 0; }

    .hero {
        min-height: auto;
        padding: 3.5rem 0;
    }
    .hero-card {
        padding: 2rem 1.75rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .soutenir-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section { padding: 4rem 0; }
    .section-photo { padding: 5rem 0; }

    .team-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 0;
    }
    .team-row-text { min-width: 0; }
    .team-row-photo { flex: none; width: 100%; }
    .team-row-photo img { aspect-ratio: 16 / 10; }

    .photo-band { grid-template-columns: 1fr; }

    .footer-list a { font-size: 0.95rem; }
}
