/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

/* Contenu principal */
.main-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

/* Section contenu de la pétition */
.petition-content {
    padding: 40px;
    border-bottom: 1px solid #eee;
}

.petition-image {
    text-align: center;
    margin-bottom: 30px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.petition-text h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.petition-text p {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Section signature */
.signature-section {
    padding: 40px;
    background: #f7fafc;
}

.signature-section h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.petition-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #a0aec0;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Liste des signatures */
.signatures-list {
    padding: 40px;
}

.signatures-list h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.signatures-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.signature-item {
    background: #f7fafc;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signature-info {
    flex: 1;
}

.signature-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.signature-details {
    color: #718096;
    font-size: 0.9rem;
}

.signature-date {
    color: #a0aec0;
    font-size: 0.8rem;
}

.signature-count {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s ease;
}

.close:hover {
    color: #2d3748;
}

.modal-content h2 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-content p {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.modal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    color: rgba(255,255,255,0.8);
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .petition-content,
    .signature-section,
    .signatures-list {
        padding: 20px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
    }
    
    .signature-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .signature-date {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .petition-text h2,
    .signature-section h2 {
        font-size: 1.5rem;
    }
}