:root {
    --primary-color: #000000;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-bg: #f9f9f9;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
}

/* Header */
header {
    background: var(--primary-color);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* Video Section */
.video-section {
    padding: 4rem 5%;
    background: var(--light-bg);
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: 2rem auto;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

video {
    width: 100%;
    height: auto;
}

.video-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

#replayButton {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#replayButton:hover {
    background: white;
    transform: scale(1.05);
}

/* Media Gallery */
.media-gallery {
    padding: 4rem 5%;
    background: var(--light-bg);
    text-align: center;
}

.media-buttons {
    margin-bottom: 2rem;
}

.media-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 0.5rem;
}

.media-btn.active {
    background: var(--accent-color);
}

.media-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.photo-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.video-item {
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-item h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.video-item .description {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    color: #666;
}

.video-item .actions {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: var(--light-bg);
}

.video-item .actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: color 0.3s;
}

.video-item .actions button:hover {
    color: #2980b9;
}

/* Blog Section */
#blog {
    padding: 4rem 5%;
    background: var(--light-bg);
}

.blog-post {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.blog-post:hover {
    transform: translateY(-3px);
}

.blog-post h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.blog-post a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Comment Section */
.comment-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.comment-form button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-form button:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 5%;
    margin-top: 4rem;
}

/* Bouton "Voir plus" */
.see-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    position: sticky;
    bottom: 20px;
    z-index: 1000;
}

.see-more-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

.see-more-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Modal pour l'aperçu des photos */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.modal-actions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.modal-actions button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-actions button:hover {
    background: #2980b9;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .see-more-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
}
.view-messages-btn {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    text-align: center;
}

.view-messages-btn:hover {
    background-color: #0056b3;
}
