* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, black 0%, orange 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

h1 {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-top: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    text-align: center;
    color: #f0f0f0;
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

body>div {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body>div:first-of-type p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    text-align: center;
}

/* Styles du formulaire */
form {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    color: #667eea;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1rem;
}

input[type="text"],
textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: black;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

input[type="submit"] {
    margin-top: 20px;
    padding: 14px 30px;
    background: linear-gradient(135deg, orange 0%, black 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

input[type="submit"]:active {
    transform: translateY(0);
}

/* Section des idées */
body>div:last-of-type>p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}

#ideasList {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.projet-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid orange;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projet-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.projet-card h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.projet-card p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.projet-card small {
    color: #888;
    font-size: 0.9rem;
}

.projet-card hr {
    margin-top: 15px;
    border: none;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

#ideasList:empty::before {
    content: "Aucun projet pour le moment. Sois le premier à partager une idée ! 🚀";
    display: block;
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px;
}

/* Section commentaires */
.comments-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(102, 126, 234, 0.2);
}

.comments-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.comments-list {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.comment {
    background: #fff;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 3px solid orange;
}

.comment strong {
    color: orange;
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.comment p {
    margin: 5px 0;
    color: #555;
    font-size: 0.95rem;
}

.comment small {
    color: #999;
    font-size: 0.85rem;
}

.no-comments {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* Formulaire de commentaire */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 8px;
}

.comment-author {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.comment-text {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.3s ease;
}

.comment-author:focus,
.comment-text:focus {
    outline: none;
    border-color: orange;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form button {
    padding: 10px 20px;
    background: linear-gradient(135deg, black 0%, orange 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.comment-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.comment-form button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    body>div {
        padding: 20px;
    }

    .projet-card h3 {
        font-size: 1.3rem;
    }
}