/*////////////////////////////////////////////////////////////////////
// Copyright 2025 (c) Yanko Lemoine
//
// This program and the accompanying materials are made
// available under the terms of the Eclipse Public License 2.0
// which is available at https://www.eclipse.org/legal/epl-2.0/
//
// SPDX-License-Identifier: EPL-2.0
////////////////////////////////////////////////////////////////////*/

.contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact {
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 400px;
    padding: 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.4);   
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.contact:hover {
    cursor:default;
}

.contact:hover {
    transform: translateY(-5%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border-color: #FFD700;
}

.contact .image {
    margin-right: 15px;
    flex-shrink: 0;           
}

.contact .image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ccc;
}

.contact .text {
    display: flex;
    flex-direction: column;
}

.contact .name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact .description {
    font-size: 0.95rem;
    color: #444;
}

.contact .image:not(:has(img)),
.contact:not(:has(.image))::before {
    width: 100px;
    height: 100px;
    background: #d9d9d9;
    border-radius: 8px;
    border: 1px solid #ccc;
    flex-shrink: 0;
    margin-right: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* Icône utilisateur en SVG encodé (tête + épaules) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    content: "";
}

@media screen and (max-width: 680px) {
    .contact {
        margin: auto;
    }
}

@media screen and (min-width: 1350px) {

    .contact {
        width: 450px;
        padding: 15px;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.4);   
        border: 2px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }
    
    .contact .name {
        font-size: 1.8rem;
    }

    .contact .description {
        font-size: 1.1rem;
        color: #444;
    }

    .contact .image img {
        width: 120px;
        height: 120px;
        border-radius: 10px;
    }

    .contact .number {
        font-size: 1.25em;
    }

    .contact .image:not(:has(img)),
    .contact:not(:has(.image))::before {
        width: 120px;
        height: 120px;
    }
}