/* =========================
   Register Form
   ========================= */
.register_wrapper {
  max-width: 500px;
  margin: 80px auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}

.register_wrapper h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.register_wrapper label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #555;
}

.register_wrapper input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.register_wrapper input[type="file"] {
  padding: 6px;
}

.register_wrapper button {
  width: 100%;
  padding: 12px;
  margin-top: 25px;
  background-color: #0077cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.register_wrapper button:hover {
  background-color: #005fa3;
}

.register_wrapper p {
  text-align: center;
  margin-top: 20px;
}

.register_wrapper a {
  color: #0077cc;
  text-decoration: none;
}

.register_wrapper a:hover {
  text-decoration: underline;
}

/* =========================
   Confirmation
   ========================= */
.confirmation-wrapper {
  max-width: 800px;
  margin: 60px auto;
  font-family: 'Segoe UI', sans-serif;
}

.confirmation-title {
  font-size: 2rem;
  color: #198754;
  margin-bottom: 0.5rem;
  text-align: center;
}

.confirmation-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.confirmation-message.success {
  background-color: #d1e7dd;
  color: #0f5132;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.confirmation-message.error {
  background-color: #f8d7da;
  color: #842029;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.confirmation-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow-x: auto;
  animation: fadeIn 0.6s ease-in-out;
}

.confirmation-table {
  width: 100%;
  border-collapse: collapse;
}

.confirmation-table th,
.confirmation-table td {
  padding: 12px 20px;
  border: 1px solid #dee2e6;
  text-align: left;
}

.confirmation-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.confirmation-table td:first-child {
  text-align: center;
  font-weight: 500;
  color: #444;
}

.confirmation-table td:nth-child(2) {
  padding-left: 30px;
}

.confirmation-actions {
  margin-top: 2rem;
  text-align: center;
}

.btn-confirm {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.btn-login {
  background-color: #0d6efd;
  color: white;
  border: none;
}

.btn-login:hover {
  background-color: #0b5ed7;
}

.btn-home {
  background-color: #f8f9fa;
  color: #212529;
  border: 1px solid #ced4da;
}

.btn-home:hover {
  background-color: #e2e6ea;
  color: #000;
}

/* =========================
   Animation
   ========================= */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 768px) {
  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
  }

  .register_wrapper {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;        /* ← min-height au lieu de height */
    margin: 0;
    padding: 40px 20px 100px 20px; /* ← padding-bottom augmenté pour le footer */
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .register_wrapper h2 {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

  .register_wrapper input,
  .register_wrapper button {
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
  }
}