/* ============================================================
 * Thème Yannick — Page À propos
 * ============================================================
 * Tokens dupliqués depuis homepage.css pour que cette feuille soit
 * autonome (elle est chargée seule sur la page a-propos).
 * ============================================================ */

:root {
    --yg-white:      #FFFFFF;
    --yg-ink:        #0E0E0C;
    --yg-body:       #3B3A36;
    --yg-muted:      #857F72;
    --yg-line-light: #E0DED8;
    --yg-line-dark:  rgba(255, 255, 255, 0.14);
    --yg-turquoise:  #5C94A7;
    --yg-beige:      #F4F1EB;

    --yg-serif:      'Bebas Neue', Impact, sans-serif;
    --yg-sans:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --yg-wrap:       1200px;
    --yg-space:      clamp(72px, 10vw, 120px);
}

/* ---------- Body ---------- */
body.yg-body--about {
    margin: 0;
    padding: 0;
    font-family: var(--yg-sans);
    background: var(--yg-ink);
    color: var(--yg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.yg-body--about h1,
body.yg-body--about h2,
body.yg-body--about h3,
body.yg-body--about p,
body.yg-body--about ul {
    margin: 0;
    padding: 0;
}
body.yg-body--about ul { list-style: none; }
body.yg-body--about img { max-width: 100%; height: auto; display: block; }
body.yg-body--about a { color: inherit; text-decoration: none; }
body.yg-body--about button { font: inherit; cursor: pointer; }

.yg-about,
.yg-about *,
.yg-about *::before,
.yg-about *::after { box-sizing: border-box; }

.yg-wrap {
    width: 100%;
    max-width: var(--yg-wrap);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

/* ============================================================
 * HERO
 * ============================================================ */
.yg-about-hero {
    position: relative;
    min-height: 80vh;
    min-height: 80svh;
    background: var(--yg-ink);
    color: var(--yg-white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.yg-about-hero__image {
    position: absolute;
    inset: 0;
    background-image: url('https://yannickgonzales.fr/wp-content/uploads/2025/09/Yannick-Gonzales-Speaker-Francais-en-France-copie.png');
    background-size: cover;
    background-position: center 40%;
    z-index: 0;
}
.yg-about-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}
.yg-about-hero > *:not(.yg-about-hero__image):not(.yg-about-hero__overlay) {
    position: relative;
    z-index: 2;
}

/* Nav — mêmes classes que le hero de la homepage */
.yg-hero__nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 24px clamp(20px, 5vw, 48px);
    gap: 24px;
}
.yg-hero__nav-left,
.yg-hero__nav-right {
    display: flex;
    gap: 24px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.yg-hero__nav-left { justify-self: start; }
.yg-hero__nav-right { justify-self: end; }
.yg-hero__nav a { color: var(--yg-white); transition: color 0.2s; }
.yg-hero__nav a:hover { color: var(--yg-turquoise); }
.yg-hero__logo { justify-self: center; display: block; line-height: 0; }
.yg-hero__logo img { height: 60px; width: auto; }
.yg-hero__nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
}
.yg-hero__nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--yg-white);
    margin: 5px 0;
}

/* Titre hero */
.yg-about-hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px clamp(20px, 5vw, 48px) 60px;
    max-width: 1000px;
}
.yg-about-hero__eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--yg-turquoise);
    margin-bottom: 20px;
}
.yg-about-hero__title {
    font-family: var(--yg-serif);
    font-weight: 400;
    font-size: clamp(64px, 10vw, 160px);
    line-height: 0.9;
    letter-spacing: 0.005em;
    color: var(--yg-white);
    margin: 0;
}
.yg-about-hero__title span { display: block; }
.yg-about-hero__title-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
}

/* ============================================================
 * SECTIONS COMMUNES
 * ============================================================ */
.yg-section { padding: var(--yg-space) 0; }
.yg-section--dark { background: var(--yg-ink); color: var(--yg-white); }
.yg-section--light { background: var(--yg-white); color: var(--yg-ink); }

.yg-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--yg-turquoise);
    margin-bottom: 20px;
}

.yg-heading {
    font-family: var(--yg-serif);
    font-weight: 400;
    font-size: clamp(48px, 8vw, 120px);
    line-height: 0.92;
    letter-spacing: 0.005em;
    margin: 0 0 32px;
    color: var(--yg-white);
}
.yg-heading--dark { color: var(--yg-ink); }
.yg-heading span { display: block; }
.yg-heading__outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
}
.yg-heading__outline--dark { -webkit-text-stroke: 1.5px var(--yg-ink); }

.yg-section__lede {
    max-width: 720px;
    margin: 0 0 40px;
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Bouton — mêmes règles que homepage */
.yg-btn {
    display: inline-block;
    padding: 16px 32px;
    font-family: var(--yg-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid currentColor;
    background: transparent;
    color: var(--yg-white);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.yg-btn--outline:hover,
.yg-btn--outline:focus-visible {
    background: var(--yg-white);
    color: var(--yg-ink);
}

/* ============================================================
 * BIO
 * ============================================================ */
.yg-about-bio {
    max-width: 780px;
    margin-top: 20px;
}
.yg-about-bio p {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}
.yg-about-bio p:last-child { margin-bottom: 0; }
.yg-about-bio a {
    color: var(--yg-turquoise);
    border-bottom: 1px solid currentColor;
    transition: opacity 0.2s;
}
.yg-about-bio a:hover { opacity: 0.7; }
.yg-about-bio__signature {
    margin-top: 32px !important;
    font-size: 15px !important;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--yg-turquoise) !important;
}

/* ============================================================
 * COURSES — Accordéons par année
 * ============================================================ */
.yg-races {
    margin-top: 60px;
    border-top: 1px solid var(--yg-line-light);
}
.yg-races__year {
    border-bottom: 1px solid var(--yg-line-light);
}
.yg-races__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}
.yg-races__summary::-webkit-details-marker { display: none; }
.yg-races__summary::marker { display: none; content: ''; }
.yg-races__year-num {
    font-family: var(--yg-serif);
    font-weight: 400;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 0.95;
    color: var(--yg-ink);
    letter-spacing: 0.005em;
    transition: color 0.2s;
}
.yg-races__year:hover .yg-races__year-num,
.yg-races__year[open] .yg-races__year-num {
    color: var(--yg-turquoise);
}
.yg-races__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 300;
    font-family: var(--yg-sans);
    color: var(--yg-turquoise);
    transition: transform 0.3s ease;
    line-height: 1;
}
.yg-races__year[open] .yg-races__icon {
    transform: rotate(45deg);
}
.yg-races__content {
    padding: 0 0 32px;
    max-width: 900px;
}
.yg-races__content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--yg-body);
    margin-bottom: 14px;
}
.yg-races__content p:last-child { margin-bottom: 0; }
.yg-races__content strong { color: var(--yg-ink); font-weight: 600; }
.yg-races__content a {
    color: var(--yg-turquoise);
    border-bottom: 1px solid currentColor;
    transition: opacity 0.2s;
}
.yg-races__content a:hover { opacity: 0.7; }

.yg-races__stats {
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--yg-beige);
    border-left: 3px solid var(--yg-turquoise);
}
.yg-races__stats p {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--yg-turquoise);
    margin: 0 0 12px;
}
.yg-races__stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}
.yg-races__stats li {
    font-family: var(--yg-serif);
    font-size: 24px;
    color: var(--yg-ink);
    letter-spacing: 0.005em;
}

/* ============================================================
 * FOOTER (mêmes règles que homepage)
 * ============================================================ */
.yg-footer {
    background: #0A0A08;
    color: rgba(255, 255, 255, 0.6);
    padding: clamp(48px, 6vw, 80px) 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.yg-footer__top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(24px, 4vw, 60px);
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.yg-footer__logo { display: block; line-height: 0; }
.yg-footer__logo img { height: 56px; width: auto; }
.yg-footer__tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    max-width: 340px;
    justify-self: center;
    line-height: 1.5;
    margin: 0;
}
.yg-footer__socials {
    display: flex;
    gap: 20px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.yg-footer__socials a {
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
    transition: color 0.2s, border-color 0.2s;
}
.yg-footer__socials a:hover {
    color: var(--yg-turquoise);
    border-bottom-color: var(--yg-turquoise);
}
.yg-footer__bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}
.yg-footer__bottom p { margin: 0; }

/* ============================================================
 * MOBILE
 * ============================================================ */
@media (max-width: 900px) {
    /* Nav mobile — logo à gauche, burger tout à droite */
    .yg-hero__nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px clamp(20px, 5vw, 48px);
        gap: 12px;
    }
    .yg-hero__nav-left,
    .yg-hero__nav-right { display: none; }
    .yg-hero__logo { justify-self: unset; }
    .yg-hero__logo img { height: 56px !important; }
    .yg-hero__nav-toggle { display: block; justify-self: unset; }

    .yg-about-hero { min-height: 70vh; }
    .yg-about-hero__title { font-size: clamp(48px, 14vw, 80px); }

    /* Backdrop noir qui cache tout quand menu ouvert */
    body:has(.yg-hero__nav.is-open)::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.9);
        z-index: 998;
    }

    /* Menu ouvert — side panel qui vient de la droite */
    .yg-hero__nav.is-open {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: min(85vw, 320px) !important;
        background: var(--yg-ink) !important;
        z-index: 999 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 80px 32px 40px !important;
        gap: 8px !important;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5) !important;
    }
    .yg-hero__nav.is-open .yg-hero__logo { display: none !important; }
    .yg-hero__nav.is-open .yg-hero__nav-toggle {
        position: absolute !important;
        top: 24px !important;
        right: 24px !important;
    }
    .yg-hero__nav.is-open .yg-hero__nav-left,
    .yg-hero__nav.is-open .yg-hero__nav-right {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        font-size: 20px !important;
        letter-spacing: 0.14em !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    .yg-hero__nav.is-open .yg-hero__nav-right { margin-top: 20px !important; }

    .yg-races__summary { padding: 20px 0; }
    .yg-races__year-num { font-size: 36px; }
    .yg-races__icon { width: 36px; height: 36px; font-size: 26px; }
    .yg-races__content p { font-size: 15px; }
    .yg-races__stats ul { flex-direction: column; gap: 8px; }

    .yg-footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .yg-footer__logo { justify-self: center; }
    .yg-footer__logo img { height: 48px; margin: 0 auto; }
    .yg-footer__tagline { justify-self: center; }
    .yg-footer__socials { justify-content: center; }
    .yg-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
 * A11Y
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .yg-about *,
    .yg-about *::before,
    .yg-about *::after {
        transition: none !important;
        animation: none !important;
    }
}
.yg-about *:focus-visible {
    outline: 2px solid var(--yg-turquoise);
    outline-offset: 3px;
}