/* Why Us Section Styles */
.why-us {
    padding: 80px 0;
    background: #f8f9fa;
}

.why-us-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-items: center;
    align-items: stretch;
}

/* Centrage spécifique pour la troisième bento (Économies Garanties) */
.bento-item:nth-child(3) {
    justify-self: center;
    align-self: center;
}

.bento-item {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.bento-icon {
    background: #f0f7ff;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bento-icon ion-icon {
    font-size: 28px;
    color: #007bff;
}

.bento-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.bento-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.why-us-cta {
    text-align: center;
    margin-top: 60px;
    padding: 0 20px;
}

.why-us-cta .btn {
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.why-us-cta .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
}

.why-us-cta .btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.why-us-cta .btn a {
    color: white;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.why-us-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.why-us-cta .btn:hover::before {
    left: 100%;
}

/* Contact Form Styles */
.why-us-form-col {
    flex: 1;
    max-width: 500px;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #666;
    margin-bottom: 30px;
}

.contact-form .input-field {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 992px) {
    .why-us {
        padding: 70px 0;
    }

    .why-us-header {
        margin-bottom: 50px;
        padding: 0 20px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 700px;
        padding: 0 20px;
        justify-items: center;
        align-items: stretch;
    }

    .bento-item {
        padding: 25px;
        justify-self: center;
        align-self: center;
    }

    /* Centrage spécial pour la troisième bento qui sera seule sur la dernière ligne */
    .bento-item:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 350px;
        justify-self: center;
        align-self: center;
    }

    .why-us-form-col {
        max-width: 100%;
    }

    .why-us-cta .btn {
        padding: 16px 40px;
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .why-us {
        padding: 60px 0;
        text-align: center;
    }

    .why-us .container {
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .why-us-header {
        margin-bottom: 40px;
        text-align: center;
        max-width: 600px;
        padding: 0 15px;
    }

    .why-us-header .sub-heading,
    .why-us-header .heading,
    .why-us-header .para-line {
        text-align: center;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
        padding: 0 15px;
        justify-items: center;
        align-items: stretch;
    }

    .bento-item {
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 200px;
        justify-self: center;
        align-self: center;
    }

    /* Centrage spécial pour la troisième bento qui sera seule sur la dernière ligne */
    .bento-item:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 320px;
        justify-self: center;
        align-self: center;
    }

    .bento-icon {
        margin: 0 auto 15px;
    }

    .bento-item h3 {
        text-align: center;
        margin-bottom: 12px;
        font-size: 18px;
    }

    .bento-item p {
        text-align: center;
        line-height: 1.5;
        font-size: 14px;
    }
    
    .why-us-cta {
        margin-top: 40px;
        text-align: center;
    }
    
    .why-us-cta .btn {
        padding: 16px 36px;
        font-size: 16px;
        max-width: 280px;
        width: 90%;
    }
}

@media (max-width: 576px) {
    .why-us {
        padding: 50px 0;
    }

    .why-us .container {
        padding: 0 15px;
    }

    .why-us-header {
        margin-bottom: 35px;
        padding: 0 10px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 350px;
        padding: 0 20px;
        justify-items: center;
        align-items: stretch;
    }
    
    .bento-item {
        padding: 25px 20px;
        min-height: 220px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        justify-self: center;
        align-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Toutes les bentos sont centrées en mode 1 colonne */
    .bento-item:nth-child(3) {
        grid-column: auto;
        max-width: 300px;
        justify-self: center;
        align-self: center;
    }

    .bento-icon {
        width: 55px;
        height: 55px;
        margin: 0 auto 18px;
    }

    .bento-icon ion-icon {
        font-size: 26px;
    }

    .bento-item h3 {
        font-size: 19px;
        margin-bottom: 15px;
    }

    .bento-item p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .why-us-cta {
        margin-top: 35px;
    }
    
    .why-us-cta .btn {
        padding: 16px 32px;
        font-size: 16px;
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .why-us {
        padding: 40px 0;
    }

    .why-us-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .bento-grid {
        max-width: 280px;
        gap: 15px;
        padding: 0 15px;
        justify-items: center;
        align-items: stretch;
    }

    .bento-item {
        padding: 20px 15px;
        min-height: 200px;
        justify-self: center;
        align-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Centrage parfait pour toutes les bentos en très petit écran */
    .bento-item:nth-child(3) {
        grid-column: auto;
        max-width: 260px;
        justify-self: center;
        align-self: center;
    }

    .bento-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 15px;
    }

    .bento-icon ion-icon {
        font-size: 24px;
    }

    .bento-item h3 {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .bento-item p {
        font-size: 14px;
    }

    .why-us-cta .btn {
        padding: 14px 28px;
        font-size: 15px;
        max-width: 250px;
    }
} 