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


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fffacd; /* Couleur de fond jaune pâle */
    animation: fadeIn 2s ease-in-out;
    margin-top: 100px; 
    margin-bottom: 100px;
    overflow-x: hidden; /* Empêche le défilement horizontal */
}


header {
    background-color: #f3c11c; /* Couleur de fond orange */
    color: #ffffff; /* Couleur du texte noir */
    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: #f3c11c; /* Couleur de fond orange */
    color: #000; /* Couleur du texte noir */
    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: #ffffff; /* Couleur du texte noir */
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

nav ul li a:hover {
    background-color: #fff27a; /* Couleur de fond jaune pâle */
}


.center-title {
    text-align: center;
    width: 100%;
    margin: 0;
    margin-top: -50px;
    padding: 20px 0;
    color: #000; /* Couleur du texte noir */
    font-size: 1.8em; /* Augmente la taille de la police */
}

.description {
    font-size: 1.1em; /* Augmente la taille de la police */
    line-height: 1.5; /* Ajuste l'interligne pour une meilleure lisibilité */
    color: #000; /* Couleur du texte noir */
    padding: 20px;
    text-align: center; /* Centre le texte */
}


.button-item {
    position: relative;
    text-align: center;
    margin: 20px;
    width: 300px;
    perspective: 1000px; /* Ajout de la perspective pour l'effet de rotation */
    margin-left: 490px;
    margin-top: 50px;
    margin-bottom: 150px;
    align-self: center; /* Centre chaque élément individuellement */
}

.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;
}


.realisation {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 20px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.realisation img {
    width: 100%;
    max-width: 400px; /* Largeur maximale réduite de l'image */
    height: 200px; /* Hauteur réduite de l'image */
    object-fit: cover; /* Ajuste l'image pour qu'elle remplisse le conteneur tout en maintenant le ratio */
    display: block;
    margin: 0 auto; /* Centre l'image horizontalement */
    border-radius: 10px; /* Arrondit les coins de l'image */
    margin-bottom: 30px;
    margin-right: 1000px;
}

.realisation h3 {
    margin-top: 0;
}

.realisation p {
    margin: 10px 0;
}


#block {
    display: flex;
    justify-content: center;
    gap: 20px
}

.button-pdf {
    display: inline-block;
    width: 200px;
    padding: 10px;
    margin: 10px 0; /* Espace entre les boutons */
    background-color: #f3c11c;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
}

.button-pdf:hover {
    background-color: #fff176;
}

footer {
    background-color: #f3c11c; /* Couleur de fond orange */
    color: #ffffff; /* Couleur du texte noir */
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: fixed; /* Fixe le footer en bas */
    bottom: 0; /* Positionne le footer en bas de la page */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
}
