input, button, select, textarea {
    -webkit-appearance: none; 
    -moz-appearance: none;   
    appearance: none;         
    border-radius: 0;         
}


:root {
    --black: #1a1a1a;
    --white: #ffffff;
    --primary: #a34e8d;
    --secondary: #f5e75e;
    --success: #28a745;
}

body {
    
    background-image: url('../img/accueil/manga-nourriture.png');
    background-size: cover;
    background-attachment: fixed;
}

body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.90);
    background-image: radial-gradient(#bbb 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
}

.main-container {
    padding-top: 120px;
    padding-bottom: 80px;
    display: flex; justify-content: center;
}

.vote-card {
    background: var(--white);
    width: 90%; max-width: 900px;
    padding: 40px;
    border: 4px solid var(--black);
    box-shadow: 15px 15px 0px var(--black); 
    position: relative;
}

.main-title { 
    text-align: center; color: var(--black); 
    font-size: 36px; font-weight: 900; text-transform: uppercase;
    transform: rotate(-1deg);
    text-shadow: 4px 4px 0px var(--secondary);
    margin-bottom: 10px;
}
.subtitle {
    text-align: center; font-weight: 600; color: #555; margin-bottom: 40px;
    text-transform: uppercase; letter-spacing: 1px;
}

.alert {
    padding: 15px; border: 3px solid var(--black); margin-bottom: 30px; 
    font-weight: 700; text-align: center; box-shadow: 5px 5px 0px rgba(0,0,0,0.1);
}
.alert.success { background: #d4edda; color: #155724; }
.alert.error { background: #f8d7da; color: #721c24; }

.countdown-box {
    background: var(--black);
    color: var(--secondary);
    padding: 10px 20px;
    display: inline-block;
    font-weight: 800;
    font-size: 20px;
    border: 3px solid var(--black);
    transform: skew(-10deg);
    margin-bottom: 30px;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.2);
}
.countdown-box span { display: inline-block; transform: skew(10deg); }

.recipe-section {
    display: flex; gap: 40px; align-items: flex-start;
    background: #fff; border: 3px solid #eee; padding: 20px;
}

.recipe-img {
    width: 40%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 3px solid var(--black);
    box-shadow: 8px 8px 0px var(--primary);
}

.recipe-infos { width: 60%; text-align: left; }

.recipe-title {
    font-size: 24px; font-weight: 800; color: var(--black); margin-bottom: 5px;
    text-transform: uppercase;
}
.recipe-anime {
    display: inline-block; background: var(--secondary); color: var(--black);
    font-weight: 700; font-size: 12px; padding: 2px 8px; border: 2px solid var(--black);
    margin-bottom: 20px;
}

.meta-list { list-style: none; margin-bottom: 30px; }
.meta-list li { 
    font-size: 16px; margin-bottom: 8px; font-weight: 500; 
    display: flex; align-items: center; gap: 10px;
}
.icon-box {
    width: 30px; height: 30px; background: var(--black); color: white;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    font-size: 14px;
}

.btn-vote {
    background: var(--primary); color: white; border: 3px solid var(--black);
    padding: 15px 40px; font-size: 20px; font-weight: 900; text-transform: uppercase;
    cursor: pointer; box-shadow: 8px 8px 0px var(--black); transition: 0.2s;
    width: 100%;
}
.btn-vote:hover {
    transform: translate(-3px, -3px);
    box-shadow: 12px 12px 0px var(--black);
    background: #a34e8d;
}
.btn-vote:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0px var(--black);
}

.btn-disabled {
    background: #ddd; color: #777; border-color: #999; 
    box-shadow: none; cursor: not-allowed;
}

.login-btn {
    background: var(--black); color: white; padding: 10px 20px; 
    font-weight: 700; text-decoration: none; border: 2px solid var(--black);
    transition: 0.3s; display: inline-block;
}
.login-btn:hover { background: white; color: var(--black); }

.empty-state {
    padding: 50px; text-align: center; border: 3px dashed var(--black); background: #f9f9f9;
}

@media (max-width: 800px) {
    .recipe-section { flex-direction: column; }
    .recipe-img { width: 100%; }
    .recipe-infos { width: 100%; }
}