body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* âœ… Header standard */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2843c9;
    padding: 8px 15px; /* Réduit la hauteur verticale */
    box-sizing: border-box;
    z-index: 99;
}

body {
    margin: 0;
    padding-top: 60px; /* ✅ Ajuste l'espace sous le header pour éviter qu'il recouvre le contenu */
}



.login-button {
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    max-width: 120px !important; /* âœ… Assure que le bouton ne dÃ©passe pas */
    white-space: nowrap !important; /* âœ… EmpÃªche le texte de passer Ã  la ligne */
    overflow: hidden !important; /* âœ… Ã‰vite les dÃ©bordements visuels */
    text-align: center !important; /* âœ… Centre le texte */
}

.login-button:hover {
    background-color: white;
    color: #2843c9;
}

/* âœ… Logo */
.logo img {
    height: 40px; /* Réduit pour harmoniser avec le bouton */
}


/* âœ… Menu */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    position: relative;
}

/* âœ… Effet soulignÃ© */
nav ul li a.underline::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

nav ul li a.underline:hover::after {
    width: 100%;
}

/* âœ… BanniÃ¨re */
.banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

/* âœ… Section Intro */
.intro {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 125px;
}

h1 {
    font-size: 56px;
    color: #003975;
}

/* âœ… Bouton "En savoir plus" */
.learn-more {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    color: #006dff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s;
}

.learn-more .arrow {
    margin-left: 8px;
    font-size: 20px;
}

.learn-more:hover {
    border-bottom: 2px solid #006dff;
}

/* âœ… Police des titres */
h1, h2, h3 {
    font-family: 'Overpass', sans-serif;
}

/* âœ… Section Features */
.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 250px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.feature h2 {
    font-size: 24px;
    color: #003975;
    margin-top: 15px;
}

.feature p {
    font-size: 16px;
    color: #555;
    margin-top: 10px;
}

/* âœ… Images des features */
.image-wrapper {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-wrapper:hover {
    transform: scale(1.1);
}

/* âœ… Footer */
footer {
    position: relative;
    bottom: -15px;
    width: 100%;
    background-color: #222;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

footer p {
    margin: 8px 0;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.7;
}

/* âœ… IcÃ´ne Discord */
.discord-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    font-size: 16px;
    color: white;
}

.discord-logo img {
    width: auto;
    height: 24px;
}

.legal {
    text-align: center; /* âœ… Centre tout le texte */
    max-width: 800px; /* âœ… Garde une largeur raisonnable */
    margin: 0 auto; /* âœ… Centre horizontalement */
}

.legal p {
    display: block; /* âœ… Assure une bonne lisibilitÃ© */
    margin: 10px auto; /* âœ… Espacement uniforme */
}

/* Login */
.login-container {
    display: flex !important;
    justify-content: center !important; /* âœ… Centre horizontalement */
    align-items: center !important; /* âœ… Centre verticalement */
    height: 100vh !important; /* âœ… Prend toute la hauteur de lâ€™Ã©cran */
}

.login-form {
    text-align: center !important;
    width: 350px !important;
    max-width: 95% !important;
    background: white !important;
    padding: 40px !important;
    border-radius: 8px !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1) !important;
}


.login-form h1 {
  font-size: 28px;
  font-weight: 600;
}

.login-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  margin: auto;
}

.login-form input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.password-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.password-wrapper input {
  flex-grow: 1;
}

.password-wrapper button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.login-form button {
  padding: 10px;
  font-size: 18px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-form button:hover {
  background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #2843c9;
    color: white;
}

.actions {
    display: flex;
    gap: 10px;
}

/* ✅ Boutons d’action */
.action-btn {
    padding: 5px 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.action-btn:hover {
    background-color: #0056b3;
}

/* ✅ Dashboard : Deux colonnes bien séparées */
.dashboard-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* ✅ Actualités plus large, Profil + Services à droite */
    grid-template-rows: auto auto; /* ✅ Deux lignes à droite pour Profil et Services */
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - 80px);
}

/* ✅ ACTUALITÉS (Fixe bien à gauche) */
.news-panel {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #ccc;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    grid-column: 1; /* ✅ Première colonne à gauche */
    grid-row: 1 / span 2; /* ✅ Occupe toute la hauteur */
}

/* ✅ PROFIL UTILISATEUR (À droite, en haut) */
.profile-panel {
    background-color: white;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #ccc;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100px;
    overflow: hidden;
    grid-column: 2; /* ✅ Deuxième colonne à droite */
    grid-row: 1; /* ✅ Première ligne à droite */
}

/* ✅ SERVICES PLANIFIÉS (Sous Profil, à droite) */
/* ✅ Services bien collé à Profil sans chevauchement */
.services-panel {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ccc;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    grid-column: 2;
    grid-row: 2;
    margin-top: -360px !important; /* ✅ Ajustement léger pour un bon alignement */
}


/* ✅ PROFIL UTILISATEUR (À droite, moins haut) */
.profile-panel {
    background-color: white;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #ccc;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100px;
    overflow: hidden;
    grid-column: 2; /* ✅ Place bien Profil à droite */
    grid-row: 1; /* ✅ Première ligne à droite */
}

/* ✅ Photo bien ronde et alignée */
.profile-pic {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 15px;
}


/* ✅ Texte bien aligné à droite */
.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ✅ Ajustement du texte pour qu’il soit moins espacé */
.profile-info h3 {
    font-size: 18px !important;
    font-weight: bold;
    margin-bottom: 2px !important; /* ✅ Réduction de l’espace sous le titre */
    line-height: 1.2 !important; /* ✅ Évite un trop grand espacement */
}

.profile-info p {
    font-size: 16px !important;
    margin-bottom: 2px !important; /* ✅ Réduction de l’espace sous chaque ligne */
    line-height: 1.2 !important; /* ✅ Espacement plus serré */
}

table {
    width: 90%; /* ✅ Réduit la largeur pour éviter qu'il touche les bords */
    margin: 20px auto; /* ✅ Centre le tableau et ajoute un espace autour */
    border-collapse: separate; /* ✅ Permet les bords arrondis */
    border-spacing: 0; /* ✅ Évite l'espace entre les cellules */
    border-radius: 10px; /* ✅ Bords arrondis */
    overflow: hidden; /* ✅ Empêche le débordement */
    background-color: #ffffff; /* ✅ Fond du tableau */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* ✅ Léger effet d’ombre */
}

th, td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd; /* ✅ Séparation visuelle */
}

th {
    background-color: #2843c9; /* ✅ Couleur d’en-tête */
    color: white;
}

tr:hover {
    background-color: rgba(0, 123, 255, 0.1); /* ✅ Effet au survol */
}

select {
    padding: 8px;
    border-radius: 6px; /* ✅ Bords arrondis */
    border: 1px solid #ccc;
    background-color: #f8f9fa; /* ✅ Fond doux */
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

select:hover {
    background-color: #e2e6ea; /* ✅ Effet au survol */
}

button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px; /* ✅ Bords arrondis */
    background-color: #2843c9; /* ✅ Bleu profond */
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #1e35a6; /* ✅ Effet plus foncé au survol */
}

.success-message {
    background-color: #28a745; /* ✅ Vert succès */
    color: white;
    padding: 10px;
    margin: 15px auto;
    width: 80%;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
}

.button-container {
    text-align: center;
    margin-top: 20px;
}

.create-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2843c9; /* ✅ Bleu profond */
    color: white;
    font-size: 16px;
    text-decoration: none;
    border-radius: 6px; /* ✅ Bords arrondis */
    transition: 0.3s;
}

.create-button:hover {
    background-color: #1e35a6; /* ✅ Effet plus foncé au survol */
}

.modal {
    display: none;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* ✅ Toujours au-dessus */
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px; /* ✅ Bords arrondis */
    width: 350px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* ✅ Effet d’ombre */
    z-index: 1100; /* ✅ Pour être au-dessus du modal */
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content h2 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #2843c9; /* ✅ Titre mis en valeur */
}

.modal-content label {
    display: block;
    text-align: left;
    margin-top: 10px;
    font-weight: bold;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 5px;
}

.modal-content button {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #2843c9;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.modal-content button:hover {
    background-color: #1e35a6; /* ✅ Effet au survol */
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: 0.3s;
}

.close:hover {
    color: #000; /* ✅ Effet visuel au survol */
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    transition: 0.3s;
}

.toggle-password:hover {
    color: #000; /* ✅ Effet au survol */
}

.error-message {
    background-color: #dc3545; /* ✅ Rouge erreur */
    color: white;
    padding: 10px;
    margin: 15px auto;
    width: 80%;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
}

.table-title {
    text-align: center;
    color: #2843c9; /* Bleu vif */
    font-size: 48px;
    font-weight: bold;
}

.configuration-section {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.config-title {
    text-align: center;
    color: #2843c9; /* Même bleu que "Utilisateurs" */
    font-size: 48px; /* Même taille que .table-title */
    font-weight: bold;
}

.configuration-section label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

.configuration-section input,
.configuration-section textarea {
    width: calc(100% - 20px); /* ✅ Ajoute un espace de 20px à droite */
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* ✅ Assure que la largeur prend en compte le padding */
}

.configuration-section textarea {
    height: 80px;
}

.button-container {
    text-align: center;
    margin-top: 15px;
}

.button-container button {
    background: #007BFF;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button-container button:hover {
    background: #0056b3;
}

.image-preview {
    text-align: center;
    margin-bottom: 20px;
}

.image-preview h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.image-preview img {
    max-width: 150px; /* ✅ Définit une largeur maximale */
    max-height: 150px; /* ✅ Définit une hauteur maximale */
    object-fit: cover; /* ✅ Assure que l'image garde une bonne proportion */
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

#current-image {
  width: 150px;       /* Taille souhaitée (à ajuster selon vos besoins) */
  height: 150px;      /* Assure un ratio carré */
  object-fit: cover;  /* Pour que l'image soit bien cadrée sans déformation */
  border-radius: 50%; /* Pour obtenir une forme ronde */
}