/* --- BASE & TYPO --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: #333; background-color: #ffffff; line-height: 1.6; }
h1, h2, h3 { font-family: 'Playfair Display', serif; }
html { overflow-y: scroll; }

.condition-item p strong { 
    color: #d35400; 
    text-transform: uppercase; 
    font-size: 0.7rem; 
    letter-spacing: 0.5px;
}

/* --- OPTIMISATION GSM (MOBILE) --- */
@media (max-width: 768px) {
    .conditions-container {
        grid-template-columns: 1fr; 
        max-width: 100%;
        padding: 20px 25px; 
        gap: 0; 
    }

    .condition-item {
        align-items: center !important; /* Sur mobile, on remet le centrage qui est plus joli */
        padding: 15px 0; 
        border-bottom: 1px solid #f2f2f2; 
    }
    
    .condition-item p {
        margin-top: 0; /* On retire le décalage sur mobile */
    }

    .condition-item:first-child {
        padding-top: 0;
    }

    .condition-item:last-child {
        border-bottom: none; 
        padding-bottom: 0; 
    }
}

/* --- FORMULAIRE --- */
.order-wrapper { max-width: 1000px; margin: -40px auto 40px; padding: 0 20px; }
.form-section { background: white; padding: 40px; border-radius: 20px; margin-bottom: 30px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.form-section h2 { color: #d35400; margin-bottom: 25px; font-size: 1.8rem; }

input, select { width: 100%; padding: 14px; border-radius: 10px; border: 1px solid #ddd; outline: none; transition: 0.3s; }
input:focus { border-color: #d35400; box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.1); }
.field { display: flex; flex-direction: column; text-align: left; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 600; color: #d35400; text-transform: uppercase; letter-spacing: 0.5px; }
.input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

/* --- BOUTONS ET TABLEAU --- */
.btn-del { color: #e74c3c; background: none; border: none; font-size: 1.2rem; cursor: pointer; }
.btn-clear-link { background: none; border: none; color: #e74c3c; text-decoration: underline; cursor: pointer; margin-top: 10px; }

#recap-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
#recap-table th { text-align: left; padding: 15px; border-bottom: 2px solid #f4f4f4; color: #888; text-transform: uppercase; font-size: 0.8rem; }
#recap-table td { padding: 15px; border-bottom: 1px solid #f9f9f9; }

/* --- TOTAL BAR & ALLERGENES --- */
.total-bar { background: #1a1a1a; color: white; padding: 40px; border-radius: 20px; display: flex; justify-content: space-between; align-items: center; }
.pricing p { margin-bottom: 5px; color: #aaa; }
.pricing .final { font-size: 2.2rem; color: #d35400; }
.btn-send-devis { background: #d35400; color: white; border: none; padding: 20px 40px; font-size: 1.1rem; border-radius: 12px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-send-devis:hover { background: #e67e22; transform: scale(1.03); }

.allergen-box { max-width: 600px; margin: 25px auto 0px auto; background-color: #fff; border: 1px solid #eee; border-left: 5px solid #d35400; border-radius: 8px; padding: 15px; text-align: left; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.allergen-header { display: flex; align-items: center; color: #333; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 10px; }
.info-icon { margin-right: 10px; font-size: 1.2rem; }
.allergen-content { font-size: 0.85rem; color: #555; line-height: 1.5; }
.allergen-content span { color: #d35400; font-weight: bold; }
.allergen-footer { margin-top: 10px; font-size: 0.8rem; font-style: italic; color: #888; }

@media (max-width: 768px) {
    .input-grid .field { grid-column: span 1 !important; }
    .total-bar { flex-direction: column; text-align: center; gap: 20px; }
}

/* --- MENU FLOTTANT ARRONDI --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid #d35400; /* Le fameux liseré orange ! */
    padding: 10px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.nav-logo span { color: #d35400; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover { color: #d35400; }

/* Menu Burger (GSM) */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: #d35400;
    transition: 0.3s;
}

/* --- FOOTER 4 COLONNES --- */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 20px 20px;
    margin-top: 50px;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h3, .footer-col h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.footer-col h3 span { color: #d35400; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #aaa; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: #d35400; }

/* On centre le titre "Suivez-nous" et le logo Facebook */
.footer-col:last-child {
    text-align: center;
}

.social-links { 
    display: flex; 
    justify-content: center; /* Magie : cette ligne centre les logos ! */
    gap: 15px; 
    margin-top: 15px; 
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #666;
}

/* --- RESPONSIVE GSM --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Caché par défaut sur mobile */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        border-radius: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active { display: flex; }
    .burger-menu { display: flex; }

    /* Animation Burger */
    .burger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger-menu.active span:nth-child(2) { opacity: 0; }
    .burger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Style pour le logo Facebook du Footer */
.social-icon {
    color: #aaa; /* Gris clair par défaut */
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    color: #d35400; /* Devient orange au survol */
    transform: scale(1.1); /* Grossit légèrement pour l'effet clic */
}

footer { padding: 40px; text-align: center; font-size: 0.8rem; color: #999; }

/* --- STYLE DU TITRE ET SOUS-TITRE (Ajustement Mobile) --- */
.form-header h1 {
    font-size: 2.8rem;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 15px;
    text-wrap: balance; /* Magie : équilibre la taille des lignes sur PC et Mobile */
}

.form-header p {
    font-size: 1.15rem;
    color: #666 !important; /* Force la couleur grise par dessus le HTML */
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    text-wrap: balance;
}

/* --- OPTIMISATION SPÉCIFIQUE GSM (TÉLÉPHONE) --- */
@media (max-width: 768px) {
    .form-header {
        padding: 100px 15px 30px; /* On réduit un peu l'espace en haut sur mobile */
    }
    .form-header h1 {
        font-size: 1.8rem; /* Plus petit pour éviter les mots isolés */
        margin-bottom: 10px;
    }
    .form-header p {
        font-size: 0.95rem; 
        padding: 0 10px; 
        line-height: 1.4;
    }
}

.form-header { text-align: center; padding: 120px 20px 50px; background: white; }

/* --- NOUVEL ENCART D'INFORMATIONS --- */
.quick-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    max-width: 700px;
    margin: 25px auto 0;
    padding: 25px 35px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.quick-info-cell {
    display: flex;
    align-items: flex-start; /* Fixe l'icône en haut */
    justify-content: flex-start;
    gap: 15px;
}

.quick-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: #fdfaf7;
    border-radius: 50%;
    border: 1px solid #ffe0b2;
    margin-top: 2px; /* Micro-ajustement pour s'aligner avec le texte orange */
}

/* On force le texte à s'empiler proprement sans balise <br> */
.quick-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.quick-label {
    color: #d35400;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.quick-value {
    color: #555;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* --- VERSION MOBILE DU NOUVEL ENCART --- */
@media (max-width: 768px) {
    .quick-info-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 0;
    }

    .quick-info-cell {
        padding: 15px 0;
        border-bottom: 1px solid #f2f2f2;
    }
    
    .quick-info-cell:first-child {
        padding-top: 0;
    }

    .quick-info-cell:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* --- NOUVEAU SELECTEUR D'APERITIFS (PICKER) --- */
.picker-container {
    margin-bottom: 30px;
}

.picker-state-box {
    margin-bottom: 20px;
    text-align: left;
}

.picker-selection-row {
    display: flex;
    align-items: flex-end; /* Aligne le bouton et les champs sur la ligne du bas */
    gap: 15px;
    padding: 20px;
    background: #fdfaf7;
    border: 1px solid #ffe0b2;
    border-radius: 12px;
}

/* Groupes de champs */
.picker-group-main { flex: 2; display: flex; flex-direction: column; gap: 8px; }
.picker-group-qty { flex: 0 0 130px; display: flex; flex-direction: column; gap: 8px; }

/* Labels (titres oranges) */
.picker-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #d35400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Style des inputs/selects spécifiques au picker */
.picker-select, .picker-input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: white;
    font-size: 0.9rem;
    height: 50px;
    outline: none;
    transition: 0.3s;
}

.picker-select:focus, .picker-input:focus {
    border-color: #d35400;
}

.picker-input { text-align: center; }

/* Bouton d'ajout */
.picker-btn-add {
    height: 50px;
    background: #27ae60;
    color: white;
    border: none;
    padding: 0 25px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.picker-btn-add:hover {
    background: #219653;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

/* --- ADAPTATION MOBILE (GSM) --- */
@media (max-width: 768px) {
    .picker-selection-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }

    .picker-group-qty {
        flex: none;
        width: 100%;
    }

    .picker-btn-add {
        width: 100%;
    }
}