html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: white;
  display: flex;           /* Ajouté */
  flex-direction: column;  /* Ajouté */
  min-height: 100vh;       /* Ajouté */
}


#main {
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
  white-space: nowrap;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
  #main {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }
}

  
.matrix-canvas {
  position: fixed;
  top: 0;
  width: 15vw;
  height: 100vh;
  z-index: -1;
  background: transparent;
  pointer-events: none;
}


#matrix-left {
  position: fixed;
  left: 0;
  width: 15vw;
  height: 100vh;
}

#matrix-right {
  position: fixed;
  right: 0;
  width: 15vw;
  height: 100vh;
}



.content {
 max-width: calc(100% - 30vw);  
 position: relative;
  z-index: 1;
  background: white;
  margin-left: 15vw;
  margin-right: 15vw;
  padding: 0;
  /*margin:auto;*/
  box-sizing: border-box;
}

.content img {
  max-width: 100%;  /* l’image ne dépasse jamais la largeur du conteneur */
  height: auto;     /* hauteur automatique pour garder les proportions */
  display: block;
  margin: 0 auto;   /* centre l’image horizontalement */
}

.image-lcp-container {
 width: 100%;
 max-width: 935px;
 height: auto;
 aspect-ratio: 935 / 334;
 overflow: hidden;
 margin: 0 auto;
}

h1 {
 font-size: 100%; 
 color: #D2232B; 
 text-align: center;
 }
h2 {
 font-size: 80%; 
 color: black; 
 text-align: center;
 }
p,ul,li,td {
 color: black; 
 }
a:link {
 color: black;
 text-decoration: underline;
 }
a:visited {
 color: black;
 }
a:hover {
 color: #D2232B; 
 text-decoration: none;
}
a:active, a:focus {
 color: #D2232B; 
}

hr {
    border-width: 0px;
    padding: 1px;
    margin: 2px 40px;
    border-bottom: 2px solid #D2232B;
    text-decoration: none;
                    }

#center {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;       /* Ajouté */    
}

#global {
    
    flex : 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;           /* Ajouté */
}

#content {
    flex-grow: 1;
    background-color: white;
    font: 1.2em Helvetica, sans-serif;
    padding: 2px 0px ;
    overflow-y: auto;
    flex-shrink: 1;          /* Ajouté */
  flex-basis: auto;        /* Ajouté */
  min-height: 0;           /* Ajouté */

}

/* ✅ Footer */

#footer {
  background-color: white;
  color: #D2232B;
  padding: clamp(2px, 1.5vw, 2px) 0;
  font-size: clamp(0.6rem, 1.5vw, 0.6em);
  text-align: center;
  position: relative;
  z-index: 10;
  overflow: visible;
  margin-left: 15vw;
  margin-right: 15vw;

}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  flex-wrap: nowrap;
  padding: 0 1em;
  box-sizing: border-box;
}


.footer-logo img {
  display: block;
  max-width: 100%;
  vertical-align: top;
}

.footer-logo a {
  display: block;     
  margin: 0;
  padding: 0;
 }

.footer-text {
  color: #D2232B;
  font-size: clamp(0.6rem, 1.5vw, 0.6rem);
  white-space: nowrap;
  font-weight: bold;
}

.zoom:hover {
    -ms-transform: scale(1.7) translate(0px, -60px);
    /* IE 9 */
    -webkit-transform: scale(1.7) translate(0px, -60px);
    /* Safari 3-8 */
    transform: scale(1.7) translate(0px, -60px);
}



#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1em;
  padding: 5px 5px;
  background: white;
  box-sizing: border-box;
  min-height: 60px; /* ou la hauteur exacte de ton header */
}


.logo {
  flex-shrink: 0;  empêche le logo de rétrécir 
  max-width: 54px;
}

/*
.logo img {
  width: 100%;
  height: auto;
}
*/


 .logo img {

  width: 54px;

  height: 54px;

  display: block;

  object-fit: contain; 

} 


.menu {
  display: flex;
  justify-content: center;
  #font-weight: bold;
  gap: 0.2em;
  list-style: none;
  padding: 0.2em 0.2em;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 620px;    /* avant limite la largeur max et centre */
  margin: 0 auto;      /* centre le menu horizontalement */

}

.menu li {
  display: flex;
}

.menu li a {
  text-decoration: none;
  text-align: center;
  color: #D2232B;
  #font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  padding: 0.2em 0.2em; /* vertical (haut/bas) et horizontal (gauche/droite) */
  border: 1px solid #D2232B;       /* couleur et épaisseur du contour */
  border-radius: 10px;          /* rayon de l’arrondi */
  background-color: white;    /* optionnel : fond clair pour le contraste */
  white-space: nowrap;
  width: 100%;
  transition: background-color 0.3s, color 0.3s;
  font-size: 1.0em;
}

.menu li a:hover {
  background-color: #D2232B; /* fond rouge */
  color: white;              /* texte blanc */
}

/* Responsive menu */
/* Cacher la checkbox */
.menu-toggle {
  display: none;
}

/* Bouton hamburger */
.menu-icon {
  display: none;
  font-size: 1.0em;
  cursor: pointer;
  color: #D2232B;
  z-index: 110;
}

/* MENU MOBILE */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
    position: relative;
    z-index: 1100;
  }
 
nav {
    position: relative; 
  }

  .menu {
    display: none;
    flex-direction: column;
    position: relative;
    top: 10%;
    left: 40%;
    transform: translateX(-50%); /*centre précisément le menu */
    max-width: 160px;
    background: white;
    border: 2px solid #D2232B;
    border-radius: 10px;
    padding: 5px;
    align-items: center;
    z-index: 100;
    max-height: calc(100vh - 70px);
    overflow: auto;
  }

  /* ✅ Affiche le menu si la checkbox est cochée */
  .menu-toggle:checked + .menu-icon + nav .menu {
    display: flex;
  }
}

.site-title {
  font-size: clamp(0.5rem, 4vw, 1.5rem);
  white-space: nowrap;       /* Pas de retour à la ligne */
  overflow: visible;         /* On ne coupe pas */
  text-overflow: clip;       /* Pas de "..." */
  max-width: 100%;           /* Limite la largeur au parent */
  box-sizing: border-box;    /* Prend en compte les paddings */
   margin-top: 0.2em;   /* réduit marge au-dessus */
  margin-bottom: 0.2em; /* réduit marge en dessous */
  line-height: 1.1;     /* resserre l’espacement vertical dans le texte */
}
