body {
    margin: auto;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    line-height: 1.5;
    padding: 0;
    background-color: #f4f4f4;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 1879px;
    height: 1057px;
    z-index: -1;
    opacity: 0.5;
}


/* Header */
header {
    background-color: #8f702efd;
    color: #f4f4f4;
    padding: 5px 5px;
    text-align: right;
    font-family: 'Cinzel', serif;
}

header nav {
    margin: 0;
    padding: 10px;
    background-color: #000000e8;
}
header nav a {
    position: relative; /* Important pour positionner la barre bleue */
    display: inline-block;
    padding: 5px 5px;
    color: #f4f4f4;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none; /* Enlève le soulignement par défaut */
    overflow: hidden; /* Assure que rien ne dépasse si besoin */
    cursor: pointer;
}
header nav a:hover {
    border-radius: 9px;
    background-color: #6e6d6d65;
}
header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Épaisseur de la barre bleue */
    background-color: #4DD0E1; /* Bleu cyan de l'image */

    transform: scaleX(0); 
    transform-origin: center; /* L'animation part de la gauche */
    transition: transform 0.3s ease-in-out; /* Durée et fluidité */
}

header nav a:hover::after {
    transform: scaleX(1); /* La barre prend 100% de la largeur */
}

header nav li {
    display: inline;
    list-style: none;
}
header nav .active {
    background-color: #154369;
    padding: 5px 10px;
    border-radius: 9px;
}
/* fin header */
/* Main */

#presentation-accueil {
    background-color: #000000e8;
    padding: 20px;
    text-align: center;
    border-radius: 7px;
    margin: auto;
    width: 70%;
    box-shadow: 0px 0px 13px 19px rgba(0,0,0,0.1);
}



.texte-accueil {
    color: #f4f4f4;
    font-size: 1.2em;
    margin-bottom: 10px;
    text-align: center;
}
p {
    line-height: 1.6;
    color: #f4f4f4;
    width: auto;
    text-align: justify;
}

#tableauContainer {
    padding: 20px;
    background-color: #000000e8;
    margin: auto;
    width: 70%;
    border-radius: 7px;
    box-shadow: 0px 0px 13px 19px rgba(0,0,0,0.1);
    color: #f4f4f4 !important;
}
main {
    width: 1080px;
    margin: auto;
    padding: 20px;
    background-color: #000000e8;
    
}
main h1 {
    color: #8f702efd;
    font-weight: bold;
}
main table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
main table, th, td {
    border: 1px solid #8f702efd;
}

main th, td {
    padding: 8px;
    text-align: left;
}
main td:hover {
    background-color: #97979744;
    color: #f4f4f4;
}
main th {
    background-color: #2c2c2cd8;
    color: #f4f4f4;
}
.titrePage {
    text-align: center;
    color: #154369;
    margin-bottom: 20px;
}
#text-donnees {
    font-size: 1.2em;
    margin-top: 10px;
}

div.dt-container .dt-input {
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 5px;
  background-color: transparent;
  color: inherit;
  width: 10%;
}

div.dt-container .dt-paging .dt-paging-button.disabled, div.dt-container .dt-paging .dt-paging-button.disabled:hover, div.dt-container .dt-paging .dt-paging-button.disabled:active {
  cursor: default;
  color: #f4f4f4 !important;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}
div.dt-container .dt-input {
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 5px;
  background-color: transparent;
  color: inherit;
  width: 10%;
  margin: 0;
}

div.dt-container .dt-search input {
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 5px;
  background-color: transparent;
  color: inherit;
  margin-left: 3px;
  width: auto;
}

.dt-search label {
    color: #f4f4f4 !important;
    font-weight: bold;
}
.dt-search input {
    color: #f4f4f4 !important;
}
.dt-search {
  display: flex;
  justify-content: end;
  margin-bottom: 20px;
}



/* fin main */

/*footer*/
footer {
    background-color: #8f702efd;
    color: #f4f4f4;
    text-align: center;
    padding: 5px 5px;
    bottom: 0;
    width: 100%;
    position: relative;
}
.footer-content {
    text-align: center;
}
#footer-container {
    margin: 0;
    padding: 10px;
    background-color: #000000e8;
}
#credits-link {
    color: #f4f4f4;
    text-decoration: none;
}
#credits-link:hover {
    text-decoration: underline;
}
/*fin footer*/


.image-accueil img {
    max-width: 60%;
    height: auto;
    border-radius: 10px;
    margin-top: 20px;
}
.image-accueil {
    text-align: center;
}
.image-accueil p {
    color: #f4f4f4;
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* Galerie */
#galerie-container {    
    padding: 20px;
    background-color: #000000e8;
    margin: auto;
    width: 100%;
    border-radius: 7px;
    box-shadow: 0px 0px 13px 19px rgba(0,0,0,0.1);
    color: #f4f4f4 !important;
    text-align: center;
}
.galerie-image {
    width: calc(25% - 15px);
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #8f702efd;
    filter: grayscale(100%) blur(2px);
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}
.galerie-image:hover {
    transform: scale(1.05);
    z-index: 1;
    position: relative;
    overflow: hidden;
    z-index: 1;
    filter: grayscale(0%) blur(0px);
}

.image {
    width: calc(25% - 15px);
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #8f702efd;
    filter: grayscale(100%) blur(2px);
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

.image:hover {
    transform: scale(1.05);
    z-index: 1;
    position: relative;
    overflow: hidden;
    z-index: 1;
    filter: grayscale(0%) blur(0px);
}

#upload-form {
  width: 300px;
  height: auto;
  padding: 20px 0;
  margin: auto;
}

#upload-form label {
    display: block;
    margin-bottom: 5px;
    color: #f4f4f4;
    font-weight: bold;
}

#upload-form input[type="file"] {
    background-color: #b1b0b03f;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #f4f4f4;
}

#upload-form button {
    background-color: #1bcffc;
    color: #333;
    border: none;
    padding: 10px 15px;
    border-radius: 9px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    font-size: small;
}

#upload-form button:hover {
    background-color: #158a99;
    color: #f4f4f4;
}

#upload-form button:active {
    transform: scale(0.95);
    background-color: #f4f4f4;
    color: #333;
}

/* Fin galerie */


/* Contact */

#contact {
    display :block;
    background-color: #000000e8;
    padding: 20px;
    text-align: left !important;
    height: 750px;
}

#formulaire-container {
    background-color: #000000e8;
    padding: 20px;
    text-align: left !important;
    border-radius: 7px;
    margin: auto;
    width: 50%;
    box-shadow: 0px 0px 13px 19px rgba(0,0,0,0.1);
    text-transform: uppercase;
}
#formulaire {
    width: 300px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#en-tete {
    display: flex;
    gap: 10px;
}
label {
    display: block;
    margin-bottom: 5px;
    color: #f4f4f4;
    font-weight: bold;
}
input[type="text"],
input[type="email"],
textarea {
    background-color: #b1b0b03f;
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    resize: none;
    color: #f4f4f4;
}
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #b1b0b03f;
    color: #f4f4f4;
    margin-bottom: 15px;
}

#bouton-envoi {
    background-color: #1bcffc;
    color: #333;
    border: none;
    padding: 10px 15px;
    border-radius: 9px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    font-size: small;
}
#bouton-envoi:hover {
    background-color: #158a99;
    color: #f4f4f4;
}
#bouton-envoi:active {
    transform: scale(0.95);
    background-color: #f4f4f4;
    color: #333;
}
* {
    box-sizing: border-box;
}


.required {
    color: #bd0000;
    font-weight: bold;
}
#retour-t {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 1.2em;
    color: #f4f4f4;
    margin-top: 15px;
    background-color: green;
    width: 300px;
    margin: auto;
    border-radius: 5px;
    padding: 10px;
}
#retour-f {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 1.2em;
    color: #f4f4f4;
    margin-top: 15px;
    background-color: red;
    width: 300px;
    margin: auto;
    border-radius: 5px;
    padding: 10px;
}
.erreur {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    color: #ff0000;
    margin-top: 15px;
    background-color: #f4f4f4;
    width: 300px;
    margin: auto;
    border-radius: 5px;
}

/* Fin contact */

/* Carousel*/

:root {
    --gold: #c8aa6e;
    --dark-bg: #091428;
    --dark-box: #0a0a0c;
}



.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    perspective: 1000px; 
}


.card {
    position: relative;
    width: 300px; 
    height: 400px;
    transition: all 0.5s ease-in-out;
    opacity: 0.5;
    transform: scale(0.85);
    z-index: 1;
    overflow: hidden; 
    border: 1px solid #333;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.card.active {
    width: 600px;
    height: 500px;
    opacity: 1;
    transform: scale(1);
    z-index: 10;
    border: 1px solid var(--gold);
    box-shadow: 0 0 20px rgba(200, 170, 110, 0.2);
}


.caption-box {
    position: absolute;
    bottom: -100px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-box);
    width: 300px;
    padding: 20px;
    text-align: center;
    border-top: 2px solid var(--gold);
    transition: bottom 0.5s ease 0.2s; 
    opacity: 0;
}


.card.active .caption-box {
    bottom: 0; 
    opacity: 1;
}


.role {
    display: block;
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.name {
    margin: 0;
    color: var(--gold);
    font-size: 1.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.divider {
    width: 40px;
    height: 2px;
    background-color: var(--gold);
    margin: 10px auto 0;
}


.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 100 !important;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--gold);
    color: var(--dark-bg);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }
/* Fin carousel */

#roles {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

#roles img {
    width: 50px;
    height: 50px;
}
#roles p {
    text-align: center;
    font-weight: bold;
    margin-top: 5px;
}
#map-lol {
    display: flex;
    text-align: center;
    margin-top: 20px;
    flex-direction: column;
}
#map-lol img {
    width: 100%;
    height: auto;
}
em {
    color: #8f702efd;
    font-size: 1.1em;
}

/* Partenaires */

/* Partenaires */

#partenaires-container {
    background-color: #000000e8;
    padding: 40px 20px;
    margin: auto;
    width: 1080px;
    border-radius: 7px;
    box-shadow: 0px 0px 13px 19px rgba(0,0,0,0.1);
    color: #f4f4f4 !important;
}

#partenaires-title {
    text-align: center;
    color: #8f702efd;
    font-size: 2em;
    margin-bottom: 40px;
}

.partenaires-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.partenaire-card {
    text-align: center;
    width: 250px;
}

.partenaire-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #8f702efd;
    margin-bottom: 15px;
}

.partenaire-card h3 {
    color: #8f702efd;
    font-size: 1.5em;
    margin: 10px 0;
}

.partenaire-card p {
    color: #f4f4f4;
    font-size: 0.95em;
}

.partenaires-details {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.partenaires-details h2 {
    color: #8f702efd;
    margin-bottom: 20px;
}

/* Projets */

.project-card {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #0a0a0c;
    border-radius: 10px;
    border: 1px solid #8f702efd;
}

.project-card img {
    width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #8f702efd;
}

.project-card.left-image {
    flex-direction: row;
}

.project-card.right-image {
    flex-direction: row-reverse;
}

.project-text {
    flex: 1;
}

.project-text h3 {
    color: #8f702efd;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.project-text p {
    color: #f4f4f4;
    font-size: 1em;
}

.documents-card {
    padding: 30px;
    background-color: #0a0a0c;
    border-radius: 10px;
    border: 1px solid #8f702efd;
    text-align: center;
    margin-bottom: 40px;
}

.documents-card h3 {
    color: #8f702efd;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.documents-card ul {
    list-style: none;
    padding: 0;
}

.documents-card li {
    margin-bottom: 10px;
}

.documents-card a {
    color: #1bcffc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.documents-card a:hover {
    color: #158a99;
    text-decoration: underline;
}

/* Fin projets */

