/*
Theme Name: ECP Assurances
Theme URI: https://ecp-assurances.com
Description: Thème enfant Twenty Twenty-Five pour ECP Assurances - Courtier en assurances à Mérignac (33)
Author: Behramko
Author URI: https://ecp-assurances.com
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ecp-assurances
*/

/* ============================
   ECP Assurances - Custom CSS
   ============================ */

/* --- Header top bar --- */
.wp-block-group.has-ecp-primary-background-color {
    transition: all 0.3s ease;
}

/* --- Navigation dropdown --- */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item__content {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item__content:hover {
    background-color: var(--wp--preset--color--ecp-light);
    color: var(--wp--preset--color--ecp-primary);
}

.wp-block-navigation .wp-block-navigation__submenu-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 240px;
}

/* --- Boutons --- */
.wp-block-button__link {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* --- Hero section gradient overlay --- */
.wp-block-cover.alignfull:first-of-type {
    background: linear-gradient(135deg, #0F2439 0%, #1B3A5C 50%, #2E86AB 100%) !important;
}

.wp-block-cover.alignfull:first-of-type .wp-block-cover__background {
    background: linear-gradient(135deg, #0F2439 0%, #1B3A5C 50%, #2E86AB 100%) !important;
}

/* --- Cards / Colonnes avantages --- */
.wp-block-column.has-ecp-white-background-color {
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wp-block-column.has-ecp-white-background-color:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* --- Cards services (Pro / Particuliers) --- */
.wp-block-column.has-border-color {
    transition: all 0.3s ease;
}

.wp-block-column.has-border-color:hover {
    border-color: var(--wp--preset--color--ecp-secondary) !important;
    box-shadow: 0 8px 25px rgba(46, 134, 171, 0.12);
}

/* --- CTA section gradient --- */
.wp-block-cover.alignfull:last-of-type .wp-block-cover__background {
    background: linear-gradient(135deg, #0F2439 0%, #1B3A5C 100%) !important;
}

/* --- Footer links --- */
.is-style-no-bullets {
    list-style: none;
}

.is-style-no-bullets li a {
    text-decoration: none;
    transition: color 0.2s ease;
}

/* --- Smooth scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Page title hide on front page --- */
body.home .wp-block-post-title {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 782px) {
    .wp-block-cover.alignfull:first-of-type h1 {
        font-size: 2.2rem !important;
    }
    
    .wp-block-cover.alignfull:first-of-type p {
        font-size: 1rem !important;
    }
}

/* --- WPForms styling --- */
.wpforms-container .wpforms-form .wpforms-field-label {
    color: var(--wp--preset--color--ecp-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form select,
.wpforms-container .wpforms-form textarea {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    background: #fff;
}

.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form select:focus,
.wpforms-container .wpforms-form textarea:focus {
    border-color: var(--wp--preset--color--ecp-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.1);
}

.wpforms-container .wpforms-form button[type="submit"],
.wpforms-container .wpforms-form .wpforms-submit {
    background-color: var(--wp--preset--color--ecp-accent) !important;
    color: var(--wp--preset--color--ecp-dark) !important;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wpforms-container .wpforms-form button[type="submit"]:hover,
.wpforms-container .wpforms-form .wpforms-submit:hover {
    background-color: var(--wp--preset--color--ecp-primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}


