/* ==== Global ==== */
body {
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e0f7fa, #fce4ec);
    color: #333;
}

h1, h2, p {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}
.table-wrapper {
  overflow-x: auto;
  max-width: 100%;
}

table {
  width: 100%;
  table-layout: auto;
}

/* ==== Layout === */
.container {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    margin: 20px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    box-sizing: border-box;
}

.form-container {
  max-width: 90vw;        /* S’adapte à la taille de l’écran */
  width: auto;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  overflow-x: auto;
}

.form-container {
  max-width: 90vw;        /* S’adapte à la taille de l’écran */
  width: auto;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  overflow-x: auto;
}

.form-admin-container {
	background: white;
    padding: 30px 30px;
	text-align: center;
	box-sizing: border-box;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	max-width: 100%;
	width: 100%;
	padding: 1rem;
	box-sizing: border-box;
}

/* ==== Titres ==== */
.header h1 {
    font-size: 1.8em;
}
.header h2 {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 15px;
}

/* ==== Image ==== */
.photo img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* ==== Bouton principal ==== */
.btn {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, background-color 0.3s ease;
}
.btn:hover,
.btn:active {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* ==== Formulaire ==== */
form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 20px;
    width: 100%;
}

label {
    text-align: left;
    font-weight: 600;
    color: #444;
    font-size: 1em;
}

input, select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    margin-top: 5px;
    width: 100%;
    box-sizing: border-box;
}

input:focus, select:focus {
    border-color: #007bff;
    outline: none;
}

/* ==== Lien retour ==== */
.lien-retour {
    display: block;
    margin-top: 25px;
    color: #007bff;
    font-size: 0.95em;
}

/* ==== Tableau des suggestions ==== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95em;
}

th, td {
    border: 1px solid #eee;
    padding: 12px;
    text-align: center;
}

th {
    background-color: #f8f8f8;
}

tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* ==== Responsive : mobile first ==== */
@media (min-width: 600px) {
    .btn {
        width: auto;
    }

    .container, .form-container {
        margin: 40px auto;
    }
}

.logo-top {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-top img {
    height: 60px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.footer {
    margin-top: 40px;
    font-size: 0.9em;
    color: #777;
    text-align: center;
    padding-top: 20px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-accueil {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrapper {
  overflow-x: auto;
  max-width: 100%;
}
