html, body {
    height: 100%;
    margin: 0;
    text-align: center;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1; /* pousse le footer en bas */
}

.footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 15px;
}

header {
  background: #111;
  color: white;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

.nav-links a:hover {
  color: #00aaff;
}

/* Burger menu style */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger span {
  width: 25px;
  height: 3px;
  background: white;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #111;
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: flex;
  }
}

.card-container {
    max-width: 90%;
    margin: 20px auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, 240px);
    gap: 20px;

    justify-content: center; /* 👈 clé */
}

.card {
    aspect-ratio: 1 / 1;   /* 🟢 carré parfait */
    
    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f5f5;
    border-radius: 12px;
    cursor: pointer;

    font-size: 1.1rem;
    text-align: center;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-container{
  background-color: orange;
  display: block;
}

.admin-card{
  background-color: grey;
  border :2px;
}
.form-modes {
    display: flex;
    flex-direction: column; 
    gap: 10px;
    align-items: center;
}

.form-modes button {
    width: clamp(180px, 80%, 260px);
    padding: 10px 14px;
    border-radius: 8px;
}


.hidden { display: none; }

/* Overlay */
.modal-overlay {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* Modale */
.modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1000;
}

.modal h2 {
    margin-top: 0;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.modal-buttons button {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
