/* ===== NOUVELLE PALETTE NATURELLE ===== */
/* Inspiré des couleurs de la nature et de la cuisine */
body {
    background: linear-gradient(135deg, #8b7d6b 0%, #6d5e52 100%);
    min-height: 100vh;
    padding: 0.3px 0;
}

.form-container {
    max-width: 550px;
    margin: 30px auto 80px auto;
}

.elegant-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    border: none;
}

.card-header-elegant {
    background: linear-gradient(135deg, #5a6e4a 0%, #6b7f5b 100%);
    color: white;
    padding: 35px 30px;
    text-align: center;
    border: none;
}

.card-header-elegant h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}

.card-header-elegant i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.card-body-elegant {
    padding: 40px 35px;
}

.form-label {
    color: #3d3329;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #6b7f5b;
    box-shadow: 0 0 0 0.2rem rgba(107, 127, 91, 0.15);
}

.form-check-input {
    width: 50px;
    height: 25px;
    border-radius: 25px;
    border: 2px solid #d1d5db;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #6b7f5b;
    border-color: #6b7f5b;
}

.form-check-label {
    color: #3d3329;
    font-weight: 500;
    margin-left: 10px;
}

.form-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5px;
}

.btn-calculate {
    background: linear-gradient(135deg, #6b7f5b 0%, #5a6e4a 100%);
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 127, 91, 0.4);
    letter-spacing: 0.5px;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 127, 91, 0.5);
    color: white;
    background: linear-gradient(135deg, #5a6e4a 0%, #4a5d3a 100%);
}

.btn-calculate:active {
    transform: translateY(0);
}

.mb-custom {
    margin-bottom: 25px;
}

.invalid-feedback {
    color: #c44536;
    font-size: 0.875rem;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.elegant-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Checkboxes viandes */
.viandes-checkboxes {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    max-height: 350px;
    overflow-y: auto;
}

.viandes-checkboxes input[type="checkbox"] {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 2px solid #d1d5db;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 12px;
}

.viandes-checkboxes input[type="checkbox"]:checked {
    background-color: #6b7f5b;
    border-color: #6b7f5b;
}

.viandes-checkboxes label {
    display: block;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: #3d3329;
    transition: all 0.2s ease;
}

.viandes-checkboxes label:hover {
    background: #f0f0f0;
    border-color: #6b7f5b;
}

.viandes-checkboxes input[type="checkbox"]:checked ~ label,
.viandes-checkboxes label:has(input:checked) {
    background: #e8f0e4;
    border-color: #6b7f5b;
    color: #5a6e4a;
    font-weight: 600;
}

/* ===== FIX POUR LES BORDURES DES INPUTS (FORMULAIRE CONTACT & CALCUL) ===== */

/* Force les bordures à être TOUJOURS visibles sur TOUS les écrans */
.form-control, 
.form-select {
    border: 2px solid #8b7d6b !important; /* Brun visible */
    border-radius: 10px !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
    background-color: white !important; /* Fond blanc pour contraste */
    transition: all 0.3s ease !important;
}

/* État focus (quand on clique dans l'input) */
.form-control:focus, 
.form-select:focus {
    border-color: #6d5e52 !important; /* Brun plus foncé au focus */
    box-shadow: 0 0 0 0.2rem rgba(139, 125, 107, 0.25) !important;
    outline: none !important;
    background-color: white !important;
}

/* État hover (quand on survole l'input) */
.form-control:hover,
.form-select:hover {
    border-color: #6d5e52 !important;
}

/* Pour les textareas aussi */
textarea.form-control {
    border: 2px solid #8b7d6b !important;
    min-height: 120px !important;
}

/* Input de type date */
input[type="date"].form-control {
    border: 2px solid #8b7d6b !important;
}

/* Labels bien visibles */
.form-label {
    color: #3d3329 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
}

/* Checkboxes et radios */
.form-check-input {
    border: 2px solid #8b7d6b !important;
}

.form-check-input:checked {
    background-color: #8b7d6b !important;
    border-color: #8b7d6b !important;
}

/* Pour s'assurer que ça marche sur TOUS les écrans */
@media (min-width: 768px) {
    .form-control, 
    .form-select {
        border: 2px solid #8b7d6b !important;
    }
}

@media (min-width: 992px) {
    .form-control, 
    .form-select {
        border: 2px solid #8b7d6b !important;
    }
}

@media (min-width: 1200px) {
    .form-control, 
    .form-select {
        border: 2px solid #8b7d6b !important;
    }
}

/* Select avec flèche bien visible */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238b7d6b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

/* Input invalide (en cas d'erreur) */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #c44536 !important;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #6b7f5b !important;
}