body{
color : rgb(204, 0, 0);
background-color : white;
margin:0; 
padding:130px 10px;
}

header
{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

div{
  text-align:center;
}

article{
border : 3px rgb(204, 0, 0) outset;
border-radius : 10px;
box-shadow: 6px 6px 6px rgb(204, 0, 0);
box-sizing: border-box;
width : 95%;
padding: 12px;
color :rgb(204, 0, 0);
margin-left: auto;
margin-right: auto;
}

em {color : yellow;}


h3
{color : yellow;}
li
{color : rgb(204, 0, 0);}
a
{color : rgb(255,102,0);}
a:visited
{color : rgb(255,102,0);}
a:hover
{color : green;}
a:active
{color : rgb(153, 0, 0);}

body {background-color : white;}


table{
text-align: center;
border-collapse:collapse;
color : white;
background-color : rgb(204,0,0);
}

td{
border: 1px solid black;
vertical-align: middle;
font-size: 2vw;
}

.titreSouligne {
  text-decoration: underline;
}

.menus{
width: 100%;
color : rgb(204,0,0);
background-color: transparent;
border:none;

}

a.menus
{color : rgb(204,0,0);}
a.menus:visited
{color : rgb(204,0,0);}
a.menus:active
{color : rgb(204,0,0);}
a.menus:hover
{color : rgb(204,0,0);}
 
.orange{ background-color : rgb(255,102,0);}

.violet{ background-color : rgb(138,43,226);}

.vert{ background-color : rgb(9,109,9);}

.bleu{ background-color : rgb(25,0,255);}

.gris{ background-color : rgb(197,199,196); color:black}
 
.blanc{background-color : white;color : rgb(204,0,0);}

.carousel-items {
    display: flex;
    overflow-x: scroll;
    padding: 1rem 0;
}


.carousel-item {
    flex-basis: 450px;
    margin-left: 1rem;
}



/*Le texte du stage en général*/
.texte-stage {
     responsive automatique
}

/* Bloc des UL centré mais avec texte à gauche */
.bloc-centre {
    display: flex;
    justify-content: center;
}

.bloc-centre ul {
    text-align: left;
    list-style-position: inside;
    padding: 0;
    margin: 0;
}

/* On force la taille partout dans le bloc
.bloc-centre,
.bloc-centre ul, 
.bloc-centre li {
   font-size: clamp(1rem, 2vw, 1.3rem);
}*/



.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2em;
  background: white;
  color: rgb(204, 0, 0);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  font-size: clamp(20px, 1.5vw, 200px);
  border-bottom: 2px solid rgb(204, 0, 0);
  width: auto;  /* Ajuste la largeur automatiquement*/
  max-width: 100%;   /*  Empêche qu'il dépasse de l'écran */
}

.menu-left, .menu-right {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-left a#competitions::after {
  content: "Calendrier des compétitions";
}

.menu img{
height:100px;
vertical-align:middle;
}

.menu-left a, .menu-right button {
  color: rgb(204, 0, 0);
  text-decoration: none;
  margin: 0 0.5em;
  font-weight: bold;
}

.menu-left {
  flex-grow: 1;
}

.burger {
  background: none;
  border: none;
  font-size: 1em;
  cursor: pointer;
  display: none; 
/*   CACHÉ PAR DÉFAUT */
}

.burger-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: auto; /*   Ajuste la largeur à la taille du contenu */
  max-width: 200px; /*   Limite la largeur du menu burger */
  height: 100%;
  background: white;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  padding: 2em 1em;
  display: flex;
  flex-direction: column;
  gap: 1em;
  transition: right 0.3s ease;
}

.burger-menu.open {
  right: 0;
}

.burger-menu a {
  color: rgb(204, 0, 0);
  text-decoration: none;
  font-weight: bold;
}

/* Responsive : afficher burger sur petit écran seulement */
@media (max-width: 768px), (orientation: portrait) {
/*   styles burger */
  .burger {
    display: block; /*     Affiche le burger sur mobile */
    font-size: 2em;
  }
  .burger-menu a {  
  font-size: 3vw;
}
  .menu-left {
    font-size: clamp(20px, 3vw, 200px);
    padding-right: 5vw;
  }

  .menu-left a:nth-child(n+4) {
    display: none; /* Cache les liens après Agenda */
  }
  .menu-left a#competitions::after {
    content: "Compétitions";   /* Texte plus court sur mobile */
  }
  td{
    font-size: 2.5vw;
  }
}

