/* Styles spécifiques pour la page de commande */
.commande-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.commande-header {
    text-align: center;
    margin-bottom: 40px;
}

.commande-header h1 {
    color: #2A3945;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.commande-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.commande-form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    width: 100%;
    justify-content: center;
}

.form-group {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group.full-width {
    flex: 0 0 100%;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2A3945;
    text-align: center;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Gill Sans', sans-serif;
    transition: border-color 0.3s;
    text-align: center;
}

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

.form-group input[type="date"],
.form-group input[type="time"] {
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    text-align: left;
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 15px;
    background-color: #f5f5f5;
    border: 1px dashed #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.file-upload-label:hover {
    background-color: #e9e9e9;
    border-color: #F9B233;
}

.file-upload-label i {
    margin-right: 8px;
    color: #F9B233;
}

/* Style du bouton */
.submit-btn {
    background-color: #F9B233;
    color: #2A3945;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 400px;
    margin-top: 25px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    z-index: -1;
}

.submit-btn:hover:before {
    left: 0;
}

.submit-btn:hover {
    background-color: #e69e1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Styles pour les messages d'alerte */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 1.2rem;
}

/* Style pour désactiver les dates de vacances dans le calendrier */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Style pour les dates de vacances */
.holiday-date {
    color: #999;
    background-color: #f5f5f5;
    pointer-events: none;
}

/* Styles pour le calendrier personnalisé */
.custom-calendar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 90%;
    width: 400px;
}

.custom-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.custom-calendar-title {
    font-weight: bold;
    font-size: 1.2rem;
    flex-grow: 1;
    text-align: center;
}

.custom-calendar-close {
    cursor: pointer;
    font-size: 1.5rem;
    position: absolute;
    right: -10px;
    top: -10px;
}

.custom-calendar-nav {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.custom-calendar-nav:hover {
    background-color: #f0f0f0;
}

.custom-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.custom-calendar-day {
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
}

.custom-calendar-day:hover {
    background-color: #f0f0f0;
}

.custom-calendar-day.selected {
    background-color: #F9B233;
    color: white;
}

.custom-calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-calendar-day.today {
    border: 1px solid #F9B233;
}

.custom-calendar-day.weekend {
    color: #f44336;
}

.custom-calendar-day.holiday {
    color: #999;
    background-color: #f5f5f5;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-calendar-weekday {
    text-align: center;
    font-weight: bold;
    padding: 5px;
}

/* Style pour le message de vacances */
#holiday-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    width: 80%;
    max-width: 600px;
    text-align: center;
}

/* Styles pour les champs d'heure */
input[type="time"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Gill Sans', sans-serif;
    transition: border-color 0.3s;
    text-align: center;
    background-color: white;
}

input[type="time"]:focus {
    border-color: #F9B233;
    outline: none;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5);
}

input[type="time"]::-webkit-calendar-picker-indicator:hover {
    filter: invert(0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .commande-header h1 {
        font-size: 2rem;
    }
    
    .commande-form {
        padding: 25px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        min-width: 100%;
    }
} 