*{
	margin: 0;
	padding: 0;
	text-decoration: none;
}

ul, li{
	list-style: none;
}

@font-face
{
	font-family: "craie";
	src: url(../polices/Chalkduster.ttf) format("truetype");
}

@font-face
{
	font-family: "luciole";
	src: url(../polices/Luciole.ttf) format("truetype");
}

.btn:hover{
    cursor: pointer;
}

nav{
	font-family: "craie";
	width: 100%;
	padding: 20px 0;
	background-image: url(../images/categories/tableau-bg-2.jpg);
	background-size: cover;
	position: relative;
}

#nav-list-box{
	display: inline-block;
	width: 100%;
	text-align: center;
}

.nav-list{
	display: inline-block;
	margin-right: 100px;
	text-align: center;
}

.nav-list a{
	color: #74c5da;
	padding: 5px 20px;
	font-size: 2em;
}

.nav-list a:hover{
	color: white;
}

#logo a{
	color: #74c5da;
}

#logo-link{
	width: 100%;
}

#logo{
	background-color: none;
	position: absolute;
	top: 10px;
	left: 20px;
	text-align: left;
	width: 50px;
	height: 50px;
}

#logo img{
	width: 50px;
	height: 50px;
}

.g-recaptcha{
	width: 305px;
	margin: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Navigation */
  nav {
    padding: 10px 0;
  }

  #logo {
    position: static; /* Rendre le logo centré et fluide */
    margin: 0 auto;
    width: 80px; /* Agrandir légèrement le logo */
    height: 80px;
  }

  #logo img {
    width: 100%;
    height: auto; /* Conserver le ratio de l'image */
  }

  #nav-list-box {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrer les éléments */
  }

  .nav-list {
    margin: 10px 0; /* Réduire les marges */
  }

  .nav-list a {
    font-size: 1.5em; /* Adapter la taille de police */
  }

  #admin-icon {
    width: 40px; /* Ajuster la taille de l'icône admin */
    height: auto;
  }
}

@media (max-width: 480px) {
  /* Navigation spécifique aux petits écrans */
  nav {
    padding: 5px 0;
  }

  .nav-list a {
    font-size: 2em; /* Réduire encore la taille du texte */
  }

  #logo {
    width: 60px;
    height: 60px;
  }

}

.page{
    font-size: 1em;
}

/*  ////////////////////////////////////// Page "Formations" /////////////////////////////////////////////////  */

						/* ////////////////////////// Catégories ///////////////////////////////////// */

/* Conteneur des catégories */
#categories-list {
    padding: 25px; /* Ajoute un espace de 50px à gauche et à droite */
    box-sizing: border-box; /* Inclut le padding dans les dimensions du conteneur */
    display: block;
    text-align: center; /* Centre le contenu horizontalement */
    background-image: url(../images/categories/bg-formations-page.jpg);
    background-attachment: fixed;
    background-size: cover;
}

/* Conteneur principal des catégories */
.categorie-box {
    width: 100%; /* S'adapte à toute la largeur */
    max-width: 1200px; /* Limite la largeur du contenu */
    margin: 50px auto; /* Centrage du conteneur et un espace en bas */
    height: 600px; /* Hauteur fixe */
    position: relative;
}

.show-formation-btn:hover{
	cursor: pointer;
}

/* La boîte contenant le tableau */
.cat-text-box {
    width: 95%; /* Prend toute la largeur du conteneur */
    height: 100%; /* Prend toute la hauteur */
    position: relative;
    margin: auto;
    box-shadow: 5px 5px 5px 3px;
}

/* Image de fond (tableau noir) */
.bg-cat {
    position: absolute; /* Permet de couvrir tout le conteneur */
    top: 0;
    left: 0;
    width: 100%; /* Remplit la largeur */
    height: 100%; /* Remplit la hauteur */
    z-index: 0; /* Derrière le texte */
}

/* Texte centré */
.cat-text {
    position: absolute; /* Permet le centrage absolu */
    top: 50%; /* Centre verticalement */
    left: 50%; /* Centre horizontalement */
    transform: translate(-50%, -50%); /* Compense le décalage */
    text-align: center;
    z-index: 1; /* Par-dessus l'image */
    width: 95%;
}

.cat-name, .cat-description {
    font-family: "craie";
    color: white;
}

.cat-name {
    font-size: 2.5em;
}

.cat-description {
    font-size: 1.7em;
}

/* Style du bouton */
.view-formations-btn {

    font-size: 2em;
    margin-top: 20px; /* Ajoute un peu d'espace au-dessus */
    cursor: pointer;
    font-family: "craie";
    color: #74c5da; /* Couleur initiale du texte */
    background: linear-gradient(90deg, #74c5da, #74c5da 40%, #ffffff 50%, #74c5da 60%, #74c5da); /* Halo qui va défiler */
    background-size: 200%; /* Taille pour permettre le mouvement */
    background-clip: text; /* Applique le dégradé uniquement sur le texte */
    -webkit-background-clip: text; /* Compatibilité pour Safari */
    color: transparent; /* Rend le texte transparent pour afficher uniquement l'effet */
    animation: shine 3s linear infinite; /* Animation fluide */
}

@keyframes FormationList {
  0% {
    color: white;
  }

  50% {
    color: #74c5da;
  }

  100% {
    color: white;
  }
}

/* Responsive design */
@media (max-width: 768px) {

	.cat-name {
	    font-size: 1.8em;
	    width: 95%;
	    margin: auto;
	}

	.cat-description {
	    font-size: 1em;
	    width: 95%;
	    margin: auto;
	}

    .cat-text-box, .cat-text {
        width: 99%;
    }

    .categorie-box{
    	height: 280px;
    }

    .view-formations-btn{
    	font-size: 1.2em;

    }
}




/* ////////////////////////// Formations ///////////////////////////////////// */

/* Styles par défaut (bureau) */
.formations-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.formation-box {
    width: 95%;
    min-height: 200px;
    margin: 50px auto;
    display: flex;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 5px 5px 5px black;
    font-family: 'luciole';
}

.img-formation, .formation-nom, .show-formation-form {
    box-sizing: border-box;
}

.img-formation {
    width: 200px;
    height: 200px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.img-formation img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.formation-nom {
    width: 65%;
}

.show-formation-form {
    width: 15%;
}

.formation-nom h4 {
    margin-bottom: 10px;
    font-size: 2.5em;
}

.formation-nom p {
    font-size: 1.5em;
}

.formations-box {
    display: none;
    padding: 10px 50px;
}

.show-formation-btn {
    background: radial-gradient(at 70% 30%, white, #74c5da);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    font-size: 1.5em;
    line-height: 25px;
}

.show-formation-form {
    width: 100px;
    height: 100px;
    margin: auto;
}

.formation-nom {
    text-align: center;
    margin: auto;
}

.formation-content {
    text-align: center;
}

/* Responsive Design */

/* Petit écran (mobile) */
@media screen and (max-width: 769px) {

    .formations-box{
        width: 95%;
        margin: auto;
        padding: 10px;
    }

    .formation-box {
        flex-direction: column;
        height: auto;
        width: 98%; /* Plus large pour mobile */
    }

    .img-formation {
        width: 100%;
        height: 150px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 15px;
    }

    .img-formation img {
        width: 100px;
        height: 100px;
        object-fit: contain; /* L'image reste entière */
    }

    .formation-nom {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .show-formation-form {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    .formation-nom h4 {
        font-size: 2em;
    }

    .formation-nom p {
        font-size: 1.2em;
    }

    .show-formation-btn {
        width: 80px;
        height: 80px;
        font-size: 1.2em;
    }
}

/* Moyen écran (tablette) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .formation-box {
        width: 90%;
    }

    .img-formation {
        width: 150px;
        height: 150px;
    }

    .formation-nom h4 {
        font-size: 2em;
    }

    .formation-nom p {
        font-size: 1.3em;
    }

    .show-formation-btn {
        width: 90px;
        height: 90px;
        font-size: 1.3em;
    }
}



/* /////////////////////////////////////////// Show formation ////////////////////////////////////////////////////// */

#show-formation-box{
	  background-image: url(../images/formations/Formations-bg-page.jpg);
    background-attachment: fixed;
    background-size: cover;
    padding-top: 25px;
    padding-bottom: 25px;
    box-sizing: border-box; /* Inclut le padding dans les dimensions du conteneur */
    display: block;
}

#formation-prerequis-box, #formation-lieu-box{
    background-color: rgba(188, 184, 184, 0.7);
    font-size: 2em;
    font-family: "luciole";
    text-align: center;
    margin-top: 100px;
}

.formation-prerequis-title{
    padding-top: 50px;
}
.prerequis-lieu{
    font-size: 1em;
    /* Couleur initiale du texte */
    background: linear-gradient(90deg, black 40%, #ffffff 50%, black 60%, black);
    /* Halo qui va défiler */
    background-size: 200%;
    /* Taille pour permettre le mouvement */
    background-clip: text;
    /* Applique le dégradé uniquement sur le texte */
    -webkit-background-clip: text;
    /* Compatibilité pour Safari */
    color: transparent;
    /* Rend le texte transparent pour afficher uniquement l'effet */
    animation: shine 5s linear infinite;
    /* Animation fluide */
}

#formation-settings {
    text-align: center;
    margin-top: 100px;
    background-image: url(../images/categories/tableau-bg-2.jpg);
    background-size: cover;
    padding-bottom: 50px;
    padding-top: 25px;
}

.show-formation-carac{
    color: white;
}
.settings-box {
    display: inline-block;
    vertical-align: top;
    margin-right: 25px;
    margin-left: 25px;
    margin-top: 25px;
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%; /* Pour garder la forme ronde */
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.3), -8px -8px 20px rgba(0, 0, 0, 0.3); /* Ombre pour un effet 3D */
}

.settings-value {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    margin: auto;
    position: relative; /* Nécessaire pour le positionnement des enfants */
    overflow: hidden; /* Empêche le contenu de déborder du cercle */
    background: radial-gradient(circle at 100px 100px, #4290a3, rgb(0, 0, 0));
    font-family: 'luciole';
	color: black;
}

.settings-nom{
	background: radial-gradient(circle at 100px 100px, #4162e1, black);
	color: white;
}

.settings-value img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Assure que l'image garde une forme circulaire */
    z-index: 0; /* Place l'image en arrière-plan */
}

.settings-text {
    position: absolute; /* Positionne le texte par-dessus l'image */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centre le texte */
    font-size: 2em;
    text-align: center;
    z-index: 10; /* Place le texte au-dessus de l'image */
    width: 80%;
}

.cat-text a, .contact-link{
	text-decoration: none;
	font-family: "craie";
	font-size: 2em;
	animation: shine 3s linear infinite;
}

#menu-formation ul{
	width: 100%;
	text-align: center;
	margin-top: 100px;
}

#menu-formation li{
	display: inline-block;
	padding: 15px 20px;
	margin-left: 100px;
	margin-bottom: 50px;
	background-color: #74c5da;
	box-shadow: 5px 5px 5px 5px black;
	color: black;
	font-size: 2em;
	border-radius: 10px;
	font-family: 'luciole';
}

.comp-prog-title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 20px;
}

#formation-prog-comp {
    background-image: url(../images/categories/tableau-bg-2.jpg);
    background-size: cover;
    width: 90%;
    border-radius: 20px;
    margin: 25px auto;
    padding: 25px;
    font-family: "craie";
    color: #74c5da;
    box-shadow: 5px 5px 5px 5px black;
}

#formation-prog-comp h3, #formation-prog-comp p{
	color: white;
}

#show-programme-list {
    color: white;
}

#show-competences-list p {
    text-align: center;
    font-size: 1.5em;
}

#show-competences-list img, #show-programme-list img {
    height: 50px;
    width: 50px;
    vertical-align: middle; /* Align l'image au centre verticalement */
    margin-right: 10px; /* Espacement entre l'image et le texte */
}

.comp-prog-line {
    width: 90%;
    margin: auto;
    margin: 10px;
    font-size: 1em;
    margin: auto;
}

.competence-line {
    display: flex; /* Utilisation de flexbox pour aligner l'image et le texte */
    align-items: center; /* Aligne verticalement l'image et le texte */
    gap: 25px;
    margin-bottom: 25px;
}

.competence-line span {
    font-size: 1.8em;
}

.prog-title{
	font-size: 1.3em;
	color: #74c5da;
	margin: 30px auto;
}

#show-programme-list .comp-prog-line{
	font-size: 1.5em;
}

#show-programme-list .prog-title{
	font-size: 1.8em;
}

.link-box{
    width: 100%;
    text-align: center;
}

#contact{
    background-image: url(../images/contact-bg.jpg);
    background-attachment: fixed;
    background-size: cover;
    padding: 50px;
}

#contact-form{
    width: 60%;
    margin: auto;
    padding: 25px;
    border-radius: 20px;
    background-image: url(../images/categories/tableau-bg-2.jpg);
    background-size: cover;
    color: white;
    font-family: 'craie';
    font-size: 2em;
}

.form-title{
    font-family: arial;
    text-align: center;
    margin-bottom: 50px;
}

.form-group{
    display: inline-block;
    width: 45%;
    text-align: center;
    vertical-align: bottom;
}

.form-group-box{
    margin-bottom: 30px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Ajustements globaux */
  #show-formation-box {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  #show-competences-list {
    font-size: 0.7em; /* Réduit la taille de la police */
    text-align: center;
  }

  #show-competences-list .competence-line,
  #show-programme-list .competence-line {
    display: flex;
    flex-direction: column; /* Empile les éléments verticalement */
    align-items: center; /* Centre horizontalement */
  }

  #show-competences-list img,
  #show-programme-list img {
    margin-bottom: 0; /* Ajoute un espace entre l'image et le titre */
    margin-top: 40px;
  }

  #show-programme-list .competence-line {
    display: flex;
    flex-direction: column; /* Force les éléments à s'empiler verticalement */
    align-items: center; /* Centre les éléments horizontalement */
  }

  #show-programme-list img {
    display: block; /* Assure que l'image est traitée comme un bloc */
    margin: auto;
    margin-top: 40px;
    margin-bottom: 10px;
  }

  #show-programme-list .pro-title{
    margin: auto;
  }

  #formation-settings {
    margin-top: 50px;
    padding-bottom: 25px;
    padding-top: 15px;
  }

  .settings-box {
    width: 200px;
    height: 200px;
    margin: 15px auto; /* Centrer les cercles */
    margin: 15px 10px; /* Augmente l'écart horizontal entre les cercles */
  }

  .settings-value img {
    width: 100%;
    height: auto; /* Conserver les proportions */
  }

  .settings-text {
    font-size: 1.5em; /* Réduire la taille du texte */
  }

  #menu-formation ul {
    margin-top: 50px; /* Réduire l'espacement */
  }

  #menu-formation li {
    margin-left: 20px;
    margin-bottom: 20px;
    padding: 10px 15px;
    font-size: 1.5em;
  }

  #formation-prog-comp {
    width: 90%; /* Augmenter la largeur pour les petits écrans */
    padding: 20px;
    font-size: 1em; /* Ajuster la taille de la police */
  }

  .comp-prog-line {
    font-size: 1.2em; /* Réduire la taille de la ligne */
    margin: 5px auto;
  }

  .competence-line {
    flex-direction: column; /* Empiler les éléments verticalement */
    align-items: center;
    gap: 15px; /* Réduire l'espacement */
  }

  .competence-line img {
    margin-bottom: 10px; /* Ajouter de l'espacement */
  }

  .prog-title {
    font-size: 1.5em;
    text-align: center;
    margin: 20px auto;
  }
}

@media (max-width: 480px) {
  /* Ajustements supplémentaires pour les très petits écrans */
  .settings-box {
    width: 150px;
    height: 150px;
  }

  .settings-text {
    font-size: 1.2em;
  }

  #menu-formation li {
    margin-left: 10px;
    margin-bottom: 15px;
    font-size: 1.2em;
    padding: 8px 12px;
  }

  #formation-prog-comp {
    font-size: 0.9em;
    padding: 15px;
  }

  .competence-line {
    gap: 10px;
  }

  .prog-title {
    font-size: 1.2em;
  }
}

/* ////////////////////////////////////////////////////////////////// Contact /////////////////////////////////////////////////// */

#contact-form input{
    width: 90%;
    height: 30px;
    margin: 25px auto;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.7em;
}

#contact-form select{
    width: 100%;
    height: 50px;
    padding: 10px;
    text-align: center;
    background-color: #74c5da;
    font-size: 0.7em;
    margin: 25px auto;
}

#contact-form textarea{
    width: 100%;
    height: 200px;
    margin: 25px auto;
    font-size: 1em;
}

#contact-form button{
    padding: 10px 20px;
    background-color: #74c5da;
    border-radius: 10px;
    display: block;
    margin: auto;
    font-size: 1em;
}

#contact-form button:hover{
    cursor: pointer;
}

.one-field{
    width: 80%;
    display: block;
    margin: auto;
}

.formation-field label{
    color: #74c5da;
}

#contact-form .errors{
    font-family: "luciole";
    font-size: 0.7em;
    color: red;
    width: 100%;
    border-radius: 5px;
    padding: 5px;
    background: linear-gradient(
        90deg,
        red,       /* Rouge */
        red 40%,   /* Rouge */
        white 50%, /* Halo blanc */
        red 60%,   /* Rouge */
        red        /* Rouge */
    );

    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: slideText 2s linear infinite; /* Animation continue */
    background-size: 200% 100%; /* Double la largeur du dégradé pour le faire défiler */
}

@keyframes slideText {
  0% {
    background-position: 100% 0%; /* Commence à droite */
  }
  100% {
    background-position: -100% 0%; /* Défile vers la gauche */
  }
}


/* Style de base pour le texte */
.contact-link-2, .contact-link {
    display: inline-block;
    margin-top: 25px;
    color: #74c5da; /* Couleur initiale du texte */
    background: linear-gradient(90deg, #74c5da, #74c5da 40%, #ffffff 50%, #74c5da 60%, #74c5da); /* Halo qui va défiler */
    background-size: 200%; /* Taille pour permettre le mouvement */
    background-clip: text; /* Applique le dégradé uniquement sur le texte */
    -webkit-background-clip: text; /* Compatibilité pour Safari */
    color: transparent; /* Rend le texte transparent pour afficher uniquement l'effet */
    animation: shine 3s linear infinite; /* Animation fluide */
}

/* Animation de l'effet lumineux */
@keyframes shine {
  0% {
    background-position: 200% 0; /* Commence à droite */
  }
  100% {
    background-position: -200% 0; /* Termine à gauche */
  }
}

.flash-box
{
    background-color: blue;
}

.flash {
    font-size: 2em;
    background: blue;
    color: white;
    font-family: "luciole";
    text-align: center;
    padding: 15px;
    background: linear-gradient(
        90deg,
        white,     /* Blanc */
        white 40%,  /* Blanc */
        gray 50%,  /* Halo noir */
        white 60%,  /* Blanc */
        white       /* Blanc */
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: slideTextWhite 2s linear infinite; /* Animation continue */
    background-size: 200% 100%; /* Double la largeur du dégradé pour le faire défiler */
}

@keyframes slideTextWhite {
  0% {
    background-position: 100% 0%; /* Commence à droite */
  }
  100% {
    background-position: -100% 0%; /* Défile vers la gauche */
  }
}

/* Responsive Design */
@media (max-width: 768px) {
    #form-title{
        font-size: 1em;
    }
    #contact{
        padding: 5px;
    }
    #contact-form{
        width: 85%;
        margin: auto;
    }

  #contact-form input,
  #contact-form select,
  #contact-form textarea {
    width: 85%;
    font-size: 0.5em; /* Ajuster la taille de police pour les écrans moyens */
    padding: 15px;
    margin: 20px auto;
  }

  #contact-form select{
    height: 70px;
  }

  #contact-form textarea{
    width: 70%;
  }

  #contact-form button {
    padding: 12px 25px;
    font-size: 0.7em;
    width: 90%;
  }

  .errors {
    font-size: 0.5em; /* Ajuster la taille des erreurs pour les écrans plus petits */
  }

  /* Ajuster la taille des labels et la disposition des champs */
  #contact-form label {
    font-size: 0.3em;
  }

  .one-field {
    width: 90%; /* S'assurer que les champs sont larges et fluides */
    margin: 15px auto;
  }

  /* Espacement pour la formation concernée */
  .formation-field {
    width: 90%;
  }

  /* Style pour les liens de contact */
  .contact-link-2, .contact-link {
    font-size: 1.2em;
    margin-top: 15px;
  }

  /* Réduire l'espace entre les sections de formulaire */
  .form-group-box {
    margin-bottom: 20px;
  }

  .form-group{
    display: block;
    width: 90%;
  }


}

@media (max-width: 480px) {
    #form-title{
        font-size: 1em;
    }

  #contact-form input,
  #contact-form select,
  #contact-form textarea {
    width: 90%; /* Rendre les champs encore plus larges sur les petits écrans */
    font-size: 1em;
    padding: 15px;
    margin: 15px auto;
  }

  #contact-form button {
    width: 95%;
    padding: 15px 30px;
    font-size: 0.8em;
  }

  /* Réduction de la taille des erreurs pour mieux s'adapter */
  .errors {
    font-size: 0.8em;
  }

  /* Réduire les labels */
  #contact-form label {
    font-size: 0.8em;
  }

  /* Ajuster les liens de contact */
  .contact-link-2, .contact-link {
    font-size: 1.2em;
    margin-top: 20px;
  }

  .one-field {
    width: 95%; /* Plus large sur les petits écrans */
    margin: 10px auto;
  }

  /* Pour l'espace de la section Formation */
  .formation-field {
    width: 95%;
  }

  .form-group{
    display: block;
    width: 90%;
    margin: auto;
  }

  .errors{
    height: inherit;
  }
}


/* /////////////////////////////////////////////////// Page d'accueil /////////////////////////////////////////// */


#banner {
    background-image: url(../images/banner.jpg);
    background-size: cover;
    height: 550px;
    width: 100%;
    display: flex;
    justify-content: center; /* Centrer horizontalement */
    align-items: center; /* Centrer verticalement */
    text-align: center;
}

#banner-title {
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    padding: 25px 0;
    display: flex;
    align-items: center; /* Centrer le contenu à l'intérieur */
    justify-content: center; /* Centrer le contenu à l'intérieur */
}

#banner-title img {
    width: 150px;
    height: 150px;
    margin-right: 50px; /* Ajouter un peu d'espace entre l'image et le texte */
}

h1 {
    font-size: 4em;
    font-family: "luciole";
    color: #74c5da;
    margin: 0;
}

/* --- Responsive Design pour la bannière --- */

/* Écrans moyens (tablettes, largeur max : 1024px) */
@media (max-width: 1024px) {
  #banner {
    height: 400px; /* Réduction de la hauteur */
  }

  #banner-title {
    padding: 15px 0; /* Moins de padding pour économiser de l'espace */
    flex-direction: column; /* Aligne le contenu en colonne */
  }

  #banner-title img {
    width: 120px; /* Réduction de la taille du logo */
    height: 120px;
    margin-right: 0; /* Supprime l'espace latéral */
    margin-bottom: 15px; /* Ajoute de l'espace sous l'image */
  }

  h1 {
    font-size: 3em; /* Taille réduite pour les titres */
  }
}

/* Écrans petits (mobiles, largeur max : 768px) */
@media (max-width: 768px) {
  #banner {
    height: 300px; /* Hauteur encore réduite */
  }

  #banner-title {
    padding: 10px 0;
  }

  #banner-title img {
    width: 100px; /* Taille encore réduite pour le logo */
    height: 100px;
    margin-bottom: 10px; /* Ajustement de l'espace */
  }

  h1 {
    font-size: 2.5em; /* Plus petite taille pour le titre */
  }
}

/* Écrans très petits (mobiles étroits, largeur max : 480px) */
@media (max-width: 480px) {
  #banner {
    height: 250px; /* Hauteur minimale pour économiser l'espace vertical */
  }

  #banner-title {
    padding: 8px 0;
  }

  #banner-title img {
    width: 80px; /* Réduction maximale du logo */
    height: 80px;
  }

  h1 {
    font-size: 2em; /* Taille compacte pour le texte */
  }
}


#home-page{
    font-family: "luciole";
    padding-top: 100px;
    padding-bottom: 100px;
    background-image: url(../images/home-bg.jpg);
    background-size: cover;
    background-attachment: fixed;
}

#formations-presentation{

    text-align: center;
    vertical-align: middle;
    background-color: #d2ecf0;
}
/* Les parties formations et avantages occupent chacune la moitié de la largeur */
.formations-part,
.advantages-part {
  padding: 20px;
  display: inline-block;
  width: 45%;
  margin: 25px 20px;
  min-height: 200px; /* Assure une hauteur minimale pour éviter que les sections deviennent trop petites */

}

.formations-part{
    height: auto;
}

/* Pour les images et titres dans chaque partie */
.home-titles {
  display: flex; /* Active Flexbox pour un alignement horizontal */
  align-items: center; /* Aligne verticalement le contenu */
  justify-content: center; /* Les éléments restent à gauche */
  text-align: left; /* Texte aligné à gauche */
  margin-bottom: 20px;
  gap: 15px; /* Espace entre l'image et le texte */
}

.home-titles img {
  max-width: 100px; /* Taille maximale pour l'image */
  height: auto; /* Garde les proportions */
  flex-shrink: 0; /* Empêche l'image de rétrécir */
}

.home-titles h2 {
  font-size: 2em;
  margin: 0;
  line-height: 1.2; /* Assure une bonne lisibilité */
}

/* Style des paragraphes */
.paraf {
  text-align: center;
  font-size: 1.5em;
  line-height: 1.5;
  width: 90%;
  margin: 10px auto;
}

/* --- Responsive Design pour la section Formations --- */
/* --- Responsive Design pour les écrans entre 1024px et 1700px --- */
@media (min-width: 1024px) and (max-width: 1700px) {
  #formations-presentation {
    padding: 30px; /* Augmente l'espace autour de la section */
  }

  .formations-part {
    width: 45%; /* Les sections occupent 45% de la largeur */
    display: inline-block; /* Garder les sections côte à côte */
    margin: 25px 20px; /* Espacement entre les sections */
    box-sizing: border-box; /* Garantir que padding n'affecte pas la largeur */
    text-align: center;
  }

  .home-titles {
    flex-direction: row; /* Aligne les éléments horizontalement */
    gap: 20px; /* Augmente l'espace entre l'image et le titre */
  }

  .home-titles img {
    width: 100px; /* Taille de l'image (plus grande pour les écrans plus larges) */
    height: 100px;
  }

  .home-titles h2 {
    font-size: 2.2em; /* Taille du titre plus grande */
    text-align: center;
  }

  .paraf {
    font-size: 1.6em; /* Augmente la taille du texte pour une meilleure lisibilité */
    width: 80%; /* Garder une largeur raisonnable pour le texte */
    margin: 20px auto; /* Centrer le texte */
  }
}

/* Écrans moyens (tablettes, largeur max : 1024px) */
@media (max-width: 1024px) {
  #formations-presentation {
    padding: 20px; /* Ajout de padding pour aérer la section */
  }

  .formations-part {
    width: 90%; /* Les sections occupent presque toute la largeur */
    display: block; /* Mise en colonne pour une meilleure lisibilité */
    margin: 15px auto; /* Marge auto pour centrer les sections */
    box-sizing: border-box; /* Garantit que le padding n'affecte pas la largeur */
    text-align: center;
  }

  .home-titles {
    flex-direction: column; /* Aligne les éléments en colonne */
    gap: 10px; /* Réduit l'espace entre l'image et le titre */
  }

  .home-titles img {
    width: 80px; /* Réduit la taille des images */
    height: 80px;
  }

  .home-titles h2 {
    font-size: 1.8em; /* Taille du titre réduite */
    text-align: center;
  }

  .paraf {
    font-size: 1.4em; /* Taille de police légèrement réduite pour les petits écrans */
    width: 95%; /* Largeur du texte ajustée à 95% */
    margin: 10px auto; /* Centrer le texte horizontalement */
  }
}

/* Écrans petits (mobiles, largeur max : 768px) */
@media (max-width: 768px) {
  #formations-presentation {
    padding: 15px; /* Moins de padding */
  }

  .formations-part {
    width: 100%; /* Les sections prennent toute la largeur disponible */
    margin: 10px 0; /* Moins de marge entre les sections */
    box-sizing: border-box; /* Garantit que le padding n'affecte pas la largeur */
    text-align: center;
  }

  .home-titles {
    flex-direction: column; /* Aligne le contenu en colonne */
    gap: 8px; /* Réduit l'espace entre l'image et le texte */
  }

  .home-titles img {
    width: 60px; /* Taille encore réduite pour les petits écrans */
    height: 60px;
  }

  .home-titles h2 {
    font-size: 1.6em; /* Réduit encore la taille du titre */
    text-align: center;
  }

  .paraf {
    font-size: 1.2em; /* Taille du texte réduite pour les mobiles */
    width: 95%; /* Largeur du texte ajustée à 95% */
    margin: 10px auto; /* Centrer le texte horizontalement */
  }
}

/* Écrans très petits (mobiles étroits, largeur max : 480px) */
@media (max-width: 480px) {
  #formations-presentation {
    padding: 10px; /* Encore moins de padding */
  }

  .formations-part {
    width: 100%; /* Les sections occupent toute la largeur */
    margin: 5px 0; /* Réduit encore la marge */
    box-sizing: border-box; /* Garantit que le padding n'affecte pas la largeur */
    text-align: center;
  }

  .home-titles {
    flex-direction: column; /* Toujours en colonne */
    gap: 5px; /* Espace minimal entre l'image et le titre */
  }

  .home-titles img {
    width: 50px; /* Réduction maximale de l'image */
    height: 50px;
  }

  .home-titles h2 {
    font-size: 1.4em; /* Taille du titre réduite pour les très petits écrans */
    text-align: center;
  }

  .paraf {
    font-size: 1.1em; /* Police encore plus petite */
    width: 100%; /* Toujours toute la largeur */
    margin: 5px auto; /* Centre le texte */
  }
}


/* Section générale */
#home-formations-list {
  padding: 100px 0; /* Espace autour de la section */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#home-formations-list a {
  font-size: 1em;
}

.formations-link-home {
  font-size: 2em !important;
}

/* Conteneur principal, style tableau */
#home-formations-list .cat-text-box {
  width: 80%; /* Largeur du tableau */
  max-width: 1200px; /* Taille maximale */
  height: 500px; /* Hauteur fixe */
  position: relative;
  margin: auto;
  box-shadow: 5px 5px 5px 3px; /* Effet d'ombre */
  padding: 20px; /* Ajouter du padding pour éviter que le texte ne touche les bords */
}

/* Image de fond (tableau noir) */
#home-formations-list .bg-cat {
  position: absolute; /* Couvre tout le conteneur */
  top: 0;
  left: 0;
  width: 100%; /* Remplit la largeur */
  height: 100%; /* Remplit la hauteur */
  z-index: 0; /* Derrière le texte */
}

/* Texte centré */
#home-formations-list .cat-text {
  position: absolute; /* Centrage absolu */
  top: 50%; /* Centre verticalement */
  left: 50%; /* Centre horizontalement */
  transform: translate(-50%, -50%); /* Compense le décalage */
  text-align: center;
  z-index: 1; /* Par-dessus l'image */
  width: 80%; /* Largeur du texte */
}

/* Titre et texte */
#home-formations-list .cat-name,
#home-formations-list .cat-description {
  font-family: "craie", sans-serif; /* Police style craie */
  color: white;
}

#home-formations-list .cat-name {
  font-size: 2.5em; /* Taille du titre */
  margin-bottom: 20px;
  text-align: center; /* S'assurer que le titre est centré */
}

#home-formations-list .cat-description {
  font-size: 1.4em; /* Taille du texte */
  line-height: 1.5; /* Espacement des lignes */
  width: 98%; /* Rendre le paragraphe presque aussi large que le conteneur */
  margin: 0 auto; /* Centrer le texte */
}

/* Lien dans le texte */
#home-formations-list .cat-description a {
  color: #74c5da; /* Couleur des liens */
  text-decoration: underline;
}

/* Lien principal */
#home-formations-list .formations-link-home {
  font-size: 1.6em; /* Taille réduite du lien */
  margin-top: 20px; /* Espacement autour du lien */
  display: inline-block;
}


/* Responsive Design */

/* Écrans plus petits (moins de 1024px) */
@media (max-width: 1024px) {
  #home-formations-list {
    padding: 50px 0; /* Réduction des espaces autour de la section */
  }

  #home-formations-list .cat-text-box {
    width: 90%; /* Largeur réduite pour les écrans plus petits */
    height: 400px; /* Réduire la hauteur pour les petits écrans */
  }

  #home-formations-list .cat-name {
    font-size: 2em; /* Réduire la taille du titre */
  }

  #home-formations-list .cat-description {
    font-size: 1.2em; /* Réduire la taille du texte */
  }

  #home-formations-list .formations-link-home {
    font-size: 1.2em; /* Réduire la taille du lien */
  }
}

/* Écrans très petits (moins de 768px) */
@media (max-width: 768px) {
    #home-formations-list .cat-text{
        width: 98%;
    }



  #home-formations-list .cat-text-box {
    width: 100%; /* Largeur à 100% pour les très petits écrans */
    height: 350px; /* Réduire encore la hauteur */
  }

  #home-formations-list .cat-name {
    font-size: 1.8em; /* Réduire davantage la taille du titre */
  }

  #home-formations-list .cat-description {
    font-size: 1.1em; /* Réduire davantage la taille du texte */
    width: 98%; /* Réduire la largeur du texte à 98% */
  }

  #home-formations-list .formations-link-home {
    font-size: 1.1em; /* Réduire la taille du lien */
  }
}

/* Écrans très petits (moins de 480px) */
@media (max-width: 480px) {

    #home-formations-list .cat-text{
        width: 98%;
    }

    .formations-link-home{
        font-size: 1.5em !important;
    }

  #home-formations-list .cat-name {
    font-size: 1.6em; /* Réduire davantage la taille du titre */
  }

  #home-formations-list .cat-description {
    font-size: 1em; /* Réduire la taille du texte */
  }

  #home-formations-list .formations-link-home {
    font-size: 1.1em; /* Réduire la taille du lien */
  }
}


.bold{
    font-weight: bold;
}

.bold-2{
    color: #74c5da;
}

#advantages{
    background-color: #74c5da;

}

#advantages-title{
    text-align: center;
    font-size: 3em;
    padding: 15px;
}

/* Style des éléments en gras */
.bold {
    font-weight: bold;
}

.bold-2 {
    color: #74c5da;
}

/* Section principale - avantages */
#advantages {
    background-color: #d2ecf0; /* Fond bleu pour toute la section */
    padding: 50px 0;
}

/* Titre principal */
#advantages-title {
    text-align: center;
    font-size: 3em;
    padding: 15px;
    margin-bottom: 30px;
}

/* Conteneur des avantages */
#advantages .advantages-box {
    display: flex;
    flex-wrap: wrap; /* Pour que les éléments se réarrangent sur plusieurs lignes si nécessaire */
    justify-content: space-between;
    gap: 20px; /* Espace entre les sections */
    margin: 0 auto;
    width: 90%;
}

/* Section individuelle d'avantage */
#advantages .advantages-part {
    width: 45%; /* Largeur par défaut */
    padding: 20px;
    margin: 10px 0;
    color: black; /* Texte noir pour les boîtes */
}

/* Pour les images et titres dans chaque section */
#advantages-part .home-titles {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    text-align: center;
}

#advantages .home-titles img {
    width: 60px;
    height: auto;
}

#advantages .home-titles h2 {
    font-size: 1.8em;
    margin: 0;
    color: black;
}

/* Style des paragraphes */
#advantages .paraf {
    font-size: 1.4em;
    line-height: 1.5;
    text-align: center;
}

/* Lien dans le texte */
#advantages .paraf a {
    color: #74c5da; /* Lien coloré en bleu */
}

/* Responsive Design */

/* Écrans plus petits (moins de 1024px) */
@media (max-width: 1024px) {
    #advantages-title {
        font-size: 2.5em; /* Réduction de la taille du titre */
    }

    #advantages .advantages-box {
        width: 90%; /* Réduit la largeur des boîtes */
    }

    #advantages .advantages-part {
        width: 100%; /* Les parties se prennent toute la largeur */
        padding: 15px; /* Réduction du padding */
    }

    #advantages .home-titles h2 {
        font-size: 1.6em; /* Taille des titres réduite */
    }

    #advantages .paraf {
        font-size: 1.2em; /* Réduction de la taille du texte */
        text-align: center;
    }
}

/* Écrans encore plus petits (moins de 768px) */
@media (max-width: 768px) {
    #advantages-title {
        font-size: 2.2em; /* Taille du titre encore réduite */
    }

    #advantages .advantages-box {
        width: 100%; /* Occupe toute la largeur */
    }

    #advantages .advantages-part {
        width: 100%; /* Une seule colonne */
        padding: 10px;
    }

    #advantages .home-titles h2 {
        font-size: 1.4em; /* Réduction supplémentaire */
    }

    #advantages .paraf {
        font-size: 1.1em; /* Taille de texte réduite */
        text-align: center;
    }
}

/* Écrans très petits (moins de 480px) */
@media (max-width: 480px) {
    #advantages-title {
        font-size: 1.8em; /* Taille du titre encore plus petite */
    }

    #advantages .advantages-box {
        width: 100%;
    }

    #advantages .advantages-part {
        padding: 8px; /* Réduction du padding */
    }

    #advantages .home-titles h2 {
        font-size: 1.3em; /* Réduction de la taille des titres */
    }

    #advantages .paraf {
        font-size: 1em; /* Taille du texte encore réduite */
        text-align: c
    }
}


/* /////////////////////////////////////////////////////////// Qui nous sommes /////////////////////////////////////////// */


/* /////////////////////////////////////////////////////////// Backend ////////////////////////////////////////////////////////////////////////////////*/

/* //////// Général ///////////// */

#ajout-formation-page, #modifier-competence, #modifier-formation-page, #modif-img-page, #modifier-programme-page, #login-page, #ajouter-categorie-page, #modifier-cat-page{
    background-image: url(../images/contact-bg.jpg);
    background-size: cover;
    min-height: 100vh;
}
/* /////////////////////////////////////// Redirect admin /////////////////////////////////*/

#redirect-admin{
	width: 50px;
	height: 50px;
}

#redirect-admin:hover{
	cursor: pointer;
}
/* Structure de base */
#login-page {
    padding: 50px;
}

#login-form-box {
    width: 40%;
    margin: auto;
    background-image: url(../images/categories/tableau-bg-2.jpg);
    background-size: cover;
    padding: 100px 20px;
    border-radius: 10px;
    font-size: 2em;
    font-family: "craie";
    color: white;
    text-align: center;
}

#login-form .title-form {
    font-size: 1.5em;
    font-family: "craie";
    text-align: center;
    margin-bottom: 50px;
}

#login-form input {
    width: 60%;
    height: 50px;
    margin: 20px auto;
    font-size: 1.5em;
}

#login-form button {
    font-size: 1.5em;
    padding: 10px 15px;
    background-color: #74c5da;
    color: black;
    border-radius: 10px;
}

/* --- Responsive Design --- */

/* Tablettes : largeur maximale 1024px */
@media (max-width: 1024px) {
    #login-form-box {
        width: 60%;
        padding: 80px 15px;
        font-size: 1.8em;
    }

    #login-form input {
        width: 70%;
        height: 45px;
        font-size: 1.4em;
    }

    #login-form button {
        font-size: 1.4em;
        padding: 8px 12px;
    }
}

/* Mobiles larges : largeur maximale 768px */
@media (max-width: 768px) {
    #login-form-box {
        width: 80%;
        padding: 60px 15px;
        font-size: 1.6em;
    }

    #login-form .title-form {
        font-size: 1.4em;
    }

    #login-form input {
        width: 80%;
        height: 40px;
        font-size: 1.3em;
    }

    #login-form button {
        font-size: 1.3em;
        padding: 8px 10px;
    }
}

/* Petits mobiles : largeur maximale 480px */
@media (max-width: 480px) {
    #login-form-box {
        width: 90%;
        padding: 50px 10px;
        font-size: 1.4em;
    }

    #login-form .title-form {
        font-size: 1.2em;
        margin-bottom: 30px;
    }

    #login-form input {
        width: 90%;
        height: 35px;
        font-size: 1.2em;
    }

    #login-form button {
        font-size: 1.2em;
        padding: 6px 8px;
    }
}

/* ///////////////////////////////// Home page ////////////////////////////////// */
.btn{
    height: 60px;
    width: 60px;
}

.btn img{
    width: 35px;
    height: 35px;
}

.update-formation-form button{
    display: block;
    margin-top: 15%;
    margin-right: 10px;
}

.btn-modif{
    background-color: blue;
    padding: 10px;
    border-radius: 50%;
}

.btn-suppr{
    background-color: darkred;
    padding: 10px;
    border-radius: 50%;
}

.update-categorie-form button{
    margin: 20px 50px;
}

/* /////////////////////////// Ajouter formation ////////////////////////////////// */
/* --- CSS de base --- */

#ajout-formation-page {
    padding: 50px;
}

#ajout-formation-box {
    width: 80%;
    margin: auto;
    background-image: url(../images/categories/tableau-bg-2.jpg);
    background-size: cover;
    padding: 100px 20px;
    border-radius: 10px;
    font-size: 2em;
    font-family: "craie";
    color: white;
    text-align: center;
}

#ajouter-formation-form input {
    width: 80%;
    height: 50px;
    font-size: 1em;
    margin-bottom: 25px;
    margin-top: 10px;
}

#ajouter-formation-form textarea {
    width: 80%;
    height: 100px;
    margin-bottom: 25px;
    margin-top: 10px;
}

#ajouter-formation-form select {
    width: 80%;
    height: 50px;
    font-size: 1em;
    background-color: #74c5da;
    margin-bottom: 25px;
    margin-top: 10px;
}

#ajouter-formation-form button {
    background-color: #74c5da;
    font-size: 0.8em;
}

#image-formation {
    font-size: 1.5em;
}

#ajouter-formation-form h2 {
    color: #74c5da;
    margin-bottom: 50px;
}

.img-form-formation {
    width: 80%;
    margin: auto;
}

.img-form-formation input {
    height: 80px !important;
    margin: auto;
    font-size: 0.7em;
    text-align: center;
}

.btn-valide {
    border-radius: 50%;
    padding: 10px;
    background-color: green !important;
}

/* --- Responsive Design --- */

/* Tablettes : largeur maximale 1024px */
@media (max-width: 1024px) {
    #ajout-formation-page{
        padding: 20px;
    }

    #ajout-formation-box {
        width: 98%;
        padding: 80px 15px;
        font-size: 1.8em;
    }

    #ajouter-formation-form input,
    #ajouter-formation-form textarea,
    #ajouter-formation-form select {
        width: 85%;
        font-size: 1.2em;
    }

    #ajouter-formation-form h2 {
        font-size: 1.5em;
    }

    .img-form-formation input {
        height: 70px;
        font-size: 0.8em;
    }
}

/* Mobiles larges : largeur maximale 768px */
@media (max-width: 768px) {
    #ajout-formation-box {
        width: 95%;
        padding: 60px 10px;
        font-size: 1.6em;
    }

    #ajouter-formation-form input,
    #ajouter-formation-form textarea,
    #ajouter-formation-form select {
        width: 90%;
        font-size: 1.1em;
    }

    #ajouter-formation-form h2 {
        font-size: 1.4em;
    }

    .img-form-formation input {
        height: 60px;
        font-size: 0.7em;
    }
}

/* Petits mobiles : largeur maximale 480px */
@media (max-width: 480px) {
    #ajout-formation-box {
        width: 100%;
        padding: 40px 5px;
        font-size: 1.4em;
    }

    #ajouter-formation-form input,
    #ajouter-formation-form textarea,
    #ajouter-formation-form select {
        width: 95%;
        font-size: 1em;
    }

    #ajouter-formation-form h2 {
        font-size: 1.2em;
        margin-bottom: 30px;
    }

    .img-form-formation input {
        height: 50px;
        font-size: 0.6em;
    }

    .btn-valide {
        padding: 8px;
        font-size: 0.7em;
    }
}

/* /////////////////////////////////////////// ajouter catégorie ////////////////////////////////////////// */

/* --- CSS de base --- */

#ajouter-categorie-page {
    padding: 50px;
}

#categorie-form {
    width: 70%;
    margin: auto;
    background-image: url(../images/categories/tableau-bg-2.jpg);
    background-size: cover;
    padding: 50px 20px;
    border-radius: 10px;
    font-size: 2em;
    font-family: "craie";
    color: white;
    text-align: center;
}

#categorie-form h2 {
    margin-bottom: 25px;
    color: #74c5da;
}

#categorie-form input {
    width: 80%;
    height: 40px;
    font-size: 1.3em;
    margin-bottom: 25px;
    margin-top: 10px;
}

#categorie-form textarea {
    width: 80%;
    height: 100px;
    margin-bottom: 25px;
    margin-top: 10px;
}

/* --- Responsive Design --- */

/* Tablettes : largeur maximale 1024px */
@media (max-width: 1024px) {

    #ajouter-categorie-page {
        padding: 20px;
    }

    #categorie-form {
        width: 85%;
        padding: 40px 15px;
        font-size: 1.8em;
    }

    #categorie-form h2 {
        font-size: 1.5em;
    }

    #categorie-form input,
    #categorie-form textarea {
        width: 85%;
        font-size: 1.2em;
    }
}

/* Mobiles larges : largeur maximale 768px */
@media (max-width: 768px) {
    #categorie-form {
        width: 90%;
        padding: 30px 10px;
        font-size: 1.6em;
    }

    #categorie-form h2 {
        font-size: 1.4em;
    }

    #categorie-form input,
    #categorie-form textarea {
        width: 90%;
        font-size: 1.1em;
    }
}

/* Petits mobiles : largeur maximale 480px */
@media (max-width: 480px) {
    #categorie-form {
        width: 100%;
        padding: 20px 5px;
        font-size: 1.4em;
    }

    #categorie-form h2 {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    #categorie-form input,
    #categorie-form textarea {
        width: 95%;
        font-size: 1em;
    }

    #categorie-form input {
        height: 35px;
    }

    #categorie-form textarea {
        height: 80px;
    }

    .btn-valide {
        padding: 8px;
        font-size: 0.8em;
    }
}

/* ///////////////////////////////////// Modifier formation //////////////////////////// */

#modifier-formation-page{
    padding: 50px;
}

#modifier-formation-form{
    width: 90%;
    margin: auto;
    background-image: url(../images/categories/tableau-bg-2.jpg);
    background-size: cover;
    padding: 50px 20px;
    border-radius: 10px;
    font-size: 2em;
    font-family: "craie";
    color: white;
    text-align: center;
}

#modifier-formation-form input{
    width: 90%;
    height: 50px;
    border-radius: 10px;
    font-size: 1em;
    margin-top: 10px;
    margin-bottom: 25px;
}

#modifier-formation-form textarea{
    width: 90%;
    height: 150px;
    border-radius: 10px;
    font-size: 1em;
    margin-top: 10px;
    margin-bottom: 25px;
}

#modifier-formation-form select{
    font-size: 1em;
    width: 70%;
    height: 70px;
    padding: 10px 15px;
    background-color: #74c5da;
    margin-top: 10px;
    margin-bottom: 25px;
}

#modifier-formation-form h2{
    color: #74c5da;
    margin-bottom: 50px;
}

#img-visu img{
    width: 200px;
    height: 200px;
    margin-top: 10px;
    margin-bottom: 50px;
}

/* ///////////////////////////////////////// Compétence ////////////////////////////////// */

#competences-box {
    padding: 50px;
}

#modifier-competence-form {
    width: 60%;
    margin: auto;
    background-image: url(../images/categories/tableau-bg-2.jpg);
    background-size: cover;
    padding: 40px 20px;
    border-radius: 10px;
    font-size: 2em;
    font-family: "craie";
    color: white;
    text-align: center;
}

#modifier-competence-form h2 {
    margin-bottom: 40px;
    color: #74c5da;
}

#modifier-competence-form input {
    width: 80%;
    height: 50px;
    border-radius: 10px;
    font-size: 1em;
    margin-top: 10px;
    margin-bottom: 25px;
    padding: 5px 10px;
}

#competences-list {
    width: 70%;
    margin: 30px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    font-size: 1em;
    text-align: left;
    color: #333;
    font-family: "craie";
}

.competence {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    font-family: "luciole";
    color: black;
    font-size: 1.5em;
}

.competence:last-child {
    border-bottom: none;
}

.competence p {
    margin: 0;
    font-size: 1.1em;
}

.update-competence-form {
    display: flex;
    gap: 10px;
}

/* /////////////////////////////////// Programmes ///////////////////////////////////////////////// */

#programmes-box {
    padding: 50px;
}

#modifier-programme-form {
    width: 70%;
    margin: auto;
    background-image: url(../images/categories/tableau-bg-2.jpg);
    background-size: cover;
    padding: 50px 20px;
    border-radius: 10px;
    font-size: 1.5em;
    font-family: "craie";
    color: white;
    text-align: center;
}

#modifier-programme-form h2 {
    color: #74c5da;
    margin-bottom: 50px;
}

#modifier-programme-form input,
#modifier-programme-form select {
    width: 80%;
    height: 60px;
    border-radius: 10px;
    font-size: 0.8em;
    margin: 10px 0 25px;
    padding: 10px 15px;
}

#modifier-programme-form textarea {
    width: 90%;
    height: 150px;
    border-radius: 10px;
    font-size: 0.8em;
    margin: 10px 0 25px;
    padding: 10px;
}

#modifier-programme-form select {
    background-color: #74c5da;
    color: black;
    border: none;
}



#programmes-list {
    margin: 50px auto;
    width: 70%;
    text-align: left;
}

.programme {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 15px 0;
    padding: 20px;
    font-size: 1em;
    color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    font-family: "luciole";
}

.programme form {
    display: flex;
    gap: 10px;
}

.comp-prog-title{
    font-family: "luciole";
    font-size: 2.5em;
    color: black;
    text-align: center;
}

.button-link{
    display: inline-block;
    height: 60px;
    width: 60px;
    padding: 10px;
    box-shadow: 0 0 0 2px white;
}

.formation-menu:hover{
	cursor: pointer;
}
/* ======= Mobile-first approach ======= */

/* Très petits écrans (jusqu'à 480px, smartphones en mode portrait) */
@media (max-width: 480px) {

    #modifier-formation-page, #competences-box, #programmes-box{
        padding: 10px;
    }

    body {
        font-size: 14px;
    }

    #modifier-formation-form,
    #modifier-programme-form,
    #modifier-competence-form,
    #competences-list,
    #programmes-list {
        width: 95%; /* Utilisation maximale de l'écran */
        font-size: 0.9em; /* Réduction des polices pour plus de lisibilité */
    }

    .form-group-box {
        flex-direction: column; /* Tous les champs empilés */
        gap: 15px;
    }

    .form-group {
        width: 100%;
    }

    #modifier-formation-form input,
    #modifier-formation-form textarea,
    #modifier-formation-form select,
    #modifier-programme-form input,
    #modifier-programme-form select {
        width: 100%; /* Champs prenant toute la largeur */
        font-size: 0.9em;
    }

    #img-visu img {
        width: 80px; /* Images encore plus petites */
        height: 80px;
    }

    .competence, .programme {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .competence p, .programme p {
        font-size: 0.9em; /* Réduction de la taille des descriptions */
    }

    .comp-prog-title {
        font-size: 1.8em; /* Réduction des titres */
    }

    #modifier-programme-form input{
        width: 90%;
    }

    #nom-programme{
        width: 90%;
    }



    button {
        font-size: 0.8em; /* Réduction des boutons */
    }
}

/* Petit écran (jusqu'à 768px, smartphones et petits tablettes) */
@media (max-width: 768px) {

    #modifier-formation-form,
    #modifier-programme-form,
    #modifier-competence-form,
    #competences-list,
    #programmes-list {
        width: 95%; /* Utilisation maximale de l'écran */
        margin: auto;
        font-size: 1em;
    }

    .form-group-box {
        flex-direction: column; /* Champs empilés */
        gap: 20px;
    }

    .form-group {
        width: 100%;
    }

    #modifier-formation-form input,
    #modifier-formation-form textarea,
    #modifier-formation-form select,
    #modifier-programme-form select {
        width: 98%; /* Champs prenant toute la largeur */
    }

    #modifier-programme-form input{
        width: 90%;
    }

    #img-visu img {
        width: 100px; /* Images réduites */
        height: 100px;
    }

    .competence, .programme {
        flex-direction: column; /* Superposition sur petit écran */
        gap: 10px;
        padding: 15px;
    }

    .competence p, .programme p {
        font-size: 1em;
    }

    .comp-prog-title {
        font-size: 2em;
    }
}

/* Écran moyen (tablettes entre 769px et 1024px) */
@media (max-width: 1024px) {

    #modifier-formation-form,
    #modifier-programme-form,
    #modifier-competence-form,
    #competences-list,
    #programmes-list {
        width: 90%;
        font-size: 1.2em;
    }

    .form-group-box {
        gap: 30px;
    }

    .competence, .programme {
        padding: 20px;
    }

    .comp-prog-title {
        font-size: 2.5em;
    }
}

/* Grand écran (à partir de 1025px, pour éviter les débordements sur très grands écrans) */
@media (min-width: 1440px) {
    #modifier-formation-form,
    #modifier-programme-form,
    #modifier-competence-form,
    #competences-list,
    #programmes-list {
        width: 90%; /* Réduction pour éviter un affichage trop large */
    }

    .comp-prog-title {
        font-size: 3em;
    }
}

/* //////////////////////////////////////////// Modifier image ///////////////////////////////////// */

#modif-img-page {
    display: flex;
    justify-content: space-between;
    padding: 50px;
    font-family: "craie", sans-serif;
}

#modif-img-cat-box{
    text-align: center;
    color: white
}
.infos{
    display: inline-block;
    width: 40%;
}

.infos p{
    font-size: 1.5em;
}

/* Partie actuelle de l'image */
#modif-img-cat-box {
    width: 45%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#modif-img-cat-box h1 {
    font-size: 2.5em;
    color: #74c5da;
    margin-bottom: 20px;
}

.cat-infos-img {
    font-size: 1.2em;
    margin-bottom: 15px;
}

#img-solo {
    text-align: center;
    margin-top: 20px;
}

#mini-img-cat {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-top: 15px;
}

.formation-infos-img{
    padding-top: 30px;
    color: #74c5da;
    font-size: 1em;
}

/* Partie modification de l'image */
.modif-img-part {
    width: 45%;
    background-image: url(../images/categories/tableau-bg-2.jpg);
    background-size: cover;

    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#modif-img-formation-form {
    text-align: center;
    font-size: 1.5em;
}

#modif-img-formation-form h2 {
    color: #74c5da;
    margin-bottom: 30px;
}

#modif-img-formation-form .form-group {
    margin-bottom: 20px;
}

#modif-img-formation-form label {
    font-size: 1em;
    color: white;
}

#modif-img-formation-form input[type="file"] {
    width: 80%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1em;
    margin-top: 10px;
    color: white;
}

/* Style de base pour tous les écrans */
#modif-img-page {
    display: flex;
    justify-content: space-between;
    padding: 50px;
    font-family: "craie", sans-serif;
    flex-wrap: wrap; /* Permet d'assurer que les sections se réarrangent correctement sur les petits écrans */
}

#modif-img-cat-box {
    text-align: center;
    color: white;
    width: 45%; /* Largeur de la partie actuelle de l'image */
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.infos {
    display: inline-block;
    width: 40%;
}

.infos p {
    font-size: 1.5em;
}

/* Formulaire de modification de l'image */
.modif-img-part {
    width: 45%;
    background-image: url(../images/categories/tableau-bg-2.jpg);
    background-size: cover;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#modif-img-formation-form {
    text-align: center;
    font-size: 1.5em;
}

#modif-img-formation-form h2 {
    color: #74c5da;
    margin-bottom: 30px;
}

#modif-img-formation-form .form-group {
    margin-bottom: 20px;
}

#modif-img-formation-form label {
    font-size: 1em;
    color: white;
}

#modif-img-formation-form input[type="file"] {
    width: 80%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1em;
    margin-top: 10px;
    color: white;
}

/* Style pour les très petits écrans (moins de 480px) */
@media screen and (max-width: 480px) {
    #modif-img-page {
        flex-direction: column;
        padding: 10px;
    }

    #modif-img-cat-box,
    .modif-img-part {
        width: 90%; /* Les deux sections prendront toute la largeur */
        margin-bottom: 20px; /* Espace entre les sections */
    }

    .infos {
        display: block;
        width: 90%; /* Les infos prendront toute la largeur */
        text-align: left;
    }

    .infos p {
        font-size: 1.2em; /* Réduire la taille des textes */
    }

    #modif-img-formation-form {
        font-size: 1.3em; /* Réduire la taille du formulaire */
    }

    #modif-img-formation-form input[type="file"] {
        width: 100%; /* Le champ de fichier prendra toute la largeur */
    }


    #mini-img-cat {
        width: 120px;
        height: 120px; /* Réduire la taille de l'image sur petits écrans */
    }
}

/* Style pour les écrans de taille moyenne (moins de 768px) */
@media screen and (max-width: 768px) {
    #modif-img-page {
        flex-direction: column;
        padding: 10px;
    }

    #modif-img-cat-box,
    .modif-img-part {
        width: 80%; /* Sections prennent toute la largeur */
        margin-bottom: 20px;
        margin: 25px auto;

    }

    .infos {
        width: 100%; /* Les infos prennent toute la largeur */
        text-align: center;
    }

    .infos p {
        font-size: 1.4em; /* Ajuster la taille du texte */
    }

    #modif-img-formation-form {
        font-size: 1.4em;
    }

    #modif-img-formation-form input[type="file"] {
        width: 100%;
    }



    #mini-img-cat {
        width: 140px;
        height: 140px; /* Ajuster la taille de l'image */
    }
}

/* Style pour les écrans larges (plus de 768px) */
@media screen and (min-width: 768px) {
    #modif-img-page {
        justify-content: space-between;
        padding: 50px;
    }

    #modif-img-cat-box,
    .modif-img-part {
        width: 45%; /* Sections à 45% de la largeur */
    }

    .infos {
        display: inline-block;
        width: 40%;
    }

    .infos p {
        font-size: 1.5em; /* Réduire légèrement la taille du texte */
    }

    #modif-img-formation-form {
        font-size: 1.5em;
    }

    #modif-img-formation-form input[type="file"] {
        width: 80%;
    }

}

/* ////////////////////////////////// Modifier categorie //////////////////////////// */

#categorie-form #description-categorie, #categorie-form #nom-categorie{
    font-size: 1em;
    border-radius: 10px;
}

#categorie-form input{
    height: 70px;
}

#categorie-form textarea{
    height: 150px;
}

#modifier-cat-page{
    padding: 50px;
}

#modifier-cat-page h2{
    margin-bottom: 50px;
}

/* Responsive Design */
/* Écrans très petits (moins de 480px) */
@media screen and (max-width: 480px) {
    #modifier-cat-page {
        padding: 20px;
    }

    #categorie-form .form-group-box {
        flex-direction: column;
    }

    #categorie-form .form-group {
        min-width: 100%; /* Champs prennent toute la largeur */
        margin-bottom: 20px;
    }

    #categorie-form input,
    #categorie-form textarea {
        font-size: 0.9em;
        padding: 8px;
        height: auto; /* Ajuste la hauteur pour les petits écrans */
    }

    #categorie-form textarea{
        height: 200px;
    }

}

/* Écrans moyens (moins de 768px) */
@media screen and (max-width: 768px) {
    #categorie-form .form-group-box {
        flex-direction: column;
    }

    #categorie-form .form-group {
        min-width: 100%;
    }

    #categorie-form input,
    #categorie-form textarea {
        font-size: 1em;
    }
}


@media screen and (max-width: 1024) {
    #modifier-cat-page {
        max-width: 800px;
    }

    #categorie-form .form-group-box {
        justify-content: space-between;
    }

    #categorie-form .form-group {
        min-width: 45%;
    }
}

/* ////////////////////////////////// Modifier compétences /////////////////////////////////// */


/* Style global pour la page */
#modifier-competence {
    padding: 50px;
}

#competence-form {
    padding: 30px;
    font-family: "craie", sans-serif;
    background-image: url(../images/categories/tableau-bg-2.jpg);
    background-size: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 60%;
    margin: auto;
    color: white;
    font-size: 1.4em;
}

/* Titre */
#modifier-competence h2 {
    margin-bottom: 50px;
    text-align: center;
    color: #74c5da;
    font-size: 2em;
}

/* Conteneur des groupes de champs */
#competence-form .form-group-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Réorganise les champs sur petits écrans */
    gap: 20px;
    margin-bottom: 30px;
}

#btn-box {
    width: 100%;
}

/* Style des groupes de champs */
#competence-form input {
    flex: 1;
    min-width: 45%; /* Largeur minimale pour les champs */
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

#competence-form label {
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* Style des champs d'entrée */
#competence-form input[type="text"],
#competence-form input[type="number"] {
    font-size: 1em;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    font-family: "craie", sans-serif;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive Design */
/* Écrans très petits (moins de 480px) */
@media screen and (max-width: 480px) {
    #modifier-competence {
        padding: 20px;
    }

    #competence-form {
        padding: 20px;
        font-size: 1.2em;
        width: 100%; /* Occupe toute la largeur */
    }

    #competence-form .form-group-box {
        flex-direction: column;
    }

    #competence-form .form-group {
        min-width: 100%; /* Les champs prennent toute la largeur */
        margin-bottom: 20px;
    }

    #competence-form input {
        font-size: 0.9em;
        padding: 8px;
        height: auto;
    }

}

/* Écrans moyens (moins de 768px) */
@media screen and (max-width: 768px) {
    #competence-form {
        padding: 25px;
        width: 90%; /* Occupe 90% de la largeur sur les écrans moyens */
    }

    #competence-form .form-group-box {
        flex-direction: column;
    }

    #competence-form .form-group {
        min-width: 100%;
    }

    #competence-form input {
        font-size: 1em;
    }
}

/* Écrans larges (plus de 768px et moins de 1024px) */
@media screen and (max-width: 1024px) {
    #modifier-competence {
        max-width: 900px;
    }

    #competence-form {
        width: 80%; /* Réduit la largeur pour les écrans moyens */
    }

    #competence-form .form-group-box {
        justify-content: space-between;
    }

    #competence-form .form-group {
        min-width: 45%;
    }


}

/* /////////////////////////////////////////// Modifier programme //////////////////////////////////// */
/* Style global pour la page */
#modifier-programme-page {
    padding: 50px;
}

#programme-form {
    padding: 30px;
    background-image: url(../images/categories/tableau-bg-2.jpg);
    background-size: cover;
    font-family: "craie", sans-serif;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 60%;
    margin: auto;
    color: white;
    font-size: 1.4em;
}

/* Titre */
#programme-form h2 {
    margin-bottom: 50px;
    text-align: center;
    color: #74c5da ;
    font-size: 2em;
}

/* Conteneur des groupes de champs */
#programme-form .form-group-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Réorganise les champs sur petits écrans */
    gap: 20px;
    margin-bottom: 30px;
}

#programme-form .form-group {
    width: 48%;
}

#programme-form .form-group label {
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* Style des champs d'entrée */
#programme-form input, #programme-form select{
    margin-top: 10px;
    margin-bottom: 25px;
}
#programme-form input[type="text"],
#programme-form input[type="number"],
#programme-form select {
    font-size: 1em;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #ccc;

    width: 100%;
    box-sizing: border-box;
}

/* Responsive Design */

/* Écrans très petits (moins de 480px) */
@media screen and (max-width: 480px) {
    #modifier-programme-page {
        padding: 20px;
    }

    #programme-form {
        padding: 20px;
        font-size: 1.2em;
        width: 100%; /* Le formulaire occupe toute la largeur de l'écran */
    }

    #programme-form .form-group-box {
        flex-direction: column; /* Empile les champs sur les petits écrans */
    }

    #programme-form .form-group {
        width: 100%; /* Les champs prennent toute la largeur */
        margin-bottom: 20px;
    }

    #programme-form input,
    #programme-form select {
        font-size: 0.9em;
        padding: 8px;
    }

    #programme-form h2 {
        font-size: 1.6em; /* Réduit la taille du titre */
    }
}

/* Écrans moyens (entre 480px et 768px) */
@media screen and (max-width: 768px) {
    #programme-form {
        padding: 25px;
        width: 90%; /* Le formulaire prend 90% de la largeur */
    }

    #programme-form .form-group-box {
        flex-direction: column;
    }

    #programme-form .form-group {
        width: 100%; /* Les champs prennent toute la largeur */
        margin-bottom: 20px;
    }

    #programme-form input,
    #programme-form select {
        font-size: 1em;
    }

    #programme-form h2 {
        font-size: 1.8em; /* Ajuste la taille du titre */
    }
}

/* Écrans larges (entre 768px et 1024px) */
@media screen and (max-width: 1024px) {
    #modifier-programme-page {
        max-width: 900px;
    }

    #programme-form {
        width: 80%; /* Le formulaire prend 80% de la largeur */
    }

    #programme-form .form-group-box {
        justify-content: space-between;
    }

    #programme-form .form-group {
        width: 100%; /* Les champs prennent toute la largeur */
    }

    #programme-form h2 {
        font-size: 2em; /* Retour à la taille du titre de base */
    }
}

/* /////////////////////////////// Qui sommes-nous ? ////////////////////////////////////// */

/* Section globale */
.about-us-section {
    padding: 50px 20px;
    background-color: #f5f5f5;
    font-family: 'luciole', sans-serif;
    line-height: 1.6;
    color: #333;
    margin-top: 100px;
		margin-bottom: 100px;
}

/* Conteneur principal */
.about-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

/* Titre principal */
.about-title {
    font-size: 2.5em;
    margin-bottom: 30px;
}

/* Paragraphe de description */
.about-description {
    font-size: 1.4em;
    margin-bottom: 30px;
}

/* Caractéristiques principales */
.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    margin: 40px 0;
    justify-content: space-around;
}

.feature {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
    font-size: 1.3em;
}

.feature-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

/* Conclusion */
.about-conclusion {
    font-size: 1.3em;
    color: #333;
    font-style: italic;
    margin-top: 20px;
}

/* Responsive Design */

/* Pour les tablettes et les petits écrans */
@media screen and (max-width: 1024px) {
    .about-title {
        font-size: 2em; /* Réduction du titre */
        margin-bottom: 20px;
    }

    .about-description {
        font-size: 1.2em; /* Ajustement de la taille du texte */
        margin-bottom: 25px;
    }

    .about-features {
        gap: 50px; /* Réduction de l'écart entre les blocs */
        margin: 30px 0;
    }

    .feature {
        max-width: 100%; /* Utilisation de toute la largeur disponible */
        font-size: 1.2em; /* Réduction légère de la police */
        padding: 15px; /* Réduction de l'espace interne */
    }

    .feature-title {
        font-size: 1.4em; /* Ajustement de la taille du titre */
    }

    .about-conclusion {
        font-size: 1.2em; /* Réduction légère pour un affichage équilibré */
    }
}

/* Pour les mobiles (smartphones) */
@media screen and (max-width: 768px) {
    .about-container {
        padding: 0 15px; /* Réduction des marges */
        text-align: center; /* Centrage général */
    }

    .about-title {
        font-size: 1.8em; /* Réduction du titre principal */
    }

    .about-description {
        font-size: 1.1em; /* Taille du texte réduite pour petits écrans */
    }

    .about-features {
        flex-direction: column; /* Organisation en colonne */
        gap: 30px; /* Réduction de l'écart entre les blocs */
    }

    .feature {
        min-width: 100%; /* Les blocs prennent toute la largeur */
        max-width: 100%;
        font-size: 1.1em; /* Réduction supplémentaire de la taille du texte */
        text-align: center; /* Centrage du texte pour une meilleure lisibilité */
        padding: 15px;
    }

    .feature-title {
        font-size: 1.3em; /* Taille adaptée pour rester lisible */
    }

    .about-conclusion {
        font-size: 1.1em; /* Texte légèrement plus petit pour les mobiles */
        margin-top: 15px;
    }
}

/* Pour les très petits écrans (inférieurs à 480px) */
@media screen and (max-width: 480px) {
    .about-title {
        font-size: 1.5em; /* Plus petit pour s'adapter aux écrans très étroits */
        margin-bottom: 15px;
    }

    .about-description {
        font-size: 1em; /* Réduction de la taille du texte */
        margin-bottom: 20px;
    }

    .feature {
        font-size: 1em; /* Ajustement pour une lisibilité optimale */
        padding: 10px; /* Moins d'espace interne pour économiser l'espace */
    }

    .feature-title {
        font-size: 1.2em;
    }

    .about-conclusion {
        font-size: 1em; /* Réduction finale pour correspondre à l'écran */
        margin-top: 10px;
    }
}

/*//////////////////////////////////// Mentions légales //////////////////////////////////////// */
/* Style global pour la section des mentions légales */
#legal-page {
    padding: 50px 20px;
    background-color: #f5f5f5;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Titre principal */
#legal-page .page-title {
    text-align: center;
    font-size: 2.5em;
    color: #74c5da;
    margin-bottom: 20px;
}

#legal-page .legal-date {
    text-align: center;
    font-size: 1.2em;
    color: #777;
    margin-bottom: 30px;
}

/* Sections */
#legal-page section {
    margin-bottom: 30px;
}

#legal-page h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
}

#legal-page p, #legal-page ul {
    font-size: 1.1em;
    margin-bottom: 10px;
}

#legal-page ul {
    padding-left: 20px;
}

#legal-page ul li {
    list-style-type: disc;
}

/* Liens */
#legal-page a {
    color: #74c5da;
    text-decoration: none;
}

#legal-page a:hover {
    text-decoration: underline;
}

/* Footer des mentions légales */
#legal-page .legal-footer {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    margin-top: 20px;
}

/* Responsive Design */

/* Tablettes et petits écrans */
@media (max-width: 768px) {
    #legal-page {
        padding: 30px 15px;
    }

    #legal-page .page-title {
        font-size: 2em;
    }

    #legal-page h2 {
        font-size: 1.6em;
    }

    #legal-page p, #legal-page ul {
        font-size: 1em;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    #legal-page {
        padding: 20px 10px;
    }

    #legal-page .page-title {
        font-size: 1.8em;
    }

    #legal-page h2 {
        font-size: 1.4em;
    }

    #legal-page p, #legal-page ul {
        font-size: 0.9em;
    }

    #legal-page ul li {
        list-style-type: circle;
    }
}

/* ===== Footer sombre, Arial, contrasté ===== */
.site-footer {
  --bg: #000;          /* fond noir */
  --text: #fff;        /* texte principal */
  --muted: #d6d6d6;    /* texte secondaire */
  --accent: #74c5da;   /* couleur maîtresse (liens et emphases) */
  --divider: rgba(255,255,255,0.12);

  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--divider);
  padding: 28px 16px;
}

/* Conteneur centré */
.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;   /* gauche fluide | droite fixe */
  gap: 32px;
  align-items: center;                /* harmonise la hauteur perçue */
}

/* ===== Colonne gauche (infos) ===== */
.site-footer .footer-left {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 petits blocs alignés */
  gap: 24px;
}

.site-footer .footer-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer .footer-block p {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-footer .brand-block .brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Liens */
.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  text-underline-offset: 2px;
  text-decoration-thickness: .08em;
  transition: color .2s ease, text-decoration-color .2s ease, opacity .2s ease;
}

.site-footer a:hover {
  text-decoration: underline;
  opacity: 0.95;
}

/* Lien admin + icône */
.site-footer .admin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer #admin-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  filter: brightness(0) invert(1); /* icône visible sur fond noir */
  opacity: 0.9;
  transition: transform .2s ease, opacity .2s ease;
}
.site-footer .admin-link:hover #admin-icon {
  transform: scale(1.06);
  opacity: 1;
}

/* Séparateurs subtils sur très petits écrans (optionnel) */
@media (max-width: 520px) {
  .site-footer .footer-left .footer-block + .footer-block {
    border-top: 1px solid var(--divider);
    padding-top: 12px;
  }
}

/* ===== Colonne droite (QUALIOPI) ===== */
.site-footer .footer-right.qualiopi {
  text-align: left;          /* aligné au contenu, plus pro */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;                  /* réduit pour ne pas sur-hauteur */
}

.site-footer .qualiopi-logo {
  max-width: 190px;          /* pas trop grand -> hauteur harmonisée */
  width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

.site-footer .qualiopi-mention {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;        /* un poil plus petit pour compacter */
  line-height: 1.5;
  text-align: center;
}

.site-footer .qualiopi-mention strong {
  color: var(--accent);      /* #74c5da sur noir : très lisible */
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* Lien PDF */
.site-footer .certificat-link {
  display: inline-block;
  margin-top: 2px;
  margin: auto;
}

/* ===== Responsive ===== */

/* Tablettes : passe la colonne droite sous la gauche mais conserve la lecture claire */
@media (max-width: 900px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr;    /* pile */
    gap: 24px;
    align-items: start;
  }
  .site-footer .footer-left {
    grid-template-columns: 1fr 1fr; /* 2 blocs par ligne */
  }
}

/* Mobiles : une seule colonne de blocs + QUALIOPI centré */
@media (max-width: 640px) {
  .site-footer {
    padding: 22px 14px;
  }
  .site-footer .footer-left {
    grid-template-columns: 1fr;     /* 1 bloc par ligne */
    gap: 16px;
  }
  .site-footer .footer-right.qualiopi {
    align-items: center;
    text-align: center;
  }
}

/* Accessibilité focus */
.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Impression (facultatif) */
@media print {
  .site-footer {
    background: #fff;
    color: #000;
    border-top: 0;
  }
  .site-footer .footer-block p { color: #111; }
  .site-footer a { color: #0000ee; text-decoration: underline; }
  .site-footer #admin-icon { filter: none; }
}

@media (max-width: 640px) {
  .site-footer .footer-left {
    grid-template-columns: 1fr;   /* 1 bloc par ligne */
    gap: 16px;
    text-align: center;           /* centre le texte */
  }
  .site-footer .footer-block {
    align-items: center;          /* centre les contenus des flex */
  }
}

