/* Règles générales */
*, *::before, *::after {
    box-sizing: border-box;
    word-break: break-word;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a2e;
    color: #fff;
    text-align: center;
    transition: background 0.3s ease-in-out;
}

main {
    max-width: 1080px;
    margin: 20px auto;
    background: #28293d;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    width: 80%;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
}

#logoH img {
    width: 70%;
}

header {
    width: 100%;
    background-color: #1e1e2f; /* Fond sombre élégant */
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Ombre subtile pour un effet flottant */
}

nav {
    display: flex;
    width: 80%;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
}

#logoH img {
    width: 70%;
}

#naviguation {
    width: 60%;
}

#naviguation ul {
    display: flex;
    justify-content: space-around;
}

#naviguation li {
    list-style-type: none;
}

#naviguation a {
    text-decoration: none;
    color: #f8f8f8; /* Couleur claire pour le texte */
    font-family: Helvetica;
    font-size: 22px;
    cursor: pointer;
    padding-bottom: 0.5em;
    background-image: linear-gradient(#fa4454, #fa4454); /* Accent rouge */
    background-size: 0% 0.1em;
    background-position-y: 100%;
    background-position-x: 50%;
    background-repeat: no-repeat;
    transition: background-size ease-in-out 0.3s;
}

#naviguation a:hover {
    background-size: 90% 0.15em;
    color: #f05454; /* Changement de couleur au survol */
}

#naviguation a.active {
    background-size: 90% 0.15em;
    font-weight: bold;
    color: #f05454; /* Accent rouge pour le lien actif */
}

/* Footer */
footer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #1e1e2f; /* Fond sombre */
    height: 60px;
    margin-top: 30px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3); /* Ombre pour un effet flottant */
}

#foot {
    width: 80%;
    display: flex;
    justify-content: space-between;
}

#foot p {
    color: #f8f8f8; /* Texte clair sur fond sombre */
    font-size: 16px;
    font-weight: 300; /* Texte léger et lisible */
    transition: color 0.3s;
}

/* Ajout d'un effet de survol sur le texte du footer */
#foot p:hover {
    color: #fa4454; /* Accent rouge au survol */
    cursor: pointer;
}


/* Titres */
h1 {
    text-align: center;
    margin-bottom: 35px;
    color: #f05454; /* Couleur du titre */
}

/* Formulaire */
form {
    width: 300px;
    margin: 50px auto;
    padding: 15px;
    background-color: #f8f8f8; /* Fond clair pour le formulaire */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form div {
    margin-bottom: 8px;
}

form label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #042e27;
}

form label span {
    color: #dc3d4b; /* Couleur du * obligatoire */
    font-weight: bold;
    margin-left: 5px;
}

form input, 
form textarea {
    width: 90%;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease-in-out;
    margin: 4px auto;
}

form input:focus, 
form textarea:focus {
    border-color: #dc3d4b; /* Couleur rouge au focus */
    box-shadow: 0 0 5px rgba(220, 61, 75, 0.5);
}

form input[type="submit"] {
    background-color: #042e27; /* Fond sombre pour le bouton */
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin-top: 10px;
}

form input[type="submit"]:hover {
    background-color: #dc3d4b; /* Couleur plus vive au survol */
}

#cred {
    color: #f8f8f8;
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

#cred:hover {
    color: #fa4454; /* Couleur plus vive au survol */
    text-decoration: underline;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
}

thead {
    background-color: #f05454;
    color: white;
    text-transform: uppercase;
}

tr:hover {
    background-color: #5f6372;
    transition: background-color 0.3s, transform 0.3s;
    transform: scale(1.04);
}

table, th, td {
    border: 1px solid #444;
    text-align: left;
}

th, td {
    padding: 15px;
}

tr:nth-child(even) {
    background-color: #383a59;
}

/* DataTables */
.dataTables_wrapper .dataTables_filter input {
    background-color: #28293d;
    border: 1px solid #555;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
}

.dataTables_wrapper .dataTables_length select {
    background-color: #28293d !important;
    border: 1px solid #555;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #f05454;
    color: white !important;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 2px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #ff7675;
}

button {
    background-color: #fa4454;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

button:hover {
    background-color: #ff7675;
    transform: scale(1.05);
}

.carousel {
    width: 400px;
    height: 250px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.carousel-track {
    display: flex;
    width: 100%;
    animation: scroll 15s linear infinite;
    gap: 5px; /* Augmenté pour un meilleur espacement */
}

.carousel-track img {
    width: 400px;
    height: 250px;
    object-fit: cover;
    flex: 0 0 auto;
    border-radius: 8px;
    margin-right: 5px; /* Ajoute un espace entre les images */
}


@keyframes scroll {
    0% { transform: translateX(0); }
    25% { transform: translateX(-400px); }
    50% { transform: translateX(-800px); }
    75% { transform: translateX(-1200px); }
    100% { transform: translateX(0); }
}

body.index-page main {
    padding: 20px 0;
    background-color: #28293d; /* Fond plus sombre et élégant */
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.index-page main > .acc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px; /* Espacement plus généreux entre l'image et le texte */
    margin: 40px auto;
    width: 85%;
}

body.index-page main > .acc p {
    width: 55%;
    line-height: 1.8;
    text-align: justify;
    font-size: 18px;
    color: #f8f8f8; /* Texte clair sur fond sombre */
    font-weight: 300;
    background: rgba(0, 0, 0, 0.2); /* Légère ombre autour du texte */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

body.index-page main > .acc p:hover {
    transform: scale(1.03);
}

body.index-page main > .acc img {
    width: 40%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

body.index-page main > .acc img:hover {
    transform: scale(1.05); /* Zoom léger au survol */
}

body.index-page main > div {
    background-color: #383a59; /* Fond gris élégant */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    margin: 40px auto;
    width: 85%;
}

body.index-page main > div p {
    line-height: 1.8;
    text-align: justify;
    font-size: 17px;
    color: #f8f8f8;
    margin: 0;
    font-weight: 300;
}

body.index-page main > div p strong {
    color: #dc3d4b; /* Accentuation du texte important */
    font-weight: bold;
}

body.index-page main > div p em {
    font-style: italic;
    color: #b38c8f; /* Couleur plus douce pour les citations */
}

body.index-page main > div h2 {
    font-size: 22px;
    color: #f05454; /* Couleur d'accent rouge pour le titre */
    margin-bottom: 20px;
}

/* Réajustement de l'affichage des champs Nom et Prénom */
#en-tete {
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de se réorganiser sur la même ligne */
    gap: 20px; /* Ajoute un espace entre les champs */
    justify-content: space-between; /* Pour espacer les champs au maximum */
}

#en-tete div {
    flex: 1 1 45%; /* Répartition équitable de l'espace sur la ligne */
    display: flex;
    flex-direction: column; /* Les labels restent au-dessus des champs */
}

#en-tete div input {
    width: 100%; /* Les inputs prennent toute la largeur de leur conteneur */
}

/* Si l'écran est trop petit (mobile), les champs se mettront l'un sous l'autre */
@media (max-width: 768px) {
    #en-tete {
        flex-direction: column; /* Les champs seront affichés sous forme de colonne */
    }

    #en-tete div {
        flex: 1 1 100%; /* Les champs prendront toute la largeur sur les petits écrans */
    }
}

#ptrait{
    color: #042e27;
}

.gallery-container {
    text-align: center;
    margin-top: 20px;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    justify-items: center;
    margin-top: 20px;
}
.gallery-item {
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease-in-out;
}
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    filter: grayscale(100%);
    transition: transform 0.3s ease-in-out;
    transition: filter 0.3s ease-in-out;
}

.gallery-image:hover {
    filter: grayscale(0%);
}

.gallery-item:hover {
    transform: scale(1.1);
}

.gallery-container .gallery {
    row-gap: 50px;
}

/* 📌 Conteneur des boutons radio */
.radio-group {
    display: flex;
    flex-direction: column; /* Affichage en colonne */
    align-items: center; /* Centrage horizontal */
    gap: 10px; /* Espacement entre les boutons */
    margin-bottom: 20px;
}

/* 📌 Masquer les boutons radio natifs */
.radio-group input[type="radio"] {
    display: none;
}

/* 📌 Style des labels (boutons radio personnalisés) */
.radio-group label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px; /* Largeur fixe pour un alignement propre */
    padding: 12px 18px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #33354d;
    border: 2px solid transparent;
    border-radius: 30px; /* Bord arrondi */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.radio-group label:hover {
    background: #4a4c72;
    transform: scale(1.05);
}

.radio-group input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #fa4454, #ff7675);
    color: #fff;
    border: 2px solid #fa4454;
    box-shadow: 0 0 12px rgba(250, 68, 84, 0.6);
    transform: scale(1.1);
}

.radio-group input[type="radio"]:checked + label::after {
    content: '✔';
    font-size: 14px;
    font-weight: bold;
    color: white;
    position: absolute;
    top: -5px;
    right: -10px;
    background: #042e27;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 📌 Responsive : Ajustement pour les petits écrans */
@media (max-width: 768px) {
    .radio-group label {
        width: 80%; /* Ajuste la largeur des boutons pour mobile */
    }
}

.type {
    color: #042e27;
    margin-bottom: 20px;
}

.type span{
    color: #fa4454;
}

.presentation {
    text-align: center;
    padding: 20px;
    background-color: #f4a261;
    color: white;
  }
  
  
  .presentation h2 {
    margin: 0;
    font-size: 2em;
    position: relative;
  }
  
  
  .presentation h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: black;
    transform: translateX(-50%); /* Centre l'élément */
    animation: underlineAnimation 2s ease-in-out infinite; /* Animation continue */
  }
  
  
  /* Animation de soulignement sous le texte */
  @keyframes underlineAnimation {
    0% {
      width: 10%;
    }
    50% {
      width: 25%;
    }
    100% {
      width: 10%;
    }
  }
  
  
  
  
  
  
  
  
  .presentation p {
    margin: 10px 0;
    font-size: 1.2em;
  }
  
  
  /* Conteneur des partenaires */
.container-partenaire {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    flex-wrap: wrap; /* Permet de faire passer les éléments sur une nouvelle ligne */
}

/* Bloc partenaire */
.partner {
    background-color: #28293d; /* Fond sombre pour rester cohérent */
    padding: 15px;
    border-radius: 10px;
    width: 200px; /* Largeur réduite pour une présentation compacte */
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    transition: all 0.3s ease; /* Transition fluide pour l'effet de survol */
}

/* Effet de survol sur les partenaires */
.partner:hover {
    transform: scale(1.05); /* Zoom léger */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); /* Ombre plus subtile */
}

/* Image du partenaire */
.partner img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    max-height: 300px;
}

/* Titre du partenaire */
.partner h3 {
    margin-top: 8px;
    font-size: 1.2em;
    color: #f8f8f8; /* Texte clair sur fond sombre */
}

/* Description du partenaire */
.partner p {
    font-size: 0.9em;
    color: #f8f8f8; /* Couleur claire */
    margin: 8px 0;
    font-weight: 300; /* Texte léger */
}

/* Lien vers le partenaire */
.partner a {
    display: block;
    background-color: #f05454; /* Couleur rouge de l'accent */
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Assure que le lien reste en bas du bloc */
}

/* Effet au survol du lien */
.partner a:hover {
    background-color: #fa4454; /* Rouge plus clair */
    color: white;
}

/* Livrables */
.livrables {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Lien des livrables */
.livrables a {
    display: block;
    background-color: #f05454; /* Fond rouge */
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    width: 150px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease; /* Transition fluide */
}

/* Effet au survol des livrables */
.livrables a:hover {
    transform: scale(1.05); /* Zoom léger */
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.4); /* Ombre subtile */
}


.credits-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
    gap: 20px; /* Espacement entre les éléments */
    justify-items: center; /* Centre les images horizontalement */
    padding: 20px;
}

.credit-item {
    text-align: center;
}

.credit-item img {
    width: 300px; /* Taille uniforme */
    height: 200px;
    object-fit: contain; /* Redimensionne sans rogner */
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    background-color: #f0f0f0;
    padding: 5px;
}

/* Responsive : 2 images par ligne sur écrans moyens, 1 image par ligne sur petits écrans */
@media (max-width: 900px) {
    .credits-container {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    }
}

@media (max-width: 600px) {
    .credits-container {
        grid-template-columns: repeat(1, 1fr); /* 1 colonne */
    }
}


.credit-item:hover {
    transform: translateY(-5px);
}

.credit-text {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    text-align: center;
}


.credit-item p {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    text-align: center;
    display: block; /* S'assurer qu'il est visible */
}

.credit-text a {
    color: #d32f2f; /* Rouge foncé, adapte selon ton thème */
    text-decoration: none; /* Supprime le soulignement par défaut */
    font-weight: bold; /* Rend le texte plus visible */
    transition: color 0.3s ease-in-out; /* Animation fluide au survol */
}

.credit-text a:hover {
    color: #ff5252; /* Rouge plus clair au survol */
    text-decoration: underline; /* Ajoute un soulignement au survol */
}

