* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0c1445 0%, #1a237e 50%, #000051 100%);
    color: white;
    min-height: 100vh;
    overflow: hidden;
}

/* Étoiles d'arrière-plan */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    margin-top: 20px;
}

.logo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #64b5f6, #42a5f5, #2196f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(33, 150, 243, 0.5);
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.search-container {
    max-width: 400px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}

/* Barre d'authentification */
.auth-bar {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.login-btn {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.login-btn:hover {
    background: rgba(33, 150, 243, 0.3);
    transform: translateY(-1px);
}

.register-btn {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.register-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #2196f3, #21cbf3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-name {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.profile-btn {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.profile-btn:hover {
    background: rgba(156, 39, 176, 0.3);
}

.logout-btn {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.logout-btn:hover {
    background: rgba(244, 67, 54, 0.3);
}

/* Styles pour les modals d'authentification */
.auth-form {
    text-align: center;
}

.auth-form h2 {
    margin-bottom: 25px;
    color: white;
    font-size: 1.5rem;
}

.auth-form .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.auth-form small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

/* Preview de la photo de profil */
#profilePhotoPreview {
    text-align: center;
}

#profilePhotoPreview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Modal de profil */
.profile-modal {
    max-height: 80vh;
    overflow-y: auto;
}

.profile-header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: linear-gradient(45deg, #2196f3, #21cbf3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.profile-email {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.profile-section {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.pigeon-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.pigeon-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.pigeon-card:hover {
    transform: translateY(-2px);
}

.pigeon-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.pigeon-card h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.pigeon-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    line-height: 1.3;
}

.add-pigeon-card {
    background: rgba(76, 175, 80, 0.2);
    border: 2px dashed rgba(76, 175, 80, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-pigeon-card:hover {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.7);
}

.add-pigeon-card span {
    font-size: 2rem;
    color: #4caf50;
}

/* Position info dans le profil */
.position-info {
    background: rgba(33, 150, 243, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.position-info h4 {
    color: #2196f3;
    margin-bottom: 10px;
}

.position-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.edit-position-btn {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.edit-position-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.animal-count {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.count-number {
    font-size: 2rem;
    font-weight: bold;
    color: #4caf50;
}

.conservation-status h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.status-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.status-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.status-item.active {
    background: rgba(33, 150, 243, 0.3);
    border-color: #2196f3;
}

.status-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-indicator.beginner { background: #4caf50; }
.status-indicator.intermediate { background: #2196f3; }
.status-indicator.advanced { background: #ff9800; }
.status-indicator.expert { background: #9c27b0; }
.status-indicator.champion { background: #f44336; }

.status-label {
    flex: 1;
    font-size: 0.9rem;
}

.status-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.add-animal-btn {
    width: 100%;
    padding: 15px;
    margin-top: 30px;
    background: linear-gradient(45deg, #2196f3, #21cbf3);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.add-animal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Mapbox customizations */
.mapboxgl-popup-content {
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mapboxgl-popup-tip {
    border-top-color: rgba(0, 0, 0, 0.9) !important;
}

.mapboxgl-popup-close-button {
    color: white !important;
    font-size: 20px !important;
}

.mapboxgl-popup-close-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

.modal-content {
    pointer-events: all;
    background: linear-gradient(135deg, #1a237e 0%, #0c1445 100%);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-height: 80vh;
    max-width: 500px;
    width: 90%;
    overflow-y: auto;
    transition: all 0.3s ease-out;
}

.modal-content.show {
    transform: translateY(0);
}

.close {
    color: rgba(255, 255, 255, 0.7);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: white;
}

.modal h2 {
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2196f3;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#selectedCoords {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 5px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.form-buttons button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-buttons button[type="submit"] {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
}

.form-buttons button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.form-buttons button[type="button"] {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-buttons button[type="button"]:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Boutons flottants mobiles */
.mobile-floating-buttons {
    display: none;
    position: absolute;
    bottom: 20px;
    right: 20px;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.floating-btn:active {
    transform: scale(0.95);
}

.filter-btn {
    background: linear-gradient(45deg, #2196f3, #21cbf3);
    color: white;
}

.add-btn {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
}

.filter-icon, .add-icon {
    font-size: 20px;
    line-height: 1;
}

/* Panel de filtres mobile */
.mobile-filter-panel {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a237e 0%, #0c1445 100%);
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    max-height: 50vh;
    overflow-y: auto;
}

.mobile-filter-panel.show {
    transform: translateY(0);
}

.mobile-filter-panel h3 {
    margin-bottom: 15px;
    color: white;
    text-align: center;
    font-size: 1.2rem;
}

.mobile-filter-panel .status-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-filter-panel .status-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-filter-panel .status-item.active {
    background: rgba(33, 150, 243, 0.3);
    border-color: #2196f3;
}

.mobile-filter-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-filter-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    /* Afficher les boutons flottants sur mobile */
    .mobile-floating-buttons {
        display: flex;
    }
    
    /* Cacher la sidebar sur mobile */
    .sidebar {
        display: none;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    /* Header réduit sur mobile */
    .header {
        transition: transform 0.3s ease-out;
        padding: 10px;
        position: relative;
        z-index: 10;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    /* Réduire l'espace du header sur mobile */
    .search-container {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .search-input {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Carte plein écran sur mobile */
    .map-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }
    
    #map {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    /* Assurer que la carte reste visible et cliquable même avec les modales */
    .modal.show ~ .main-content .map-container {
        z-index: 1;
    }
    
    .modal.show ~ .main-content #map {
        pointer-events: auto;
    }
    
    /* Modal mobile optimisé - Bottom Sheet */
    .modal-content {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        max-height: 70vh;
        padding: 20px;
        border-radius: 15px 15px 0 0;
        width: 100%;
        max-width: none;
        z-index: 1001;
    }
    
    /* Assurer que la modal est au-dessus de la carte */
    .modal {
        z-index: 1000;
    }
    
    .modal.show {
        z-index: 1001;
    }
    
    .modal h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    .form-buttons {
        gap: 10px;
        margin-top: 20px;
    }
    
    .form-buttons button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    #selectedCoords {
        font-size: 0.85rem;
        padding: 8px;
        background: rgba(76, 175, 80, 0.2);
        border-radius: 6px;
        border: 1px solid rgba(76, 175, 80, 0.3);
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .header {
        padding: 15px 10px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .sidebar {
        height: 100px;
        padding: 8px;
    }
    
    .modal-content {
        padding: 15px;
        max-height: 45vh;
    }
    
    .form-group input,
    .form-group select {
        padding: 14px;
    }
}

/* Animation pour les marqueurs */
@keyframes markerPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animal-marker {
    animation: markerPulse 2s ease-in-out infinite;
}

/* Styles pour le profil détaillé des éleveurs */
.breeder-profile-modal {
    max-width: 600px;
    max-height: 90vh;
}

.breeder-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breeder-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #2196f3, #21cbf3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
    flex-shrink: 0;
}

.breeder-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breeder-info {
    flex: 1;
}

.breeder-info h2 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.breeder-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.breeder-details {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.detail-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.detail-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.breeder-photos-section {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breeder-photos-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.photo-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-card:hover {
    transform: scale(1.05);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 8px;
    color: white;
}

.photo-overlay h4 {
    font-size: 12px;
    margin-bottom: 2px;
    font-weight: bold;
}

.photo-overlay p {
    font-size: 10px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.2;
}

.profile-actions {
    padding: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.center-btn {
    background: linear-gradient(45deg, #2196f3, #21cbf3);
    color: white;
}

.center-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.edit-btn {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

/* Styles pour les galeries de photos */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.photo-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-2px);
}

.photo-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.photo-info h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.photo-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.delete-photo-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.3s ease;
}

.delete-photo-btn:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

.profile-btn {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Styles pour les modals de détail photo */
.photo-detail-modal {
    max-width: 700px;
    text-align: center;
}

.photo-detail img {
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Styles pour la section "aucune photo" */
.no-photos {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

/* Bouton de fermeture dans les actions */
.close-btn {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.close-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

/* Responsive pour les profils détaillés */
@media (max-width: 768px) {
    .breeder-profile-modal {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .breeder-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .breeder-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .breeder-info h2 {
        font-size: 1.2rem;
    }
    
    .breeder-description {
        font-size: 13px;
    }
    
    .breeder-details {
        padding: 15px;
    }
    
    .detail-item {
        padding: 6px;
        margin-bottom: 8px;
    }
    
    .detail-text {
        font-size: 13px;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .photo-overlay h4 {
        font-size: 11px;
    }
    
    .photo-overlay p {
        font-size: 9px;
    }
    
    .profile-actions {
        padding: 15px;
        gap: 8px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Animations pour les notifications */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* ===== Language selector ===== */
.header { position: relative; }
.lang-selector {
    position: absolute;
    top: 12px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 20;
}
.lang-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
}
.lang-btn:hover {
    transform: translateY(-1px) scale(1.02);
    background: rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
    .lang-selector {
        top: 8px;
        right: 10px;
        gap: 6px;
    }
    .lang-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}
