/* ======= MES PETITS + SECTION ======= */
.avantages {
    position: relative;
    padding: 4rem 0; /* Réduit de var(--spacing-xxl) à 4rem */
    overflow: hidden;
    background-color: #f5f0e6;
}

/* Calque semi-transparent supprimé */

.avantages .container {
    position: relative;
    z-index: 1;
}

.avantages .section-subtitle {
    color: #e4bcf5;
}

.avantages .section-title {
    color: #333;
    margin-bottom: var(--spacing-md);
}

/* Rectangle Grid Structure */
.avantages-hexagon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 3rem;
    width: 100%;
    max-width: 800px;
}

.hexagon-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 0 auto 1.5rem;
    width: 100%;
    text-align: center;
}

/* Style pour la phrase entre les boutons et le conteneur de détails */
.avantages-tagline {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 400;
    color: #555;
    margin: 0.5rem auto 1.5rem;
    font-style: italic;
    max-width: none;
    position: relative;
    padding: 0;
}

/* Suppression du séparateur sous la tagline */

.hexagon-item {
    position: relative;
    width: 240px; /* Augmenté de 220px à 240px */
    height: 180px; /* Augmenté de 160px à 180px */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: perspective(800px) rotateY(0deg);
}

.hexagon-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background: rgba(245, 240, 230, 0.8);
    border: 2px solid rgba(228, 188, 245, 0.3);
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Active and Hover States */
.hexagon-item:hover .hexagon-content {
    background: linear-gradient(135deg, rgba(228, 188, 245, 0.2) 0%, rgba(229, 249, 211, 0.2) 100%);
    border-color: rgba(228, 188, 245, 0.8);
    box-shadow: 0 15px 30px rgba(228, 188, 245, 0.3);
    transform: translateY(-10px) scale(1.05);
    border-radius: 15px;
}

.hexagon-item.active .hexagon-content {
    background: linear-gradient(135deg, rgba(228, 188, 245, 0.4) 0%, rgba(229, 249, 211, 0.4) 100%);
    border-color: #e4bcf5;
    box-shadow: 0 20px 40px rgba(228, 188, 245, 0.4);
    border-radius: 15px;
}

/* Icon Styles */
.avantage-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(228, 188, 245, 0.2), rgba(229, 249, 211, 0.2));
    border-radius: 50%;
    margin-bottom: 0.5rem;
    transition: all 0.5s ease;
    z-index: 2;
}

.hexagon-item:hover .avantage-icon,
.hexagon-item.active .avantage-icon {
    background: linear-gradient(135deg, #e4bcf5, #e5f9d3);
    box-shadow: 0 8px 16px rgba(228, 188, 245, 0.4);
    animation: pulse 2s infinite alternate;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(228, 188, 245, 0.6);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(228, 188, 245, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(228, 188, 245, 0);
        transform: scale(1);
    }
}

.avantage-icon i {
    position: relative;
    width: 30px;
    height: 30px;
    display: block;
}

/* Icon designs */
.avantage-icon-network::before,
.avantage-icon-network::after {
    content: '';
    position: absolute;
    background-color: #333;
}

.avantage-icon-network::before {
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    border-radius: 50%;
    top: 0;
    left: 7px;
}

.avantage-icon-network::after {
    width: 20px;
    height: 2px;
    top: 22px;
    left: 5px;
    background: linear-gradient(90deg, #333 33%, transparent 33%, transparent 66%, #333 66%);
}

.avantage-icon-agility::before,
.avantage-icon-agility::after {
    content: '';
    position: absolute;
    background-color: #333;
}

.avantage-icon-agility::before {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 5px;
    transform: rotate(45deg);
    top: 2px;
    left: 5px;
}

.avantage-icon-agility::after {
    width: 16px;
    height: 16px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    top: 5px;
    left: 7px;
}

.avantage-icon-vision::before,
.avantage-icon-vision::after {
    content: '';
    position: absolute;
    background-color: #333;
}

.avantage-icon-vision::before {
    width: 22px;
    height: 22px;
    border: 2px solid #333;
    border-radius: 50%;
    top: 3px;
    left: 4px;
}

.avantage-icon-vision::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #333;
    top: 10px;
    left: 11px;
}

.avantage-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #333, #777);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    position: relative;
    letter-spacing: 1px;
}

.hexagon-content::after {
    content: '';
    position: absolute;
    bottom: 15px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(228, 188, 245, 0.6), transparent);
    transition: all 0.4s ease;
}

.hexagon-item:hover .hexagon-content::after,
.hexagon-item.active .hexagon-content::after {
    width: 100px;
    background: linear-gradient(90deg, transparent, #e4bcf5, transparent);
}

/* Content Area */
.avantages-detail {
    width: 100%;
    max-width: 800px;
    min-height: 280px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(228, 188, 245, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.avantage-detail-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 2.5rem; /* Réduit de 3rem à 2rem en haut/bas et 2.5rem sur les côtés */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
    pointer-events: none;
    box-sizing: border-box; /* Garantit que le padding est inclus dans la largeur/hauteur */
}

.avantage-detail-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.avantage-title {
    font-size: 1.4rem; /* Réduit de 1.7rem à 1.4rem */
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem; /* Réduit de 1.2rem à 1rem */
    text-align: center;
}

.avantage-description {
    font-size: 0.95rem; /* Réduit de 1.1rem à 0.95rem */
    line-height: 1.6; /* Réduit de 1.7 à 1.6 */
    color: #555;
    text-align: center;
    max-width: 90%; /* Augmenté de 85% à 90% pour permettre au texte de s'adapter */
    margin: 0 auto;
    letter-spacing: 0.01em;
}

/* Agency CTA */
.avantages-hexagon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 3rem;
    width: 100%;
    max-width: 800px;
}

.agency-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.agency-cta span {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
}

.btn-outline {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: #333;
    font-weight: 600;
    border: 2px solid rgba(228, 188, 245, 0.6);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(228, 188, 245, 0.3) 0%, rgba(229, 249, 211, 0.3) 100%);
    border-color: #e4bcf5;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(228, 188, 245, 0.3);
    color: #333;
}

.arrow-right {
    width: 20px;
    height: 16px;
    margin-left: 8px;
    display: inline-block;
    position: relative;
}

.arrow-right::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background-color: #333;
    top: 7px;
    right: 0;
    transition: all 0.3s ease;
}

.arrow-right::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    top: 4px;
    right: 0;
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.btn-outline:hover .arrow-right::before {
    width: 15px;
    right: -3px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hexagon-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hexagon-item {
        width: 160px;
        height: 160px;
    }
    
    .avantage-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .avantages-hexagon-container {
        gap: 2rem;
    }
    
    .hexagon-grid {
        gap: 1rem;
    }
    
    .hexagon-item {
        width: 130px;
        height: 130px;
    }
    
    .avantage-icon {
        width: 50px;
        height: 50px;
    }
    
    .avantage-number {
        font-size: 1.4rem;
    }
    
    .avantage-title {
        font-size: 1.4rem;
    }
    
    .avantage-description {
        font-size: 1rem;
    }
}
