 /*
==============================================================================
10 KM ARLES

This file defines:
- colours
- typography
- layout
- navigation
- sections
- mobile adaptation

==============================================================================
*/

.emoji-marker {
    background: transparent;
    border: none;
    font-size: 30px;
    text-align: center;
    filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.35));
}

/* ==========================================================
   DESIGN SYSTEM
   ========================================================== */


:root {

    /*
    Main colours
    */

    --rhone-blue: #24527A;
    --provence-ochre: #C98B3C;
    --olive-green: #647A35;

    --warm-white: #FAF8F2;
    --light-grey: #EEEEEE;

    --dark-text: #333333;
    --white: #FFFFFF;
    
    --acra: #48b0cbff;


    /*
    Mobile adaptation

    Color of the big title at the top of each secondary page
    (Course, Parcours, Inscription, Infos, Contact) - e.g.
    */

    --page-title-color: var(--white);


    /*
    Common sizes
    */

    --content-width: 1000px;

}


/* ==========================================================
   GENERAL SETTINGS
   ========================================================== */


* {

    /*
    Makes width calculations easier
    */

    box-sizing: border-box;

}



body {

    margin: 0;

    font-family:
        "Open Sans",
        Arial,
        sans-serif;

    background-color:
        var(--acra);

    color:
        var(--dark-text);

    line-height:
        1.6;

}


h1,
h2,
h3 {

    margin-top: 0;
    
    font-family:
        "Montserrat",
        Arial,
        sans-serif;

}


a {

    color:
        var(--rhone-blue);

    text-decoration:
        none;

}





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


header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 40px;

    background-color: var(--white);

    border-bottom: 1px solid var(--light-grey);

    /*
    Keeps navigation visible while scrolling
    */

    position: fixed;

    top: 0;
    
    left: 0;

    right: 0;

    z-index: 1000;

}



.logo {

    display: flex;

    align-items: center;

    gap: 15px;

}

.logo img {

    height: 65px;

}

.site-title {

    font-family: "Montserrat", sans-serif;

    font-size: 1.4rem;

    font-weight: bold;

    color: var(--rhone-blue);

}



nav {

    display: flex;

    justify-content: center;

    gap: 25px;

}



nav a {

    color:
        var(--dark-text);

    font-size: 0.9rem;

}


nav a:hover {

    color:
        var(--provence-ochre);

    text-decoration:
        underline;

}



.language {

    font-size: 0.9rem;

    color:
        var(--olive-green);

}

main {
    padding-top: 100px;
}


/*
------------------------------------------------------------
Mobile adaptation

menu button (☰) on the right side of the header.
------------------------------------------------------------
*/

.header-right {

    display: flex;

    align-items: center;

    gap: 15px;

}


/*
------------------------------------------------------------
Mobile adaptation. Hamburger menu button (☰).
------------------------------------------------------------
*/

.nav-toggle {

    display: none;

    background: none;

    border: none;

    font-size: 1.6rem;

    line-height: 1;

    color: var(--rhone-blue);

    cursor: pointer;

    padding: 4px 8px;

}

@media (max-width: 768px) {

    header {
        padding: 12px 15px;
    }

    .logo img {
        height: 50px;
    }

    .site-title {
        font-size: 1rem;
    }

    nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

}


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


.hero {
    max-width:
        var(--content-width);

    margin:
        40px auto;

    padding:
        20px;

    box-sizing:
        border-box;
}


.hero-image {
    width: 100%;
    max-width: 700px;

    margin: 0 auto;

    background-image: url("../images/hero-arles.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    aspect-ratio: 3243 / 4586;
}

/* ==========================================================
   INFORMATION CARDS
   ========================================================== */


.information {

    max-width:
        var(--content-width);

    margin:
        40px auto;

    display:
        flex;

    gap:
        20px;

    padding:
        20px;

}



.card {

    flex: 1;

    background-color:
        var(--white);

    padding:
        25px;

    text-align:
        center;

    border-radius:
        10px;

    box-shadow:
        0 3px 10px rgba(0,0,0,0.08);

}

/* ==========================================================
   RACE INFORMATION CARDS
   ========================================================== */


.card-icon {

    font-size:
        2.2rem;

    margin-bottom:
        15px;

}



.card h3 {

    color:
        var(--rhone-blue);

    margin-bottom:
        10px;

}



.card p {

    margin:
        0;

}


/* ==========================================================
   HISTORY SECTION
   ========================================================== */


.history {

    max-width:
        800px;

    margin:
        60px auto;

    padding:
        20px;

}



.history h2 {

    color:
        var(--rhone-blue);

}





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


footer {

    margin-top:
        80px;

    padding:
        30px;

    text-align:
        center;

    background-color:
        var(--rhone-blue);

    color:
        var(--white);

}


/* ==========================================================
   COUNTDOWN
   ========================================================== */


.countdown {

    max-width:
        400px;

    margin:
        10px auto;

    padding:
        10px 10px;
    
    transform: translateY(-30px);

    background-color:
        var(--rhone-blue);

    color:
        var(--white);

    text-align:
        center;

    border-radius:
        12px;

}



.countdown h2 {

    font-size:
        1.5rem;

    font-weight:
        normal;

    margin-bottom:
        15px;

}



.countdown-container {

    display:
        flex;

    justify-content:
        center;

    gap:
        5px;

}



.countdown-box {

    background-color:
        rgba(255,255,255,0.12);

    width:
        100px;

    padding:
        10px;

    border-radius:
        10px;

}



.countdown-box span {

    display:
        block;

    font-size:
        2.8rem;

    font-weight:
        bold;

}



.countdown-box small {

    font-size:
        1rem;

    text-transform:
        uppercase;

}


/* ==========================================================
   SECONDARY PAGES
   ========================================================== */


.page-header {

    max-width:
        850px;

    margin:
        60px auto 40px;

    padding:
        20px;

    text-align:
        center;

}



.page-header h1 {

    color:
        var(--page-title-color);

    font-size:
        2.8rem;

}



.page-header p {

    font-size:
        1.15rem;

}


.content-section {

    max-width:
        850px;

    margin:
        40px auto;

    padding:
        30px;

    background-color:
        var(--white);

    border-radius:
        10px;

    box-shadow:
        0 3px 10px rgba(0,0,0,0.06);

}



.content-section h2 {

    color:
        var(--provence-ochre);

}

/* ==========================================================
   MOBILE VERSION
   ========================================================== */


@media (max-width: 700px) {


    /*
    --------------------------------------------------------
    Added : Version 0.2 - Mobile adaptation

    On phones the header stays on one row (logo left,
    menu button + language right). The old version stacked
    the whole header - including all 6 nav links - in a
    column, which made it very tall while sticky.
    --------------------------------------------------------
    */

    header {

        padding:
            15px 20px;

    }


    /*
    --------------------------------------------------------
    Mobile adaptation

    Reveals the hamburger button, hidden on desktop.
    --------------------------------------------------------
    */

    .nav-toggle {

        display:
            inline-block;

    }


    /*
    --------------------------------------------------------
    Added : Version 0.2 - Mobile adaptation

    The nav is hidden by default on phones and appears as a
    dropdown panel below the header once nav.js adds the
    "nav-open" class (hamburger button tapped). "header" uses
    position: sticky, which also works as an anchor for this
    absolutely positioned dropdown.
    --------------------------------------------------------
    */

    nav {

        display:
            none;

        position:
            absolute;

        top:
            100%;

        left:
            0;

        right:
            0;

        flex-direction:
            column;

        gap:
            0;

        background-color:
            var(--white);

        box-shadow:
            0 8px 12px rgba(0,0,0,0.1);

        border-bottom:
            1px solid var(--light-grey);

    }

    nav.nav-open {

        display:
            flex;

    }

    nav a {

        padding:
            14px 20px;

        text-align:
            center;

        border-top:
            1px solid var(--light-grey);

    }


    /*
    Note: countdown sizing for phones lives in one place -
    see "MOBILE - COUNTDOWN" further down in this file.
    (Two separate rules used to fight over this and gave an
    inconsistent result - now consolidated.)
    */


    .information {

        flex-direction:
            column;

    }



    .hero h1 {

        font-size:
            2.2rem;

    }


}

@media (max-width: 900px) {

    .map-layout {

        flex-direction: column;

        align-items: stretch;

    }


    .map-container {

        width: 100%;

    }


    #map {

        width: 100%;

    }

}

/* ==========================================================
   COURSE MAP PLACEHOLDER
   ========================================================== */


.map-placeholder {

    height:
        400px;


    background-color:
        #e8e4dc;


    display:
        flex;


    align-items:
        center;


    justify-content:
        center;


    color:
        #666;


    border-radius:
        10px;


    font-size:
        1.2rem;

}

/* ==========================================================
   INTERACTIVE MAP
   ========================================================== */


#map {

    height:
        500px;


    width:
        100%;


    border-radius:
        10px;

}
/* ==========================================================
   PARCOURS LAYOUT
   ========================================================== */

.map-layout {

    display: flex;

    gap: 30px;

    align-items: flex-start;

    max-width: 1200px;

    margin: 40px auto;

    padding: 0 20px;

}

.map-container {

    flex: 1.3;
    min-width: 0; 

}

.runner-guide {

    flex: 1;

    background: white;

    padding: 25px;

    border-radius: 10px;

    box-shadow: 0 3px 10px rgba(0,0,0,0.06);

    position: sticky;

    top: 110px;

}

.runner-guide h2 {

    color: var(--provence-ochre);

    margin-top: 0;

}

.runner-guide ul {

    list-style: none;

    padding-left: 0;

}

.runner-guide li {

    margin-bottom: 12px;

    font-size: 1rem;

}

.runner-guide p {

    margin-top: 25px;

    font-size: 0.95rem;

    color: #666;

}

/* ==========================================================
   PARCOURS PAGE - VERSION 0.6
   Additional styling
   ========================================================== */


/* ----------------------------------------------------------
   Page introduction
   ---------------------------------------------------------- */


.page-intro {

    font-size: 1.25rem;

    color: var(--provence-ochre);

    margin-bottom: 25px;

}



.page-quote {

    max-width: 750px;

    margin: 0 auto;

    padding: 25px 35px;

    background-color: var(--white);

    border-left: 5px solid var(--provence-ochre);

    border-radius: 10px;

    font-style: italic;

    line-height: 1.8;

    box-shadow:
        0 3px 10px rgba(0,0,0,0.06);

}


/* ----------------------------------------------------------
   Map title
   ---------------------------------------------------------- */


.map-container h2 {

    color: var(--provence-ochre);

    margin-bottom: 20px;

}


/* ----------------------------------------------------------
   GPX download button
   ---------------------------------------------------------- */

.gpx-download {

    display: inline-block;

    margin-top: 15px;

    padding: 12px 25px;

    background: var(--rhone-blue);

    color: var(--white);

    border-radius: 8px;

    font-size: 1rem;

    font-weight: bold;

    transition: 0.3s;

}

.gpx-download:hover {

    background: var(--provence-ochre);

}


/* ----------------------------------------------------------
   Runner guide refinement
   ---------------------------------------------------------- */


.runner-guide {

    background-color:
        var(--white);

    border-left:
        4px solid var(--olive-green);

}



.runner-guide h2 {

    color:
        var(--rhone-blue);

}



.runner-guide li {

    padding-left:
        5px;

}





/* ----------------------------------------------------------
   Course information table
   ---------------------------------------------------------- */


.course-table {

    width:
        100%;

    border-collapse:
        collapse;

    margin-top:
        20px;

}



.course-table td {

    padding:
        15px;

    border-bottom:
        1px solid var(--light-grey);

}



.course-table td:first-child {

    font-weight:
        bold;

    color:
        var(--rhone-blue);

    width:
        35%;

}



.course-table tr:last-child td {

    border-bottom:
        none;

}



/* ----------------------------------------------------------
   Downloads
   ---------------------------------------------------------- */


.download-list {

    display:
        flex;

    gap:
        20px;

}



.download-item {

    flex:
        1;

    background-color:
        var(--warm-white);

    padding:
        20px;

    border-radius:
        10px;

    border:
        1px solid var(--light-grey);

}



.download-item h3 {

    color:
        var(--rhone-blue);

    font-size:
        1.1rem;

}


/* ----------------------------------------------------------
   Elevation placeholder
   ---------------------------------------------------------- */


.elevation-placeholder {

    height:
        250px;

    background-color:
        var(--light-grey);

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    border-radius:
        10px;

    color:
        #666;

}


/* ==========================================================
   ELEVATION PROFILE
   ========================================================== */


#elevationChart {

    max-height:
        350px;

}



/* ----------------------------------------------------------
   Runner message
   ---------------------------------------------------------- */


.runner-message {

    background-color:
        #f4efe5;

    border-left:
        5px solid var(--provence-ochre);

}





/* ----------------------------------------------------------
   Mobile adaptation
   ---------------------------------------------------------- */


@media (max-width: 768px) {

    #map {

        height: 400px;

    }

}

/* ==========================================================
   INSCRIPTION
   ========================================================== */

.fees-table {

    width: 100%;

    border-collapse: collapse;

}

.fees-table td {

    padding: 14px 0;

    border-bottom: 1px solid #e5e5e5;

}

.check-list {

    list-style: none;

    padding-left: 0;

}

.check-list li {

    margin-bottom: 12px;

    padding-left: 10px;

}

.registration-box {

    max-width: 850px;

    margin: 50px auto;

    padding: 40px;

    text-align: center;

    background: white;

    border-radius: 10px;

    box-shadow: 0 3px 10px rgba(0,0,0,0.06);

}

.register-button {

    display: inline-block;

    margin-top: 20px;

    padding: 16px 40px;

    background: var(--rhone-blue);

    color: white;

    border-radius: 8px;

    font-size: 1.15rem;

    font-weight: bold;

    transition: 0.3s;

}

.register-button:hover {

    background: var(--provence-ochre);

}

.small-note {

    margin-top: 25px;

    color: #666;

    font-size: 0.9rem;

}

/* ==========================================================
   MOBILE - COUNTDOWN

   Adjusted : Version 0.2 - Mobile adaptation

   The three boxes (jours / heures / minutes) stay in a
   single row on phones - they just shrink to fit, rather
   than stacking vertically. This keeps the countdown compact
   near the top of the homepage instead of taking up the
   whole screen.
   ========================================================== */

@media (max-width: 700px) {

    .countdown {

        max-width: 95%;
        padding: 10px;

    }

    .countdown h2 {

        font-size: 1.2rem;

    }

    .countdown-container {

        flex-wrap: nowrap;
        gap: 6px;

    }

    .countdown-box {

        flex: 1;
        width: auto;
        min-width: 0;
        padding: 8px 4px;

    }

    .countdown-box span {

        font-size: 2rem;

    }

    .countdown-box small {

        font-size: 0.75rem;

    }

}


/* ----------------------------------------------------------
   Extra-narrow phones: shrink a little further so the
   three boxes never feel cramped.
   ---------------------------------------------------------- */

@media (max-width: 380px) {

    .countdown-box span {

        font-size: 1.6rem;

    }

    .countdown-box small {

        font-size: 0.65rem;

    }

}

/* =========================================================
HOMEPAGE INTRODUCTION
========================================================= */

.homepage-intro {
text-align: center;
padding: 28px 20px 24px;
max-width: 1000px;
margin: 0 auto;
}

.homepage-intro p {
margin: 0 auto;
color: #ffffff;
font-family: 'Open Sans', sans-serif;
font-size: 1.3rem;
line-height: 1.6;
font-weight: 500;
}

/* =========================================================
HOMEPAGE - MOBILE SPACING
========================================================= */

@media (max-width: 600px) {

.homepage-intro {
    padding: 10px 16px 2px;
    margin-bottom: 0;
}

.homepage-intro p {
        font-size: 1.05rem;
        line-height: 1.5;
        margin: 0;
    }

.homepage-intro + .hero {
    margin-top: 4px;
    padding-top: 4px;
}


}

/* =========================================================
PAGE INTRODUCTIONS
Homepage + internal pages
========================================================= */

.homepage-intro,
.page-intro {
text-align: center;
max-width: 1000px;
margin: 0 auto;
padding: 28px 20px 24px;
box-sizing: border-box;
}

.homepage-intro p,
.page-intro p {
margin: 0 auto;
color: #ffffff;
font-family: 'Open Sans', sans-serif;
font-size: 1.3rem;
line-height: 1.6;
font-weight: 500;
}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 600px) {

.homepage-intro,
.page-intro {
    padding: 10px 16px 8px;
}

.homepage-intro p,
.page-intro p {
    font-size: 1.05rem;
    line-height: 1.5;
}


}

/* =========================================================
PAGE INTRO - SPACING BEFORE FOLLOWING CONTENT
========================================================= */

.page-intro {
padding-bottom: 8px;
margin-bottom: 0;
}

@media (max-width: 600px) {

.page-intro {
    padding-bottom: 4px;
}


}
==============================================================================
End of stylesheet

Keep this file simple.
A future maintainer should understand it immediately.

============================================================================== 



