/*
Theme Name: Astra Child
Template: astra
Text Domain: astra-child
Version: 1.0
*/

/* ===== Modif Google Avis ===== */

.ti-rating-text{
    display: none;
}

.ti-footer .ti-profile-details .ti-name{
    display: none;
}

/* ===== Normalisation Astra fichiers single ===== */

.single #primary,
.single .site-content > .ast-container,
.single #content > .ast-container {
    padding: 0 !important;
    max-width: 100% !important;
}

.single .site-content > .ast-container {
    display: block !important;
}

.single .entry-content,
.single .entry-header,
.single article {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

/* ===== Header ===== */

header#masthead {
    transition: transform .3s ease;
}

header#masthead .ast-primary-header-bar {
    background: rgba(244, 247, 250, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
	transition: border-radius .2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 6px 15px rgba(0,0,0,0.2) !important;
}

header#masthead.scrolled .ast-primary-header-bar {
    border-radius: 0 0 70px 70px;  
}

.custom-logo {
    width: 130px;
    height: 74px;
    object-fit: contain;
}

.ast-header-button-1 .ast-builder-button-wrap .ast-custom-button {
	background: linear-gradient(135deg, #0072ba, #0a2068) !important;
}

.ast-header-button-1:hover .ast-builder-button-wrap .ast-custom-button {
	transform: translatey(-5px) !important;
}

/* Submenu header */
.main-header-bar .sub-menu {
    transform: translateY(-5px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    box-shadow: 0 8px 32px rgba(30, 58, 95, 0.15);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    left: 0 !important;
    right: auto !important;
    width: auto !important;
    min-width: 200px;
    max-width: 220px;
    white-space: nowrap;
    background: #fff;
}

.main-header-bar .menu-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-header-bar .sub-menu .menu-item a {
    padding: 10px 20px;
    font-size: 13px;
    color: #1E3A5F;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f4f8;
    transition: background .15s, color .15s, padding-left .15s;
}

.main-header-bar .sub-menu .menu-item:last-child a {
    border-bottom: none;
}

.main-header-bar .sub-menu .menu-item a:hover {
    background: #f0f8ff;
    color: #2E86AB;
    padding-left: 26px;
}

/* ===== Back-to-top button ===== */

.ast-scroll-top-icon {
	background: linear-gradient(135deg, #0072ba, #0a2068);
}

/* ===== Icon shadow ===== */

.elementor-icon svg {
    filter: 
        drop-shadow(2px 2px 0px rgba(30, 58, 95, 0.005))
        drop-shadow(3px 3px 0px rgba(30, 58, 95, 0.01))
        drop-shadow(4px 4px 0px rgba(30, 58, 95, 0.05))
        drop-shadow(5px 5px 0px rgba(30, 58, 95, 0.1))
        drop-shadow(6px 6px 16px rgba(30, 58, 95, 0.2));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.cat-card .elementor-icon svg {
    filter: 
        drop-shadow(2px 2px 0px rgba(30, 58, 95, 0.005))
        drop-shadow(3px 3px 0px rgba(30, 58, 95, 0.01))
        drop-shadow(4px 4px 0px rgba(30, 58, 95, 0.05))
        drop-shadow(5px 5px 0px rgba(30, 58, 95, 0.1))
        drop-shadow(6px 6px 16px rgba(30, 58, 95, 0.2));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.cat-card:hover .elementor-icon svg {
    filter: 
        drop-shadow(2px 2px 0px rgba(30, 58, 95, 0.005))
        drop-shadow(4px 4px 0px rgba(30, 58, 95, 0.01))
        drop-shadow(6px 6px 0px rgba(30, 58, 95, 0.05))
        drop-shadow(8px 8px 0px rgba(30, 58, 95, 0.1))
        drop-shadow(10px 10px 12px rgba(30, 58, 95, 0.2));
    transform: translateY(-4px);
}

.icon_shadow {
    filter: 
        drop-shadow(2px 2px 0px rgba(30, 58, 95, 0.005))
        drop-shadow(3px 3px 0px rgba(30, 58, 95, 0.01))
        drop-shadow(4px 4px 0px rgba(30, 58, 95, 0.05))
        drop-shadow(5px 5px 0px rgba(30, 58, 95, 0.1))
        drop-shadow(6px 6px 16px rgba(30, 58, 95, 0.2));
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* ===== Arrow effect ===== */

.cat-card .elementor-widget-text-editor p {
    transition: transform .2s;
}

.cat-card:hover .elementor-widget-text-editor p {
    transform: translateX(4px);
}

/* ===== Compteur ===== */

.counter{
    color: #1E3A5F;
    font-family: "Roboto", Sans-serif;
    font-size: 48px;
    font-weight: 600;
}

/* ===== Mentions légales | Politique de confidentialité ===== */

.legal-content {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 15px;
    color: #2d3748;
    line-height: 1.85;
}

.legal-section {
    padding: 28px 0;
    border-bottom: 1px solid #e2e8f0;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #2e86ab;
    border-left: 3px solid #2e86ab;
    padding-left: 12px;
    margin-bottom: 14px;
}

.legal-section p {
    margin: 0 0 10px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: #2e86ab;
    text-decoration: underline;
}

/* Blocs Oui/Non cookies */
.legal-cookie-choice {
    background: #f0f6ff;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
}

.legal-cookie-choice p {
    margin-bottom: 12px !important;
    color: #1E3A5F;
    font-weight: 600;
}

.legal-cookie-option {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.legal-cookie-option:last-child {
    margin-bottom: 0;
}

.legal-cookie-yn {
    min-width: 36px;
    font-weight: 700;
    color: #2e86ab;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 1px;
}

.legal-cookie-option em {
    font-style: normal;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Liste droits */
.legal-content ul {
    padding-left: 20px;
    margin: 10px 0 16px;
}

.legal-content ul li {
    margin-bottom: 6px;
}

.legal-content ul li::marker {
    color: #2e86ab;
}

/* ===== MailPoet - pages newsletter ===== */

.page-newsletter {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: #f4f7fa;
    border-radius: 12px;
    border: 1px solid #dde3ea;
    text-align: center;
    font-size: 16px;
    color: #444;
    line-height: 1.7;
}

.page-newsletter .mailpoet-manage-subscription .mailpoet_submit {
    background: #1A9CD8 !important;
    color: #fff !important;
    border: none !important;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    width: 100%;
}

.mailpoet-manage-subscription .mailpoet_submit:hover {
    background: #1585ba !important;
}

.mailpoet-change-email-info {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 4px;
}

/* ===== Carrusel logos — normalisation ===== */

.elementor-image-carousel .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent;
    padding: 10px 20px;
    margin: 0;
    box-sizing: border-box;
    position: relative;
}

.elementor-image-carousel .swiper-slide::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: #fff;
    border-radius: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
    z-index: 0;
}

.elementor-image-carousel .swiper-slide:hover::before {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.elementor-image-carousel .swiper-slide img {
    position: relative;
    z-index: 1;
    width: auto !important;
    height: 90px !important;
    max-width: 150px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

.elementor-image-carousel {
    overflow: visible !important;
    padding: 10px 0 !important;
}
