@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffcc99;
    animation: fadeIn 1s ease-in-out;
    margin-top: 150px;
    overflow-x: hidden; /* Empêche le défilement horizontal */
}


header {
    background-color: #cc6600;
    color: #fff;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Fixe le header en haut */
    top: 0; /* Positionne le header en haut de la page */
    width: 100%; /* Assure que le header prend toute la largeur de la page */
    z-index: 1000; /* Assure que le header reste au-dessus des autres éléments */
}

h1 {
    margin: 0;
    padding-left: 20px;
}

h2 {
    margin: 1;
    flex-grow: 1;
    text-align: center;
}

nav ul {
    background-color: #cc6600;
    color: #fff;
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

nav ul li a:hover {
    background-color: #ed7a06;
}


.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 50px 0;
}

.button-item {
    position: relative;
    text-align: center;
    margin: 20px;
    width: 300px;
    perspective: 1000px; /* Ajout de la perspective pour l'effet de rotation */
    margin-bottom: 40px;
}

.button-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    margin-bottom: 40px;
}

.button-item:hover .button-item-inner {
    transform: rotateY(180deg);
}

.button-item img, .button-item .text-container {
    width: 100%;
    height: auto;
    border-radius: 10px;
    backface-visibility: hidden;
}

.button-item img {
    object-fit: cover;
}


.text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    transform: rotateY(180deg);
}

.ap-number {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom:10px;
}


footer {
    background-color: #cc6600;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
}