* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-color: #05a081;
    --text-color: #1a1a1a;
    --background-light: #ffffff;
    --background-dark: #000000;
    --overlay-bg: rgba(0, 0, 0, 0.85);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--background-dark);
    color: var(--background-light);
}

.logo {
    color: var(--background-light);
    text-decoration: none;
    font-size: 2.0rem;
    font-weight: bold;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('/api/placeholder/1400/500') center/cover;
    color: var(--background-light);
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 1rem;
    padding-right: 3rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
}

.search-button:hover {
    color: var(--primary-color);
}

.search-button svg {
    width: 20px;
    height: 20px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.photo-card {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        transparent 50%,
        rgba(0,0,0,0.3) 100%
    );
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.username {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.media-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
}

.media-indicator {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.media-indicator .icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.photo-card:hover {
    transform: scale(1.02);
}

.video-card .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card .play-button .icon {
    width: 24px;
    height: 24px;
    fill: white;
}

.video-card:hover .play-button {
    background: rgba(0,0,0,0.7);
}

.media-indicator-group {
    display: flex;
    gap: 0.5rem;
}

.media-indicator-group .media-indicator {
    margin: 0;
}

.button {
    background: var(--primary-color);
    color: var(--background-light);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    opacity: 0.9;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-bottom: 1px solid #eee;
}

.nav-tabs a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-tabs a:hover {
    background-color: #f5f5f5;
}

.nav-tabs a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.modal-overlay, .content-choice-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.content-choice-overlay {
    background: var(--overlay-bg);
    display: flex;
}

.content-choice-container {
    background: var(--background-light);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.content-choice-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-choice-container p {
    margin-bottom: 2rem;
    line-height: 1.5;
}

.content-choice-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.content-choice-buttons .button {
    padding: 1rem 2rem;
    flex: 1;
    display: block;
    max-width: 180px;
}

.content-choice-buttons .button.secondary {
    background-color: #666;
}

.content-choice-buttons .button.secondary:hover {
    background-color: #555;
}

.modal {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-button {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.submit-button:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
footer {
    margin-top: auto;
    background: var(--background-dark);
    color: var(--background-light);
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: var(--background-light);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
.language-selector {
    background-color: transparent;
    color: var(--background-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-left: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 28px;
}

.language-selector:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(5, 160, 129, 0.2);
}

.language-selector:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(5, 160, 129, 0.3);
}

/* Amélioration pour les mobiles */
@media (max-width: 768px) {
    .language-selector {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }
}