body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
}

header {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

table {
  margin: 0;
  padding: 0;
  border-spacing: 0;
  border-collapse: collapse;
}

tr, td {
  border: none;
  padding: 0;
  margin: 0;
}

td.fond-rouge {
  vertical-align: top;
  text-align: left;
  padding: 0; /* Pour éviter les petits décalages */
}

.td-bordure-ext {
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid white;
}

img {
  display: block;
}

.bandeau-img {
  width: 100%;
  height: 35vh;
  object-fit: cover;
  object-position: top;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

.enteteArt {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.container {
    margin-left: auto;
    margin-right: auto;
}

/* ----------- MENU HORIZONTAL ----------- */
.top-menu {
  width: 100%;
  background: #fff;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  min-height: 60px;
  position: relative;
  z-index: 100;
}

.top-menu .logo img {
  display: block;
  max-height: 50px;
}

.top-menu ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  width: auto;
}

.top-menu > ul > li {
  position: relative;
}

/* Titre du menu principal */
.top-menu > ul > li > span {
  cursor: pointer;
  padding: 1.2em 1.4em;
  font-weight: bold;
  color: #CC3333;
  display: block;
  transition: background 0.2s;
  user-select: none;
}

.top-menu .sponsor {
  position: relative;
  left: -20px; /* ajuste la valeur selon le décalage voulu */
}

/* Effet au focus/click */
.top-menu > ul > li > span:focus,
.top-menu > ul > li > span.active {
  background: #f4f4f4;
}

/* Sous-menus cachés par défaut */
.top-menu ul ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 10;
  flex-direction: column;
  padding: 0;
}

/* Déploiement au survol du menu principal */
.top-menu > ul > li:hover > ul {
  display: flex;
}

/* Liens du sous-menu */
.top-menu ul ul li a {
  color: #CC3333;
  padding: 1em;
  display: block;
  background: none;
  text-decoration: none;
  transition: background 0.2s;
}
.top-menu ul ul li a:hover {
  background: #f4f4f4;
}

.top-menu .sponsor {
  margin-left: auto;
  padding-left: 1em;
}

.burger {
  display: none;
}

.partners-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  justify-items: center;
  align-items: center;
}

.partner-download {
  grid-column: 1 / -1;
  text-align: center;
  background: #f0f0f0;
  padding: 1rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
}

.partner-item {
  width: 100%;
}

.partner-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  .top-menu ul {
    flex-wrap: wrap;
  }
  .top-menu > ul > li > span {
    padding: 1em 0.8em;
  }
  .top-menu .logo img,
  .top-menu .sponsor img {
    max-height: 38px;
  }
}
@media (max-width: 768px) {
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 40px;
    cursor: pointer;
    margin: 0 0 0 1em;
  }
  .burger span {
    display: block;
    width: 32px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 4px 0;
    transition: all 0.3s;
  }
  .top-menu {
    flex-direction: column;
    align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
    min-height: unset;
    padding: 0.4em 1em 0.4em 0.2em; /* espace à droite */
    position: relative;
    overflow: visible; /* sécurité */
  }
  .top-menu ul {
    display: none; /* CACHÉ PAR DÉFAUT */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 99;
  }
  .top-menu.open > ul {
    display: flex;
  }
  .top-menu > ul > li:hover > ul {
    display: none; /* Désactive le hover sur mobile */
  }
  .top-menu > ul > li.open > ul {
    display: flex; /* Mais permet l'ouverture au clic si tu remets le JS pour mobile */
  }
  .top-menu > ul > li > span {
    padding: 0.7em 1em;
  }
  .top-menu ul ul {
    position: static;
    box-shadow: none;
  }
  .top-menu .sponsor {
    margin-left: 0;
    padding-left: 0;
    margin-top: 0.5em;
  }
}
@media (max-width: 768px) {
  .top-menu {
    position: relative; /* important pour le positionnement absolu du sponsor */
  }
  .sponsor {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    height: auto; /* n'impose PAS de hauteur ici */
    z-index: 111;
  }
  .sponsor-img {
    width: 32vw;      /* Ajuste la taille selon ton besoin */
    max-width: 100px; /* Limite la largeur si besoin */
    height: auto;
    margin: 8px 8px 0 0;  /* espace du bord */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    background: #fff;
    display: block;
  }
  .logo {
    display: none;
  }
  .rightactu2,
  .right2 {
    display: none;
  }
  .leftactu2 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1 1 100%;
  }
}
.top-menu.open .burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.top-menu.open .burger span:nth-child(2) {
  opacity: 0;
}
.top-menu.open .burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 1. Contenir la largeur sans scroll horizontal */
.page-layout {
  max-width: 100vw;
  overflow-x: hidden;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-sizing: border-box;
}

/* Assurer que les images restent dans leur conteneur */
.page-layout img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 2. Répartition des colonnes */
.actualites {
  flex: 2;
  min-width: 0; /* permet au contenu de rétrécir si nécessaire */
}

.rightactu2 {
  flex: 0 1 200px; /* largeur max de 200px, mais s’adapte si l’espace manque */
  min-width: 0;
}

.sponsors {
  flex: 0 1 200px; /* largeur max de 200px, mais s’adapte si l’espace manque */
  min-width: 0;
}

/* Zone visible qui masque le débordement */
.sponsors-carousel {
  height: 2580px; /* Hauteur de la zone visible du carrousel */
  overflow: hidden;
  position: relative;
}

/* Piste contenant les logos */
.sponsors-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  animation: scrollUp 60s linear infinite; /* J'ai mis 40s, ajustez si besoin */
}

/* L'animation qui défile en continu */
@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    /* Défile exactement sur 50% de la hauteur de la piste,
    ce qui correspond à la hauteur d'une série de logos. */
    transform: translateY(-50%);
  }
}

/* Styles pour les logos */
.sponsors-track a {
  flex: 0 0 auto;
  width: 100%;
  height: calc(100vh / 8); /* Le chiffre est le nombre de logos visibles. Ajustez pour réduire l'espace. */
  display: flex;
  justify-content: center;
  align-items: center;
}

.sponsors-track img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Pause au survol (optionnel) */
.sponsors-track:hover {
  animation-play-state: paused;
}

@media (min-width: 769px) {
  .actualites { flex: 8; }    /* 3 parts pour Actualités */
  .rightactu2 { flex: 1; }    /* 1 part pour la colonne centrale */
  .sponsors   { flex: 1; }    /* 1 part pour Sponsors */
}

@media (max-width: 768px) {
  /* Cacher les colonnes non essentielles */
  .rightactu2,
  .sponsors {
    display: none;
  }

  /* Les actus prennent toute la largeur */
  .actualites {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ----------- AUTRES STYLES ----------- */
/* ***** fin de ton fichier CSS ***** */

main {
  padding: 1em;
  box-sizing: border-box;
  margin: 0 auto;
}

/* adapt for mobile */
@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
  }
}

/*
 * Conteneur principal qui va simuler la <marquee>.
 * Il définit la zone visible (192x80px) et cache tout ce qui dépasse.
 */
.birthday-scroller {
    width: 192px;
    height: 80px;
    overflow: hidden;
    position: relative; /* Nécessaire pour l'animation */
}

/*
 * Le contenu qui va défiler à l'intérieur du conteneur.
 * On lui applique l'animation de défilement.
 */
.birthday-scroller-content {
    position: absolute;
    width: 100%;
    /* Animation : nom, durée, type de progression, répétition */
    /* scrollAmount=1 est très lent, donc une longue durée (ex: 25s) est appropriée. Ajustez si besoin. */
    animation: scroll-up 25s linear infinite;
}

/*
 * Met en pause l'animation lorsque la souris est sur le conteneur.
 * C'est l'équivalent de onMouseOver=this.stop() et onMouseOut=this.start()
 */
.birthday-scroller:hover .birthday-scroller-content {
    animation-play-state: paused;
}

/*
 * Définition de l'animation (les "keyframes").
 * Fait bouger le contenu de juste en dessous à juste au-dessus du conteneur.
 */
@keyframes scroll-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(-100%);
    }
}

/*
 * Styles pour remplacer les attributs de tableau obsolètes.
 * 'border-collapse' remplace 'cellspacing="0"'.
 */
.birthday-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

/*
 * Remplace l'attribut cellpadding="0" sur les cellules.
 */
.birthday-table td {
    padding: 0;
}

.bg-grey {
    background-color: #dfdfdf;
}

/*
 * Classe pour remplacer l'attribut height="5"
 */
.h-5px {
    height: 5px;
}

.textCaps3 {
    font-size: 7pt;
    color: #000000;
}

.textCaps4 {
    font-size: 7pt;
    color: #ff0000;
}

.textCaps5 {
    font-size: 7pt;
    color: #0000ff;}

.lienMenu100 {
  font-size: 0.7rem; /* Ou 12px */
  color: #000000;
  text-decoration: none;
}

.lienMenu100:hover {
  color: #ff3300;
}

/* L'image prend toute la largeur de son conteneur */
.anniversaires .full-width-img {
  width: 100%;
  height: auto; /* Pour conserver les proportions de l'image */
  margin-bottom: 5px; /* Ajustez cette valeur pour réduire ou augmenter l'espace */
}

/* Le conteneur des liens devient un conteneur flex */
.anniversaires .anniv-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 0; /* Assurez-vous que cette marge est bien à 0 */
}

/* Les liens (img + texte) sont également en flex pour être sur une ligne */
.anniversaires .lienMenu100 {
  display: flex;
  align-items: center;
  text-decoration: none; /* Enlève le soulignement si nécessaire */
  color: black; /* Couleur du texte */
}

/* Gère la taille des images dans les liens */
.anniversaires .lienMenu100 img {
  width: 25px; /* Adapte la taille de l'image si besoin */
  margin-right: 5px; /* Ajoute un espace entre l'image et le texte */
}

.anniversaires .anniv-links .lienMenu100 {
  display: flex; /* Active Flexbox pour chaque lien */
  align-items: center; /* Centre verticalement l'image et le texte */
  text-decoration: none;
  color: black;
  gap: 5px; /* Ajoute un petit espace entre l'image et le texte à l'intérieur du lien */
}

/* Vous pouvez aussi cibler l'image directement si nécessaire */
.anniversaires .anniv-links .lienMenu100 img {
  width: 25px; /* Taille de l'image */
}

.h-5px {
    height: 5px;
}

.text-center {
    text-align: center;
}

.bg-grey {
    background-color: #dfdfdf; /* ou la couleur de fond que vous souhaitez */
}

/* Ajoutez également la classe pour le tableau intérieur */
.birthday-inner-table {
    width: 100%;
    border-collapse: collapse;
}

/* Le reste du code CSS pour le défilement et la mise en page est déjà bon */

.birthday-outer-table {
    width: 100%;
    border-collapse: collapse; /* Remplace cellSpacing */
}

/* Styles pour le conteneur du défilement */
.birthday-scroller {
    width: 100%;
    height: 80px;
    overflow: hidden; /* Cache le contenu qui dépasse */
    position: relative;
}

.black {
    border-style: solid;  
    border-width: 1px;  
    border-color: black;
    border-collapse: collapse; /* Assure que les bordures du tableau se comportent correctement */
}

.fond-rouge {
  background-color: #FF0000;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.dateArt {
  font-weight: bold;
  font-size: 9pt;
  color: #000000;
}

.enteteArt {
  font-weight: bold;
  font-size: 9pt;
  color: #FFFFFF;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.chapeau {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fichier: presentation.css */

/* Ces styles ne s'appliquent qu'à la page de présentation */

/* Sections de la page */
section {
    margin-bottom: 30px;
}

h2 {
    color: #ff0000;
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

hr {
    border: 0;
    height: 1px;
    background-color: #ff0000;
    margin: 10px 0;
}

/* Localisation */
.localisation-content {
    display: flex;
    flex-direction: column; /* Changement pour afficher les éléments verticalement */
    align-items: flex-start; /* Aligne les éléments à gauche */
    gap: 20px;
}

.localisation-content p {
    flex: 1;
    min-width: 300px;
}

.localisation-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Historique */
.stats {
    font-weight: bold;
    margin-top: 15px;
}

/* Palmarès */
.palmares-list {
    list-style-type: none;
    padding-left: 0;
}

.palmares-list li {
    padding-left: 1.2em;
    text-indent: -1.2em;
}

.palmares-list li::before {
    content: "• ";
    color: #ff0000;
}

/* Salles */
.salles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.salle {
    flex: 1;
    min-width: 250px;
}

.salle h3 {
    margin-top: 0;
}

img.thumb {
    max-width: 150px;
    height: auto;
    border: 1px solid #ccc;
    padding: 5px;
    margin-top: 10px;
}

/* Réactivité de base pour les petits écrans */
@media (max-width: 768px) {
    .localisation-content,
    .salles-container {
        flex-direction: column;
        gap: 20px;
    }
}

/* Styles de l'organigramme */
.organigramme {
	margin-top: 20px;
	padding: 20px;
	background-color: #ffffff;
	border: 2px solid #ff0000;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.organigramme-header {
	font-size: 1.5rem;
	color: #ff0000;
	font-weight: bold;
	text-decoration: underline;
	margin-bottom: 20px;
}

.organigramme-section {
	margin-bottom: 40px;
}

.organigramme-section-title {
	font-size: 1.2rem;
	font-weight: bold;
	color: #000000;
	padding: 10px;
	background-color: #ffc0cb; /* Rose pâle */
	border: 1px solid #ccc;
	border-radius: 5px;
	display: inline-block;
	margin-bottom: 15px;
}

.members-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
	justify-content: center;
	align-items: flex-start;
}

.member-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px;
	background-color: #f8f8f8;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	transition: transform 0.2s;
}

.member-card:hover {
	transform: translateY(-5px);
}

.member-photo {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #ff0000;
	margin-bottom: 10px;
}

.member-title {
	font-size: 0.9rem;
	font-weight: bold;
	color: #ff0000;
	text-align: center;
}

.member-name {
	font-size: 0.8rem;
	color: #333;
	text-align: center;
}

.member-email-icon {
	width: 16px;
	height: 16px;
	margin-left: 5px;
}

/* Réduire la taille des photos du CA (non-bureau) */
.organigramme-section.ca .member-photo {
	width: 80px;
	height: 80px;
}
