.Page_Index {
  font-family: "Segoe UI Emoji", "Segoe UI", Arial, sans-serif;
}

/* logos du haut */
.header {
    text-align: center;
    padding: 10px;
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 10px 0;
}

/* toutes les images */
.logos img {
  max-height: 130px;
  width: auto;
}

/* conteneur relatif */
.logo-facebook {
  position: relative;
  display: inline-block;
}

.logos a:hover img {
  transform: scale(1.05);
  transition: 0.2s;
}

/* image principale */
.imgCCS {
  display: block;
  max-height: 130px;
}

/* icône Facebook superposée */
.icone-fb {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: none;
  padding: 3px;
}

.icone-fb:hover {
  transform: scale(1.1);
  transition: 0.2s;
}

.horloge a {
    display: block;
    padding: 5px 5px;
	font-size: 20px;
	font-style: bold;
    color: green;
    text-decoration: none;
	max-width: 200px;
	margin: 0 auto;
    white-space: nowrap;
}

/* titres */
h1, h2, h3 {
    font-family: Arial, sans-serif;
	text-align: center;	
    color: #003366;
    padding: 0px Auto;	
}

/* Page Responsables */
.Page_Responsable {
  font-family: "Segoe UI Emoji", "Segoe UI", Arial, sans-serif;
}

/* conteneur centré */
table {
  width: 95%;
  margin: 20px auto;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* en-tête */
th {
  background: #2E7D32;
  color: white;
  padding: 10px;
  text-align: left;
}

/* cellules */
td {
  padding: 4px 10px;
  border-bottom: 1px solid #eee;
}

/* lignes alternées */
tr:nth-child(even) {
  background: #f9f9f9;
}

/* survol */
tr:hover {
  background: #e8f5e9;
}

/* email plus discret */
td:nth-child(3) {
  font-size: 0.9em;
  color: #555;
}

/* Page Commissions */
.Page_Commissions {
  font-family: "Segoe UI Emoji", "Segoe UI", Arial, sans-serif;
}

/* sections */
.section {
  width: 90%;
  margin: 20px auto;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* sous-blocs */
.bloc {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 3px solid #2E7D32;
}

/* texte */
p {
  margin: 5px 0 10px 0;
}

/* bouton retour */
.retour {
  text-align: center;
  margin: 30px;
}

.retour a {
  background: #2E7D32;
  color: white;
  padding: 10px 15px;
  border-radius: 20px;
  text-decoration: none;
}

.retour a:hover {
  background: #1b5e20;
}

/* Page Archives */
.liste-archives {
  max-width: 800px;
  margin: 20px auto;
  list-style: none;
  padding: 0;
}

.liste-archives li {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.liste-archives a {
  text-decoration: none;
  color: #333;
}

.liste-archives a:hover {
  text-decoration: underline;
}

/* Liste actu */
.liste-actus {
    list-style: none;
    height: 220px;      /* hauteur de la fenêtre */
    overflow-y: auto;   /* active l'ascenseur */
    border: 1px solid #ccc;
    padding: 0px;	
}

.actus li {
	display: grid;
	cursor: pointer;
	grid-template-columns: 30px 100px 1fr 120px;
	align-items: center;
	margin-top: 2px;
	margin-bottom: 2px;
	padding: 2px 0;
	border-bottom: 1px solid #eee;
	font-family: Arial, sans-serif;
	transition: background-color 0.2s;
}

.actus li:hover {
	background-color: #f2f6ff;	
}

.ico {
    text-align: center;
}

.date {
    font-weight: bold;
    color: #444;
}

.titre a {
    text-decoration: none;
    color: #222;
}

.titre a:hover {
    text-decoration: underline;
}

.news {
    background: red;
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 4px;
}

.actions a {
    text-decoration: none;
    font-size: 1.0rem;
    margin-left: 10px;
}

.telecharger {
    text-decoration: none;
    background: #0033cc;
    color: white;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 0.9rem;
	text-align: center;
	margin: 2px 2px;
}

.telecharger:hover {
    background: #001f80;
}

summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    color: #0033cc;
}

/* zone principale centrée */
.contenu section {
    background: #f5f5f5;
    padding: 5px;
    margin: 5px auto;
    border-radius: 5px;
    max-width: 900px;
}

.contenu {
    max-width: 1000px;
    margin: auto;
    padding: 5px;
}

.bienvenue p {
	font-family: Arial,"Times New Roman",  sans-serif;
	font-style: italic;
	font-weight: bold;
	font-size: 2rem;
	color: blue;
    text-align: center;	
}

.sortie p {
	font-family: Arial, "Times New Roman", sans-serif;
	font-weight: bold;
	font-size: 1.4rem;
	color: red;
    text-align: center;	
	padding: 5px auto;
	margin: 0 auto;
}

/* pied de page */
footer {
    text-align: center;
    padding: 20px;
}

/* vélo animé */
.velo {
    position: fixed;
    right: 0;
    bottom: 0;
}

/* menu principal */
.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu>ul {
    display: flex;
    justify-content: center;
    background: #333;
    flex-wrap: wrap;
}

.menu li {
    position: relative;
}

.menu a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.menu>ul>li:nth-child(1) {
    background: #65537A;
}

.menu>ul>li:nth-child(2) {
    background: #729EBF;
}

.menu>ul>li:nth-child(3) {
    background: #F6AD1A;
}

.menu>ul>li:nth-child(4) {
    background: #33CC33;
}

.menu>ul>li:nth-child(5) {
    background: #FF3300;
}

.menu>ul>li:nth-child(6) {
    background: #729EBF;
}

.menu>ul>li:nth-child(7) {
    background: #66A3FF;
}

.menu>ul>li:nth-child(8) {
    background: #336600;
}

.menu li:hover {
    background: #555;
}

/* sous menu */
.menu ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #444;
    min-width: 200px;
}

.menu ul ul li {
    width: 100%;
}

.menu li:hover ul {
    display: block;
}

.menu ul ul a {
    padding: 10px;
}

/* Page Evènement en image */
.Page_Evenimage {
  font-family: "Segoe UI Emoji", "Segoe UI", Arial, sans-serif;
}

#liste-sorties {
  list-style: none;
	padding-left: 0;
  height: 180px;      /* hauteur de la fenêtre */
  overflow-y: auto;   /* active l'ascenseur */
	border: 1px solid #ccc;
	max-width: 800px;
	margin: auto;
  padding: 2px;
  justify-content: center;
	scrollbar-width: thin;
}

#liste-sorties li {
  display: grid;
	cursor: pointer;
  grid-template-columns: 30px 100px 1fr 120px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
  font-family: Arial, sans-serif;
	transition: background-color 0.2s;
	max-width: 800px;
}

#liste-sorties li:hover {
	background-color: #f2f6ff;	
}

.btn-voir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #a2cca4, #71a374);
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  margin-left: auto;
}

.btn-voir:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.btn-voir .icon {
  font-size: 24px;
}

#galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

#galerie img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#galerie img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
}

#overlay img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

/* boutons */
#prev, #next {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#prev { left: 20px; }
#next { right: 20px; }

#fermer {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

#controls {
  position: absolute;
  bottom: 20px;
}

#controls button {
  margin: 5px;
  padding: 8px 12px;
}

.navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px;
}

.navigation a {
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 20px;
  background: #2E7D32;
  color: white;
}

.navigation a:hover {
  background: #1b5e20;
}

/* Page Vélo Contact */
.Page_Velocontact {
  font-family: "Segoe UI Emoji", "Segoe UI", Arial, sans-serif;
}

.description {
  width: 80%;
  margin: auto;
  text-align: center;
}

.mail {
  text-align: center;
  margin-bottom: 20px;
}

/* liste scrollable */
.liste-journaux {
  width: 300px;
  height: 150px; /* ≈ 4 éléments */
  overflow-y: auto;
  margin: 20px auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
}

/* item */
.journal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.titre {
  cursor: pointer;
  flex: 1;
}

.titre:hover {
  text-decoration: underline;
}

/* bouton */
.btn-pdf {
  text-decoration: none;
  font-size: 16px;
  padding: 5px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #a2cca4, #71a374);
  color: white;
}

.btn-pdf:hover {
  background: #1b5e20;
}

/* ton style existant */
.dernier {
  background: #e8f5e9;
  font-weight: bold;
}

.journal-item:hover {
  background: #f0f0f0;
}

/* viewer PDF */
.viewer {
  width: 90%;
  height: 600px;
  margin: 20px auto;
}

#pdf-viewer {
  width: 100%;
  height: 100%;
  border: none;
}

/* Page Ventes */
.Page_Ventes {
  font-family: "Segoe UI Emoji", "Segoe UI", Arial, sans-serif;
  max-width: 80%;
  margin: 0 auto; /* 🔥 centre horizontalement */
}

.descriptionventes {
  width: 900px;
  margin: auto;
  text-align: center;
}

.mailventes {
  text-align: center;
  margin-bottom: 20px;
}

.liste-ventes {
  max-height: 400px; /* ≈ 10 lignes */
  overflow-y: auto;
  width: 600px;
  margin: 20px auto;
  border-radius: 10px;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.liste-ventes::-webkit-scrollbar {
  width: 10px;
}

.liste-ventes::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}

.liste-ventes::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.liste-ventes li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border-bottom: 1px solid #eee;
  height: 40px; /* 🔥 hauteur d'une ligne */
}

/* Icône fichier */
.ico {
  flex-shrink: 0;
}

/* Date */
.date {
  font-size: 0.9rem;
  color: #555;
  min-width: 90px;       /* 🔥 aligne toutes les dates */
}

/* Titre */
.titrevente {
  flex: 1;               /* 🔥 prend toute la place dispo */
}

/* Bloc actions (bouton à droite) */
.actionsvente {
  margin-left: auto;     /* pousse à droite */
}

/* Bouton 👓 */
.voirvente {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #a2cca4, #71a374);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
}

.voirvente:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #8bbf8d, #5f8f61);
}

/* PAGE ClubsDuCantal */

/* conteneur */
.clubs {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  text-align: center;
}

/* comité */
.comite {
  background: white;
  padding: 15px;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo-comite {
  display: block;
  margin: 10px auto;   /* ← centre horizontalement */  
   max-height: 120px;
  max-width: 100%;
}

.logo-club {
  display: block;
  margin: 10px auto;   /* ← centre horizontalement */
  max-height: 80px;
  max-width: 100%;
}

/* grille */
.liste-clubs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* carte */
.club {
  background: white;
  padding: 15px;
  border-radius: 12px;
  text-align: center;   /* ← ici */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* actions */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: stretch; /* important */
}

.btn {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  border-radius: 50px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn:hover {
  opacity: 0.8;
}

.tel { background: #4CAF50; }
.mail { background: #2196F3; }
.web { background: #FF9800; }

/* Adaptation Téléphone */
@media (orientation: landscape) {
	#overlay img {
		max-height: 90%;
	}
}

@media (max-width: 768px) {

    .menu>ul {
        flex-direction: column;
    }

    .menu ul ul {
        position: static;
    }

    .menu li {
        width: 100%;
    }

    .menu a {
        padding: 12px;
    }
	 
	.logos {
    flex-direction: column;
	}

    .logos img {
        height: 70px;
    }
	
    .bienvenue p {
        font-size: 1.5rem;
    }

    .sortie p {
        font-size: 1.2rem;
    }
	
	table {
		font-size: 12px;
	}

	td, th {
		padding: 6px;
	}
	
	#galerie {
		grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
	}

	#galerie img {
		height: 120px;
	}

	#overlay img {
		max-width: 100%;
		max-height: 70%;
	}

	#prev, #next {
		width: 60px;
		height: 60px;
		display: flex;
		justify-content: center;
		align-items: center;
		opacity: 0.15;
	}

	#controls button {
		font-size: 14px;
		padding: 10px;
	}

	#fermer {
		font-size: 28px;
	}
}


