/* ============================
   STYLE GÉNÉRAL & TYPOGRAPHIE
   ============================ */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #eef2f5; /* Gris très doux, plus moderne que blanc pur */
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #333;
}

/* ============================
   LA CARTE (CARD)
   ============================ */
.card {
  background-color: white;
  width: 100%;
  max-width: 450px; /* Un peu plus large pour respirer */
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08); /* Ombre douce et diffusée */
  overflow: hidden; /* Pour que la bordure suive les arrondis */
  border-top: 6px solid #002b5c; /* La touche "Pro" : bordure couleur marque */
  display: flex;
  flex-direction: column;
}

/* ============================
   HEADER & LOGO
   ============================ */
.card-header {
  padding: 30px 30px 10px 30px;
  text-align: center;
}

.logo {
  max-width: 180px; /* Taille contrôlée du logo */
  height: auto;
  margin-bottom: 10px;
}

/* ============================
   CORPS DE LA CARTE
   ============================ */
.card-body {
  padding: 20px 30px;
  flex-grow: 1; /* Prend l'espace disponible */
}

label {
  font-size: 15px;
  color: #555;
  margin-bottom: 8px;
  display: block;
  font-weight: 500;
}

/* ============================
   INPUTS & SELECT
   ============================ */
select, input {
  width: 100%;
  padding: 14px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 20px;
  transition: border-color 0.3s;
  background-color: #fafbfc;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

select:focus, input:focus {
  border-color: #002b5c;
  outline: none;
  background-color: white;
}

/* ============================
   BOUTONS
   ============================ */
button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
  color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:active {
  transform: scale(0.98);
}

.btn-blue { background-color: #002b5c; }
.btn-green { background-color: #27ae60; margin-bottom: 15px; }
.btn-red { background-color: #c0392b; }
.btn-gray { background-color: #6c757d; box-shadow: none; }

.small-btn {
    padding: 8px 15px;
    font-size: 14px;
    margin-top: 10px;
}

/* ============================
   TEXTES & LIENS
   ============================ */
.text-link {
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.welcome-text {
    font-size: 24px;
    color: #002b5c;
    margin: 0;
    text-align: center;
}

.sub-text {
    text-align: center;
    color: #666;
    margin-top: 5px;
    margin-bottom: 25px;
}

#message {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    min-height: 24px;
}

/* ============================
   FOOTER (Copyright)
   ============================ */
.card-footer {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.copyright {
    font-size: 12px;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

.warning {
    font-weight: 600;
    color: #002b5c;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
}
.admin-link:hover { color: #002b5c; }

/* ============================
   UTILITAIRES
   ============================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 10px; }

/* Animation d'apparition douce */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================
   TABLEAU ADMIN
   ============================ */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
th, td {
    border-bottom: 1px solid #eee;
    padding: 8px;
    text-align: left;
}
th { color: #002b5c; }

/* ============================
   AJOUT SPÉCIAL MOBILE
   ============================ */
@media (max-width: 480px) {
    body {
        padding: 10px; /* Moins de marge grise autour sur mobile */
        align-items: flex-start; /* Colle la carte plus haut */
    }

    .card {
        margin-top: 10px;
        box-shadow: none; /* Enlève l'ombre sur mobile pour faire "App Native" */
        border: 1px solid #eee; /* Remplace l'ombre par un bord fin */
    }

    .card-header {
        padding: 20px; /* En-tête plus compact */
    }

    h2 {
        font-size: 20px; /* Titre un peu plus petit */
    }
}