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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* Bannière avec dégradé */
.banner {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}

/* Logo qui chevauche */
.logo-container {
    position: relative;
    margin-top: -80px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.logo {
    max-width: 150px;
    height: auto;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 1.8em;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 700;
}

header p {
    font-size: 0.95em;
    color: #666666;
}

.form-container {
    background: #ffffff;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C71021;
    box-shadow: 0 0 0 3px rgba(199, 16, 33, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    width: 100%;
    cursor: pointer;
}

.photo-preview {
    margin-top: 15px;
    display: none;
    gap: 10px;
    flex-wrap: wrap;
}

.photo-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #C71021;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #a00d1a;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Messages Section */
.messages-section {
    margin-top: 50px;
}

.messages-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

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

.message-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.message-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.message-header strong {
    color: #C71021;
    font-size: 1.1em;
}

.message-date {
    color: #999;
    font-size: 0.85em;
}

.message-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-photos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.message-photos img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.message-photos img:hover {
    transform: scale(1.05);
}

/* Modal Styles */
.success-modal {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.success-modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1000000;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.success-modal-close:hover {
    color: #333;
}

.success-modal-content h2 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.success-modal-content p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: opacity 0.2s;
}

.social-btn:hover {
    opacity: 0.9;
}

.social-btn.facebook {
    background: #1877F2;
}

.social-btn.instagram {
    background: #E4405F;
}

.social-btn.facebook {
    background: #1877F2;
}

.social-btn.instagram {
    background: #E4405F;
}

.social-btn.tiktok {
    background: #000000;
}

.social-btn.linkedin {
    background: #0077B5;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .modal-content {
        width: 95%;
        padding: 30px;
    }
}
