/* ===============================
   POLICE + BODY
   =============================== */
body {
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: #f9f9f9;
    color: #514C45;
    margin: 0;
    padding: 0;
}

/* ===============================
   MENU SIMPLE
   =============================== */
.menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.menu a {
    text-decoration: none;
    font-weight: 500;
    color: #CC0031;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.menu a:hover, .menu a.active {
    background-color: #CC0031;
    color: white;
}

/* ===============================
   CONTAINER
   =============================== */
.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* ===============================
   FORMULAIRE
   =============================== */
.form-box {
    background-color: #ffffff;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-box label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 500;
    color: #514C45;
}

.form-box input[type="text"],
.form-box input[type="email"],
.form-box textarea,
.form-box input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.form-box textarea {
    min-height: 120px;
    resize: vertical;
}

.form-box input:focus,
.form-box textarea:focus {
    outline: none;
    border-color: #CC0031;
}

.form-box input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #CC0031;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.form-box input[type="submit"]:hover {
    background-color: #a80028;
    transform: translateY(-1px);
}

.success {
    color: #28a745;
    font-weight: 500;
    text-align: center;
    margin-bottom: 15px;
}

.error {
    color: #CC0031;
    font-weight: 500;
    text-align: center;
    margin-bottom: 15px;
}

/* ===============================
   TABLEAU
   =============================== */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    font-size: 14px;
}

th {
    background-color: #CC0031;
    color: #ffffff;
    text-align: left;
    padding: 10px;
    font-weight: 500;
}

td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    color: #514C45;
}

tr:hover {
    background-color: #f5f5f5;
}

table img {
    max-width: 120px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* ===============================
   BOUTONS VALIDER / SUPPRIMER
   =============================== */
.validate-btn,
.delete-btn {
    padding: 5px 10px;
    margin: 2px;
    font-size: 13px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.validate-btn {
    background-color: #28a745;
    color: white;
}

.validate-btn:hover {
    background-color: #218838;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
}

.delete-btn:hover {
    background-color: #c82333;
}

.total-count {
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
}

/* ===============================
   FILTRE THEME - BOUTONS
   =============================== */
.filter-buttons {
    margin-bottom: 20px;
    text-align: center;
}

.filter-buttons button {
    display: inline-block;
    margin: 0 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #CC0031;
    background-color: #fff;
    border: 2px solid #CC0031;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-buttons button:hover {
    background-color: #CC0031;
    color: #fff;
}

.filter-buttons button.active {
    background-color: #CC0031;
    color: #fff;
}

.btn-lien {
    background: #CC0031;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin: 2px;
}

/* ============================================================
   AJOUTS CHALLENGE (forbase.php)
   ============================================================ */

/* --- Titres de la page formulaire (mis à la charte, rouge/gris) --- */
.content-container h2 {
    color: #CC0031;
    text-align: center;
    max-width: 600px;
    margin: 8px 0;
}
.content-container h3 {
    font-weight: 500;
    font-size: 15px;
    color: #514C45;
    text-align: center;
    max-width: 600px;
    margin: 4px 0 16px;
}

/* --- Bouton "Envoyer" : c'est un <button>, pas un <input submit> --- */
.form-box button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #CC0031;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.form-box button[type="submit"]:hover {
    background-color: #a80028;
    transform: translateY(-1px);
}
.form-box button[type="submit"]:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* --- Barre de progression de l'upload --- */
.progress-wrap {
    display: none;              /* affichée par le JS pendant l'envoi */
    width: 100%;
    height: 22px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}
.progress-bar {
    width: 0%;
    height: 100%;
    background: #CC0031;
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    white-space: nowrap;
    transition: width .2s ease;
}

/* --- Cases à cocher (données obligatoire + newsletter) --- */
.consent-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0;
    font-size: 14px;
}
.consent-line input[type="checkbox"] {
    width: auto;               /* sinon la case s'étire à 100% */
    margin: 3px 0 0;
    flex-shrink: 0;
}
.consent-line label {
    margin: 0;
    font-weight: 400;
    color: #514C45;
}

/* --- Petite note sous les champs photo --- */
.photo-hint {
    font-size: 13px;
    color: #888;
    margin: -8px 0 14px;
}
