@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;600&display=swap');
:root {
    --vert: #1E4D2B;
    --jaune: #F4B41A;
    --rouge: #C0392B;
    --fond-papier: #FDF5E6;
    --gris: #D9D9D9;
}
body {
    background-color: var(--fond-papier);
    font-family: 'Poppins', sans-serif;
    color: #333;
    transition: background-color 0.4s ease, color 0.4s ease;
}
.serif-font {
    font-family: 'Playfair Display', serif;
}
.recipe-header {
    background-color: var(--vert);
    padding: 10px 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s, opacity 0.3s;
    text-decoration: none;
}
.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}
.social-github:hover {
    color: #1B1F23;
    transition: background-color 0.4s ease, color 0.4s ease;
}
.social-twitter:hover {
    color: #1DA1F2;
    transition: background-color 0.4s ease, color 0.4s ease;
}
.social-linkedin:hover {
    color: #0A66C2;
    transition: background-color 0.4s ease, color 0.4s ease;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gris);
}
.logo-link {
    text-decoration: none;
    color: var(--gris);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}
.logo-link:hover {
    color: var(--gris);
    opacity: 0.85;
}
.recipe-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
}
.utensils-icon {
    font-size: 1.5rem;
}
.btn-theme {
    background: none;
    border: 1px solid white;
    color: var(--gris);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-theme:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
#recipe-container {
    display: none;
    background-color: #F2F2F2;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
#recipe-video {
    background-color: var(--rouge);
}
.img-placeholder {
    aspect-ratio: 598 / 554;
    width: 100%;
    height: auto;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #555;
    object-fit: cover;
}
.box-info {
    background-color: var(--gris);
    color: #333;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: background-color 0.3s, color 0.3s;
}
#recipe-container, .box-info {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.btn-theme span {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.rotate-icon {
    transform: rotate(360deg);
}
body.bg-dark .recipe-header {
    background-color: #1a3306;
}
body.bg-dark .box-info {
    background-color: #444;
    color: #f1f1f1;
    border: 1px solid #555;
}
body.bg-dark .btn-secondary {
    background-color: #666;
    border-color: #777;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}