/* ══════════════════════════════════════════════
   VARIABLES & RESET
══════════════════════════════════════════════ */
:root {
    --orange: #FF6200;
    --black: #000000;
    --white: #ffffff;
    --font-display: "Rubik Doodle Shadow", system-ui;
    --font-title: "Fredoka One", system-ui;
    --font-body: "Space Grotesk", system-ui;
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════════
   HEADER / HERO
══════════════════════════════════════════════ */
.hero {
    width: 100%;
    min-height: 100vh;
    background-image: url('../Images/background.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

/* ── Nav ── */
.top-bar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 40px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.logo {
    width: 70px;
    height: 70px;
    background-image: url('../Images/logo.png');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.15);
}

.top-bar a {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    font-size: 28px;
}

/* ── Hero content ── */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    gap: 20px;
}

h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--orange);
    font-size: 22vw;
    line-height: 0.85;
    text-align: center;
}

h2 {
    margin: 0;
    font-family: var(--font-title);
    font-weight: 400;
    color: var(--white);
    font-size: 1.4vw;
    text-align: center;
    letter-spacing: 0.05em;
}

.btn-wrap {
    margin-top: 20px;
}

.btn-main {
    padding: 14px 40px;
    background-color: var(--white);
    border: none;
    border-radius: 50px;
    color: var(--orange);
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 1.8vw;
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s;
    white-space: nowrap;
}

.btn-main:hover {
    background-color: var(--orange);
    color: var(--white);
}

/* ══════════════════════════════════════════════
   SECTION TEXTE
══════════════════════════════════════════════ */
.text-section {
    width: 100%;
    background-color: var(--black);
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.text-image {
    flex: 0 0 46%;
    min-height: 600px;
    background-image: url('../images/sectiontexteimage.png');
    background-size: cover;
    background-position: center;
}

.text-content {
    flex: 1 1 54%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 60px 50px 60px 40px;
}

h3 {
    margin: 0;
    color: var(--orange);
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 1.5vw;
    line-height: 1.3;
}

.text-content p {
    margin: 0;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.2vw;
    line-height: 1.6;
    text-align: justify;
}

span {
    color: var(--orange);
    font-family: var(--font-body);
    font-weight: 700;
}

/* ══════════════════════════════════════════════
   IF YOU DREAM BANNER
══════════════════════════════════════════════ */
.dream-banner {
    width: 100%;
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 3.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 30px;
}

/* ══════════════════════════════════════════════
   STATS
══════════════════════════════════════════════ */
.stats {
    width: 100%;
    background-color: var(--black);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    padding: 40px 40px 70px;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 0 1 220px;
}

.stat-img-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 140px;
}

.stat-img-wrap img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

h4 {
    margin: 0;
    color: var(--white);
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 2.6vw;
    text-align: center;
}

h5 {
    margin: 0;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.4vw;
    text-align: center;
}

.stat-card p {
    margin: 0;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1vw;
    text-align: center;
    padding: 0;
}

/* ══════════════════════════════════════════════
   INGENUITY
══════════════════════════════════════════════ */
.ingenuity {
    width: 100%;
    min-height: 100vh;
    background-image: url('../images/ingenuitybackground.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 5% 80px;
    gap: 40px;
}

.rover {
    height: 50vh;
    width: auto;
    object-fit: contain;
    align-self: flex-end;
}

.ingenuity-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding-bottom: 10px;
}

.ingenuity-title {
    margin: 0;
    color: var(--white);
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 5vw;
    text-align: center;
    padding: 0;
}

.btn-read {
    padding: 14px 44px;
    background-color: var(--orange);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 2vw;
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s;
}

.btn-read:hover {
    background-color: var(--white);
    color: var(--orange);
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer {
    width: 100%;
    background-color: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 20px;
}

.footer-links {
    margin: 0;
    color: var(--orange);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.2vw;
    text-align: center;
    padding: 0;
}

.footer-sub {
    margin: 0;
    color: var(--orange);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9vw;
    text-align: center;
    padding: 0;
}

/* ══════════════════════════════════════════════
   MEDIA QUERIES — TABLETTE (≤ 1024px)
══════════════════════════════════════════════ */
@media (max-width: 1024px) {

    h1 { font-size: 26vw; }

    h2 { font-size: 2vw; }

    .btn-main { font-size: 3vw; }

    /* Section texte : empilement vertical */
    .text-section {
        flex-direction: column;
    }

    .text-image {
        flex: none;
        width: 100%;
        min-height: 380px;
    }

    .text-content {
        flex: none;
        padding: 40px 30px;
        gap: 18px;
    }

    h3 { font-size: 2.4vw; }

    .text-content p { font-size: 2vw; }

    .dream-banner { font-size: 4vw; }

    h4 { font-size: 4.5vw; }
    h5 { font-size: 2.5vw; }
    .stat-card p { font-size: 1.8vw; }

    .ingenuity {
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        padding-bottom: 60px;
    }

    .rover {
        height: 38vh;
        align-self: auto;
    }

    .ingenuity-title { font-size: 7vw; }

    .btn-read { font-size: 3.5vw; }

    .footer-links { font-size: 1.8vw; }
    .footer-sub { font-size: 1.4vw; }
}

/* ══════════════════════════════════════════════
   MEDIA QUERIES — MOBILE (≤ 600px)
══════════════════════════════════════════════ */
@media (max-width: 600px) {

    h1 { font-size: 22vw; }

    h2 {
        font-size: 3.2vw;
        letter-spacing: 0.02em;
    }

    .hero-content {
        padding: 100px 16px 50px;
        gap: 16px;
    }

    .top-bar {
        padding: 20px 20px;
        gap: 12px;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .top-bar a { font-size: 22px; }

    .btn-main {
        font-size: 5vw;
        padding: 12px 30px;
    }

    /* Section texte */
    .text-section { flex-direction: column; }

    .text-image {
        width: 100%;
        min-height: 260px;
    }

    .text-content {
        padding: 30px 20px;
        gap: 16px;
    }

    h3 { font-size: 4.5vw; }

    .text-content p { font-size: 3.8vw; }

    /* Dream banner */
    .dream-banner {
        font-size: 5.5vw;
        padding: 30px 20px;
    }

    /* Stats */
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 40px 20px 50px;
    }

    .stat-card { flex: none; width: 100%; }

    .stat-img-wrap { height: 100px; }

    .stat-img-wrap img { height: 80px; }

    h4 { font-size: 9vw; }
    h5 { font-size: 5vw; }
    .stat-card p { font-size: 3.5vw; }

    /* Ingenuity */
    .ingenuity {
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        padding: 20px 20px 50px;
    }

    .rover { height: 30vh; }

    .ingenuity-title { font-size: 10vw; }

    .btn-read {
        font-size: 5.5vw;
        padding: 12px 30px;
    }

    /* Footer */
    footer { padding: 20px 16px; }

    .footer-links { font-size: 2.8vw; }

    .footer-sub { font-size: 2.2vw; }
}
