* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: white;
}

@font-face {
    font-family: "Marianne";
    src: url("../fonts/Marianne.woff2") format("woff2"),
         url("../fonts/Marianne.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

.container {
    font-family: "Marianne", Poppins, Arial, Helvetica, sans-serif;
    max-width: 750px;
    width: 100%;
    background: white;
    padding: 40px;
    text-align: center;
}

h1, h4 {
    font-family: "Instrument Serif", serif;
    letter-spacing: 2.5px;
}

h1 {
    font-size: 70px;
    margin-bottom: 100px;
}

h4 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

h5 {
    font-family: "Marianne", Poppins, Arial, Helvetica, sans-serif;
    font-size: 17px;
    text-align: center;
}

.accordion {
    width: 100%;
    text-align: left;
    background: white;
    cursor: pointer;
    padding: 26px 10px;
    font-size: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease-in-out, transform 0.2s;
    gap: 50px;
}

.accordion:hover {
    background: rgba(232, 238, 238, 0.5);
    /*transform: scale(1.02);*/
}

.arrow {
    width: 20px;
    height: 20px;
    background: url('../img/bas.png') no-repeat center/cover;
    display: inline-block;
    transition: transform 0.3s ease;
}

.active .arrow {
    transform: rotate(180deg);
}

.panel {
    display: none;
    text-align: justify;
    padding: 20px 10px;
    font-size: 18px;
    margin-left: 5px;
    line-height: 1.5em;
    font-family: "Segoe UI", Helvetica, sans-serif;
}

.footer {
    margin-top: 150px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgb(223, 223, 223);
    padding: 10px 0;
    flex-wrap: wrap;
}

.footer a {
    text-decoration: none;
    color: rgb(185, 182, 182);
    margin-top: 15px;
}

.footer a:hover {
    color: rgb(154, 153, 153);
}

.footer p {
    color: rgb(185, 182, 182);
}

ul li, ol li {
    margin: 5px 0;
    padding: 10px;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer; /* Indique qu'il y a une interaction possible */
}

.tooltip-text {
    visibility: hidden;
        position: absolute;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.94);
    color: #e9e9e9;
    text-align: center;
    padding: 9px;
    border-radius: 5px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.2); /* Effet réduit */
    opacity: 0;
    pointer-events: none; /* Empêche les interactions quand invisible */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* 🔽 Petite flèche pointant vers le bas */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* Positionne la flèche juste en dessous */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.94); /* même couleur que le fond */
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(0.72); /* Effet agrandissement fluide */
    pointer-events: auto;
}

.table-container {
    width: 100%;
    overflow-x: auto; /* Permet de scroller horizontalement si le tableau est trop large */
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #333;
    color: white;
    text-transform: uppercase;
}

.ligne-jolie {
    border: 0;
    height: 1.5px;
    margin: 40px auto;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  font-family: "Marianne", Poppins, Arial, Helvetica, sans-serif;
  background-color: #1a1a1a;
  color: white;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.scroll-top.visible {
  opacity: 0.85;
  pointer-events: auto;
}

.scroll-top:hover {
  background-color: #444;
  transform: translateY(-3px);
}

@media (max-width: 800px) {
    .accordion{
        font-size: 22px;
    }
    .panel {
        text-align: left;
    }
    .cacher-mobile {
        display: none;
    }

    ul, ol {
        list-style: none; /* Supprime les puces */
        padding: 0;
    }

    ul li, ol li {
        display: block; /* Affiche les éléments comme des blocs normaux */
        margin-bottom: 10px; /* Espacement entre les phrases */
    }

    .footer {
        flex-direction: column; /* Passe en colonne */
        text-align: center;
    }

    .footer p, 
    .footer a {
        margin: 5px 0; /* Ajoute de l’espace entre chaque élément */
    }
    th, td {
        font-size: 14px; /* Réduit la taille du texte pour mobile */
        padding: 8px;
    }
    .scroll-top {
        display: none;
    }
}