/* Container principal avec animation */
.addresses-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    animation: fadeScale 0.6s ease-out;
}

@keyframes fadeScale {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* En-tête */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #fff;
    padding: 2rem;
    background: var(--primary-gradient);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.page-title::before,
.page-title::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite;
}

.page-title::before {
    top: -100px;
    right: -50px;
    animation-delay: -5s;
}

.page-title::after {
    bottom: -100px;
    left: -50px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(5deg); }
    50% { transform: translate(-5px, 5px) rotate(-5deg); }
    75% { transform: translate(8px, 8px) rotate(3deg); }
}

/* Description */
.addresses-description {
    text-align: center;
    margin: 2rem auto;
    font-size: 1.1rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
}

.theme-light .addresses-description {
    color: #555555;
}

/* Grille des adresses */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Carte d'adresse */
.address-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-light .address-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* En-tête de la carte */
.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.address-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.theme-light .address-header h2 {
    color: #333333;
}

/* Bouton d'édition */
.edit-button {
    background: var(--primary-gradient);
    color: #ffffff !important;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.edit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hover-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 8px;
}

.edit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    color: #ffffff !important;
}

.edit-button:hover::before {
    opacity: 1;
}

/* Contenu de l'adresse */
.address-content {
    position: relative;
}

.address-content address {
    font-style: normal;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.theme-light .address-content address {
    color: #555555;
}

.no-address {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin: 0;
}

.theme-light .no-address {
    color: #777777;
}

/* Responsive */
@media (max-width: 768px) {
    .addresses-container {
        padding: 1rem;
        margin: 1rem auto;
    }

    .page-title {
        font-size: 2rem;
        padding: 1.5rem;
    }

    .addresses-description {
        font-size: 1rem;
        margin: 1.5rem auto;
    }

    .addresses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .address-card {
        padding: 1.5rem;
    }

    .address-header h2 {
        font-size: 1.2rem;
    }
}
