body {
    font-family: 'Source Sans Pro', sans-serif;
    background: #E7FCE7;
    margin: 0;
    padding: 20px;
}

h1 , h2 {
    text-align: center;
    margin-top: 40px;
   
}

form {
    padding: 5px;
    max-width: 410px;
    margin: auto;
    border-radius: 8px;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
}

input {
    width: 94%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
}
.rgpd-checkbox input[type="checkbox"] {
    width: auto;
    display: inline-block;
    padding: 0;
    margin: 3px 0 0 0;
    cursor:pointer;
}
/* Styles supplémentaires pour la case RGPD */
.rgpd-container {
    margin: 20px 0;
    padding: 5px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.rgpd-checkbox {
    align-items: flex-start;
    gap: 10px;
}

.rgpd-label {
    font-size: 12px;
    line-height: 1.5;
    color: #333;
}

.rgpd-label strong {
    color: #d32f2f;
}

.rgpd-details {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
}

.rgpd-details a {
    color: #0066cc;
    text-decoration: none;
}

.rgpd-details a:hover {
    text-decoration: underline;
}

.error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
}

button, a.button {
    margin-top: px;
    width: 100%;
    padding: 12px;
    background: #1CE000;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

button:hover, a.button:hover {
    background: #2F7E33;
    color: white;
}

#info-pieces {
    margin-top: 10px;
}

.piece-info {
    border-radius: 6px;
    margin-bottom: 20px;
}
.piece-date {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-top: 5px;
    display: block;
}

#liste-attente-info {
    margin: 10px 0;
}

.bar-container {
    width: 100%;
    height: 15px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.bar {
    height: 15px;
    background: linear-gradient(90deg, #4caf50, #2e7d32);
}

.attente {
    color: #c62828;
    font-weight: bold;
}

/* Styles Admin */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #999;
    padding: 10px;
}

th {
    background: #e0e0e0;
}

.admin-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.admin-form input {
    padding: 6px;
    min-width: 140px;
    width: auto;
    margin: 0;
}

.admin-form button {
    margin: 0;
    padding: 8px 15px;
    width: auto;
    background: #1CE000;
}

.admin-header-links {
    margin-top: 10px;
    margin-bottom: 18px;
}

.admin-header-links a {
    margin-right: 12px;
}

/* Styles spécifiques pour tableaux admin: colonne Actions étroite + contrôles compacts */
.admin-table th:last-child,
.admin-table td:last-child {
    width: 160px; /* ajuster si besoin */
    white-space: nowrap;
    text-align: center;
}

.admin-table td:last-child .admin-form {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

/* Contrôles compacts (select/button/input) dans la colonne Actions */
.admin-table .admin-form select,
.admin-table .admin-form input,
.admin-table .admin-form button {
    padding: 6px 8px;
    font-size: 0.9rem;
    line-height: 1;
}

/* Forcer les boutons d'action verts et compacts */
.admin-table .admin-form button {
    background: #1CE000 !important;
    color: black !important;
    border: none !important;
    min-width: 64px !important;
    padding: 6px 8px !important;
}
.admin-table .admin-form button:hover {
    background: #2F7E33 !important;
    color: white !important;
}

/* Retirer tout fond blanc éventuel autour des cellules admin */
.admin-table td {
    background: transparent;
}

/* Header (logo + titre) */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    max-width: 410px; /* same as form */
    margin-left: auto;
    margin-right: auto;
}
.header-logo {
    width: 110%;
}
.header-logo img {
    width: 100%; /* fill the same width as the form */
    height: auto;
    display: block;
    object-fit: contain;
}
.header-text h1 { margin: 0; text-align: center; }
.header-text h2 { margin: 0; font-weight: normal; text-align: center; }

/* Mise en forme du bloc de contact (téléphone en cas d'empêchement) */
.contact-note {
    text-align: center;
    margin-top: 6px;
    margin-bottom: 12px;
}
.contact-note .contact-note-text {
    margin: 0;
    font-weight: 700;
}
.contact-note .contact-note-phone {
    margin: 2px 0 0 0;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: underline;
}
.centré {
    text-align: center;
}

/* Pied de page */
.site-footer {
    text-align: center;
    margin-top: 30px;
    padding: 12px 10px;
    font-size: 0.95rem;
    color: #333;
    border-top: 1px solid rgba(0,0,0,0.08);
    background: transparent;
}
.site-footer a {
    color: #1CE000;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* Logo jaune en haut à gauche (fixe) */
.logo-top-left {
    position: absolute ;
    top: 15px; /* descendre pour s'aligner avec le KES2 */
    left: 12px;
    width: 140px;
    height: auto;
    z-index: 1200;
}

@media (max-width: 480px) {
    .logo-top-left { width: 48px; top: 24px; left: 8px; }
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #1CE000;
    color: black;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: opacity 0.3s;
}

.back-to-top:hover {
    background-color: #2F7E33;
    transform: scale(1.1);
}
/* Réseaux sociaux en haut à droite */
.social-media-top {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    backdrop-filter: blur(5px);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.social-icon svg {
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* Facebook spécifique */
.social-icon:nth-child(1):hover {
    background: #1877F2;
}

.social-icon:nth-child(1):hover svg {
    fill: white;
}

/* Instagram spécifique */
.social-icon:nth-child(2):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon:nth-child(2):hover svg {
    fill: white;
}

/* Dans style.css */
.admin-table th:nth-child(1), /* ID */
.admin-table td:nth-child(1) {
    width: 50px; /* Réduit la colonne ID */
    text-align: center;
}

.admin-table th:nth-child(2), /* Date */
.admin-table td:nth-child(2) {
    width: 80px; /* Réduit la colonne Date */
}

.admin-table th:nth-child(4), /* Téléphone */
.admin-table td:nth-child(4) {
    width: 100px; /* Réduit la colonne Téléphone */
}

.admin-table th:nth-child(5), /* Places */
.admin-table td:nth-child(5) {
    width: 60px; /* Réduit la colonne Places */
    text-align: center;
}

.admin-table th:nth-child(6), /* Places restantes */
.admin-table td:nth-child(6) {
    width: 80px; /* Réduit la colonne Places restantes */
    text-align: center;
    font-weight: bold;
}
.btn-modifier {
            display: inline-block;
            background: #f09433;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            text-decoration: none;
            margin-right: 5px;
            font-size: 14px;
        }

        .btn-modifier:hover {
            background: #e6683c;
        }
         .btn-supprimer {
            display: inline-block;
            background: #f44336;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            text-decoration: none;
            font-size: 14px;
        }

        .btn-supprimer:hover {
            background: #d32f2f;
        }

        .admin-link{
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2c3e50;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    border: 1px solid var(--vert-principal);
}

.admin-link:hover {
    background: #2F7E33;
}
