/**
 * Footer Custom Widgets Styles
 * Styles pour les widgets personnalisés du footer
 *
 * @package Adecopa_DTS
 */

/* ==========================================================================
   1. Contact Info Widget
   ========================================================================== */
.adecopa-contact-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.adecopa-contact-widget .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: transform 0.2s ease;
}

.adecopa-contact-widget .contact-item:hover {
    transform: translateX(5px);
}

.adecopa-contact-widget .contact-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-primary, #e53935);
}

.adecopa-contact-widget .contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.adecopa-contact-widget .contact-item a:hover {
    color: var(--color-primary, #e53935);
}

/* ==========================================================================
   2. Newsletter Widget
   ========================================================================== */
.adecopa-newsletter-widget {
    max-width: 100%;
}

.adecopa-newsletter-widget .newsletter-description {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.adecopa-newsletter-widget .newsletter-form {
    margin-bottom: 0.75rem;
}

.adecopa-newsletter-widget .newsletter-input-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.adecopa-newsletter-widget .newsletter-input-wrapper input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.adecopa-newsletter-widget .newsletter-input-wrapper input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.adecopa-newsletter-widget .newsletter-input-wrapper input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary, #e53935);
    background: rgba(255, 255, 255, 0.15);
}

.adecopa-newsletter-widget .newsletter-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary, #e53935);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.adecopa-newsletter-widget .newsletter-submit:hover {
    background: var(--color-primary-dark, #c62828);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.adecopa-newsletter-widget .newsletter-submit svg {
    width: 18px;
    height: 18px;
}

.adecopa-newsletter-widget .newsletter-privacy {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   3. Stats Widget
   ========================================================================== */
.adecopa-stats-widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
}

.adecopa-stats-widget .stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.adecopa-stats-widget .stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.adecopa-stats-widget .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary, #e53935);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.adecopa-stats-widget .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* ==========================================================================
   4. CTA Widget
   ========================================================================== */
.adecopa-cta-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.adecopa-cta-widget .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.adecopa-cta-widget .cta-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Primary CTA */
.adecopa-cta-widget .cta-primary {
    background: var(--color-primary, #e53935);
    color: #fff;
    border: 2px solid var(--color-primary, #e53935);
}

.adecopa-cta-widget .cta-primary:hover {
    background: var(--color-primary-dark, #c62828);
    border-color: var(--color-primary-dark, #c62828);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

/* Secondary CTA */
.adecopa-cta-widget .cta-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.adecopa-cta-widget .cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* ==========================================================================
   5. Addresses Widget (Multiple Offices)
   ========================================================================== */
.adecopa-addresses-widget {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.adecopa-addresses-widget .address-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary, #e53935);
    transition: all 0.3s ease;
}

.adecopa-addresses-widget .address-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
}

.adecopa-addresses-widget .address-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.adecopa-addresses-widget .address-icon {
    flex-shrink: 0;
    color: var(--color-primary, #e53935);
}

.adecopa-addresses-widget .office-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.adecopa-addresses-widget .office-address {
    margin: 0 0 0.75rem 0;
    padding-left: 1.75rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.adecopa-addresses-widget .office-phone,
.adecopa-addresses-widget .office-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1.75rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.adecopa-addresses-widget .office-phone svg,
.adecopa-addresses-widget .office-email svg {
    flex-shrink: 0;
    color: var(--color-primary, #e53935);
}

.adecopa-addresses-widget .office-email a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.adecopa-addresses-widget .office-email a:hover {
    color: var(--color-primary, #e53935);
}

/* ==========================================================================
   6. Map Widget
   ========================================================================== */
.adecopa-map-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.adecopa-map-widget .map-address {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary, #e53935);
}

.adecopa-map-widget .map-icon {
    flex-shrink: 0;
    color: var(--color-primary, #e53935);
}

.adecopa-map-widget .map-address p {
    margin: 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.adecopa-map-widget .map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.adecopa-map-widget .map-link:hover {
    background: var(--color-primary, #e53935);
    border-color: var(--color-primary, #e53935);
    transform: translateY(-2px);
}

.adecopa-map-widget .map-link svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   7. Combined Widget (Multi-Function)
   ========================================================================== */
.adecopa-combined-widget {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Mode: Statistiques */
.combined-stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.25rem;
}

.combined-stat-item {
    text-align: center;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.combined-stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.combined-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary, #e53935);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.combined-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Mode: Horaires */
.combined-hours-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.combined-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.combined-hours-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.combined-hours-row.is-today {
    background: var(--color-primary, #e53935);
    font-weight: 600;
}

.combined-day-name {
    color: rgba(255, 255, 255, 0.9);
}

.combined-day-hours {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.combined-hours-row.is-today .combined-day-name,
.combined-hours-row.is-today .combined-day-hours {
    color: #fff;
}

/* Mode: CTA */
.combined-cta-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.combined-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.combined-cta-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.combined-cta-primary {
    background: var(--color-primary, #e53935);
    color: #fff;
    border: 2px solid var(--color-primary, #e53935);
}

.combined-cta-primary:hover {
    background: var(--color-primary-dark, #c62828);
    border-color: var(--color-primary-dark, #c62828);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.combined-cta-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.combined-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Mode: Tout-en-un (Compact) */
.combined-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Stats compactes */
.combined-stats-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.combined-stat-item-compact {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.combined-stat-item-compact:hover {
    background: rgba(255, 255, 255, 0.08);
}

.combined-stat-number-compact {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary, #e53935);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.combined-stat-label-compact {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

/* Horaires compactes */
.combined-hours-compact {
    margin-top: 1rem;
}

.combined-hours-row-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    transition: all 0.2s ease;
}

.combined-hours-row-compact:hover {
    background: rgba(255, 255, 255, 0.08);
}

.combined-hours-row-compact.is-today {
    background: var(--color-primary, #e53935);
    font-weight: 600;
}

.combined-day-name-compact {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.combined-day-hours-compact {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.combined-hours-row-compact.is-today .combined-day-name-compact,
.combined-hours-row-compact.is-today .combined-day-hours-compact {
    color: #fff;
}

/* CTA compactes */
.combined-cta-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.combined-cta-button-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.combined-cta-button-compact svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   8. Widget Titles (Global)
   ========================================================================== */
.footer-widget-area .widget-title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget-area .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-primary, #e53935);
    border-radius: 2px;
}

/* ==========================================================================
   9. Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .adecopa-newsletter-widget .newsletter-input-wrapper {
        flex-direction: column;
    }

    .adecopa-newsletter-widget .newsletter-input-wrapper input[type="email"] {
        min-width: 100%;
    }

    .adecopa-newsletter-widget .newsletter-submit {
        width: 100%;
        justify-content: center;
    }

    .adecopa-stats-widget {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .adecopa-stats-widget .stat-number {
        font-size: 2rem;
    }

    .adecopa-cta-widget .cta-button {
        width: 100%;
    }

    .adecopa-addresses-widget .address-card {
        padding: 1rem;
    }

    .adecopa-addresses-widget .office-name {
        font-size: 1rem;
    }

    .adecopa-addresses-widget .office-address {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }

    .adecopa-addresses-widget .office-phone,
    .adecopa-addresses-widget .office-email {
        font-size: 0.85rem;
        padding-left: 1.5rem;
    }

    .adecopa-contact-widget .contact-item {
        font-size: 0.9rem;
    }

    /* Combined Widget Responsive */
    .combined-stats-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .combined-stat-number {
        font-size: 2rem;
    }

    .combined-cta-button,
    .combined-cta-button-compact {
        width: 100%;
    }

    .combined-stats-compact {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .combined-hours-row {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
    }

    .combined-hours-row-compact {
        font-size: 0.8rem;
        padding: 0.45rem 0.7rem;
    }
}

/* ==========================================================================
   9. Dark Mode Support (si activé dans le thème)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    .adecopa-newsletter-widget .newsletter-input-wrapper input[type="email"] {
        background: rgba(255, 255, 255, 0.08);
    }

    .adecopa-stats-widget .stat-item {
        background: rgba(255, 255, 255, 0.03);
    }

    .adecopa-stats-widget .stat-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }
}

/* ==========================================================================
   10. Animation au scroll (optionnel)
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-widget-area .widget {
    animation: fadeInUp 0.6s ease-out;
}

.footer-widget-area .footer-widget-1 .widget {
    animation-delay: 0.1s;
}

.footer-widget-area .footer-widget-2 .widget {
    animation-delay: 0.2s;
}

.footer-widget-area .footer-widget-3 .widget {
    animation-delay: 0.3s;
}

.footer-widget-area .footer-widget-4 .widget {
    animation-delay: 0.4s;
}
