:root {
    --navy: #0B1F3A;
    --navy-deep: #071527;
    --gold: #D4A847;
    --gold-soft: #F0DDA8;
    --cream: #F6F4EE;
    --steel: #3E6E8E;
    --buoy-red: #C1432F;
    --ink: #16202F;
    --line: rgba(255,255,255,0.14);
    --line-dark: rgba(11,31,58,0.12);
    --maxw: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
}

h1, h2, h3, h4 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.05;
    text-transform: uppercase;
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ============ HEADER / LANGUAGE ============ */
.topbar {
    background: var(--navy-deep);
    color: var(--cream);
    font-size: 13px;
    border-bottom: 1px solid var(--line);
}

    .topbar .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 40px;
    }

.lang-switch {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
}

    .lang-switch li {
        border-left: 1px solid var(--line);
    }

        .lang-switch li:first-child {
            border-left: none;
        }

    .lang-switch button {
        background: none;
        border: none;
        color: rgba(246,244,238,0.6);
        font-family: 'JetBrains Mono', monospace;
        font-size: 11px;
        letter-spacing: 0.08em;
        padding: 0 12px;
        height: 40px;
        cursor: pointer;
        text-transform: uppercase;
        transition: color .15s ease;
    }

        .lang-switch button:hover {
            color: var(--cream);
        }

        .lang-switch button.active {
            color: var(--gold);
        }

.topbar .contact-line a {
    color: rgba(246,244,238,0.75);
    text-decoration: none;
    font-size: 12px;
}

    .topbar .contact-line a:hover {
        color: var(--gold);
    }

.topbar .contact-line {
    display: flex;
    gap: 20px;
}

nav.main {
    background: var(--navy);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

    nav.main .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 76px;
    }

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--cream);
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Anton',sans-serif;
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.brand-text {
    font-family: 'Anton',sans-serif;
    font-size: 18px;
    letter-spacing: 0.06em;
    line-height: 1.1;
}

    .brand-text small {
        display: block;
        font-family: 'JetBrains Mono',monospace;
        font-size: 10px;
        letter-spacing: 0.2em;
        color: var(--gold-soft);
        margin-top: 2px;
    }

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

    .nav-links a {
        color: rgba(246,244,238,0.78);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.02em;
        transition: color .15s ease;
    }

        .nav-links a:hover {
            color: var(--gold);
        }

.btn-register {
    background: var(--gold);
    color: var(--navy-deep);
    text-decoration: none;
    font-family: 'JetBrains Mono',monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 11px 22px;
    font-weight: 500;
    transition: background .15s ease;
}

    .btn-register:hover {
        background: var(--gold-soft);
    }

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--cream);
    text-decoration: none;
    font-family: 'JetBrains Mono',monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 20px;
    font-weight: 500;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(7,21,39,0.35) 0%, rgba(7,21,39,0.55) 45%, rgba(7,21,39,0.96) 100%), url('/assets/images/huit-sur-l-erdre.jpg') center/cover no-repeat;
    color: var(--cream);
    overflow: hidden;
}

.hero-content {
    padding: 80px 0 56px;
    width: 100%;
}

.hero-eyebrow {
    color: var(--gold);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

    .hero-eyebrow .rule {
        height: 1px;
        width: 64px;
        background: var(--gold);
    }

.hero h1 {
    font-size: clamp(56px, 11vw, 132px);
    color: var(--cream);
}

    .hero h1 span {
        color: var(--gold);
    }

.hero-sub {
    font-size: 18px;
    max-width: 540px;
    color: rgba(246,244,238,0.85);
    margin-top: 18px;
    font-weight: 400;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

    .hero-meta .item .eyebrow {
        color: var(--gold-soft);
        margin-bottom: 6px;
    }

    .hero-meta .item .val {
        font-family: 'Anton',sans-serif;
        font-size: 26px;
        letter-spacing: 0.03em;
    }

.hero-cta {
    margin-top: 36px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-deep);
    text-decoration: none;
    font-family: 'JetBrains Mono',monospace;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 16px 32px;
    font-weight: 500;
    transition: transform .15s ease, background .15s ease;
}

    .btn-primary:hover {
        background: var(--gold-soft);
        transform: translateY(-1px);
    }

.btn-outline {
    border: 1px solid var(--cream);
    color: var(--cream);
    text-decoration: none;
    font-family: 'JetBrains Mono',monospace;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 16px 32px;
    font-weight: 500;
}

/* ============ MARKER BAR (signature element) ============ */
.marker-bar {
    background: var(--navy-deep);
    color: var(--cream);
    border-bottom: 4px solid var(--gold);
}

    .marker-bar .wrap {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

.marker {
    padding: 26px 28px;
    border-left: 1px solid var(--line);
    position: relative;
}

    .marker:first-child {
        border-left: none;
    }

    .marker .label {
        font-size: 15px;
        font-weight: 600;
    }

        .marker .label small {
            display: block;
            font-weight: 400;
            color: rgba(246,244,238,0.6);
            font-size: 13px;
            margin-top: 2px;
        }

/* ============ SECTIONS ============ */
section {
    padding: 96px 0;
}

.section-head {
    margin-bottom: 56px;
    max-width: 680px;
}

    .section-head .eyebrow {
        color: var(--steel);
        margin-bottom: 14px;
    }

    .section-head h2 {
        font-size: clamp(36px,5vw,56px);
        color: var(--navy);
    }

    .section-head p {
        font-size: 17px;
        color: #5a5f6b;
        margin-top: 16px;
    }

/* About / course */
.about {
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    font-size: 16px;
    color: #444b58;
    margin-bottom: 18px;
}

    .about-text p strong {
        color: var(--navy);
    }

.course-card {
    background: var(--navy);
    color: var(--cream);
    padding: 40px;
    position: relative;
}

    .course-card .eyebrow {
        color: var(--gold);
        margin-bottom: 10px;
    }

    .course-card h3 {
        font-size: 42px;
        margin-bottom: 18px;
    }

    .course-card .course-meta {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: 24px;
        border-top: 1px solid var(--line);
        padding-top: 24px;
    }

.course-meta .row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

    .course-meta .row .k {
        color: rgba(246,244,238,0.6);
        font-family: 'JetBrains Mono',monospace;
        font-size: 11px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .course-meta .row .v {
        font-weight: 600;
    }

/* Video */
.video-section {
    background: var(--navy-deep);
    padding: 80px 0;
}

.video-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* ratio 16:9 natif */
    border-radius: 4px;
    overflow: hidden;
}

    .video-wrap iframe {
        position: absolute;
        inset: 0; /* équivalent top/right/bottom/left: 0 */
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Categories */
.categories {
    background: var(--navy);
    color: var(--cream);
}

    .categories .section-head h2 {
        color: var(--cream);
    }

    .categories .section-head .eyebrow {
        color: var(--gold);
    }

    .categories .section-head p {
        color: rgba(246,244,238,0.65);
    }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 1px;
    background: var(--line);
}

.cat-card {
    background: var(--navy);
    padding: 32px 24px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background .2s ease;
}

    .cat-card:hover {
        background: var(--navy-deep);
    }

    .cat-card .num {
        font-family: 'JetBrains Mono',monospace;
        font-size: 12px;
        color: var(--gold);
        letter-spacing: 0.1em;
    }

    .cat-card h4 {
        font-size: 24px;
        margin-top: 18px;
    }

    .cat-card p {
        font-size: 13px;
        color: rgba(246,244,238,0.6);
        margin-top: 8px;
    }

/* Programme table*/
.programme-table-wrap {
    max-width: 680px; /* même largeur que .section-head */
    margin: 0 auto; /* centré horizontalement */
    width: 100%;
    overflow-x: auto; /* scroll horizontal sur petit écran si besoin */
}

.programme-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

    .programme-table th, .programme td {
        padding: 18px 20px;
        text-align: center;
        border-bottom: 1px solid var(--line-dark);
        border-right: 1px solid var(--line-dark);
    }

        .programme-table th:last-child,
        .programme-table td:last-child {
            border-right: none;
        }

    .programme-table thead th {
        font-family: 'JetBrains Mono',monospace;
        font-size: 11px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--steel);
        border-bottom: 2px solid var(--navy);
    }

/* Fees table */
.fees {
    background: var(--cream);
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

    .fees-table th, .fees-table td {
        padding: 18px 20px;
        text-align: center;
        border-bottom: 1px solid var(--line-dark);
    }

    .fees-table thead th {
        font-family: 'JetBrains Mono',monospace;
        font-size: 11px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--steel);
        border-bottom: 2px solid var(--navy);
    }

    .fees-table tbody tr:hover {
        background: rgba(212,168,71,0.08);
    }

    .fees-table td.price {
        font-family: 'Anton',sans-serif;
        font-size: 20px;
        color: var(--navy);
    }

    .fees-table td.cat {
        font-weight: 600;
        color: var(--navy);
    }

        .fees-table td.cat small {
            display: block;
            font-weight: 400;
            color: #7a7f8a;
            font-size: 12px;
            margin-top: 2px;
        }

.fees-note {
    margin-top: 28px;
    padding: 20px 24px;
    background: rgba(212,168,71,0.12);
    border-left: 3px solid var(--gold);
    font-size: 14px;
    color: #5a4a1f;
}

.fees-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 48px;
}

.programme-table th,
.programme-table td {
    text-align: center;
}

.boats-box {
    background: var(--navy);
    color: var(--cream);
    padding: 32px;
}

    .boats-box h4 {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .boats-box p {
        font-size: 14px;
        color: rgba(246,244,238,0.7);
        margin-bottom: 10px;
    }

    .boats-box .tag {
        display: inline-block;
        font-family: 'JetBrains Mono',monospace;
        font-size: 11px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--gold);
        border: 1px solid var(--gold);
        padding: 6px 12px;
        margin-top: 8px;
    }

/* Prize money */
.prizemoney {
    background: linear-gradient(180deg, rgba(7,21,39,0.85) 0%, rgba(7,21,39,0.7) 100%), url('/assets/images/prize-money.jpg?20260714') center/cover no-repeat;
    color: var(--cream);
    text-align: center;
}

    .prizemoney .wrap {
        max-width: 760px;
    }

    .prizemoney .eyebrow {
        color: var(--gold);
        justify-content: center;
        display: flex;
        gap: 14px;
        align-items: center;
        margin-bottom: 24px;
    }

        .prizemoney .eyebrow .rule {
            height: 1px;
            width: 64px;
            background: var(--gold);
        }

    .prizemoney h2 {
        font-size: clamp(40px,6vw,64px);
        color: var(--cream);
        margin-bottom: 24px;
    }

    .prizemoney p {
        font-size: 17px;
        color: rgba(246,244,238,0.8);
        max-width: 560px;
        margin: 0 auto 32px;
    }

.prize-categories {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

    .prize-categories div {
        padding: 24px 32px;
        font-family: 'JetBrains Mono',monospace;
        font-size: 12px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(246,244,238,0.7);
        border-left: 1px solid var(--line);
    }

        .prize-categories div:first-child {
            border-left: none;
        }

.prize-note {
    margin-top: 24px;
    font-size: 13px;
    color: var(--gold-soft);
    font-style: italic;
}

/* Partners */
.partners {
    background: var(--cream);
    text-align: center;
}

    .partners .section-head {
        margin: 0 auto 56px;
        text-align: center;
    }

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: stretch;
    margin: 0 auto;
}

.partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

    .partner small {
        font-family: 'JetBrains Mono',monospace;
        font-size: 11px;
        letter-spacing: 0.1em;
        color: #7a7f8a;
        text-transform: uppercase;
    }

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    background: white;
    border: 1px solid var(--line-dark);
    text-decoration: none;
    transition: all .2s ease;
    flex: 1 1 260px; /* toutes les cartes ont la même base de largeur */
    max-width: 320px;
}

    .partner-card:nth-child(3) {
        flex: 1 1 260px;
        max-width: 320px;
        margin: 0;
    }

    .partner-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(11,31,58,0.12);
    }

.partner-logo-wrapper {
    height: 120px; /* Hauteur fixe */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .partner-logo-wrapper img {
        max-width: 180px;
        max-height: 120px; /* Correspond à la hauteur du wrapper */
        width: auto;
        height: auto;
        object-fit: contain; /* Conserve les proportions */
    }

        /* Correction spécifique pour les SVG */
        .partner-logo-wrapper img[src$=".svg"] {
            width: 180px; /* Forcer la largeur */
            height: auto;
        }

.partner-info {
    text-align: center;
}

    .partner-info h4 {
        font-size: 18px;
        margin-bottom: 8px;
        color: var(--navy);
    }

.organiser-line {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--line-dark);
    font-size: 14px;
    color: #5a5f6b;
}

    .organiser-line strong {
        color: var(--navy);
    }

/* Gallery */
.gallery {
    background: var(--navy);
    padding: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 190px);  /* hauteur explicite sur chaque ligne */
    gap: 2px;
}

    .gallery-grid img {
        width: 100%;
        height: 100%;          /* remplit la cellule de la grille */
        object-fit: cover;
        object-position: center;
        display: block;        /* supprime l'espace inline sous l'image */
    }

    .gallery-grid .big {
        grid-row: 1 / 3;       /* s'étend sur les 2 lignes = 380px */
    }

/* Registration */
.registration {
    background: var(--gold);
    color: var(--navy-deep);
}

.reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.registration .eyebrow {
    color: rgba(11,31,58,0.6);
    margin-bottom: 14px;
}

.registration h2 {
    font-size: clamp(36px,5vw,56px);
}

.registration p {
    font-size: 17px;
    color: rgba(11,31,58,0.75);
    margin-top: 16px;
    max-width: 480px;
}

.registration .hero-cta {
    margin-top: 32px;
}

.registration .btn-primary {
    background: var(--navy);
    color: var(--cream);
}

    .registration .btn-primary:hover {
        background: var(--navy-deep);
    }

.registration .btn-outline {
    border-color: var(--navy-deep);
    color: var(--navy-deep);
}

.reg-steps {
    background: var(--cream);
    padding: 32px;
    border: 1px solid rgba(11,31,58,0.1);
}

    .reg-steps .step {
        display: flex;
        gap: 16px;
        padding: 16px 0;
        border-bottom: 1px solid var(--line-dark);
    }

        .reg-steps .step:last-child {
            border-bottom: none;
        }

        .reg-steps .step .n {
            font-family: 'Anton',sans-serif;
            font-size: 24px;
            color: var(--gold);
            min-width: 32px;
        }

        .reg-steps .step .t {
            font-weight: 600;
            color: var(--navy);
            font-size: 15px;
        }

        .reg-steps .step .d {
            font-size: 13px;
            color: #7a7f8a;
            margin-top: 2px;
        }

/* Footer */
footer {
    background: var(--navy-deep);
    color: rgba(246,244,238,0.7);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line);
}

.footer-brand .brand-text {
    color: var(--cream);
}

.footer-brand p {
    font-size: 14px;
    margin-top: 18px;
    color: rgba(246,244,238,0.5);
    max-width: 280px;
}

footer h5 {
    font-family: 'JetBrains Mono',monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 10px;
    font-size: 14px;
}

footer a {
    text-decoration: none;
    color: rgba(246,244,238,0.7);
    transition: color .15s ease;
}

    footer a:hover {
        color: var(--gold);
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 12px;
    color: rgba(246,244,238,0.4);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

/* Responsive */
@media (max-width: 1000px) {
    .about-grid, .reg-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .marker-bar .wrap {
        grid-template-columns: repeat(2,1fr);
    }

    .marker:nth-child(3) {
        border-left: none;
    }

    .cat-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .fees-cols {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 220px);
    }

    .gallery-grid .big {
        grid-row: auto;
        grid-column: 1 / 3;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 680px) {
    .wrap {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .topbar .contact-line {
        display: none;
    }

    .hero-meta {
        gap: 24px;
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 200px);
    }

        .gallery-grid .big {
            grid-column: auto;
        }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .prize-categories div {
        padding: 16px 18px;
        flex: 1 1 45%;
        border-left: none;
        border-top: 1px solid var(--line);
    }

    .programme-table-wrap {
        overflow-x: visible; /* plus de scroll, on laisse la table se compresser */
    }

    .programme-table {
        font-size: 11px;
    }

        .programme-table th, .programme-table td {
            padding: 8px 5px;
        }

        .programme-table thead th {
            font-size: 9px;
            letter-spacing: 0.05em;
        }
}
