@charset "utf-8";

/* ---------------------------------------------------------
   FONTS
--------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Rubik+Glitch&display=swap');

/* ---------------------------------------------------------
   GLOBAL
--------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 230px;
}

body {
    margin: 0;
    padding-top: 220px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #333333;
}

/* Images responsives */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: radial-gradient(ellipse at center, #f8ffe8 0%, #e3f5ab 33%, #b7df2d 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-sizing: border-box;
    z-index: 1000;
}

.logo-club {
    height: 100%;
    width: auto;
}

.header h1 {
    font-family: "Rubik", cursive;
    font-size: 80px;
    color: #777;
    text-shadow: 0 0 10px red;
    margin: 0;
    line-height: 1;
}

.reseaux-icones {
    display: flex;
    gap: 20px;
}

.sociaux-link {
    font-size: 40px;
    color: #555;
    transition: 0.3s;
}

.sociaux-link:hover {
    transform: scale(1.2);
    color: #3b5998;
}

/* Burger caché par défaut */
.burger {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: #1f4f7b;
    cursor: pointer;
}

/* ---------------------------------------------------------
   SUBNAV + NAV
--------------------------------------------------------- */
.subnav {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 900;
}

.subnav a {
    color: #1f4f7b;
    font-size: 18px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 15px;
    transition: 0.3s;
}

.subnav a:hover {
    background: #33ccff;
    border: 2px solid #fedd19;
    color: #ec4d25;
}

.nav {
    position: fixed;
    top: 160px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #e9f7ff;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    z-index: 850;
}

.nav a {
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 6px;
    transition: 0.3s;
}

.nav a:hover {
    background: #33ccff;
    border: 2px solid #fedd19;
    color: #ec4d25;
}

/* ---------------------------------------------------------
   MENU MOBILE
--------------------------------------------------------- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1200;
    flex-wrap: wrap;
    gap: 6px;
}

.mobile-menu a {
    padding: 6px 10px;
    background: #e9f7ff;
    border-radius: 6px;
    font-size: 14px;
    color: #1f4f7b;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.mobile-menu a:hover {
    background: #33ccff;
    color: #ec4d25;
}

/* ---------------------------------------------------------
   (… tout ton CSS global reste identique ici)
--------------------------------------------------------- */

/*------------------------------- */
/* SECTIONS */
/* ------------------------------ */

/* Sections centrées */
.section {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.section h2 {
    text-align: center;
    color: #1f4f7b;
    margin-bottom: 24px;
    font-size: 40px;
}

.section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #1f4f7b;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}
/* ------------------------------ */
/* ACCUEIL */
/* ------------------------------ */

#accueil {
    position: relative;
}

.countdown-wrapper {
    position: absolute;
    bottom: 40px;               /* distance depuis le bas de l'image */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;             /* passe devant l’image */
    width: 100%;
    display: flex;
    justify-content: center;
}

.countdown {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-box {
    background: #0066cc;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 28px;
    min-width: 100px;
    animation: clignote 1.2s infinite alternate ease-in-out;
}

.countdown-box span {
    display: block;
    font-size: 14px;
    opacity: 0.8;
}

.accueil {
    height: 100%; 
    display: flex;
    justify-content: center;   /* centre horizontalement */
    align-items: center;       /* centre verticalement */
    padding-top: 5px;
  }

/*---------------------------------- */
/* INFORMATIONS ET COMPTE A REBOURS -*/
/* --------------------------------- */

#informations {
    position: relative;
}

.card.info-bg {
    padding-top: 120px; /* laisse la place au compteur */
}

/* Carte avec image de fond + texte superposé */

.card.info-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px; /* Ajustable */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /*Empile les <p> verticalement*/
    justify-content: flex-end; /*Place les <p> en bas*/
    align-items: flex-start; /* Alighne les <p> à gauche*/
    /*padding: 30px;*/
    padding-top: 180px;
}

/* Texte par-dessus */

#edition {
    position: relative;
    z-index: 2;
    color: white;
    font-weight: bold;
    font-size: 30px;
    margin: 4px 0;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
}

.card.info-bg p {
    position: relative;
    z-index: 2;
    color: white;
    font-weight: bold;
    font-size: 20px;
    margin: 4px 0;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
}


/* ------------------------------ */
/* BIKE & RUN DESCRIPTION */
/* ------------------------------ */

.bike-and-run {
  max-width: 1100px;
  margin: 32px auto;
  padding: 24px;
  background-color: #f7f7f7;
  border-radius: 8px;
}

.bike-and-run h2 {
  font-size: 35px;
  color: #1f4f7b;
  margin-bottom: 16px;
}

.bike-and-run p {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.6;
  text-align: center;
}

/* ---------------------------------------------------------
   BOUTON FLOTANT RETOUR EN HAUT
--------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #0066cc;
    color: white;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background: #004a99;
}

/* Alignement propre des deux liens */
.inscription-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

/* Style spécifique pour le pictogramme PDF */
.pdf-link {
    font-weight: bold;
}

/* ---------------------------------------------------------
   TIMELINE CENTRÉE — horaire à gauche, événement à droite
--------------------------------------------------------- */

.timeline {
    position: relative;
    width: 80%;
    margin: 0 auto;
    padding: 40px 0;
}

/* Ligne verticale au centre */
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: #0066cc;
    transform: translateX(-50%);
}

/* Un élément de la timeline */
.timeline-item {
    position: relative;
    width: 100%;
    margin: 35px 0;
    min-height: 30px;
}

/* Le point sur la ligne */
.timeline-item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    background: #0066cc;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Horaire à gauche */
.timeline .time {
    position: absolute;
    right: 55%;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    font-weight: bold;
    color: #0066cc;
    font-size: 18px;
    width: 40%;
    padding-right: 15px;
}

/* Événement à droite */
.timeline .event {
    position: absolute;
    left: 55%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    font-size: 17px;
    width: 40%;
    padding-left: 15px;
}

/* ------------------------------ */
/* PARCOURS */
/* ------------------------------ */

.parcours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /*gap: 10px;*/
  align-items: start;
}

.parcours-grid figure {
    display: flex;
    flex-direction: column;
    padding: 6px 0 6px 0;
}

.parcours-grid figcaption {
    margin: 15px 0 15px 0; /* pousse le texte vers le bas */
}

.parcours-grid h3 {
  margin: 0 0 6px 0;
  font-size: 22px;
  color: #1f4f7b;
}

/* Images */
.parcours-grid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-bottom: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Effet hover */
.parcours-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Légendes */
.parcours-grid figcaption p {
  margin: 4px 0 0 0;
  font-size: 16px;
  color: #444;
  line-height: 1.4;
}
.media-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 16px;
  color: #1f4f7b;
  text-decoration: none;
  font-weight: bold;
}

.media-link:hover {
  text-decoration: underline;
  color: #163a5a;
}

/* ------------------------------ */
/* PHOTOS-VIDEOS / RESULTATS */
/* ------------------------------ */

/* Cartes cliquables pour les éditions */
.media-cards,
.results-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.media-card,
.results-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    border: 1px solid #33ccff;
    text-align: center;
}

.media-card:hover,
.results-card:hover {
    background: #33ccff;
    color: #ec4d25;
    font-weight: bold;
    transition: 0.3s ease;

}

.media-icon,
.results-icon {
    display: block;
    margin-top: 10px;
    font-size: 20px;
    opacity: 0.8;
}

/* ------------------------------ */
/* BUTTONS — VERSION NETTOYÉE */
/* ------------------------------ */

.card {
    text-align: center;
}

.card h3 {
    font-size: 26px;
    color: #1f4f7b;
    margin-bottom: 14px;
    text-align: center;
    font-weight: 700;
}

.card p {
    text-align: left;
}

/* Bouton principal (S’inscrire en ligne) */
.button {
    display: inline-block;          /* bouton compact */
    margin: 20px auto 0;            /* centré horizontalement */
    padding: 12px 26px;             /* largeur juste au-dessus du texte */
    background-color: #4CAF50;         /* bleu principal */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: 0.3s ease;
    cursor: pointer;
}

/* Hover global */
.button:hover {
    background-color: #33ccff;      /* bleu clair */
    color: #ff0000;                 /* rouge du logo */
    transform: scale(1.05);
}

/* Boutons secondaires (PDF, Licence, Règlement) */
.button.secondary {
    background: #f0f0f0;
    color: black;
    border: 2px solid #33ccff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: normal;
    text-align: center;
    white-space: nowrap;
}

/* Hover secondaire */
.button.secondary:hover {
    background: #33ccff;
    color: #ec4d25;
    font-weight: bold;
    transform: scale(1.05);
}

/* Alignement horizontal des boutons de règlement */
.reglement-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* sécurité mobile */
    margin-top: 15px;
}

/* Alignement horizontal des boutons d’inscription sur place */
.inscription-box {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/*----------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.site-footer {
    background: #1f4f7b;
    color: white;
    padding: 30px 15px;
    text-align: center;
    margin-top: 40px;
}

/* Liens */
.footer-link {
    color: #cce7ff;
    text-decoration: none;
    display: block;
    margin: 3px 0;
}

.footer-link:hover {
    text-decoration: underline;
}

/* PARTENAIRES */
.footer-partners {
    margin-bottom: 15px;
}

.footer-partners h4 {
    margin-bottom: 10px;
    font-size: 25px;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.partners-logos img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.partners-logos img:hover {
    transform: scale(1.08);
}

/* COLONNES */
.footer-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 10px;
}

.footer-block h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.footer-block p {
    margin: 3px 0;
}

/* ----- COOKIES DANS LE FOOTER ----- */

.cookies {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.85;
}

.cookies a {
    color: #cce7ff;
    text-decoration: underline;
}

.cookies a:hover {
    color: white;
}

/* COPYRIGHT */
.footer-bottom {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/*Animation de clignotement*/
@keyframes clignote {
    from { opacity: 1; }
    to   { opacity: 0.4; }
}

/* ------------------------------ */
/* MESSAGE CONFIRMATION FORMULAIRE CONTACT */
/* ------------------------------ */

.confirmation {
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.confirmation-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.btn-retour {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

/* ------------------------------ */
/* RESPONSIVE TABLETTE */
/* ------------------------------ */

@media (min-width: 480px) and (max-width: 959px) {

    .header h1 {
        font-size: 36px;
        text-align: center;
    }

    .parcours-grid,
    .media-cards,
    .results-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        width: 95%;
    }

    .timeline::before,
    .timeline-item::before {
        left: 0;
        transform: none;
    }

    .timeline .time,
    .timeline .event {
        position: relative;
        width: 100%;
        left: 0;
        top: 0;
        transform: none;
        text-align: left;
        margin-left: 25px;
        margin-bottom: 5px;
        padding: 0;
    }
}

/* ------------------------------- */
/* RESPONSIVE SMARTPHONE et IPHONE */
/* ------------------------------- */

@media (max-width: 479px) {

    body {
        padding-top: 80px;
    }

    .header {
        height: 70px;
        padding: 5px 10px;      /* réduit pour iPhone */
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .header h1 {
        font-size: 20px;
        margin: 0;
        flex: 1;                /* prend l’espace disponible */
        white-space: nowrap;    /* évite le retour à la ligne */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo-club {
        display: none;
    }

    .reseaux-icones {
        display: none;
    }

    .burger {
        display: block;
        font-size: 26px;
        padding: 0;             /* SUPPRESSION du padding qui cassait tout */
        margin-left: 10px;
        margin-right: 0;
    }

    .nav,
    .subnav {
        display: none;
    }

    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        z-index: 950; /* au lieu de 1200 */
        display: none;
        flex-wrap: wrap;
        gap: 6px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Accueil collé au header par défaut  */ 
    .image-accueil {
        margin-top: 0;  /* IMPORTANT : on laisse le JS gérer le scroll */
    }

    /*Reduire la taille des boutons secondaires */ 
    .button.secondary,
    .event-button.secondary,
    .pdf-link {
        font-size: 13px;
        padding: 8px 10px;
        width: 100%;        /* pour qu’ils soient plus lisibles */
        box-sizing: border-box;
    }

    /* REDUIRE la TAILLE DU COMPTE AREBOURS  */
    .countdown {
        transform: scale(0.90);
        transform-origin: top center;
    }

    .countdown-box {
        font-size: 14px;
        padding: 6px 8px;
        min-width: 55px;
    }

    .countdown-box span {
        font-size: 10px;
    }

    /* Quand le menu mobile est ouvert */
    body.menu-open #accueil {
        margin-top: 115px; /* hauteur du menu mobile */
    }

    .mobile-menu a {
        font-size: 13px;
        padding: 5px 8px;
    }

    .section h2 {
        font-size: 26px;
    }

    .parcours-grid,
    .media-cards,
    .results-cards {
        grid-template-columns: 1fr;
    }

    .timeline {
        width: 95%;
    }

    .timeline::before,
    .timeline-item::before {
        display: none;
    }

    .timeline .time,
    .timeline .event {
        position: relative;
        width: 100%;
        left: 0;
        top: 0;
        transform: none;
        text-align: left;
        margin-left: 25px;
        margin-bottom: 5px;
        padding: 0;
    }

    .footer-partners h4 {
        font-size: 15px;
}
    .footer-sections {
        gap: 10px;
}
}





