/* Styles généraux */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

body, html {
  height: auto;
  display: block;
}


/* Appliqué uniquement à la page login.php */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(to right, #dfe9f3, #ffffff);
}

.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(to right, #dfe9f3, #ffffff);
}



/* Conteneur principal */
.container {
    display: flex;
    width: 80%;
    max-width: 900px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Section gauche avec l'image */
.image-section {
    flex: 1;
    background: url('../images/image-login.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    min-height: 400px;
}

/* Section droite avec le formulaire */
.login-container {
    flex: 1;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo */
.logo {
  max-width: 200px;
  display: block;
  margin-bottom: 20px;
}

.logo-wrapper {
  margin-bottom: 30px !important;
  display: block;
  width: 100%;
}



/* Champs du formulaire */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Bouton de connexion */
button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.3s;
}

button:hover {
    background: #0056b3;
}



/* Liens */
.login-links {
    margin-top: 10px;
}

.login-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.login-links a:hover {
    text-decoration: underline;
}

.anciens-boutons {
    display: flex;
    align-items: flex-start; /* ✅ Aligne le contenu en haut */
    justify-content: flex-start; /* ✅ Les colle à gauche */
    gap: 10px;
    margin: 20px 0; /* ✅ Ajoute de l’espace au-dessus et en-dessous */
}


.anciens-boutons button {
    all: unset;
    padding: 4px 6px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    white-space: nowrap; /* Empêche le retour à la ligne */
    transition: background-color 0.3s;
}



.anciens-boutons button:hover {
    background-color: #e0e0e0;
}


.zone-profils {
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
}

.zone-profils table {
    width: 100%;
    border-collapse: collapse;
}

.zone-profils th, .zone-profils td {
    padding: 10px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.zone-profils th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.zone-profils .action-btn {
    background-color: #007bff;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
}
/* FACEBOOK : fond bleu, icône blanche */
.zone-profils a.facebook-btn {
    background-color: #4267B2;
    color: white;
}

.zone-profils a.facebook-btn i {
    color: white;
}

/* INSTAGRAM : fond rose, icône blanche */
.zone-profils a.instagram-btn {
    background-color: #C13584;
    color: white;
}

.zone-profils a.instagram-btn i {
    color: white;
}

.zone-profils td:first-child {
    min-width: 160px;
    font-weight: 500;
}

.zone-profils th:nth-child(2),
.zone-profils th:nth-child(3),
.zone-profils td:nth-child(2),
.zone-profils td:nth-child(3) {
    width: 60px;
    text-align: center;
}

.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.pagination-container button {
  all: unset;
  padding: 6px 12px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination-container button:hover {
  background-color: #e0e0e0;
}

.pagination-container button.active {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

.statistiques-wrapper {
  display: block;
  padding: 20px 20px;
  margin-top: 0px;
  background-color: #f7f9fc;
  box-sizing: border-box;
  min-height: 100vh; /* ✅ Ajout pour forcer l’espace */
}



.statistiques-container {
    max-width: 960px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', sans-serif;
	 margin-top: 10 px;
}

/* Corrige le texte invisible dans le menu déroulant */
#admin-select option {
    color: #000000; /* ou #333 pour du gris foncé */
    background-color: #ffffff; /* fond blanc pour contraste */
}
#admin-select {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    color: #000;
    background-color: #fff;
}

.charts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.small-chart {
  max-width: 220px;
  max-height: 220px;
  width: 100%;
  height: auto;
}



/* Ajustement pour écran large */
@media screen and (min-width: 1024px) {
    .container {
        width: 60%;
    }
}
