/* ============================================
   EPN Parent Pages CSS - Orange/Navy Design
   Pages: À Propos, Nos Blogues, Villes, Nous Joindre
   ============================================ */

/* === FONTS === */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500&display=swap");

/* === HERO SECTION (first section) === */
[data-elementor-type="wp-page"] > .elementor-section:first-child {
    position: relative !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center center !important;
    min-height: 55vh !important;
    display: flex !important;
    align-items: center !important;
}
[data-elementor-type="wp-page"] > .elementor-section:first-child::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0 !important;
    background: linear-gradient(135deg, rgba(26,26,46,0.82) 0%, rgba(26,26,46,0.55) 100%) !important;
    z-index: 1 !important;
}
[data-elementor-type="wp-page"] > .elementor-section:first-child > .elementor-container {
    position: relative !important;
    z-index: 2 !important;
}
[data-elementor-type="wp-page"] > .elementor-section:first-child h1,
[data-elementor-type="wp-page"] > .elementor-section:first-child h2,
[data-elementor-type="wp-page"] > .elementor-section:first-child h3 {
    font-family: "Montserrat", sans-serif !important;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    font-weight: 700 !important;
}
[data-elementor-type="wp-page"] > .elementor-section:first-child h3 {
    font-size: 2.8rem !important;
}
[data-elementor-type="wp-page"] > .elementor-section:first-child h5 {
    font-family: "Poppins", sans-serif !important;
    color: rgba(255,255,255,0.9) !important;
    font-weight: 400 !important;
    font-size: 1.15rem !important;
    letter-spacing: 0.5px !important;
}

/* === HEADINGS === */
[data-elementor-type="wp-page"] .elementor-widget-heading h2 {
    font-family: "Montserrat", sans-serif !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    font-size: 2rem !important;
    line-height: 1.3 !important;
}
[data-elementor-type="wp-page"] .elementor-widget-heading h3 {
    font-family: "Montserrat", sans-serif !important;
    color: #1a1a2e !important;
    font-weight: 600 !important;
}
[data-elementor-type="wp-page"] .elementor-widget-heading h4 {
    font-family: "Montserrat", sans-serif !important;
    color: #1a1a2e !important;
    font-weight: 600 !important;
    font-size: 1.15rem !important;
}
[data-elementor-type="wp-page"] .elementor-widget-heading h5 {
    font-family: "Poppins", sans-serif !important;
    color: #ff6b35 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-size: 0.9rem !important;
}

/* === BODY TEXT === */
[data-elementor-type="wp-page"] .elementor-widget-text-editor {
    font-family: "Poppins", sans-serif !important;
    color: #3a3a3a !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
}

/* === LINKS === */
[data-elementor-type="wp-page"] .elementor-widget-text-editor a {
    color: #ff6b35 !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
    transition: border-color 0.3s ease !important;
}
[data-elementor-type="wp-page"] .elementor-widget-text-editor a:hover {
    border-bottom-color: #ff6b35 !important;
}

/* === BUTTONS === */
[data-elementor-type="wp-page"] .elementor-button {
    background: linear-gradient(135deg, #ff6b35, #e55a2b) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3) !important;
}
[data-elementor-type="wp-page"] .elementor-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255,107,53,0.45) !important;
    background: linear-gradient(135deg, #e55a2b, #d44a1b) !important;
}
[data-elementor-type="wp-page"] .elementor-button .elementor-button-text {
    color: #ffffff !important;
}

/* === IMAGE BOX (service cards on À Propos) === */
[data-elementor-type="wp-page"] .elementor-widget-image-box .elementor-image-box-wrapper {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 30px 20px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    border: 1px solid #f0f0f0 !important;
}
[data-elementor-type="wp-page"] .elementor-widget-image-box .elementor-image-box-wrapper:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12) !important;
    border-color: #ff6b35 !important;
}
[data-elementor-type="wp-page"] .elementor-widget-image-box .elementor-image-box-title {
    font-family: "Montserrat", sans-serif !important;
    color: #1a1a2e !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    margin-top: 15px !important;
}
[data-elementor-type="wp-page"] .elementor-widget-image-box .elementor-image-box-description {
    font-family: "Poppins", sans-serif !important;
    color: #555 !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
}
[data-elementor-type="wp-page"] .elementor-widget-image-box img {
    border-radius: 50% !important;
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border: 3px solid #f0f0f0 !important;
    transition: border-color 0.3s ease !important;
}
[data-elementor-type="wp-page"] .elementor-widget-image-box .elementor-image-box-wrapper:hover img {
    border-color: #ff6b35 !important;
}

/* === ICON LIST (Villes page) === */
[data-elementor-type="wp-page"] .elementor-icon-list-items .elementor-icon-list-item {
    font-family: "Poppins", sans-serif !important;
    font-size: 0.95rem !important;
    padding: 6px 0 !important;
    transition: all 0.2s ease !important;
}
[data-elementor-type="wp-page"] .elementor-icon-list-items .elementor-icon-list-item:hover {
    transform: translateX(4px) !important;
}
[data-elementor-type="wp-page"] .elementor-icon-list-items .elementor-icon-list-text {
    color: #3a3a3a !important;
    transition: color 0.2s ease !important;
}
[data-elementor-type="wp-page"] .elementor-icon-list-items .elementor-icon-list-item:hover .elementor-icon-list-text {
    color: #ff6b35 !important;
}
[data-elementor-type="wp-page"] .elementor-icon-list-items .elementor-icon-list-icon i {
    color: #ff6b35 !important;
    font-size: 1rem !important;
}

/* === SECTIONS BG ALTERNANCE === */
[data-elementor-type="wp-page"] > .elementor-section:nth-child(even):not(:first-child) {
    background-color: #f8f9fa !important;
}

/* === SECTION SERVICES BG (with background image) === */
[data-elementor-type="wp-page"] > .elementor-section[data-settings*="background_background"] {
    position: relative !important;
}

/* === CONTACT FORM CF7 (Nous Joindre) === */
[data-elementor-type="wp-page"] .wpcf7 input[type="text"],
[data-elementor-type="wp-page"] .wpcf7 input[type="email"],
[data-elementor-type="wp-page"] .wpcf7 input[type="tel"],
[data-elementor-type="wp-page"] .wpcf7 textarea {
    font-family: "Poppins", sans-serif !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
}
[data-elementor-type="wp-page"] .wpcf7 input:focus,
[data-elementor-type="wp-page"] .wpcf7 textarea:focus {
    border-color: #ff6b35 !important;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1) !important;
    outline: none !important;
}
[data-elementor-type="wp-page"] .wpcf7 input[type="submit"] {
    background: linear-gradient(135deg, #ff6b35, #e55a2b) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 16px 40px !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
[data-elementor-type="wp-page"] .wpcf7 input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255,107,53,0.45) !important;
}

/* === CONTACT INFO ICONS (Nous Joindre) === */
[data-elementor-type="wp-page"] .elementor-widget-icon-box .elementor-icon {
    background: linear-gradient(135deg, #ff6b35, #e55a2b) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
[data-elementor-type="wp-page"] .elementor-widget-icon-box .elementor-icon i {
    color: #ffffff !important;
    font-size: 1.1rem !important;
}
[data-elementor-type="wp-page"] .elementor-widget-icon-box .elementor-icon-box-title {
    font-family: "Montserrat", sans-serif !important;
    color: #1a1a2e !important;
    font-weight: 600 !important;
}
[data-elementor-type="wp-page"] .elementor-widget-icon-box .elementor-icon-box-description {
    font-family: "Poppins", sans-serif !important;
    color: #3a3a3a !important;
}

/* === SOCIAL ICONS === */
[data-elementor-type="wp-page"] .elementor-social-icon {
    transition: all 0.3s ease !important;
}
[data-elementor-type="wp-page"] .elementor-social-icon:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* === GOOGLE MAP === */
[data-elementor-type="wp-page"] .elementor-widget-google_maps iframe {
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}

/* === BLOG LISTING SIDEBAR (Nos Blogues page) === */
[data-elementor-type="wp-page"] .widget-title,
[data-elementor-type="wp-page"] .wp-block-heading {
    font-family: "Montserrat", sans-serif !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid #ff6b35 !important;
    margin-bottom: 20px !important;
}

/* Blog post titles in listing */
[data-elementor-type="wp-page"] .entry-title a,
[data-elementor-type="wp-page"] article .ast-blog-single-element a {
    font-family: "Montserrat", sans-serif !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    transition: color 0.3s ease !important;
}
[data-elementor-type="wp-page"] .entry-title a:hover,
[data-elementor-type="wp-page"] article .ast-blog-single-element a:hover {
    color: #ff6b35 !important;
}

/* Sidebar recent posts widget */
[data-elementor-type="wp-page"] .wp-block-latest-posts__list li a,
[data-elementor-type="wp-page"] aside a {
    font-family: "Poppins", sans-serif !important;
    color: #1a1a2e !important;
    transition: color 0.3s ease !important;
}
[data-elementor-type="wp-page"] .wp-block-latest-posts__list li a:hover,
[data-elementor-type="wp-page"] aside a:hover {
    color: #ff6b35 !important;
}

/* Blog date badge */
[data-elementor-type="wp-page"] .posted-on,
[data-elementor-type="wp-page"] .ast-blog-single-element .published {
    font-family: "Poppins", sans-serif !important;
    color: #ff6b35 !important;
    font-weight: 500 !important;
}

/* Sidebar widgets */
[data-elementor-type="wp-page"] aside .widget,
[data-elementor-type="wp-page"] aside .wp-block-group {
    background: #f9fafb !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
}

/* === SCROLL TO TOP === */
#ast-scroll-top {
    background: linear-gradient(135deg, #ff6b35, #e55a2b) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3) !important;
}

/* === CTA SECTION (sections with bg image, not first) === */
[data-elementor-type="wp-page"] > .elementor-section:not(:first-child)[data-settings*="background_image"] {
    position: relative !important;
}
[data-elementor-type="wp-page"] > .elementor-section:not(:first-child)[data-settings*="background_image"]::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0 !important;
    background: linear-gradient(135deg, rgba(26,26,46,0.75), rgba(26,26,46,0.5)) !important;
    z-index: 1 !important;
}
[data-elementor-type="wp-page"] > .elementor-section:not(:first-child)[data-settings*="background_image"] > .elementor-container {
    position: relative !important;
    z-index: 2 !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    [data-elementor-type="wp-page"] > .elementor-section:first-child {
        min-height: 40vh !important;
        background-attachment: scroll !important;
    }
    [data-elementor-type="wp-page"] > .elementor-section:first-child h3 {
        font-size: 1.8rem !important;
    }
    [data-elementor-type="wp-page"] .elementor-widget-heading h2 {
        font-size: 1.5rem !important;
    }
    [data-elementor-type="wp-page"] .elementor-widget-image-box .elementor-image-box-wrapper {
        padding: 20px 15px !important;
    }
    [data-elementor-type="wp-page"] .wpcf7 input[type="submit"] {
        width: 100% !important;
    }
}

/* === ELEMENTOR POSTS WIDGET (Blog listing) === */
[data-elementor-type="wp-page"] .elementor-post__title {
    font-family: "Montserrat", sans-serif !important;
}
[data-elementor-type="wp-page"] .elementor-post__title a {
    font-family: "Montserrat", sans-serif !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    font-style: normal !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-size: 1.3rem !important;
    line-height: 1.4 !important;
}
[data-elementor-type="wp-page"] .elementor-post__title a:hover {
    color: #ff6b35 !important;
}
[data-elementor-type="wp-page"] .elementor-post__excerpt {
    font-family: "Poppins", sans-serif !important;
    color: #555 !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}
[data-elementor-type="wp-page"] .elementor-post__read-more {
    font-family: "Montserrat", sans-serif !important;
    color: #ff6b35 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}
[data-elementor-type="wp-page"] .elementor-post__read-more:hover {
    color: #e55a2b !important;
    letter-spacing: 1px !important;
}
[data-elementor-type="wp-page"] .elementor-post__meta-data {
    font-family: "Poppins", sans-serif !important;
    color: #ff6b35 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}
[data-elementor-type="wp-page"] .elementor-post {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #f0f0f0 !important;
    background: #ffffff !important;
}
[data-elementor-type="wp-page"] .elementor-post:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 35px rgba(0,0,0,0.1) !important;
}
[data-elementor-type="wp-page"] .elementor-post__thumbnail {
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden !important;
}
[data-elementor-type="wp-page"] .elementor-post__text {
    padding: 20px 24px !important;
}

/* === PAGINATION === */
[data-elementor-type="wp-page"] .elementor-pagination .page-numbers {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
[data-elementor-type="wp-page"] .elementor-pagination .page-numbers.current,
[data-elementor-type="wp-page"] .elementor-pagination .page-numbers:hover {
    background: #ff6b35 !important;
    color: #ffffff !important;
}