/* =============================================
   CMDA - CSS PERSONNALISÉ PROJET
   Surcharge de main.css pour ce site spécifique
   ============================================= */

/* ===== BLOC PICTO ASSUR-GRID ===== */
.assur-grid i { color: #035dda !important; }
.assur-grid a:hover { background: #035dda !important; border-color: #035dda !important; }
.assur-grid a:hover i { color: #fff !important; }
.assur-grid a:hover span { color: #fff !important; }

/* ===== HERO REDESIGN (pages produits) ===== */

/* Dégradé sur la photo */
.page-template-default:not(.home) .wpm-hero-slide {
    position: relative;
}
.page-template-default:not(.home) .wpm-hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(2,20,70,0.72) 0%, rgba(3,60,140,0.40) 55%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
    pointer-events: none;
}
.page-template-default:not(.home) .wpm-hero-slide > div {
    position: relative;
    z-index: 2;
}

/* Bloc texte : encadré transparent */
.page-template-default:not(.home) .wpm-has-text-overlay {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.30) !important;
    border-radius: 16px !important;
    padding: 36px 32px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Centrage vertical du bloc texte */
.page-template-default:not(.home) .wpm-hero-with-form {
    align-items: center !important;
}

/* Titre */
.page-template-default:not(.home) .wpm-hero-title {
    font-size: 3rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.5px !important;
    color: #fff !important;
    margin-bottom: 14px !important;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* Sous-titre */
.page-template-default:not(.home) .wpm-hero-subtitle {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #fff !important;
    border-left: 4px solid #f0a500;
    padding-left: 12px;
    margin-bottom: 24px !important;
    line-height: 1.5;
}

/* Liste à puces */
.page-template-default:not(.home) .wpm-hero-text ul { list-style: none !important; padding-left: 0 !important; }
.page-template-default:not(.home) .wpm-hero-text ul li {
    position: relative !important;
    padding-left: 28px !important;
    margin-bottom: 14px !important;
    font-size: 16px !important;
    line-height: 1.8;
    color: rgba(255,255,255,0.92) !important;
}
.page-template-default:not(.home) .wpm-hero-text ul li::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 3px !important;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(171,228,255,0.15);
    border: 1.5px solid #abe4ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpolyline points='1,4 4,7 9,1' stroke='%23abe4ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 9px;
}

/* Strong hero */
.page-template-default:not(.home) .wpm-hero-text strong { color: #fff !important; font-weight: 800 !important; }
/* Texte hero en blanc */
.page-template-default:not(.home) .wpm-hero-text,
.page-template-default:not(.home) .wpm-hero-text p,
.page-template-default:not(.home) .wpm-hero-subtitle { color: #fff !important; }

/* Formulaire hero */
.page-template-default:not(.home) .wpm-hero-form-wrapper {
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25) !important;
    overflow: hidden;
    padding: 0 !important;
}

/* WYSIWYG strong */
.wpm-wysiwyg-content strong { color: inherit !important; }

/* ===== DROPDOWN MENU ===== */
.wpm-header-nav .sub-menu {
    background: #0253A2 !important;
    border: none !important;
}
.wpm-header-nav .sub-menu a,
.wpm-header-nav .sub-menu li a {
    color: #fff !important;
}
.wpm-header-nav .sub-menu a:hover {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}

/* ===== BLOC NOS SERVICES - cartes égales ===== */
.wpm-service-item {
    justify-content: flex-start !important;
    height: 100%;
}
.wpm-services-grid {
    align-items: stretch !important;
}
.wpm-services-grid .wpm-service-item {
    height: auto;
    flex: 1;
}
.wpm-service-item h3 {
    text-align: center !important;
}

/* ===== ASSUR-GRID ===== */
.assur-grid {
    padding-top: 16px;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-auto-rows: 1fr !important;
    width: 100% !important;
    max-width: 520px !important;
    gap: 8px !important;
}
.assur-grid a {
    border-radius: 12px !important;
    padding: 14px 6px 12px !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 100% !important;
}
.assur-grid span {
    font-size: 11px !important;
    line-height: 1.3 !important;
}
.assur-grid i {
    font-size: 26px !important;
}

/* ===== FORMULAIRE HERO fond semi-transparent ===== */
.page-template-default:not(.home) .wpm-hero-form-wrapper {
    background: rgba(255,255,255,0.92) !important;
}

/* ===== CF7 FORMULAIRES ===== */
.wpcf7 {
    background: #ffffff;
    border: 1px solid #abe4ff;
    border-radius: 10px;
    padding: 32px;
    max-width: 560px;
}
.wpcf7 label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
    color: #035dda;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #abe4ff;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a1a;
    background-color: #f5fbff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}
.wpcf7 select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233875ad' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.wpcf7 input:focus,
.wpcf7 select:focus {
    border-color: #3875ad;
    box-shadow: 0 0 0 3px rgba(3,93,218,0.12);
}
.wpcf7 input[type="submit"] {
    background-color: #0253A2;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
    margin-top: 6px;
}
.wpcf7 input[type="submit"]:hover {
    background-color: #035dda;
}
.wpcf7 .wpcf7-not-valid-tip {
    color: #e03030;
    font-size: 12px;
    margin-top: 4px;
}
.wpcf7 .wpcf7-response-output {
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 16px;
    font-size: 14px;
}
.wpcf7 .wpcf7-mail-sent-ok {
    border-color: #035dda;
    background: #f0f8ff;
    color: #035dda;
}
.wpcf7 .wpcf7-validation-errors {
    border-color: #e03030;
    background: #fff5f5;
    color: #e03030;
}
.wpcf7 .wpcf7-radio .wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
    font-weight: 400;
    color: #1a1a1a;
}
.wpcf7 .wpcf7-radio input[type="radio"] {
    accent-color: #035dda;
    width: 16px;
    height: 16px;
}

.wpcf7 input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    accent-color: #035dda;
}

.wpcf7 label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* ===== FOOTER - SOUS-TITRES ET LISERETS ===== */
.wpm-footer-col-title {
    color: #ffffff !important;
    border-bottom-color: #f6a624 !important;
}

/* ===== CMDA ÉQUIPE ===== */
.cmda-contact { max-width: 900px; margin: 0 auto; }
.cmda-phone { font-size: 28px; font-weight: 600; text-align: center; margin: 0 0 1.5rem; }
.cmda-phone a { color: #185FA5; text-decoration: none; }
.cmda-phone a:hover { text-decoration: underline; }
.cmda-agencies { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 1rem; }
.cmda-agency { background: #f7f7f5; border-radius: 12px; padding: 1rem 1.25rem; }
.cmda-agency-name { font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.cmda-agency-addr { font-size: 13px; color: #5f5e5a; margin: 0; line-height: 1.5; }
.cmda-hours { text-align: center; font-size: 14px; color: #5f5e5a; margin: 1rem 0 2rem; line-height: 1.6; }
.cmda-team { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmda-card { background: #fff; border: 1px solid #e5e5e0; border-radius: 12px; padding: 1rem 1.25rem; display: flex; gap: 12px; align-items: flex-start; }
.cmda-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.cmda-info { min-width: 0; }
.cmda-name { font-weight: 600; font-size: 15px; margin: 0; }
.cmda-role-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 8px; margin: 3px 0 4px; background: #E6F1FB; color: #185FA5; }
.cmda-title { font-size: 13px; color: #5f5e5a; margin: 0 0 6px; line-height: 1.4; }
.cmda-contact-line { font-size: 13px; color: #5f5e5a; margin: 0; line-height: 1.6; }
.cmda-contact-line a { color: #185FA5; text-decoration: none; }
.cmda-contact-line a:hover { text-decoration: underline; }
.av-sm { background: #E6F1FB; color: #0C447C; }
.av-cb { background: #EEEDFE; color: #3C3489; }
.av-cg { background: #E1F5EE; color: #085041; }
.av-lg { background: #FAEEDA; color: #633806; }
.av-ad { background: #FAECE7; color: #712B13; }
.av-sr { background: #FBEAF0; color: #72243E; }
.av-em { background: #EAF3DE; color: #27500A; }
.av-pa { background: #E6F1FB; color: #0C447C; }
@media(max-width:600px) {
    .cmda-agencies, .cmda-team { grid-template-columns: 1fr; }
    .cmda-phone { font-size: 22px; }
}
