/* ===== ANIMATIONS AU SCROLL ===== */

/* Animation du header - zoom + fade */
@keyframes headerZoom {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation des cartes - vient de la gauche */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation du bouton - fade in */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STYLES DE BASE ===== */

.whychoose-container {
    background-color: #FFF6ED;
    width: 100%;
    padding: 80px 40px;
}

/* Header Section - Ã‰tat initial invisible */
.whychoose-header {
    text-align: center;
    background-color: #FFF6ED;
    max-width: 900px;
    margin: 0 auto 60px;
    opacity: 0;
    transform: scale(0.9);
}

.whychoose-title {
    font-size: 40px;
    background-color: #FFF6ED;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    margin: 0 0 20px 0;
}

.whychoose-subtitle {
    background-color: #FFF6ED;
    font-size: 16px;
    font-weight: 500;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Grid Section */
.whychoose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto 50px;
}

/* Cartes - Ã‰tat initial invisible */
.whychoose-card {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 40px 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-80px);
}

.whychoose-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.whychoose-icon {
    margin-bottom: 25px;
    height: 100px;
    display: flex;
    background-color: white;
    align-items: center;
    justify-content: flex-start;
}

.whychoose-icon img {
    max-width: 120px;
    max-height: 100px;
    object-fit: contain;
}

.whychoose-card-title {
    font-size: 18px;
    background-color: white;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.whychoose-card-description {
    font-size: 14px;
    background-color: white;
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section - Ã‰tat initial invisible */
.whychoose-cta {
    text-align: center;
    background-color: #FFF6ED;
    opacity: 0;
    transform: translateY(20px);
}

.whychoose-button {
    background-color: #FF802B;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    border: none;
    border-radius: 30px;
    padding: 16px 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 128, 43, 0.3);
}

.whychoose-button:hover {
    background-color: #e6721f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 128, 43, 0.4);
}

.whychoose-button:active {
    transform: translateY(0);
}

/* ===== DÃ‰CLENCHEMENT DES ANIMATIONS ===== */

/* Quand la section devient visible */
.whychoose-container.visible .whychoose-header {
    animation: headerZoom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.whychoose-container.visible .whychoose-card {
    animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* DÃ©lais progressifs pour chaque carte */
.whychoose-container.visible .whychoose-card[data-delay="0"] {
    animation-delay: 0.2s;
}

.whychoose-container.visible .whychoose-card[data-delay="1"] {
    animation-delay: 0.3s;
}

.whychoose-container.visible .whychoose-card[data-delay="2"] {
    animation-delay: 0.4s;
}

.whychoose-container.visible .whychoose-card[data-delay="3"] {
    animation-delay: 0.5s;
}

.whychoose-container.visible .whychoose-cta {
    animation: fadeIn 0.6s ease-out forwards 0.7s;
}

/* ========================================
   RESPONSIVE POUR DESKTOP LARGE (> 1400px)
   ======================================== */
@media (min-width: 1400px) {
    .whychoose-container {
        padding: 100px 60px;
    }

    .whychoose-header {
        margin-bottom: 70px;
    }

    .whychoose-title {
        font-size: 44px;
    }

    .whychoose-subtitle {
        font-size: 17px;
    }

    .whychoose-grid {
        max-width: 1400px;
        gap: 35px;
    }

    .whychoose-card {
        padding: 45px 30px;
    }

    .whychoose-card-title {
        font-size: 19px;
    }

    .whychoose-card-description {
        font-size: 15px;
    }
}

/* ========================================
   RESPONSIVE POUR DESKTOP (1024px - 1399px)
   ======================================== */
@media (max-width: 1399px) and (min-width: 1024px) {
    .whychoose-container {
        padding: 80px 50px;
    }

    .whychoose-grid {
        max-width: 1200px;
        gap: 25px;
    }
}

/* ========================================
   RESPONSIVE POUR TABLETTE (768px - 1023px)
   ======================================== */
@media (max-width: 1023px) and (min-width: 768px) {
    .whychoose-container {
        padding: 70px 40px;
    }

    .whychoose-header {
        margin-bottom: 50px;
    }

    .whychoose-title {
        font-size: 36px;
    }

    .whychoose-subtitle {
        font-size: 15px;
    }

    .whychoose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .whychoose-card {
        padding: 35px 25px;
    }

    .whychoose-icon {
        height: 90px;
        margin-bottom: 20px;
    }

    .whychoose-icon img {
        max-width: 90px;
        max-height: 90px;
    }

    .whychoose-card-title {
        font-size: 17px;
    }

    .whychoose-card-description {
        font-size: 13px;
    }

    .whychoose-button {
        font-size: 17px;
        padding: 15px 40px;
    }
}

/* ========================================
   RESPONSIVE POUR TABLETTE PETITE (600px - 767px)
   ======================================== */
@media (max-width: 767px) and (min-width: 600px) {
    .whychoose-container {
        padding: 60px 30px;
    }

    .whychoose-header {
        margin-bottom: 45px;
    }

    .whychoose-title {
        font-size: 32px;
    }

    .whychoose-subtitle {
        font-size: 15px;
    }

    .whychoose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .whychoose-card {
        padding: 30px 20px;
    }

    .whychoose-icon {
        height: 85px;
        margin-bottom: 18px;
    }

    .whychoose-icon img {
        max-width: 85px;
        max-height: 85px;
    }

    .whychoose-card-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .whychoose-card-description {
        font-size: 13px;
    }

    .whychoose-button {
        font-size: 16px;
        padding: 14px 38px;
    }
}

/* ========================================
   RESPONSIVE POUR MOBILE (480px - 599px)
   ======================================== */
@media (max-width: 599px) and (min-width: 480px) {
    .whychoose-container {
        padding: 50px 25px;
    }

    .whychoose-header {
        margin-bottom: 40px;
    }

    .whychoose-title {
        font-size: 28px;
    }

    .whychoose-subtitle {
        font-size: 14px;
    }

    .whychoose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .whychoose-card {
        padding: 35px 25px;
    }

    .whychoose-icon {
        height: 90px;
        margin-bottom: 20px;
    }

    .whychoose-icon img {
        max-width: 90px;
        max-height: 90px;
    }

    .whychoose-card-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .whychoose-card-description {
        font-size: 14px;
    }

    .whychoose-button {
        font-size: 16px;
        padding: 14px 35px;
        width: 100%;
        max-width: 300px;
    }

    /* Animation plus rapide sur mobile */
    .whychoose-container.visible .whychoose-card {
        animation-duration: 0.5s;
    }
}

/* ========================================
   RESPONSIVE POUR MOBILE STANDARD (320px - 479px)
   ======================================== */
@media (max-width: 479px) {
    .whychoose-container {
        padding: 45px 20px;
    }

    .whychoose-header {
        margin-bottom: 35px;
    }

    .whychoose-title {
        font-size: 26px;
    }

    .whychoose-subtitle {
        font-size: 14px;
    }

    .whychoose-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .whychoose-card {
        padding: 30px 20px;
    }

    .whychoose-icon {
        height: 80px;
        margin-bottom: 18px;
    }

    .whychoose-icon img {
        max-width: 80px;
        max-height: 80px;
    }

    .whychoose-card-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .whychoose-card-description {
        font-size: 13px;
    }

    .whychoose-button {
        font-size: 15px;
        padding: 13px 30px;
        width: 100%;
    }

    /* Animation simplifiÃ©e */
    .whychoose-container.visible .whychoose-card {
        animation-duration: 0.5s;
    }
}

/* ========================================
   RESPONSIVE POUR TRÃˆS PETIT MOBILE (< 320px)
   ======================================== */
@media (max-width: 319px) {
    .whychoose-container {
        padding: 40px 15px;
    }

    .whychoose-header {
        margin-bottom: 30px;
    }

    .whychoose-title {
        font-size: 24px;
    }

    .whychoose-subtitle {
        font-size: 13px;
    }

    .whychoose-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .whychoose-card {
        padding: 25px 15px;
    }

    .whychoose-icon {
        height: 70px;
        margin-bottom: 15px;
    }

    .whychoose-icon img {
        max-width: 70px;
        max-height: 70px;
    }

    .whychoose-card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .whychoose-card-description {
        font-size: 12px;
    }

    .whychoose-button {
        font-size: 14px;
        padding: 12px 25px;
        width: 100%;
    }
}

/* ========================================
   RESPONSIVE POUR MODE PAYSAGE MOBILE
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .whychoose-container {
        padding: 40px 20px;
    }

    .whychoose-header {
        margin-bottom: 30px;
    }

    .whychoose-title {
        font-size: 28px;
    }

    .whychoose-subtitle {
        font-size: 13px;
    }

    .whychoose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .whychoose-card {
        padding: 25px 20px;
    }

    .whychoose-icon {
        height: 70px;
        margin-bottom: 12px;
    }

    .whychoose-icon img {
        max-width: 70px;
        max-height: 70px;
    }

    .whychoose-card-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .whychoose-card-description {
        font-size: 12px;
    }

    .whychoose-button {
        font-size: 14px;
        padding: 10px 30px;
    }
}