/* Partnership Section Styles */
.partnerships-section {
    padding: 1rem 2rem 2rem 2rem; /* réduit le padding top et bottom */
    background-color: var(--section-bg);
    position: relative;
}

.partnerships-title-container {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.partnerships-title {
    font-size: 2.8rem;
    color: #000; /* Couleur de base : noir */
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 800;
    text-transform: uppercase;

    /* Ajout du contour */
    -webkit-text-stroke: 1.5px #175e93;
    text-shadow: none; /* Optionnel : retire l'ombre précédente */
}

.partnerships-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.partnerships-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    animation: slideWidth 2s ease-in-out infinite;
}

@keyframes slideWidth {
    0% {
        width: 40px;
        opacity: 1;
    }
    50% {
        width: 80px;
        opacity: 0.5;
    }
    100% {
        width: 40px;
        opacity: 1;
    }
}

.partnerships-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    justify-content: center;
}

.partner-card {
    position: relative;
    border-radius: 8px;
    overflow: visible;
    aspect-ratio: 1;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.partner-image {
    width: 100%;
    height: 100%;
}

.partner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.partner-overlay {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 250px;
    background: rgba(23, 94, 147, 0.95);
    padding: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 8px;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.partner-overlay::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(23, 94, 147, 0.95);
}

.partner-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.partner-overlay p {
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    z-index: 101;
    position: relative;
}

.partner-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.partner-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.partner-image {
    z-index: 2;
    position: relative;
}

.partner-card .partner-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 3;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(23, 94, 147, 0.3);
}

.partner-card:hover .partner-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.partner-card:hover .partner-overlay p {
    opacity: 1;
}

.partner-card:hover .partner-image img {
    transform: scale(1.1);
}

.partner-card:hover .partner-overlay .btn-more {
    opacity: 1;
    transform: translateY(0);
}

/* ==== Avis Clients ==== */
.avis-slider-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    overflow: hidden;
    justify-content: center;
    padding: 10px;
}

.avis-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #fff;
    border: 2px solid #3399ff;
    border-radius: 12px;
    padding: 1rem;
    max-width: 45%;
    min-width: 45%;
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.1);
    gap: 15px;
}

.left-container img,
.avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3399ff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.right-container {
    flex: 1;
}

.avis-username {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.avis-table {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.avis-stars span {
    color: #FFD700;
    font-size: 1.1rem;
}

.empty-star {
    color: #ccc;
}

.comment-text {
    margin-top: 5px;
}

.category-field {
    display: flex;
    align-items: baseline; /* aligne emoji + texte sur la même ligne de base */
    gap: 5px;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.category-field .label {
    font-weight: bold;
    white-space: nowrap;
    color: #000 !important;
    display: flex;          
    align-items: center;    
    gap: 4px;               
    line-height: 1; /* évite que label soit surélevé */
}

.category-field .value {
    font-weight: normal;
    line-height: 1.2;
}

/* Titre principal de la section Avis Clients, même style que partenaires */
.avis-title {
    font-size: 2.8rem;
    color: #000;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 800;
    text-transform: uppercase;
    -webkit-text-stroke: 1.5px #175e93;
    text-shadow: none;
}

.avis-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.avis-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    animation: slideWidth 2s ease-in-out infinite;
}

.avis-section {
    margin-bottom: 1rem; /* ou padding-bottom: 1rem; selon ta structure */
    padding-bottom: 1rem; /* ajuste ou supprime si inutile */
}