
input, button, select, textarea {
    -webkit-appearance: none; 
    -moz-appearance: none;    
    appearance: none;        
    border-radius: 0;         
}

main { 
    padding-top: 40px; 
    background-color: #fff; 
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px); 
    background-size: 20px 20px; 
}

.container { 
    width: 90%; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.page-title { 
    text-align: center; 
    margin-top: 60px; 
    margin-bottom: 50px; 
    position: relative; 
}

.page-title .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.manga-badge {
    display: inline-block;
    background: #1a1a1a; 
    color: #fff;
    padding: 5px 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transform: skew(-10deg);
    margin-bottom: 10px;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 3px 3px 0px #f5e75e;
    width: 100%;
    line-height: 1.2;
}

.main-image-frame {
    position: relative;
    width: 100%;
    max-width: 800px;
    border: 4px solid #1a1a1a;
    padding: 10px;
    background: #fff;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.15);
    margin: 0 auto;
}

.main-image-frame img { 
    width: 100%; 
    height: auto; 
    display: block; 
    border: 1px solid #ccc; 
    object-fit: cover;
}

.desc-contexte {
    font-style: italic; 
    color: #555; 
    max-width: 700px; 
    margin: 30px auto;
    font-size: 1.1rem; 
    background: #fff; 
    padding: 20px;
    border-left: 5px solid #a34e8d; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.recette-meta { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 15px; 
    flex-wrap: wrap; 
    width: 100%;
    margin-bottom: 30px;
}

.meta-tag {
    background: #fff; 
    border: 2px solid #1a1a1a; 
    padding: 8px 20px;
    font-weight: 700; 
    font-size: 0.9rem; 
    border-radius: 50px;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.1);
    height: auto;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ingredients-section { 
    margin-bottom: 60px; 
}

.ingredients-box {
    background: #fff; 
    border: 3px solid #1a1a1a; 
    padding: 30px; 
    position: relative;
    box-shadow: 5px 5px 0px #1a1a1a;
}

.ingredients-box h3 {
    background: #1a1a1a; 
    color: #fff; 
    display: inline-block;
    padding: 10px 20px; 
    position: absolute; 
    top: -20px; 
    left: 20px;
    font-weight: 800; 
    text-transform: uppercase; 
    transform: skew(-10deg);
}

.ingredients-list {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px; 
    list-style: none; 
    margin-top: 20px;
}

.ingredients-list li {
    display: flex; 
    align-items: center; 
    border-bottom: 2px dotted #ccc; 
    padding: 8px 0;
}

.ing-amount { 
    font-weight: 800; 
    color: #a34e8d; 
    margin-right: 10px; 
    width: 70px; 
    text-align: right; 
    flex-shrink: 0;
}

.ing-name { 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
}

.recipe-steps { 
    display: flex; 
    flex-direction: column; 
    gap: 80px; 
    margin-bottom: 80px; 
}

.step-block { 
    display: flex; 
    align-items: flex-start; 
    gap: 40px; 
}

.step-block.reverse { 
    flex-direction: row-reverse; 
}

.step-content { 
    flex: 2; 
}

.step-title {
    font-size: 1.8rem; 
    font-weight: 900; 
    margin-bottom: 15px; 
    color: #1a1a1a;
    display: flex; 
    align-items: center; 
    gap: 15px;
}

.step-num {
    background: #f5e75e; 
    color: #1a1a1a; 
    width: 45px; 
    height: 45px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border: 3px solid #1a1a1a; 
    border-radius: 50%; 
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content p { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    text-align: justify; 
    color: #333; 
}

.step-media { 
    flex: 1; 
    max-width: 400px; 
}

.media-wrapper.manga-border {
    border: 3px solid #1a1a1a;
    box-shadow: 8px 8px 0px #a34e8d; 
    background: #fff; 
    overflow: hidden; 
    transition: transform 0.2s;
}

.media-wrapper:hover { 
    transform: scale(1.02); 
}

.media-wrapper img { 
    width: 100%; 
    display: block; 
    aspect-ratio: 4/3; 
    object-fit: cover; 
    filter: grayscale(20%); 
} 

.comments-section { 
    padding: 50px 0; 
    border-top: 3px solid #1a1a1a; 
    background: #fdfdfd; 
}

.section-title { 
    text-align: center; 
    font-weight: 900; 
    font-size: 2rem; 
    margin-bottom: 40px; 
    text-transform: uppercase; 
}

.comments-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.comment-card { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.comment-header { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.comment-header img { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    border: 2px solid #1a1a1a; 
    object-fit: cover; 
}

.comment-header .pseudo { 
    font-weight: 800; 
    font-size: 1.1rem; 
}

.comment-bubble {
    background: #fff; 
    border: 2px solid #1a1a1a; 
    padding: 20px; 
    border-radius: 15px;
    position: relative; 
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.comment-bubble::before {
    content: ''; 
    position: absolute; 
    top: -12px; 
    left: 30px; 
    width: 20px; 
    height: 20px;
    background: #fff; 
    border-left: 2px solid #1a1a1a; 
    border-top: 2px solid #1a1a1a;
    transform: rotate(45deg);
}

footer { 
    margin-top: auto; 
    padding: 40px 0; 
    text-align: center; 
    background: #1a1a1a; 
    color: #fff; 
}

.rating-box {
    background: #fff;
    border: 3px solid #1a1a1a;
    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
}

.rating-box h3 {
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 15px;
}

.stars-form {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
}

.stars-form input { display: none; }

.stars-form label {
    font-size: 40px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.stars-form label:hover,
.stars-form label:hover ~ label,
.stars-form input:checked ~ label {
    color: #f4b000;
}

.btn-noter {
    background: #1a1a1a;
    color: white;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    text-transform: uppercase;
}
.btn-noter:hover { background: #f5e75e; color: #1a1a1a; }




@media (max-width: 1024px) {
    .container { width: 95%; }
    
    h1 { font-size: 2rem; }
    .page-title { margin-top: 40px; margin-bottom: 30px; }
    
    .recipe-steps { gap: 50px; }
    
    .step-block, .step-block.reverse { 
        flex-direction: column; 
        gap: 20px;
        align-items: center;
    }
    
    .step-content { width: 100%; }
    
    .step-media { 
        width: 100%; 
        max-width: 100%; 
        margin-top: 10px;
    }
    
    .step-media .media-wrapper {
        margin: 0 auto;
        box-shadow: 5px 5px 0px #a34e8d;
    }
    
    .ingredients-list { grid-template-columns: 1fr; } 
    .comments-grid { grid-template-columns: 1fr; }
    
    .recette-meta { gap: 10px; }
    .meta-tag { padding: 6px 12px; font-size: 0.8rem; }
    
    .main-image-frame {
        box-shadow: 6px 6px 0px rgba(0,0,0,0.15);
        padding: 5px;
        border-width: 3px;
    }
    
    .desc-contexte { font-size: 1rem; padding: 15px; }
    
    .stars-form label { font-size: 30px; }
    .rating-box { padding: 20px; width: 100%; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    .manga-badge { font-size: 0.7rem; padding: 4px 10px; }
    .step-title { font-size: 1.3rem; }
    .step-num { width: 35px; height: 35px; font-size: 1rem; }
}