/* Feuille de style CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #007cba;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #005a87;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

/* lsm-meals.css - Style pour le formulaire de reservation */

/* Force la couleur du texte à noir avec une spécificité maximale */
#sn-order-form input[type="text"],
#sn-order-form input[type="email"],
#sn-order-form input[type="number"],
#sn-order-form input[type="tel"],
#sn-order-form textarea {
    color: #000000 !important;
}

#sn-order-form .sn-form-group input,
#sn-order-form .sn-form-group textarea {
    color: #000000 !important;
}

.sn-order-form {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.sn-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px;
    text-align: center;
}

/* Sections du formulaire */
.sn-form-section {
    margin-bottom: 25px;
    background: #fafbfc;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
}

.sn-form-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: #d0d7dd;
}

.sn-form-section:last-of-type {
    margin-bottom: 20px;
}

.sn-form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-left: 15px;
    border-left: 4px solid #3498db;
}

/* Système de grille responsive */
.sn-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.sn-form-group {
    display: flex;
    flex-direction: column;
}

.sn-form-group.sn-full-width {
    grid-column: 1 / -1;
}

.sn-order-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    margin-top: 0;
}

.sn-order-form input[type="text"],
.sn-order-form input[type="email"],
.sn-order-form input[type="number"],
.sn-order-form input[type="tel"],
.sn-order-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: #ffffff;
    color: #000000 !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.sn-order-form input[type="text"]:focus,
.sn-order-form input[type="email"]:focus,
.sn-order-form input[type="number"]:focus,
.sn-order-form input[type="tel"]:focus,
.sn-order-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.sn-order-form textarea {
    resize: vertical;
    min-height: 100px;
}


.sn-order-form input:-webkit-autofill,
.sn-order-form input:-webkit-autofill:hover,
.sn-order-form input:-webkit-autofill:focus,
.sn-order-form textarea:-webkit-autofill {
    -webkit-text-fill-color: #000000;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
    transition: background-color 5000s ease-in-out 0s;
}


.sn-order-form input:-moz-autofill,
.sn-order-form textarea:-moz-autofill {
    color: #000000 !important;
    background-color: #ffffff !important;
}

.sn-order-form button[type="submit"] {
    width: 100%;
    padding: 16px;
    margin-top: 30px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.sn-order-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.sn-order-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Amélioration visuelle des champs de formulaire */
.sn-form-group input,
.sn-form-group textarea {
    background: #ffffff;
    border: 2px solid #e1e8ed;
    color: #000000 !important;
    transition: all 0.3s ease;
}

.sn-form-group input:focus,
.sn-form-group textarea:focus {
    background: #ffffff;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Indicateur de champ requis */
.sn-order-form label:after {
    content: none;
}

.sn-order-form input:required,
.sn-order-form textarea:required {
    background-image: none;
}

/* Message de succès/erreur */
.sn-message {
    padding: 16px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
}

.sn-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sn-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Style pour les champs en lecture seule */
.sn-order-form input.sn-readonly,
.sn-order-form input[readonly] {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    cursor: not-allowed;
    font-weight: 600;
}

.sn-order-form input.sn-readonly:focus,
.sn-order-form input[readonly]:focus {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    box-shadow: none;
}

/* Style pour les textes d'aide */
.sn-help-text {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
}

/* Style pour les checkboxes */
.sn-order-form input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.2);
}

.sn-order-form label input[type="checkbox"] {
    margin-right: 10px;
}

/* Style pour les sections conditionnelles */
#delivery-address {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Amélioration du style des labels avec checkbox */
.sn-order-form .sn-form-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.sn-order-form .sn-form-group label input[type="checkbox"] {
    margin: 0 10px 0 0;
}

/* Page de confirmation */
.sn-confirmation-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.sn-confirmation-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 60px 40px;
    text-align: center;
    border: 1px solid #e1e8ed;
}

.sn-confirmation-header h2 {
    font-size: 32px;
    color: #27ae60;
    margin: 0 0 30px 0;
    font-weight: 600;
}

.sn-confirmation-message {
    font-size: 16px;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sn-confirmation-actions {
    margin-top: 40px;
}

.sn-btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.sn-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white !important;
}

/* Responsive pour la confirmation */
@media (max-width: 768px) {
    .sn-confirmation-content {
        padding: 40px 24px;
    }

    .sn-confirmation-header h2 {
        font-size: 24px;
    }

    .sn-confirmation-message {
        font-size: 14px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sn-order-form {
        padding: 24px;
        margin: 20px auto;
        max-width: calc(100% - 40px);
    }

    .sn-form-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .sn-form-section-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .sn-form-section {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .sn-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sn-form-group {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .sn-order-form {
        padding: 20px;
        margin: 10px auto;
        border-radius: 8px;
    }

    .sn-form-title {
        font-size: 22px;
    }

    .sn-form-section-title {
        font-size: 15px;
        padding-left: 12px;
    }

    .sn-order-form input[type="text"],
    .sn-order-form input[type="email"],
    .sn-order-form input[type="number"],
    .sn-order-form input[type="tel"],
    .sn-order-form textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .sn-order-form button[type="submit"] {
        padding: 14px;
        font-size: 15px;
    }
}

/* Style pour la section de pré-soumission */
.sn-pre-submit-info {
    font-size: 15px;
}

.sn-pre-submit-info p {
    font-size: 15px;
}

.sn-pre-submit-info h4 {
    font-size: 17px;
    margin-top: 12px;
    margin-bottom: 8px;
}

.sn-pre-submit-info ul {
    font-size: 15px;
}

.sn-pre-submit-info li {
    margin-bottom: 6px;
}

/* Animation de chargement sur le bouton */
.sn-order-form button[type="submit"].loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.sn-order-form button[type="submit"].loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Amélioration visuelle pour les champs invalides */
.sn-order-form .sn-field-touched:invalid {
    border-color: #e74c3c;
}

.sn-order-form .sn-field-touched:valid {
    border-color: #27ae60;
}

/* Style pour le header "Lions" si présent dans la page */
.sn-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.sn-form-header h1 {
    font-size: 48px;
    font-weight: 300;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -1px;
}

/* Invités (plusieurs personnes par inscription) */
.sn-order-form .sn-form-section[hidden] {
    display: none;
}

.sn-guests-intro {
    margin: 0 0 14px 0;
    font-size: 14px;
    color: #555;
}

.sn-guests-later {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #fff8e6;
    border: 1px solid #f3dca0;
    border-radius: 6px;
}

.sn-guests-list .sn-guest-row {
    padding: 12px 0;
    border-top: 1px dashed #d0d7dd;
}

.sn-guests-list .sn-guest-row:first-child {
    border-top: none;
    padding-top: 0;
}

.sn-guest-label .sn-guest-index {
    font-weight: 700;
}

.sn-guests-form .sn-message {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .sn-guests-list .sn-guest-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Invités : ajout / retrait de lignes */
.sn-guests-empty {
    margin: 0 0 12px 0;
    color: #777;
    font-size: 14px;
}

.sn-guests-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0 14px 0;
}

.sn-order-form .sn-btn-secondary {
    background: #fff;
    color: #2c3e50;
    border: 2px solid #3498db;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.sn-order-form .sn-btn-secondary:hover {
    background: #3498db;
    color: #fff;
}

.sn-order-form .sn-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #fff;
    color: #2c3e50;
}

.sn-guests-list .sn-guest-row--removable {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
}

.sn-guest-remove-wrap {
    display: flex;
    align-items: flex-end;
    padding-bottom: 2px;
}

.sn-order-form .sn-guest-remove {
    background: transparent;
    color: #8a1f11;
    border: 1px solid #e0b4ae;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.sn-order-form .sn-guest-remove:hover {
    background: #fdecea;
}

@media (max-width: 768px) {
    .sn-guests-list .sn-guest-row--removable {
        grid-template-columns: 1fr;
    }
    .sn-guest-remove-wrap {
        justify-content: flex-end;
    }
}
