
.quick-access-section {
    margin-top: 20px;
    padding: 1.5rem 0;
    max-width: 100%;
}
/* -------------------------- Il faut faire des slots pour chaque "contact" qui seront sur une grille qui bougera, et mettre dedans les fameux href */

.quick-access-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.quick-access-title {
    display: inline-flex; /* Makes container fit text width */
    justify-content: center; /* Optional: Centers text (and line) */
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.quick-access-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: #333; /* Change color to match your theme */
}






.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: min(100%, 750px);
}

.contact-card {
    display: flex;
    flex: 1 0 15%;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1rem;
    background-color: rgba(171,0,0,1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 120px;
    max-height: 130px;
    width: calc(20% - 1.5rem); /* Fixed width for desktop */
    max-width: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



/* Hover effects and icon styles remain the same as before */
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color:rgb(212, 0, 0);
}


.contact-text {
    text-align: left;
    display: block;
    white-space: nowrap;
}

.contact-text h2 {
    margin-bottom: -15px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.5rem; /* Fixed height for icon container */
    margin-bottom: 0.5rem;
}

.contact-icon img {
    width: 3rem;  /* Default size */
    height: 3rem;
    object-fit: contain; /* Ensures aspect ratio is maintained */
}

.contact-text {
    font-weight: 500;
    text-align: center;
    color: white;
    font-weight: bold;
}








@media (max-width: 900px){

    /* Tablet: 4 cards per row */
    .contact-card {
        width: calc(25% - 1.5rem); /* 4 cards with gap */
        max-width: 180px;
    }
}


/* Responsive adjustments */
@media (max-width: 750px) {
    /* Desktop: 3 cards per row */
    .contact-card {
        width: calc(33% - 1.5rem); /* 3 cards with gap */
        max-width: 180px; /* Optional max-width */
    }
}

/* Responsive adjustments */
@media (max-width: 550px) {
    /* Desktop: 2 cards per row */
    .contact-card {
        width: calc(50% - 1.5rem); /* 2 cards with gap */
        max-width: 180px; /* Optional max-width */
    }
}


