/* import de la police Motssera de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');


/* Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    font-weight: 400; /* 400 = style de la police regular (700 = bold) */
}

body {
    background:	linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
				url('../img/fond_ecran_bulles_liofo.png'); /* Remonter d'un dossier pour accéder à l'image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
	
	/* background-color: #121212; */
    color: #FFFFFF;
    padding-left: 20px; /* Ajoute une marge à gauche */
    padding-right: 20px; /* Ajoute une marge à droite */
}

Labels {
    font-size: 1em;
    color: white;
}


/*///////////////////////////////////////////////////////*/
/* Styles pour masquer div */
/*///////////////////////////////////////////////////////*/
.masquer-div {
    display: none; /* Contenu masqué par défaut */
    margin-top: 10px; /* Espacement par rapport au bouton */
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 15px;
}

/*///////////////////////////////////////////////////////*/
/* Styles pour le tableau */
/*///////////////////////////////////////////////////////*/
table {
    width: 80%;
    border-collapse: collapse;
    margin-top: 2em;
    font-size: 1em;
    overflow: hidden;
    border-radius: 15px;
}

th, td {
    padding: 1em;
    text-align: center;
}

th {
    background-color: #3DB2FF;
    color: #FFFFFF;
}

tr:nth-child(even) {
    background-color: #2E2E2E;
}

tr:nth-child(odd) {
    background-color: #1F1F1F;
}

tr:hover {
    background-color: #FF5733;
    color: #121212;
}

.tableau-defilable {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Pour un défilement fluide sur mobile */
}

.tableau-defilable::-webkit-scrollbar {
    height: 8px;
    background-color: #2E2E2E;
}

.tableau-defilable::-webkit-scrollbar-thumb {
    background-color: #FF5733;
    border-radius: 15px;
}

.tableau-defilable:active {
    cursor: grab; /* Indique un défilement manuel */
}


/*///////////////////////////////////////////////////////*/
/* Styles pour le popup de login */
/*///////////////////////////////////////////////////////*/

/* Fenêtre du popup */
.login-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* priorité d'empilement */
}

.login-popup-content {
    background-color: #121212; /* Fond sombre */
    padding: 20px;
    border-radius: 15px;
    border: 3px solid transparent; /* Crée une bordure visible */
    background-image: linear-gradient(#000000, #000000),
                      linear-gradient(45deg, #00BF63, #FF66C4, #0CC0DF); /* Bordure multicolore */
    background-origin: border-box;
    background-clip: padding-box, border-box; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 400px;
    color: white;
}

/* Labels et espacement interne */
.login-popup-content label {
    display: block;
    margin-bottom: 2px;
    font-size: 1em;
    color: white;
}

.login-popup-content input[type="text"],
.login-popup-content input[type="password"] {
    margin-bottom: 10px;
    margin-top: 2px;
}


/*///////////////////////////////////////////////////////*/
/* Styles pour les popups de formulaires */
/*///////////////////////////////////////////////////////*/

.formulaire-popup {
    display: none; /* Masque par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
    z-index: 1000; /* Priorité d'empilement */
    padding: 20px; /* Espacement interne */
    overflow: auto; /* Permettre le défilement si nécessaire */
}

/* Centrer le contenu du formulaire */
.formulaire-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrage horizontal et vertical */
    background: #000000; /* Fond noir */
    padding: 20px;
    border-radius: 15px;
    border: 3px solid transparent; /* Bordure transparente */
    background-image: linear-gradient(#000000, #000000),
                      linear-gradient(45deg, #00BF63, #FF66C4, #0CC0DF); 
    background-origin: border-box;
    background-clip: padding-box, border-box;
    width: 90%;
    max-width: 600px; /* Largeur maximale */
    max-height: 90%; /* Hauteur maximale */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    overflow: auto; /* Activer le défilement si nécessaire */
}


.formulaire-popup-content h1 {
    color: #354559;
}

/* Labels et espacement interne */
.formulaire-popup-content label {
    display: block;
    margin-bottom: 0px;
    padding: 0px;
}

.formulaire-popup-content ul {
    border-radius: 15px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 200px; /* Hauteur max si la liste est longue */
    overflow-y: auto; /* Permet le défilement si nécessaire */
    z-index: 10; 
}

.formulaire-popup-content li:hover, 
.formulaire-popup-content li.active {
    background-color: #FF5733;
}

.formulaire-popup-content div {
    margin-top: 10px;
    margin-bottom: 20px;
}

.formulaire-popup-Btn-val {
    padding: 20px;
}

/* Champs de saisie */
.formulaire-popup-content input[type="text"],
.formulaire-popup-content input[type="password"] {
    width: 100%; /* Champs de saisie en pleine largeur */
    padding: 10px; /* Espacement interne */
    margin-top: 0px; 
    margin-bottom: 0px; 
}


/*///////////////////////////////////////////////////////*/
/* Styles pour les conteneurs et le texte */
/*///////////////////////////////////////////////////////*/
.container {
    text-align: center;
    margin-bottom: 2em;
    padding-left: 20px;
    padding-right: 20px;
}

.formulaire-container {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    width: 100%; 
    background-color: #000000; 
    box-sizing: border-box;
}

/* Style pour le formulaire */
.formulaire-container form {
    width: 50%; 
    max-width: 600px; 
    min-width: 300px; 
    padding: 20px; 
    background-color: #000000; 
    border-radius: 15px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.formulaire-container ul {
    padding: 0em;
    margin: 0em;
}

h1 {
    font-size: 2em;
    text-align: center;
}
h1 span {
    display: inline-block;
    transition: color 0.3s ease; /* Pour un effet de transition si besoin */
}

p {
    color: #BBBBBB;
    font-size: 1.2em;
    margin-bottom: 1.5em;
}

.content-area {
    width: 100%;
    max-width: 100%;
    padding: 0;
}


/*/////////////////////////////////////////*/
/* Styles pour les champs de texte */
/*/////////////////////////////////////////*/

input[type="text"], 
.input-style, 
.textarea-style, 
select {
    width: 100%;
    padding: 0.5em;
    margin-top: 1em;
    background-color: #1F1F1F;
    color: #FFFFFF;
    border: 2px solid #3DB2FF;
    border-radius: 15px;
    font-size: 1em;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Effet de focus pour les champs de texte */
input[type="text"]:hover, 
.input-style:focus, 
.textarea-style:focus, 
select:focus {
    border-color: #FF5733;
    background-color: #2E2E2E;
    outline: none;
}


/*///////////////////////////////////////////////////////*/
/* Ne pas souligner les liens (ex: "a href") */
/*///////////////////////////////////////////////////////*/
a {
    text-decoration: none;
}


/*///////////////////////////////////////////////////////*/
/* BOUTONS - Styles personnalisés avec priorité accrue */
/*///////////////////////////////////////////////////////*/

/* Annule les styles hérités pour input[type="button"] et input[type="submit"] */
input[type="button"].btn-style, 
input[type="submit"].btn-style, 
.btn-style, 
.btn-supprimer {
    all: unset; /* Réinitialise les styles hérités */
    display: inline-block;
    background-color: #000000;
    color: white;
    border: 2px solid #FF5733;
    padding: 0.8em 2em;
    font-size: 1em;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.2s ease-in-out;
    text-align: center; /* Centre le contenu */
    box-sizing: border-box; 
}

/* Effet au survol des boutons */
input[type="button"].btn-style:hover, 
input[type="submit"].btn-style:hover, 
.btn-style:hover {
    background-color: #FF5733;
    color: #000000;
    transform: translateY(-5px);
    box-shadow: 0px 4px 15px rgba(255, 87, 51, 0.3);
    border: 2px solid #FF5733;
}

/* Boutons supprimer dans le tableau */
.btn-supprimer:hover {
    background-color: #000000;
    transform: translateY(-5px);
    box-shadow: 0px 4px 15px rgba(255, 87, 51, 0.3);
    border: 2px solid #000000;
}

/* Effet au clic */
input[type="button"].btn-style:active, 
input[type="submit"].btn-style:active, 
.btn-style:active, 
.btn-supprimer:active {
    transform: scale(0.95);
}

/* Conteneur pour afficher les boutons en ligne */
.button-container-ligne {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
    justify-content: center; 
    align-items: flex-start; 
    margin: 0 auto;
}

/* Conteneur pour afficher les boutons en colonne */
.button-container-colonne {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin: 0 auto;
}

/* Boutons dans les conteneurs (ligne et colonne) */
.button-container-ligne .btn-style, 
.button-container-colonne .btn-style {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 2em;
    font-size: 1em;
    border: 2px solid #FF5733;
    background-color: #000000;
    color: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    width: auto;
}

/* Effet au survol des boutons dans les conteneurs */
.button-container-ligne .btn-style:hover, 
.button-container-colonne .btn-style:hover {
    background-color: #FF5733;
    color: #000000;
    box-shadow: 0px 4px 15px rgba(255, 87, 51, 0.3);
}


/*///////////////////////////////////////////////////////*/
/*///// Spécifique au bouton affichant une image ////////*/
/*///////////////////////////////////////////////////////*/

/* 1) Par défaut, si la classe btn-image-fallback est présente,
     on affiche l'image, on masque le texte */
.btn-style.btn-image-fallback .btn-text {
  display: none; 
}

.btn-style.btn-image-fallback img.btn-image {
  display: block;  
  width: 150px; 
  height: 150px; 
  border: none; 
  background: transparent;
}

/* 2) Si l’image échoue, on supprime la classe .btn-image-fallback
     => l'image disparaît, le texte se montre */
.btn-style:not(.btn-image-fallback) img.btn-image {
  display: none;
}
.btn-style:not(.btn-image-fallback) .btn-text {
  display: inline-block; 
}

/* 3) Option : enlever bordure/fond quand l'image est présente */
.btn-style.btn-image-fallback {
  border: none; 
  background-color: transparent;
}

/* 4) Garder les effets hover/active de .btn-style */
.btn-style.btn-image-fallback:hover {
  transform: translateY(-5px);
  box-shadow: 0px 4px 15px rgba(255, 87, 51, 0.3);
}
.btn-style.btn-image-fallback:active {
  transform: scale(0.95);
}


/*///////////////////////////////////////////////////////*/
/* BOUTONS - plus petits pour interieur des formulaires */
/*///////////////////////////////////////////////////////*/

.btn-style-small {
    display: inline-block;
    background-color: #000000;
    color: #00BF63;
    border: 2px solid #00BF63;
    padding: 0.4em 1em; 
    font-size: 1em;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.2s ease-in-out;
    text-align: center; 
    box-sizing: border-box;
    margin-top: 10px; 
    margin-left: 0; 
}

.btn-style-small:hover {
    background-color: #00BF63;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0px 4px 15px rgba(255, 87, 51, 0.3);
    border: 2px solid #00BF63;
}
.btn-style-small:active {
    transform: scale(0.95);
}


/*//////////////////////////////////////////////////////////////////////////////////*/
/* Style global pour les UL/LI */
/*//////////////////////////////////////////////////////////////////////////////////*/
ul {
    list-style-type: none;
    padding: 1em;
    margin: 2em 0;
    background-color: #1F1F1F;
}
ul li {
    padding: 0.8em;
    font-size: 1.1em;
    color: #FFFFFF;
    transition: background-color 0.3s ease, color 0.3s ease;
}
ul li:last-child {
    border-bottom: none;
}
ul li:hover {
    background-color: #FF5733;
    color: #121212;
    cursor: pointer;
}


/*//////////////////////////////////////////////////////////////////////////////////*/
/* Style global pour les zones semantiques <nav> */
/*//////////////////////////////////////////////////////////////////////////////////*/
nav:not(.header-menu) {
    background-color: #000000;
    overflow: hidden;
}

nav:not(.header-menu) ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
}

nav:not(.header-menu) ul li {
    padding: 14px 20px;
}

nav:not(.header-menu) ul li a {
    text-decoration: none;
    color: white;
    display: block;
}

nav:not(.header-menu) ul li a:hover {
    background-color: #000000;
}



/*/////////////////////////////////////////////////*/
/*  Header */
/*/////////////////////////////////////////////////*/

.custom-header {
    background: transparent;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    width: 100%;
    position: relative;
    overflow: visible;      /* laisse déborder le menu mobile */
    z-index: 1000;
}

.header-logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
}
.header-logo img {
    max-height: 40px;
    width: auto;
    border-radius: 10px;
}

/* === Bouton burger === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    position: relative;
    z-index: 1100;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.custom-header .menu-toggle,
.custom-header .menu-toggle.active {
  background-color: #000000;
}

.custom-header .menu-toggle span {
	color: white;
}

/*=== Menu principal ===*/

/*–– Désactiver le fond orange au hover et au clic sur les <li> du header-menu ––*/
.custom-header .header-menu li:hover,
.custom-header .header-menu li:active,
.custom-header .header-menu li:focus {
  background-color: transparent;
  background: none;
}

.header-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;           /* autorise la rétractation */
    overflow: hidden;       /* masque le débordement en desktop */
    transition: width 0.3s ease;
}
.header-menu ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
	background-color: transparent;
}
.header-menu li {
    flex: 1;
    min-width: 0;
    position: relative;
    padding: 2px;
    border: 3px solid transparent;
    border-radius: 15px;
    overflow: hidden;
    transition: border 0.3s ease, background 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-menu li::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, #00BF63, #FF66C4, #0CC0DF);
    transition: left 0.3s ease, width 0.3s ease;
}
.header-menu li:hover::after,
.header-menu li.active::after {
    left: 0;
    width: 100%;
}
.header-menu a {
    display: block;
    width: 100%;
    padding: 5px 0;
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: clamp(12px, 1vw, 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Bulle utilisateur */
.bulle-utilisateur {
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    margin-left: 20px;
    flex-shrink: 0;
}
.bulle-utilisateur .texte-complet {
    display: none;
    margin-left: 10px;
}
.bulle-utilisateur:hover .initiale {
    display: none;
}
.bulle-utilisateur:hover {
    border-radius: 50px;
    width: auto;
    padding: 10px 20px;
}
.bulle-utilisateur:hover .texte-complet {
    display: inline;
}

/*/////////////////////////////////////////////////*/
/*  Responsive mobile header menu           */
/*/////////////////////////////////////////////////*/
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: 0px;
	margin-right: 0px;
  }
  
 .header-logo img {
    max-height: 20px;
    width: auto;
    border-radius: 8px;
    margin-left: 0px;
	margin-right: 0px;
}

/* Bulle utilisateur */
.bulle-utilisateur {
    padding: 0;
    margin-left: 0px;
	margin-right: 0px;
}
  
  .header-menu {
    display: none;
    position: fixed;
    top: 60px;                             /* ajuster à la hauteur de ton header */
    width: 100%;
    /* background: rgba(0,0,0,0.8); */
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    box-sizing: border-box;
    z-index: 1000;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
	border-radius: 15px;
    margin-left: 0px;
	margin-right: 0px;
  }
  .header-menu.active {
    display: flex;
    margin-left: 0px;
	margin-right: 0px;
  }

  .header-menu ul {
    background-color: #000000;
	width: 50%;
    margin-left: 0px;
	margin-right: 0px;
  }

  .header-menu li {
    width: 100%;
	text-align: center;
    margin-left: 0px;
	margin-right: 0px;
  }
  
  /* .header-menu a {
    text-align: center;
    padding-left: 20px;
  }
*/
  .header-user {
    order: 2;
    /* margin: 10px 0 0; */
    margin-left: 0px;
	margin-right: 0px;
  }
}




/*/////////////////////////////////////////////////////////////////////////////////////*/
/*  Masquer le lien qui renvoi vers le contenu de la page en cours de lecture */
/*////////////////////////////////////////////////////////////////////////////////////*/
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/*/////////////////////////////////////////////////////////////////////////////////////*/
/*  Désactive affichage menu en bas de page */
/*////////////////////////////////////////////////////////////////////////////////////*/
#mobile-fullscreen {
    display: none !important;
}


/*/////////////////////////////////////////////////////////////////////////////////////*/
/*  Utilisé pour les titres */
/*/////////////////////////////////////////////////////////////////////////////////////*/
.reduced-image-title-container {
    display: flex;
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    width: 100%;
}
.reduced-image-title {
    width: 30%; 
    height: auto; 
}


/*///////////////////////////////////////////////////////////////////////////////////////////*/
/*  Utilisé pour les images dans les tableau qui doivent etre petites (ex: poubelle rouge) */
/*//////////////////////////////////////////////////////////////////////////////////////////*/
.images-tableaux {
    width: 20px;
    height: 20px;
}


/*///////////////////////////////////////////////////////////////////////////////////////////*/
/*  Utilisé pour les bulles d'infos */
/*//////////////////////////////////////////////////////////////////////////////////////////*/
/* Style pour les tooltips */
td[title] {
    position: relative;
    cursor: help;
}
td[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px;
    border-radius: 15px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 10;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}


/*///////////////////////////////////////////////////////////////////////////////////////////*/
/*  Utilisé pour les graphiques */
/*//////////////////////////////////////////////////////////////////////////////////////////*/
/* Parent flex qui contient les différents blocs de graphiques */
.dashboard-container {
    /* Taille maximale et centrage horizontal */
    width: 100%;
    /* max-width: 1200px;*/
    margin: 50px auto; /* 50px de marge en haut/bas, auto pour centrer */

    /* Mise en page en grille : 2 colonnes */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes, chacune 1 fraction */
    gap: 50px;                             /* 50px entre colonnes et rangées */
    box-sizing: border-box;
}

/* Responsive : en-dessous de 768px, on passe à 1 colonne */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr; /* 1 seule colonne */
    }
}

.conteneurs-graphiques {
	background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
	backdrop-filter: blur(10px); /* Effet de flou */
    -webkit-backdrop-filter: blur(10px); /* Compatibilité Safari */
    box-sizing: border-box;
    padding: 15px;
    width: 100%; /* Chaque div occupe toute la largeur de sa colonne */
	height: 100%;
}

/* Pour les <canvas> : occuper toute la largeur dispo */
canvas {
    display: block;
    width: 100%;
    height: auto;
}



/*-------------------------------------------------------------------------------------------*/
/* Grille d'images/boutons (exemple de la page "ajouter-transaction") + fallback texte       */
/*-------------------------------------------------------------------------------------------*/

/* Grille adaptative (images en ligne, retour à la ligne quand la place manque) */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 50px;       /* 50px d'espace horizontal ET vertical entre les items */
  margin: 50px;    /* 50px autour pour éviter d'être collé aux bords de la page */
  box-sizing: border-box;
}

/* Boutons (image + texte) de taille fixe => 200x200 px. 
   Image affichée en haut, texte en bas. 
   Si l'image échoue => .no-image => on centre verticalement le texte. */
/* Bouton image + texte */
.image-button {
  width: 200px; 
  height: 200px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  background-color: #000;
  color: #fff;

  /* Par défaut, pas de bordure => pas de contour autour de l'image */
  border: none; 
  border-radius: 15px;
  position: relative;
  overflow: hidden;

  /* Animations de hover */
  transition: transform 0.2s ease-in-out, box-shadow 0.3s ease;
  cursor: pointer;
}
.image-button:hover {
  background-color: #FF5733;
  color: #000;                 /* Texte devient noir */
  transform: translateY(-5px);
  box-shadow: 0px 4px 15px rgba(255, 87, 51, 0.3);
}
.image-button:active {
  transform: scale(0.95);
}

/* L'image occupe ~70% de la hauteur */
.image-button img {
  max-width: 100%;
  max-height: 70%;
  display: block;
  border: none;
  margin-top: 5px;
}

/* Le texte en bas */
.image-button .text {
  margin-top: auto;
  margin-bottom: 10px;
  text-align: center;
}

/* Fallback si l'image échoue => on ajoute .no-image */
.image-button.no-image {
  border: 2px solid #FF5733; /* Le contour apparaît ici */
  justify-content: center;   /* Centre verticalement le texte */
}
.image-button.no-image img {
  display: none;             /* Cache l'image qui ne fonctionne pas */
}
.image-button.no-image .text {
  margin-top: 0;
  margin-bottom: 0;
}