/* Styles pour la page d'accueil moderne et épurée */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 80vh;
}

/* Section d'accueil avec titre et texte */
.welcome-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.welcome-section h1 {
    font-size: 3rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.family-highlight {
    color: #4285F4;
    font-weight: 700;
    position: relative;
}

.welcome-section .lead {
    font-size: 1.3rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Disposition horizontale des espaces */
.spaces-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 1rem;
    flex-wrap: nowrap;
}

/* Cartes des espaces */
.space-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 150px;
    flex: 1;
    min-width: 0; /* Permet aux flex items de rétrécir en dessous de leur taille de contenu */
    border-top: 3px solid transparent;
}

.space-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.space-card.active {
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.15);
}

/* Légère touche de couleur pour chaque espace */
.space-card.thierry {
    border-top-color: #4285F4; /* Bleu */
}

.space-card.julie {
    border-top-color: #EA4335; /* Rouge */
}

.space-card.malo {
    border-top-color: #FBBC05; /* Jaune */
}

.space-card.common {
    border-top-color: #34A853; /* Vert */
}

.card-content {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
    text-align: center;
}



/* Informations de l'espace */
.card-content h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.card-content p {
    color: #777;
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0;
}

/* Overlay pour l'effet au survol */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3; /* S'assurer qu'il est au-dessus des autres éléments */
}

.space-card:hover .card-overlay {
    opacity: 1;
}

.space-card:hover .access-btn {
    transform: translateY(0);
    opacity: 1;
}

.access-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4285F4;
    color: white;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
    box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
}

.profile-container:hover .access-btn {
    transform: translateY(0);
    opacity: 1;
}

/* Styles spécifiques pour l'espace commun */
.space-card.common {
    background-color: #FAFAFA;
}

.space-card.common .profile-info h2 {
    font-size: 1.4rem;
}

/* Design responsive */
@media (max-width: 1024px) {
    .spaces-row {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .space-card {
        flex: 0 0 48%; /* Deux cartes par ligne avec un peu d'espace entre */
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .welcome-section h1 {
        font-size: 2.2rem;
    }
    
    .welcome-section .lead {
        font-size: 1.1rem;
    }
    
    .spaces-row {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .space-card {
        flex: 0 0 48%;
        height: 140px;
    }
    
    .card-content h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .spaces-row {
        flex-direction: column;
    }
    
    .space-card {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .welcome-section .lead {
        font-size: 1.1rem;
    }
}
