body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #dbdbdb;
  color: #333;
}


/* --- guirlande --- */
.header-banner {
    background-image: url('https://media.istockphoto.com/photos/christmas-border-on-white-hanging-decorated-garland-picture-id1176602420?k=6&m=1176602420&s=612x612&w=0&h=2DUPTSDgr1RKVJZWO16u7pomFEoRWOkwHjlelqUf6Dk=');
    background-repeat: repeat-x;
    background-position: top;
    height: 80px; /* Ajuste la hauteur selon tes besoins */
    width: 100%;
    margin: 0;
    padding: 0;
}

/* --- fin guirlande --- */

/* --- HEADER --- */
header {
  background: #fff;
  padding: 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-image img {
	position: relative;
  z-index: 1;
  width: 60%;
  max-height: 300px;
  object-fit: cover;
}

/* --- NAVIGATION --- */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #fff;
}

nav ul li {
  position: relative;
  padding: 15px;
}

nav ul li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 1px;
  background-color: #999;
  transition: background-color 0.3s ease;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li:hover a {
  color: red;
}

nav ul li:hover::after {
  background-color: red;
}


.formulaire-csp {
  background-color: #e6f0ff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 51, 102, 0.2);
  border: 2px solid #3366cc;
}

.formulaire-csp h3 {
  text-align: center;
  color: #003366;
  font-size: 1.5em;
  margin-bottom: 20px;
}


/* --- PROJECTS --- */
/* Liens Vetathlon */
.vetathlon-titre {
  margin: 8px auto;          /* espace réduit entre chaque lien */
  font-size: 1.2em;          /* plus petit */
  text-align: center;
  font-family: 'Arial', sans-serif;
  display: block;            /* chaque lien prend toute la largeur → l’un sous l’autre */
  padding: 5px 0;            /* espace vertical */
  background: none;          /* pas de fond */
  border-radius: 0;
  box-shadow: none;
  transition: color 0.3s ease;
}

.vetathlon-titre a {
  text-decoration: none;
  color: #333;               /* gris foncé par défaut */
  font-weight: bold;
}

.vetathlon-titre a:hover {
  color: red;                /* texte rouge au survol */
}


.remerciement {
  max-width: 600px;
  margin: 0 auto;
  text-align: justify;
}

ul li a:hover {
    color: red;
}


#circuits {
  scroll-margin-top: 300px;
}

#accueil {
  scroll-margin-top: 300px; /* même hauteur que ton header */
}

#programme {
  scroll-margin-top: 200px;
}

#horaires {
  scroll-margin-top: 200px;
}

#tarifs {
  scroll-margin-top: 200px;
}

#resultats {
  scroll-margin-top: 200px;
}

.projects .project:first-child {
  margin-top: 10px;
  padding-top: 30px;
}

.project:first-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 10px auto;
    max-width: 800px;
}

/* Style pour chaque lien */
/* Style pour le conteneur des liens d'ancrage */
.project:first-child {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Réduction de l'espacement entre les liens */
    padding: 12px; /* Réduction du padding du conteneur */
    background: #f8f9fa;
    border-radius: 8px; /* Réduction de la bordure arrondie */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px auto;
    max-width: 600px; /* Réduction de la largeur maximale */
}

/* Style pour chaque lien */
.project:first-child p {
    margin: 0;
    padding: 0;
}

.project:first-child a {
    display: flex;
    align-items: center;
    padding: 10px 15px; /* Réduction du padding */
    background: #fff;
    border-radius: 6px; /* Réduction de la bordure arrondie */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Réduction de l'ombre */
    color: #333;
    text-decoration: none;
    font-weight: 500; /* Réduction de l'épaisseur de la police */
    font-size: 0.95em; /* Réduction de la taille de la police */
    transition: all 0.3s ease;
    border-left: 3px solid #ff6b6b; /* Réduction de la bordure gauche */
}

/* Espacement pour l'icône */
.project:first-child a i {
    margin-right: 8px; /* Réduction de la marge droite de l'icône */
    font-size: 1em; /* Réduction de la taille de l'icône */
    width: 16px; /* Réduction de la largeur de l'icône */
}

/* Effet de survol */
.project:first-child a:hover {
    background: #f0f4f8;
    transform: translateX(3px); /* Réduction du déplacement */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Réduction de l'ombre au survol */
}

/* Icônes pour chaque lien */
.project:first-child a[href="#programme"]::before {
    content: "📅";
    margin-right: 8px;
    font-size: 1em;
}

.project:first-child a[href="#horaires"]::before {
    content: "⏰";
    margin-right: 8px;
    font-size: 1em;
}

.project:first-child a[href="#tarifs"]::before {
    content: "💰";
    margin-right: 8px;
    font-size: 1em;
}

/* Couleurs de bordure différentes pour chaque lien */
.project:first-child a[href="#programme"] {
    border-left: 3px solid #ff6b6b;
}

.project:first-child a[href="#horaires"] {
    border-left: 3px solid #4ecdc4;
}

.project:first-child a[href="#tarifs"] {
    border-left: 3px solid #ffe66d;
}




.project {
  background: #fff;
  padding: 20px;
  margin: 10px auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.project:not(.partenaires) {
  max-width: 800px;   /* largeur réduite */
  margin-top: 15px;  /* centré horizontalement */
}


.project img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin: 0 auto;
}

.project h2 {
  margin-top: 10px;
  color: red;
}

.project p {
  padding: 0 20px;
}

.project a {
  background: transparent;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

/* --- FOOTER --- */
footer {
  background: #eee;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

.parcours-list {
  text-align: left;
  max-width: 600px;
  margin: 20px auto;
  padding-left: 20px;
  line-height: 1.6;
}

.parcours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background-color: #dbdbdb;
  padding: 20px;
  border-radius: 8px;
  max-width: 800px;
  margin: 20px auto;
  font-weight: 500;
}

.parcours-grid div {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  text-align: left;
}

.parcours-header {
  grid-column: span 3;
  background-color: #fff;
  color: #d32f2f;
  font-weight: bold;
  text-align: center;
  justify-self: center;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Bloc partenaires */
.project.partenaires {
  background-color: #fff;
  color: #333;
  padding: 20px;
  margin: 5px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.project.partenaires h2 {
  color: red;
  margin-bottom: 10px;
}

.project.partenaires p {
  padding: 0 20px;
  margin-bottom: 20px;
}

.project.partenaires img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* --- LOOKER STUDIO --- */
.looker-report {
  max-width: 1000px;
  margin: 20px auto;
}

.looker-report iframe {
  display: block;
  margin: 0 auto; /* centre horizontalement */
}

.looker-report iframe {
    width: 80%;       /* garde la largeur responsive */
    height: 600px;     /* ou la hauteur que tu veux, ex. 600px */
    min-height: 500px; /* sécurité pour éviter qu’il soit trop petit */
}



/* tableau */
/* Règles générales pour les tableaux (toutes tailles d'écran) */
.table-wrapper {
    width: 100%;
    max-width: 100%; /* Prend toute la largeur disponible */
    margin: 0 auto;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    overflow-x: auto; /* Active le défilement horizontal si nécessaire */
    display: block;
    box-sizing: border-box; /* Inclut le padding et la bordure dans la largeur */
}

.ffvelo-table {
    width: 100%;
    border-collapse: collapse;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    min-width: 100%;
    margin: 0 auto;
}

.ffvelo-table th[colspan="2"] {
    text-align: center;
}

.ffvelo-table th,
.ffvelo-table td {
    border: 1px solid #999;
    padding: 8px;
    text-align: left;
}

.ffvelo-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #c40000;
}

/* PHOTOS */
.projet_photo {
  padding: 20px;              /* même padding que .project */
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 10px auto;          /* identique à .project */
}

.projet_photo h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.album-card {
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.album-card:hover {
  transform: scale(1.03);
}

.album-card img {
  width: 100%;
  height: 180px; /* tu peux ajuster ici la hauteur */
  object-fit: cover;
}

.album-card h3 {
  padding: 0.8rem;
  font-size: 1.1rem;
  text-align: center;
  background-color: #f0f0f0;
}
/* PHOTOS FIN */

/* DEBUT SPONSOR */
/* Bloc sponsors */
.sponsors {
  background-color: #eee;
  padding: 30px 20px;
  border-top: 2px solid #ccc;
}

.sponsors h2 {
  text-align: center;
  color: #d32f2f;
  margin-bottom: 20px;
  font-size: 1.4em;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 15px;
  justify-items: center;
  align-items: center;
  margin-top: 20px;
}

.sponsors-grid img {
  width: 190px;
  height: 88px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.sponsors-grid img:hover {
  transform: scale(1.05);
}


.bureau-members {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
}

.bureau-members h2 {
  margin-top: 10px;
  color: red;
  text-align: center;
}

.president-card {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.president-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur PC */
    gap: 20px;
    margin: 0 auto;
}

.member-card {
    text-align: center;
    background: #e9e9e9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.member-card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}



/* fin tableau */



/* MOBILE */
@media (max-width: 768px) {
    /* Grille des albums */
    body.page-photos .albums-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Cartes des albums */
    body.page-photos .album-card {
        margin: 0;
        padding: 5px;
        text-align: center;
    }

    body.page-photos .album-card img {
        width: 100%;
        height: auto;
        border-radius: 6px;
    }

    body.page-photos .album-card h3 {
        font-size: 0.9em;
        margin-top: 5px;
    }

    /* Conteneur des projets */
    .projects {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 20px 10px;
    }

    /* Grille des parcours */
    .parcours-grid {
        grid-template-columns: 1fr;
    }

    .parcours-header {
        grid-column: 1 / -1;
    }

    /* Premier projet */
    .projects .project:first-child {
        margin-top: 0;
    }

    /* Style général des projets */
    .project {
    width: calc(100% - 20px); /* Prend toute la largeur disponible moins les marges */
    margin: 10px auto;
    padding: 10px;
    text-align: center;
    box-sizing: border-box; /* Inclut le padding et la bordure dans la largeur */
}

    /* Images dans les projets */
    .project img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Projets partenaires */
    .project.partenaires {
        background-color: #fff;
        color: #333;
        margin: 10px 5px;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        text-align: center;
    }

    .project.partenaires img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Marges pour les sections */
    #circuits {
        scroll-margin-top: 500px;
    }

    #accueil {
        scroll-margin-top: 500px;
    }
	
	#horaires {
        scroll-margin-top: 150px;
    }
	
	#tarifs {
        scroll-margin-top: 150px;
    }
	
	#programme {
        scroll-margin-top: 150px;
    }

    /* Paragraphes dans les projets */
    .project p {
        margin-bottom: 20px;
    }

    /* Liens dans les projets */
    .project a {
        padding: 12px 20px;
    }

    /* Iframe du rapport */
    .looker-report iframe {
        width: 100%;
        height: 300px;
    }

    /* Images des albums */
    .album-card img {
        height: auto;
        object-fit: contain;
    }

    /* Section programme */
    #programme {
        padding: 10px;
        margin: 10px;
        scroll-margin-top: 200px;
    }

    #programme h2 {
        font-size: 1.5rem;
    }

    #programme p {
        font-size: 1em;
        text-align: center;
    }

    /* Liste des parcours */
    .parcours-list {
        padding-left: 10px;
        line-height: 1.4;
        font-size: 0.95em;
    }

    .parcours-list ul {
        padding: 0;
    }

    .parcours-list li {
        margin-bottom: 8px;
        padding: 8px;
        border-bottom: 1px solid #ddd;
    }

    .parcours-list li:last-child {
        border-bottom: none;
    }

    /* Conteneur du tableau */
    /* Conteneur du tableau en mode mobile */
.table-wrapper {
    width: calc(100% - 20px); /* Prend toute la largeur disponible moins les marges */
    max-width: 100%;
    margin: 0 10px 20px; /* Ajoute une marge latérale pour éviter le débordement */
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    overflow-x: auto;
    display: block;
    box-sizing: border-box;
}

/* Tableau en mode mobile */
.ffvelo-table {
    width: 100%;
    min-width: 280px; /* Largeur minimale pour éviter que le tableau ne soit trop étroit */
    border-collapse: collapse;
    margin: 0 auto;
}

/* Cellules du tableau en mode mobile */
.ffvelo-table th,
.ffvelo-table td {
    border: 1px solid #777;
    padding: 6px;
    font-size: 0.85em;
    text-align: left;
    word-break: break-word; /* Permet le retour à la ligne si nécessaire */
}

/* Titre du tableau en mode mobile */
.ffvelo-table th[colspan="2"] {
    text-align: center;
}

.bureau-members {
        padding: 10px;
    }

     .members-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }

    .president-card {
        max-width: 100%;
    }

}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}


/* MOBILE FIN */







/* FIN SPONSORS */