/* zenpacific/stylefr3.css */
/* Réinitialisation des marges et du padding */
html, body {
    padding: 0;
    margin: 0;
    font-size: 0.9em;
    height: 100%;
    padding-top: 0px;
   overflow: auto; /* Assure que le sticky fonctionne même avec le scroll */
}
/*nav{
    position:sticky;
    top:0px;
}*/
.menu1 {
   position:sticky; /*position: fixed;*/
    top: 41px; /*60px*/
    width: 100%;
   /* background: white;*/
    z-index: 1001;/*1000*/
    /*height: 20px;  Assure qu'il a une hauteur définie */
   min-height: 20px;/*Assure qu'il ne disparaît pas */
}
.police{
    font-size: 1.1em;
}
/* Menu */
#menu, #menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}
#menu li {
    display: inline-block;
    vertical-align: top;
    position: relative;
}
#menu li li {
    display: inherit;
}
#menu a {
    display: block;
    padding: 5px 15px;
    text-decoration: none;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
}
#menu ul li a {
    padding: 5px 8px;
}
#menu ul {
    position: absolute;
    z-index: 1000;
    min-width: 100%;
    white-space: nowrap;
    text-align: center;
}
#menu ul ul {
    left: 100%;
    top: 0;
   overflow: hidden;
    max-width: 0;
    min-width: 0;
    transition: 0.3s all;
}
#menu ul li:hover ul {
    max-width: 30em;
}
#menu ul li {
    max-height: 0;
    overflow: hidden;
    transition: all 0.8s;
}
#menu li li li {
    max-height: inherit;
}
#menu li:hover li {
    max-height: 15em;
    overflow: visible;
}
.violet {
    background-color: #a283c9;
   /* background: linear-gradient(to bottom, #a283c9 0%, #2A2333 100%);*/
   background-image:linear-gradient(to bottom, #a283c9 0%, #2A2333 100%);
}
.violet li {
    background: #2A2333;
}
.violet li:hover {
    background: #a283c9;
}
.bleu {
    background-color: #729EBF;
    background-image: linear-gradient(to bottom, #729EBF 0%, #333A40 100%);
}
.bleu li {
    background: #333A40;
}
.bleu li:hover {
    background: #729EBF;
}
.orange {
    background-color: #F6AD1A;
    background-image: linear-gradient(to bottom, #F6AD1A 0%, #9F391A 100%);
}
.orange li {
    background-color: #9F391A;
}
.orange li:hover {
    background: #F6AD1A;
}
.vert {
    background-color: #CFFF6A;
    background-image: linear-gradient(to bottom, #CFFF6A 0%, #677F35 100%);
}
.vert li {
    background-color: #677F35;
}
.vert li:hover {
    background: #CFFF6A;
}
#menu li:hover {
    background-image: none;
}
#menu li:hover a, #menu li li:hover a {
    color: #000;
}
#menu li:hover li a, #menu li:hover li li a {
    color: #fff;
}
/* Titre principal */
header h1 {
    position: fixed;  /*Fixe le titre en haut*/ 
    text-align: center;
    top: 0; /* L'ancre tout en haut 0*/
    left: 50%; /* Centre le titre horizontalement */
    transform: translateX(-50%); /* Corrige le centrage */
    width: auto; /* Ajuste la largeur dynamiquement */
    background-color: #cfff6a; /* Garde ton design */
    padding: 5px;
   /* z-index: 1001;  Le met au-dessus du menu */
    width:860px;
    border-radius: 15px;
    text-shadow: 3px 3px 1px white;
    color: black;
}
img {
    border-radius: 8px;  /*Ajoute des coins arrondis*/ 
}
img:not(#noZoom):hover {
    transform: scale(1.3);
    position: relative;
    z-index: 1;
}

    img {
    transition: transform 1s ease-in-out;
} 

/* Contenu principal */
main p {
    text-align: center;
    color: black;
    margin: 10px;
}
.justifie {
    text-align: justify;
}
.gauche {
    text-align: left;
}
.droite {
    text-align: right;
}    
.centrer{
    text-align: center;
}
.texte-centre {
    text-align: center;
    width: 500px;
    margin: 0 auto;
}
/* Table */
table {
    margin: 0 auto;/* Centre la table horizontalement */
    width:860px;
    width: 80%;
    border-collapse: collapse;/* Fusionne les bordures pour un rendu propre */
    }
table, th, td {
    border: 0px;
}
th, td {
    padding: 10px;
    text-align: center;
}
/* Pied de page */
.button {
    padding: 5px;
    border: none;
    cursor: pointer;
    font-size: small;
    margin-right: 5px;
    border-radius: 0.5rem;
}
.footer1 {
    display: flex; /* Active l'affichage en ligne */
    flex-direction: column; /* Organise les éléments en colonne */
    align-items: center; /* Centre les éléments horizontalement */
    justify-content: center; /* Centre verticalement */
    text-align: center; /* Centrage du texte */
    padding: 15px;
   /* background-color: #f4f4f4;  Ajoute un fond clair */
}
.footer {
    display: flex; /* Active l'affichage en ligne */
    flex-direction: column; /* Organise les éléments en colonne */
    align-items: center; /* Centre les éléments horizontalement */
    justify-content: center; /* Centre verticalement */
    text-align: center; /* Centrage du texte */
    padding: 15px;
    background-color: #f4f4f4; /* Ajoute un fond clair */
}
.footer .buttons {
    display: flex;
    gap: 10px; /* Espacement entre les boutons */
    flex-wrap: wrap; /* Permet aux boutons de s'adapter */
    justify-content: center; /* Centre les boutons */
}
.footer button {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}
.footer button:last-child {
    margin-right: 0;
}
/* Formatage des boutons dans le footer */
.footer .buttons button {
    width: 150px;
    padding: 5px;
    border: none;
    cursor: pointer;
    font-size: small;
    margin-right: 5px;
    border-radius: 0.5rem;
}
/* Supprimer la marge à droite du dernier bouton */
.footer .buttons button:last-child {
    margin-right: 0;
}
/* Réduction de la taille du copyright */
.footer .copyright {
    text-align: center;
    font-size: 10px; /* Taille plus petite */
    margin-top: 8px; /* Espacement */
    max-width: 500px; /* Largeur limitée */
    opacity: 0.8; /* Légère transparence pour plus de discrétion */
}


/* Responsive */
@media (max-width: 468px) {
    h1 {
        font-size: 1.5rem;
    }
    nav .menu {
        flex-direction: column;
        text-align: center;
    }
    section img {
        width: 90%;
    }
    table {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    section img {
        width: 80%;
    }
}
