body {
    background-color: #F0DAC2;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Police moderne */
    color: #333;
}

/* Conteneur principal pour que le site ne prenne pas toute la largeur de l'écran */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h2 {
    color: #CF4528;
    border-bottom: 2px solid #CF4528;
    padding-bottom: 10px;
    margin-top: 40px;
}

/* --- SECTION VEDETTES --- */
.grille-vedettes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.carte-recette {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    width: 45%; 
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Ombre plus douce et pro */
    transition: transform 0.2s, box-shadow 0.2s;
}

.carte-recette:hover {
    transform: translateY(-5px); /* Effet de soulèvement plutôt que zoom */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.carte-recette h3 {
    margin-top: 0;
    color: #CF4528;
}

.temps-badge {
    display: inline-block;
    background: #ffecd9;
    color: #CF4528;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

/* --- TABLEAU (CATALOGUE) --- */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden; /* Pour garder les coins arrondis avec le fond */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    background-color: #CF4528;
    color: white;
    text-transform: uppercase;
    font-size: 0.9em;
}

tr:nth-child(even) {
    background-color: #fcfcfc;
}

tr:hover {
    background-color: #f1f1f1;
}

.btn-supprimer {
    color: #CF4528;
    text-decoration: none;
    font-weight: bold;
}

.btn-supprimer:hover {
    text-decoration: underline;
}

/* --- FORMULAIRE --- */
form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

form input[type="text"],
form input[type="number"],
form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0 20px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

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

form input[type="submit"] {
    background-color: #CF4528;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s;
}

form input[type="submit"]:hover {
    background-color: #a8351e;
}