/* Reset et Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    /* Image de fond culinaire haute qualité */
    background: url('https://images.unsplash.com/photo-1543353071-873f17a7a088?q=80&w=1920&auto=format&fit=crop') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* Cadre Central Flottant (Glassmorphism léger) */
.main-container {
    background-color: rgba(255, 253, 245, 0.95); /* Crème presque opaque */
    width: 90%;
    max-width: 800px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 20px;
}

/* Typographie & Couleurs */
header h1 {
    color: #d35400; /* Orange brûlé / Terracotta */
    margin-bottom: 10px;
    font-size: 2.2rem;
}

header p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Champs de saisie */
.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Pour le mobile */
    justify-content: center;
}

input[type="text"] {
    flex: 1;
    min-width: 280px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: #d35400;
}

button {
    background-color: #d35400;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e67e22; /* Orange plus clair */
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Zone d'affichage */
#recipeDisplay {
    text-align: left;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #27ae60; /* Accent vert olive/forêt */
    white-space: pre-wrap; /* Conserve les sauts de ligne de l'IA */
    line-height: 1.6;
    font-size: 1.05rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Classes utilitaires */
.hidden {
    display: none;
}

#errorMessage {
    color: #c0392b;
    margin-top: 15px;
    font-weight: bold;
}

/* Spinner de chargement */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d35400;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .main-container {
        padding: 20px;
    }
    header h1 {
        font-size: 1.8rem;
    }
}
/* Style spécifique pour le bouton PDF */
#exportBtn {
    background-color: #34495e; /* Bleu nuit élégant */
    margin-top: 20px;
    width: 100%; /* Prend toute la largeur disponible */
    display: flex; /* Pour centrer l'icone et le texte si besoin */
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#exportBtn:hover {
    background-color: #2c3e50;
}

/* On s'assure que le bouton reste caché quand il a la classe hidden */
#exportBtn.hidden {
    display: none;
}

