/* =====================================================
   ATR - AFRICA TWIN RIDERS
   STYLE PRINCIPAL
   ===================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0b0b;
    color: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #c7a56a;
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1001;
    padding: 12px 16px;
    background: #ffffff;
    color: #111111;
    font-weight: 700;
    transform: translateY(calc(-100% - 16px));
}

.skip-link:focus-visible {
    transform: translateY(0);
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}


/* =====================================================
   HEADER
   ===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo span {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 3px;
}

.logo small {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: 2px;
    color: #aaa;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navigation a {
    font-size: 14px;
    font-weight: 600;
    color: #ddd;

    transition: 0.3s ease;
}

.navigation a:hover {
    color: #ffffff;
}

.navigation a:focus-visible {
    color: #ffffff;
}

.menu-button {
    display: none;

    border: none;
    background: transparent;
    color: white;

    font-size: 25px;
    cursor: pointer;
}

.menu-button:hover {
    color: #c7a56a;
}


/* =====================================================
   HERO
   ===================================================== */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.72) 45%,
            rgba(0, 0, 0, 0.35) 100%
        ),
        url("images/hero-ATR.jpg");

    background-size: cover;
    background-position: center;
}

.hero,
.about,
.activities,
.key-figures,
.events,
.member-adventures,
.ride-give,
.contact {
    scroll-margin-top: 90px;
}

.hero-content {
    padding-top: 80px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    margin-bottom: 25px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;

    color: #aaa;
}

.hero h1 {
    font-size: clamp(58px, 8.5vw, 126px);
    line-height: 0.86;
    letter-spacing: -5px;
    font-weight: 900;

    max-width: 800px;
}

.hero h1 span {
    color: #ffffff;
}

.hero-text {
    max-width: 580px;
    margin-top: 35px;

    color: #d0d0d0;
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    gap: 15px;

    margin-top: 40px;
}


/* =====================================================
   BOUTONS
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-family: inherit;

    min-height: 52px;
    padding: 0 28px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;

    border: 1px solid white;

    transition: all 0.3s ease;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    background: transparent;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: black;
}


/* =====================================================
   TITRES DE SECTIONS
   ===================================================== */

.section-heading {
    margin-bottom: 60px;
}

.section-heading.centered {
    text-align: center;
}

.section-label {
    margin-bottom: 15px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;

    color: #999;
}

.section-heading h2 {
    font-size: clamp(42px, 6vw, 75px);
    line-height: 0.95;
    letter-spacing: -2px;
}


/* =====================================================
   ABOUT
   ===================================================== */

.about {
    background: #ffffff;
    color: #111;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;

    max-width: 700px;

    font-size: 18px;
    color: #444;
}

.about-card {
    background: #111;
    color: white;

    padding: 40px;
}

.stat {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 0;

    border-bottom: 1px solid #333;
}

.stat:last-child {
    border-bottom: none;
}

.stat strong {
    font-size: 34px;
}

.stat span {
    font-size: 15px;
    color: #aaa;
}


/* =====================================================
   ACTIVITÉS
   ===================================================== */

.activities {
    background: #111;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.activity-card {
    min-height: 300px;

    padding: 30px;

    border: 1px solid #292929;

    transition: 0.3s ease;
}

.activity-card:hover {
    background: #ffffff;
    color: #111;

    transform: translateY(-8px);
}

.card-number {
    margin-bottom: 60px;

    font-size: 13px;
    color: #888;
}

.activity-card h3 {
    margin-bottom: 15px;

    font-size: 24px;
}

.activity-card p {
    color: #aaa;
    font-size: 15px;
}

.activity-card:hover p {
    color: #444;
}


/* =====================================================
   CHIFFRES CLÉS
   ===================================================== */

.key-figures {
    background: #c7a56a;
    color: #111;
}

.key-figures .container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: end;
}

.key-figures .section-label {
    color: #5f4b2d;
}

.key-figures-intro h2 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.95;
    letter-spacing: -2px;
}

.figures-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(17, 17, 17, 0.35);
}

.figure-item {
    min-height: 150px;
    padding: 25px 18px 0 0;
    border-right: 1px solid rgba(17, 17, 17, 0.35);
}

.figure-item:not(:first-child) {
    padding-left: 18px;
}

.figure-item:last-child {
    border-right: none;
}

.figure-item strong {
    display: block;
    font-size: clamp(35px, 4vw, 56px);
    line-height: 1;
}

.figure-item span {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =====================================================
   ÉVÉNEMENTS
   ===================================================== */

.events {
    background: #f5f5f5;
    color: #111;
}

.event-list {
    border-top: 1px solid #ccc;
}

.event-item {
    display: grid;
    grid-template-columns: 120px 1fr 150px;
    align-items: center;

    padding: 30px 0;

    border-bottom: 1px solid #ccc;
}

.event-date {
    display: flex;
    flex-direction: column;
}

.event-date strong {
    font-size: 45px;
    line-height: 1;
}

.event-date span {
    font-size: 11px;
    letter-spacing: 2px;
    color: #666;
}

.event-info h3 {
    margin-bottom: 5px;
    font-size: 24px;
}

.event-info p {
    color: #666;
    font-size: 17px;
}

.event-location {
    text-align: right;
    color: #666;
    font-size: 17px;
}

.event-date-pending strong {
    font-size: 24px;
}


/* =====================================================
   AVENTURES DES MEMBRES
   ===================================================== */

.member-adventures {
    background: #111;
}

.member-adventures .section-heading {
    max-width: 760px;
}

.member-adventures-intro {
    max-width: 680px;
    margin-top: 25px;
    color: #bbb;
    font-size: 18px;
}

.adventure-card {
    overflow: hidden;
    background: #f5f5f5;
    color: #111;
}

.adventure-feature {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
    min-height: 440px;
}

.adventure-portrait {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    background: radial-gradient(ellipse at 50% 35%, #414141, #171717 72%);
}

.adventure-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.adventure-feature-copy {
    padding: clamp(30px, 5vw, 64px);
    align-self: center;
}

.adventure-feature-copy .section-label,
.adventure-details .section-label {
    color: #806841;
}

.adventure-feature-copy h3 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    letter-spacing: 2px;
}

.adventure-organizer {
    margin: 10px 0 32px;
    color: #555;
    font-size: 15px;
}

.adventure-feature-copy h4 {
    max-width: 560px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
}

.adventure-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 34px;
    margin: 28px 0;
}

.adventure-stats div {
    min-width: 100px;
}

.adventure-stats dt {
    color: #777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.adventure-stats dd {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 700;
}

.adventure-feature-copy .btn-primary,
.interest-submit {
    background: #111;
    border-color: #111;
    color: #fff;
}

.adventure-interest-link,
.adventure-roadbook-link {
    margin-left: 8px;
    border-color: #111;
    color: #111;
}

.adventure-details {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 0.8fr);
    gap: clamp(35px, 6vw, 80px);
    padding: clamp(30px, 5vw, 64px);
}

.adventure-overview h4,
.interest-panel h4 {
    margin-bottom: 15px;
    font-size: 30px;
    line-height: 1.15;
}

.adventure-overview > p:not(.section-label),
.interest-panel > p:not(.section-label) {
    color: #555;
}

.adventure-stages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    margin: 28px 0;
    list-style: none;
    border-top: 1px solid #ccc;
}

.adventure-stages li {
    display: flex;
    gap: 14px;
    align-items: center;
    min-height: 55px;
    border-bottom: 1px solid #ccc;
    font-weight: 700;
}

.adventure-stages li span {
    color: #92784d;
    font-size: 12px;
}

.adventure-source-note,
.form-note {
    color: #666;
    font-size: 13px;
}

.interest-panel {
    padding: 28px;
    background: #fff;
}

.interest-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label,
.form-consent label {
    font-size: 13px;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #bbb;
    border-radius: 0;
    background: #fff;
    color: #111;
    font: inherit;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-consent input:focus-visible {
    outline: 3px solid #92784d;
    outline-offset: 2px;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #806841;
}

.interest-submit {
    justify-self: start;
    font: inherit;
}

.interest-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.form-note {
    margin-top: 18px;
}

.adventure-disclaimer {
    padding: 20px clamp(25px, 5vw, 64px);
    background: #e7dfd1;
    color: #302719;
    font-weight: 700;
}


/* =====================================================
   RIDE & GIVE
   ===================================================== */

.ride-give {
    min-height: 650px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(ellipse at 82% 45%, rgba(199, 165, 106, 0.18), transparent 42%),
        linear-gradient(115deg, #080808 0%, #151515 62%, #202020 100%);
}

.ride-give-content {
    max-width: 650px;
}

.ride-give h2 {
    font-size: clamp(58px, 8vw, 112px);
    line-height: 0.85;
    letter-spacing: -4px;
}

.ride-give h2 span {
    color: #aaa;
}

.ride-give-content > p:not(.section-label) {
    margin-top: 25px;
    font-size: 22px;
}

.ride-description {
    max-width: 600px;

    color: #bbb;
    font-size: 17px !important;
}

.ride-pillars {
    display: flex;
    gap: 25px;
    margin: 30px 0;
    color: #ddd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ride-pillars span {
    padding-left: 12px;
    border-left: 1px solid #c7a56a;
}


/* =====================================================
   CONTACT
   ===================================================== */

.contact {
    background: #ffffff;
    color: #111;
}

.contact .section-heading p:last-child {
    max-width: 600px;
    margin: 25px auto 0;

    color: #666;
}

.contact-intro {
    margin-top: 25px;
    color: #111 !important;
    font-size: 18px;
    font-weight: 700;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-unavailable {
    opacity: 0.62;
    cursor: not-allowed;
}

.contact-note {
    margin-top: 18px;
    color: #666;
    font-size: 13px;
    text-align: center;
}

.contact .btn-primary {
    background: #111;
    color: white;
    border-color: #111;
}

.contact .btn-primary:not(:disabled):hover {
    background: transparent;
    color: #111;
}

.contact .btn-secondary {
    color: #111;
    border-color: #111;
}

.contact .btn-secondary:not(:disabled):hover {
    background: #111;
    color: white;
}


/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    padding: 35px 0;

    background: #080808;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer strong {
    font-size: 25px;
    letter-spacing: 3px;
}

.footer p {
    color: #888;
    font-size: 13px;
}


/* =====================================================
   RESPONSIVE — TABLET
   ===================================================== */

@media (max-width: 900px) {

    .navigation {
        display: none;
    }

    .navigation.is-open {
        position: absolute;
        top: 80px;
        right: 5%;
        left: 5%;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 8px 20px;
        background: #111;
        border: 1px solid #292929;
    }

    .navigation.is-open a {
        padding: 14px 0;
        border-bottom: 1px solid #292929;
    }

    .navigation.is-open a:last-child {
        border-bottom: none;
    }

    .menu-button {
        display: block;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .adventure-feature {
        grid-template-columns: 1fr;
    }

    .adventure-portrait {
        min-height: 300px;
    }

    .adventure-details {
        grid-template-columns: 1fr;
    }

    .key-figures .container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

}


/* =====================================================
   RESPONSIVE — MOBILE
   ===================================================== */

@media (max-width: 700px) {

    html {
        scroll-padding-top: 80px;
    }

    .nav-container {
        height: 70px;
    }

    .navigation.is-open {
        top: 70px;
    }

    .hero {
        min-height: 90vh;
    }

    .hero h1 {
        font-size: 58px;
        letter-spacing: -3px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 48px;
    }

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

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

    .figure-item:nth-child(2) {
        border-right: none;
    }

    .figure-item:nth-child(n + 3) {
        border-top: 1px solid rgba(17, 17, 17, 0.35);
    }

    .figure-item:nth-child(3) {
        padding-left: 0;
    }

    .ride-pillars {
        flex-wrap: wrap;
        gap: 15px 22px;
    }

    .event-item {
        grid-template-columns: 86px minmax(0, 1fr);
        align-items: start;
        gap: 16px;
    }

    .event-date strong {
        font-size: 32px;
    }

    .event-date-pending strong {
        font-size: 20px;
    }

    .event-date span {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .event-info {
        grid-column: 2;
        min-width: 0;
    }

    .event-info h3 {
        font-size: 21px;
    }

    .event-info p,
    .event-location {
        font-size: 16px;
    }

    .event-location {
        display: block;
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        margin-top: 4px;
        text-align: left;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .adventure-stats {
        gap: 18px;
    }

    .adventure-stages,
    .interest-form {
        grid-template-columns: 1fr;
    }

    .form-field-full {
        grid-column: auto;
    }

    .interest-panel {
        padding: 22px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
