/*
Theme Name: megdev - OBV
Theme URI: https://megdev.com
Author: megdev
Author URI: https://megdev.com
Description: Thème WordPress sur mesure pour Opticien Basse Vision
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: megdev-obv
Tags: custom, responsive, basse-vision
*/

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   GESTION DES VERSIONS MOBILE/DESKTOP
   ============================================ */

/* Par défaut : afficher desktop, masquer mobile */
.section-title-desktop,
.products-section-title-desktop,
.services-section-title-desktop,
.about-section-title-desktop,
.reviews-section-title-desktop,
.agents-map-homepage-title-desktop,
.about-text-desktop,
.agents-map-homepage-text-desktop,
.service-text-desktop {
    display: block;
}

.section-title-mobile,
.products-section-title-mobile,
.services-section-title-mobile,
.about-section-title-mobile,
.reviews-section-title-mobile,
.agents-map-homepage-title-mobile,
.about-text-mobile,
.agents-map-homepage-text-mobile,
.service-text-mobile {
    display: none;
}

/* Hero (slideshow) : variante mobile uniquement ≤400px */
.hero-title-desktop,
.hero-subtitle-desktop,
.hero-text-desktop {
    display: block;
}

.hero-title-mobile,
.hero-subtitle-mobile,
.hero-text-mobile {
    display: none;
}

@media (max-width: 400px) {
    .hero-title-desktop,
    .hero-subtitle-desktop,
    .hero-text-desktop {
        display: none;
    }

    .hero-title-mobile,
    .hero-subtitle-mobile,
    .hero-text-mobile {
        display: block;
    }
}

/* Sur mobile : masquer desktop, afficher mobile */
@media (max-width: 768px) {
    .section-title-desktop,
    .products-section-title-desktop,
    .services-section-title-desktop,
    .about-section-title-desktop,
    .reviews-section-title-desktop,
    .agents-map-homepage-title-desktop,
    .about-text-desktop,
    .agents-map-homepage-text-desktop,
    .service-text-desktop {
        display: none;
    }
    
    .section-title-mobile,
    .products-section-title-mobile,
    .services-section-title-mobile,
    .about-section-title-mobile,
    .reviews-section-title-mobile,
    .agents-map-homepage-title-mobile,
    .about-text-mobile,
    .agents-map-homepage-text-mobile,
    .service-text-mobile {
        display: block;
    }

    /*
     * Titres : si desktop = mobile, le thème n’affiche qu’un seul h2 (…-desktop).
     * Sans cette règle, le masquage de *-title-desktop laisse l’écran vide.
     */
    .products-container > .products-section-title-desktop:first-of-type:last-of-type,
    .reviews-container > .reviews-section-title-desktop:first-of-type:last-of-type,
    .about-container > .about-section-title-desktop:first-of-type:last-of-type,
    .services-container > .services-section-title-desktop:first-of-type:last-of-type,
    .agents-map-header-content > .agents-map-homepage-title-desktop:first-of-type:last-of-type {
        display: block;
    }
}

/* ============================================
   STYLES POUR L'AUTOCOMPLÉTION DES DÉPARTEMENTS
   ============================================ */

.departments-autocomplete-wrapper {
    position: relative;
    max-width: 400px;
}

.departments-autocomplete-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.departments-autocomplete-input:focus {
    outline: none;
    border-color: #3F91CD;
    box-shadow: 0 0 0 2px rgba(63, 145, 205, 0.1);
}

.departments-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: -1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.departments-autocomplete-results .autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.departments-autocomplete-results .autocomplete-item:hover {
    background-color: #f5f5f5;
}

.departments-autocomplete-results .autocomplete-item:last-child {
    border-bottom: none;
}

.departments-autocomplete-results .autocomplete-item strong {
    color: #3F91CD;
    font-weight: 600;
}

.departments-chips-container {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.department-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #3F91CD;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.department-chip .chip-remove {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.department-chip .chip-remove:hover {
    opacity: 1;
}

/* ============================================
   STYLES MENU - PRIORITÉ MAXIMALE
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    overflow-x: hidden;
}

/* ============================================
   LAYOUT
   ============================================ */

.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 0; /* Sera ajusté dynamiquement par JS si nécessaire */
    max-width: 100%;
    overflow-x: hidden;
}

.site-main {
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    width: 100%;
    background: #ffffff;
    box-shadow: none !important;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

/* Ajouter une ombre au scroll */
.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #205983;
    text-decoration: none;
    margin: 0;
}

.site-title:hover {
    color: #3F91CD;
}

.custom-logo {
    aspect-ratio: 538 / 73;
    width: 450px;
    height: auto;
    max-height: 61px;
    display: block;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain;
}

.custom-logo-svg {
    aspect-ratio: 538 / 73 !important;
    width: 450px !important;
    height: auto !important;
    max-height: 61px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain;
}

/* Forcer l'affichage des SVG dans le header - Desktop */
.site-branding .custom-logo-svg,
.site-branding img[src$=".svg"],
.site-branding img[src$=".svgz"],
.site-branding .custom-logo-link img[src*=".svg"],
.site-branding img.custom-logo-svg {
    aspect-ratio: 538 / 73 !important;
    width: 450px !important;
    max-width: 450px !important;
    height: auto !important;
    max-height: 61px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
    object-fit: contain;
}

/* S'assurer que le conteneur du logo est visible */
.site-branding {
    min-height: 73px;
    display: flex !important;
    align-items: center !important;
    position: relative;
    z-index: 10;
}

.site-branding .custom-logo-link {
    display: inline-block !important;
    line-height: 0 !important;
    width: 350px;
    max-width: 450px;
    min-width: 350px;
    position: relative;
    z-index: 10;
}

.custom-logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
    max-width: 100%;
}

.site-branding img.custom-logo {
    aspect-ratio: 538 / 73;
    width: 450px;
    max-width: 450px;
    height: auto;
    max-height: 61px;
    object-fit: contain;
}

.site-branding img.custom-logo-svg {
    aspect-ratio: 538 / 73 !important;
    width: 450px !important;
    max-width: 450px !important;
    height: auto !important;
    max-height: 61px !important;
    object-fit: contain;
}

/* Forcer l'affichage de tous les SVG dans le header - règles très spécifiques */
header .site-branding img[src*=".svg"],
header .site-branding .custom-logo-svg,
#site-header .site-branding img.custom-logo-svg,
.site-header .site-branding img[src*=".svg"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    aspect-ratio: 538 / 73 !important;
    box-sizing: border-box !important;
    width: 355px !important;
    max-width: 495px !important;
    height: auto !important;
    max-height: 61px !important;
    background: transparent !important;
    border: none !important;
}


/* Navigation */
.site-navigation {
    flex: 1;
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 20px;
}

/* Forcer les styles de base pour tous les liens de menu */
.site-navigation a:not(.header-cta-button),
#site-navigation a:not(.header-cta-button) {
    color: #333 !important;
    text-decoration: none !important;
}

.main-navigation-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-navigation,
.main-navigation ul,
#primary-menu {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* S'assurer que le menu principal est bien un ul */
#primary-menu.main-navigation {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-navigation ul li {
    margin: 0;
    position: relative;
}

/* S'assurer que les items avec sous-menu ont position relative */
.main-navigation ul li.menu-item-has-children,
.main-navigation li.menu-item-has-children {
    position: relative;
}

/* Forcer l'affichage au survol avec un sélecteur plus spécifique */
.main-navigation li.menu-item-has-children:hover ul.sub-menu,
.main-navigation li.menu-item-has-children:hover > ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: flex !important;
}

/* Styles pour les liens de menu de premier niveau uniquement */
.main-navigation > ul > li > a,
.main-navigation ul > li > a,
#primary-menu > li > a,
.main-navigation li > a:not(.sub-menu a),
#site-navigation .main-navigation ul > li > a,
#site-navigation #primary-menu > li > a {
    color: #333 !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1rem;
    /* font-weight: 500 !important; */
    padding: 8px 1px !important;
    transition: color 0.3s ease !important;
    display: block !important;
    white-space: nowrap !important;
    position: relative !important;
    line-height: 1.5 !important;
}

/* Hover et états actifs pour les liens de premier niveau */
.main-navigation > ul > li > a:hover,
.main-navigation ul > li > a:hover,
#primary-menu > li > a:hover,
.main-navigation li > a:not(.sub-menu a):hover,
#site-navigation .main-navigation ul > li > a:hover,
#site-navigation #primary-menu > li > a:hover,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation ul > li.current-menu-item > a,
.main-navigation > ul > li.current-page-ancestor > a,
.main-navigation ul > li.current-page-ancestor > a,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-page-ancestor > a {
    color: #205983 !important;
}

/* Menu déroulant - Icône flèche */
.main-navigation ul li.menu-item-has-children > a::after,
.main-navigation li.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 12px;
    display: inline-block;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.main-navigation ul li.menu-item-has-children:hover > a::after,
.main-navigation li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Sous-menu WordPress (classe .sub-menu) - Tous les sélecteurs possibles */
.main-navigation ul ul,
.main-navigation .sub-menu,
.main-navigation ul li ul,
.main-navigation li ul,
#primary-menu ul ul,
#primary-menu .sub-menu,
#primary-menu li ul {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #ffffff !important;
    min-width: 220px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
    border-radius: 6px !important;
    z-index: 9999 !important;
    display: flex !important;
    list-style: none !important;
    margin-left: 0 !important;
}

/* Afficher le sous-menu au survol - Sélecteurs multiples pour assurer la compatibilité */
.main-navigation ul li:hover > ul,
.main-navigation ul li:hover > .sub-menu,
.main-navigation ul li.menu-item-has-children:hover > ul,
.main-navigation ul li.menu-item-has-children:hover > .sub-menu,
.main-navigation li.menu-item-has-children:hover ul,
.main-navigation li.menu-item-has-children:hover .sub-menu,
.main-navigation li:hover ul.sub-menu,
.main-navigation li:hover > ul,
#primary-menu li.menu-item-has-children:hover ul,
#primary-menu li.menu-item-has-children:hover .sub-menu,
#primary-menu li:hover ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: flex !important;
}

/* Items du sous-menu */
.main-navigation ul ul li,
.main-navigation .sub-menu li {
    width: 100%;
    margin: 0;
    position: relative;
}

ul.sub-menu li {
    padding-left: 9px !important;
}

/* Liens du sous-menu (second niveau) */
.main-navigation ul ul li a,
.main-navigation .sub-menu li a,
.main-navigation ul ul ul li a,
.main-navigation .sub-menu .sub-menu li a {
    padding: 12px 20px 12px 24px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px !important;
    display: block;
    width: 100%;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.main-navigation ul ul li a:hover,
.main-navigation .sub-menu li a:hover {
    background: #f5f5f5;
    color: #205983;
    border-left-color: #205983;
}

/* Sous-menu de niveau 3 */
.main-navigation ul ul ul,
.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 8px;
}

/* Aligner à droite si le sous-menu dépasse */
.main-navigation ul li.menu-item-has-children:last-child > ul,
.main-navigation ul li.menu-item-has-children:last-child > .sub-menu {
    left: auto;
    right: 0;
}

.main-navigation ul li.menu-item-has-children:last-child > ul ul,
.main-navigation ul li.menu-item-has-children:last-child > .sub-menu .sub-menu {
    left: auto;
    right: 100%;
    margin-right: 8px;
}

/* Bouton CTA dans le header */
.header-cta-button {
    display: inline-block;
    background: #205983;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(32, 89, 131, 0.3);
    border: none;
    font-family: "Archivo Narrow", sans-serif;
}

.header-cta-button:hover {
    background: #1a4a6b;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(32, 89, 131, 0.4);
}

.header-cta-phone-icon {
    margin-right: 8px;
    font-size: 0.9em;
    vertical-align: middle;
}

/* ============================================
   ICÔNE PANIER HEADER
   ============================================ */

.header-cart-wrapper {
    display: flex;
    align-items: center;
    margin-left: -9px;
    flex-shrink: 0;
}

.header-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #205983;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.header-cart-link:hover {
    background: rgba(32, 89, 131, 0.1);
    color: #3F91CD;
}

.header-cart-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.header-cart-icon-default {
    font-size: 22px;
    line-height: 1;
}

.header-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #3F91CD;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(63, 145, 205, 0.3);
}

/* ============================================
   CANVAS PANIER (détail produits + boutons)
   ============================================ */

.cart-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.cart-canvas.active {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.cart-canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.cart-canvas-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: #fff;
    z-index: 2;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-canvas.active .cart-canvas-content {
    transform: translateX(0);
}

.cart-canvas-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: #205983;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.cart-canvas-close:hover {
    color: #3F91CD;
}

.cart-canvas-title {
    margin: 0;
    padding: 20px 60px 16px 20px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
}

.cart-canvas-inner {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-canvas .widget_shopping_cart_content {
    margin-bottom: 20px;
}

/* Liste des produits – photo à gauche, détail à droite (priorité sur WooCommerce) */
.cart-canvas .cart-canvas-list,
.cart-canvas .woocommerce-mini-cart.cart-canvas-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    border: none !important;
}

.cart-canvas .cart-canvas-item,
.cart-canvas .woocommerce-mini-cart-item.cart-canvas-item {
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: #f8f9fa !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid #e9ecef !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Photo à gauche */
.cart-canvas .cart-canvas-item-image {
    flex-shrink: 0 !important;
    width: 90px !important;
    min-height: 90px !important;
    background: #fff !important;
    overflow: hidden !important;
}

.cart-canvas .cart-canvas-item-image a,
.cart-canvas .cart-canvas-item-image img,
.cart-canvas .cart-canvas-item-img {
    display: block !important;
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    object-fit: cover !important;
    margin: 0 !important;
}

/* Détails à droite */
.cart-canvas .cart-canvas-item-details {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 6px !important;
}

.cart-canvas .cart-canvas-item-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

.cart-canvas .cart-canvas-item-name {
    flex: 1 !important;
    min-width: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.cart-canvas .cart-canvas-item-name:hover {
    color: #205983 !important;
}

/* Corbeille pour supprimer */
.cart-canvas .cart-canvas-item-remove {
    flex-shrink: 0 !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #6c757d !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: color 0.2s ease, background 0.2s ease !important;
}

.cart-canvas .cart-canvas-item-remove:hover {
    color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.08) !important;
}

.cart-canvas .cart-canvas-item-remove i {
    font-size: 14px !important;
}

.cart-canvas .cart-canvas-item-meta {
    font-size: 0.85rem !important;
    color: #495057 !important;
}

.cart-canvas .cart-canvas-item-meta .quantity {
    font-weight: 500 !important;
}

/* Données produit (variations etc.) */
.cart-canvas .cart-canvas-item-details .variation {
    margin: 4px 0 0 !important;
    font-size: 0.8rem !important;
    color: #6c757d !important;
}

.cart-canvas .cart-canvas-item-details .variation dt,
.cart-canvas .cart-canvas-item-details .variation dd {
    display: inline !important;
    margin: 0 !important;
}

.cart-canvas .cart-canvas-item-details .variation dd {
    margin-left: 4px !important;
}

/* Total */
.cart-canvas .cart-canvas-total,
.cart-canvas .woocommerce-mini-cart__total.cart-canvas-total {
    margin: 16px 0 0 !important;
    padding: 14px 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #205983 !important;
    border-top: 2px solid #e9ecef !important;
}

.cart-canvas .cart-canvas-empty-msg {
    text-align: center !important;
    color: #6c757d !important;
    padding: 24px 16px !important;
    margin: 0 !important;
}

/* Masquer les boutons par défaut du mini-cart (on affiche les nôtres) */
.cart-canvas .woocommerce-mini-cart__buttons {
    display: none !important;
}

.cart-canvas-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.cart-canvas-btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cart-canvas-btn-view {
    background: #f0f0f0;
    color: #333;
}

.cart-canvas-btn-view:hover {
    background: #e0e0e0;
    color: #333;
}

.cart-canvas-btn-checkout {
    background: #205983;
    color: #fff;
}

.cart-canvas-btn-checkout:hover {
    background: #1a4a6b;
    color: #fff;
}

.cart-canvas-empty {
    margin: 0 0 16px;
    color: #666;
}

body.cart-canvas-open {
    overflow: hidden;
}

/* ============================================
   TOAST "Produit ajouté au panier"
   ============================================ */

.cart-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: #205983;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(32, 89, 131, 0.4);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    max-width: calc(100% - 32px);
    font-size: 0.95rem;
    font-weight: 500;
}

.cart-toast.cart-toast-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.cart-toast-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
}

.cart-toast-text {
    line-height: 1.3;
}

/* Footer Navigation */
.footer-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-navigation ul li {
    margin: 0;
}

.footer-navigation ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-navigation ul li a:hover {
    color: #3F91CD;
}

/* ============================================
   FOOTER
   ============================================ */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.site-footer {
    width: 100%;
    background: #205983;
    color: #ffffff;
    padding: 40px 30px;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-positions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 30px;
    width: 100%;
}

.footer-position {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-position:first-child {
    padding-left: 0;
}

.footer-position:last-child {
    padding-right: 0;
}

.footer-position-separator {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    margin: 0 20px;
    min-height: 100px;
}

/* Logo dans le footer */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Texte de contact dans le footer */
.footer-contact-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact-text p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact-text a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-text a:hover {
    color: #ffffff;
}

/* Navigation dans le footer */
.footer-navigation {
    margin-bottom: 20px;
}

/* Bouton accordéon - Masqué sur desktop */
.footer-menu-toggle {
    display: none;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.footer-navigation ul li {
    margin: 0;
}

.footer-navigation ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
}

.footer-navigation ul li a:hover {
    color: #ffffff;
}

/* Réseaux sociaux */
.footer-social-networks {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-social-networks .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.footer-social-networks .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
}

.footer-widget {
    margin-bottom: 20px;
}

.footer-widget h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-widget p,
.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
}

.footer-widget a:hover {
    color: #ffffff;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    grid-column: 1 / -1;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-positions {
        flex-wrap: wrap;
    }
    
    .footer-position {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px 20px;
    }
    
    .footer-positions {
        flex-direction: column;
    }
    
    .footer-position {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0 25px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 25px;
    }
    
    .footer-position:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .footer-position-separator {
        display: none;
    }
    
    /* Position 1 : Logo + Contact - Centré sur mobile */
    .footer-position-1 {
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
    }
    
    .footer-logo-img {
        max-width: 200px;
        height: auto;
    }
    
    .footer-contact-text {
        font-size: 13px;
        line-height: 1.6;
        text-align: center;
    }
    
    /* Boutons accordéon pour les menus - Affichés uniquement sur mobile (icône burger) */
    .footer-menu-toggle {
        display: flex;
        width: 100%;
        min-height: 48px;
        background: transparent;
        border: none;
        color: #ffffff;
        padding: 12px 0;
        cursor: pointer;
        justify-content: flex-end;
        align-items: center;
        transition: opacity 0.3s ease;
    }
    
    .footer-menu-toggle:hover,
    .footer-menu-toggle:focus {
        opacity: 0.92;
        outline: 2px solid rgba(255, 255, 255, 0.6);
        outline-offset: 4px;
    }
    
    .footer-menu-burger {
        position: relative;
        width: 26px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .footer-menu-burger-line {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: #ffffff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
    }
    
    .footer-menu-burger-line:nth-child(1) {
        top: 0;
    }
    
    .footer-menu-burger-line:nth-child(2) {
        top: 7.5px;
    }
    
    .footer-menu-burger-line:nth-child(3) {
        top: 15px;
    }
    
    .footer-menu-toggle[aria-expanded="true"] .footer-menu-burger-line:nth-child(1) {
        top: 7.5px;
        transform: rotate(45deg);
    }
    
    .footer-menu-toggle[aria-expanded="true"] .footer-menu-burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .footer-menu-toggle[aria-expanded="true"] .footer-menu-burger-line:nth-child(3) {
        top: 7.5px;
        transform: rotate(-45deg);
    }
    
    /* Navigation footer - Masquée par défaut sur mobile */
    .footer-navigation {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
        margin: 0;
    }
    
    .footer-navigation.active {
        max-height: 500px;
        padding-top: 10px;
        padding-bottom: 5px;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-navigation ul li a {
        padding: 8px 0;
        font-size: 14px;
    }
    
    /* Réseaux sociaux - Centrés et taille adaptée */
    .footer-position-4 {
        text-align: center;
    }
    
    .footer-social-networks {
        justify-content: center;
        gap: 12px;
    }
    
    .footer-social-networks .social-link {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    /* Copyright - Texte plus petit */
    .site-info {
        font-size: 12px;
        padding-top: 15px;
        margin-top: 15px;
    }
}

/* ============================================
   CONTENT
   ============================================ */

.content-area {
    width: 100%;
    max-width: 100%;
    padding: 40px 30px;
}

.entry-content {
    max-width: 1200px;
    margin: 0 auto;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 1.5em;
    margin-bottom: 1em;
    color: #205983;
}

.entry-content h1 {
    font-size: 2.5em;
}

.entry-content h2 {
    font-size: 2em;
}

.entry-content h3 {
    font-size: 1.75em;
}

/* ============================================
   MENU MOBILE
   ============================================ */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #205983;
    cursor: pointer;
    padding: 10px;
    order: 2;
}

.menu-toggle:hover {
    color: #3F91CD;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .header-container {
        gap: 20px;
    }
    
    .main-navigation ul {
        gap: 20px;
    }
    
    /* Réduire la taille du logo sur tablette - respecter le ratio 538:73 */
    .site-branding .custom-logo-link {
        max-width: 400px;
    }
    .site-branding img.custom-logo,
    .site-branding img.custom-logo-svg {
        max-width: 400px !important;
        max-height: 54px !important; /* 400 * 73 / 538 ≈ 54px */
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 15px 15px;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        align-items: center;
        gap: 10px;
    }
    
    /* Logo prend le maximum de largeur sur mobile */
    .site-branding {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex: 1;
        order: 1;
        min-width: 0;
        overflow: hidden;
        max-width: calc(100% - 110px); /* Réserver de l'espace pour le panier et le burger */
    }
    
    .site-branding .custom-logo-link {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        overflow: hidden;
    }
    
    /* Menu burger aligné à droite */
    .menu-toggle {
        display: block;
        order: 2;
        margin-left: 15px;
    }
    
    /* Cacher le bouton "Trouver un agent" sur mobile */
    .header-cta-button {
        display: none !important;
    }
    
    /* Icône panier sur mobile - à côté du menu burger */
    .header-cart-wrapper {
        order: 1;
        margin-left: 15px;
        margin-right: 0;
    }
    
    .header-cart-link {
        width: 36px;
        height: 36px;
    }
    
    .header-cart-icon {
        width: 20px;
        height: 20px;
    }
    
    .header-cart-icon-default {
        font-size: 20px;
    }
    
    .header-cart-count {
        font-size: 10px;
        min-width: 16px;
        height: 16px;
        top: -4px;
        right: -4px;
    }
    
    /* Forcer le redimensionnement des logos SVG sur mobile - règles très spécifiques pour surcharger les !important */
    .site-branding img.custom-logo,
    .site-branding img.custom-logo-svg,
    .site-branding .custom-logo-svg,
    .site-branding img[src$=".svg"],
    .site-branding img[src$=".svgz"],
    .site-branding .custom-logo-link img[src*=".svg"],
    header .site-branding img[src*=".svg"],
    header .site-branding .custom-logo-svg,
    #site-header .site-branding img.custom-logo-svg,
    .site-header .site-branding img[src*=".svg"],
    .site-header .site-branding .custom-logo-link img[src*=".svg"],
    #site-header .site-branding .custom-logo-link img[src*=".svg"] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-width: 0 !important;
        object-fit: contain !important;
        box-sizing: border-box !important;
    }
    
    /* Surcharger aussi les règles avec aspect-ratio sur mobile */
    .site-branding .custom-logo-link img[src*=".svg"],
    .site-branding img.custom-logo-svg {
        aspect-ratio: 538 / 73 !important;
    }
    
    .site-navigation {
        display: none !important;
    }
    
    .menu-toggle {
        display: block;
        order: 2;
        margin-left: 15px;
    }
    
    /* Icône panier sur mobile - entre logo et burger */
    .header-cart-wrapper {
        order: 2;
        margin-left: auto;
        margin-right: 0;
    }
}

/* ============================================
   MENU BURGER CANVAS PLEIN ÉCRAN
   ============================================ */

.burger-menu-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.burger-menu-canvas.active {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.burger-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.burger-menu-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: #ffffff;
    z-index: 2;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 80px 30px 30px;
    box-sizing: border-box;
}

.burger-menu-canvas.active .burger-menu-content {
    transform: translateX(0);
}

.burger-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #205983;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    transition: color 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger-menu-close:hover {
    color: #3F91CD;
}

.burger-menu-navigation {
    width: 100%;
}

.burger-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.burger-menu-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e9ecef;
}

.burger-menu-list li:last-child {
    border-bottom: none;
}

.burger-menu-list a {
    display: block;
    padding: 15px 0;
    color: #205983;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.burger-menu-list a:hover {
    color: #3F91CD;
}

.burger-menu-list .menu-item-has-children > a {
    position: relative;
    padding-right: 40px;
}

.burger-menu-list .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.burger-menu-list .menu-item-has-children.active > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.burger-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background-color: #f8f9fa;
    padding-left: 20px;
}

.burger-menu-list .sub-menu li {
    border-bottom: 1px solid #e9ecef;
}

.burger-menu-list .sub-menu a {
    font-size: 16px;
    padding: 12px 0;
    color: #495057;
}

.burger-menu-list .sub-menu a:hover {
    color: #3F91CD;
}

.burger-menu-list .sub-menu .sub-menu {
    padding-left: 20px;
    background-color: #f1f3f5;
}

.burger-menu-list .sub-menu .sub-menu a {
    font-size: 15px;
}

/* Empêcher le scroll du body quand le menu est ouvert */
body.burger-menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .burger-menu-content {
        max-width: 100%;
        padding: 70px 20px 20px;
    }
    
    .burger-menu-close {
        top: 15px;
        right: 15px;
        font-size: 24px;
    }
    
    .burger-menu-list a {
        font-size: 16px;
    }
    
    .burger-menu-list .sub-menu a {
        font-size: 15px;
    }
    
    .main-navigation-wrapper {
        width: 100%;
        display: none;
    }
    
    .main-navigation-wrapper.toggled {
        display: block;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
    }
    
    .main-navigation ul li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .main-navigation ul li a {
        padding: 15px 0;
    }
    
    /* Sous-menu en mobile */
    .main-navigation ul ul,
    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f5f5f5;
        margin: 0;
        padding: 0;
        display: none;
        flex-direction: column;
    }
    
    .main-navigation ul li.menu-item-has-children.active > ul,
    .main-navigation ul li.menu-item-has-children.active > .sub-menu {
        display: block;
    }
    
    .main-navigation ul li.menu-item-has-children > a {
        position: relative;
    }
    
    .main-navigation ul li.menu-item-has-children > a::after {
        position: absolute;
        right: 0;
    }
    
    .header-cta-button {
        width: 100%;
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-area {
        padding: 30px 20px;
    }
    
    .entry-content h1 {
        font-size: 2em;
    }
    
    .entry-content h2 {
        font-size: 1.75em;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 15px;
    }
    
    /* Logo sur très petits écrans */
    .site-branding {
        max-width: calc(100% - 50px); /* Moins d'espace pour le burger sur petits écrans */
    }
    
    .site-branding .custom-logo-link {
        width: 100%;
        max-width: 100%;
    }
    
    .menu-toggle {
        padding: 4px;
        font-size: 25px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .content-area {
        padding: 20px 15px;
    }
}

/* ============================================
   SECTION HERO
   Image pleine largeur avec texte superposé
   ============================================ */

.hero-section {
    width: 100%;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Container des slides */
.hero-slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Slide individuel */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Image en arrière-plan pleine largeur */
.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Images desktop et mobile */
.hero-img-desktop {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-mobile {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 400px) {
    .hero-img-desktop {
        display: none;
    }
    
    .hero-img-mobile {
        display: block;
    }
}

/* Pas d'overlay - image visible à 100% */
.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 30px;
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
}

.hero-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #205983 !important;
    margin: 0;
    line-height: 1.2;
    text-shadow: none !important;
}

.hero-subtitle {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #205983;
    margin: 0;
    line-height: 1.3;
}

.hero-text {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Textes desktop et mobile des boutons */
.hero-button-text-desktop {
    display: inline;
}

.hero-button-text-mobile {
    display: none;
}

@media (max-width: 400px) {
    .hero-button-text-desktop {
        display: none;
    }
    
    .hero-button-text-mobile {
        display: inline;
    }
}

.hero-button {
    display: inline-block;
    background: linear-gradient(135deg, #3F91CD 0%, #5BA3E0 100%);
    color: #ffffff !important;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 8px !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(63, 145, 205, 0.3);
    border: none;
    white-space: nowrap;
}

.hero-button-1 {
    background: linear-gradient(135deg, #3F91CD 0%, #5BA3E0 100%);
}

.hero-button-2 {
    background: #205983 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(32, 89, 131, 0.3);
}

.hero-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(32, 89, 131, 0.4);
    color: #ffffff !important;
}

.hero-button-1:hover {
    background: linear-gradient(135deg, #205983 0%, #3F91CD 100%);
}

.hero-button-2:hover {
    background: #1a4a6b !important;
    color: #ffffff !important;
}

/* Contrôles du diaporama */
.hero-slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.hero-slider-prev,
.hero-slider-next {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    color: #205983;
    font-size: 18px;
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-slider-dots .dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-container {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
}

/* Hero / slideshow : mise en page compacte et images « mobile » (≤400px, après règles 1024) */
@media (max-width: 400px) {
    .hero-section {
        width: 375px;
        max-width: 100%;
        height: 210px;
        min-height: 210px;
        margin: 0 auto;
    }
    
    .hero-container {
        padding: 8px 12px;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-direction: column;
        height: 100%;
    }
    
    .hero-content {
        max-width: 100%;
        gap: 3px;
        width: 100%;
        flex: 1;
    }
    
    .hero-title {
        font-size: 16px !important;
        line-height: 1.1 !important;
        margin: 25px 0px 8px 10px !important;
        max-width: 60%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 12px !important;
        line-height: 1.2 !important;
        margin: 0px 0px 0px 10px !important;
        max-width: 60%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-text {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        max-width: 60%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        overflow: visible !important;
    }
    
    .hero-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        width: 85%;
        gap: 18px;
        margin-top: auto;
        margin-bottom: 19px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    .hero-button {
        font-size: 11px;
        padding: 9px 0px;
        flex: 1;
        width: 93px;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
    }
    
    .hero-slider-controls {
        padding: 0 5px;
    }
    
    .hero-slider-prev,
    .hero-slider-next {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .hero-slider-dots {
        display: none !important;
    }
}

/* ============================================
   SECTION RÉASSURANCE
   ============================================ */

.reassurance-section {
    width: 100%;
    height: 108px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
}

.reassurance-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
}

.reassurance-items {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    width: 100%;
    gap: 20px;
}

.reassurance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    gap: 8px;
    text-align: center;
}

.reassurance-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
    flex-shrink: 0;
}

.reassurance-icon-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.reassurance-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

/* Responsive pour la section réassurance */
@media (max-width: 1024px) {
    .reassurance-section {
        height: auto;
        min-height: 108px;
        padding: 15px 0;
    }
    
    .reassurance-container {
        padding: 0 20px;
    }
    
    .reassurance-items {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .reassurance-item {
        flex: 0 0 calc(50% - 10px);
        min-width: 150px;
    }
    
    .reassurance-text {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .section-title, .products-section-title, .services-section-title, .about-section-title, .reviews-section-title, .agents-map-homepage-title {
        word-wrap: break-word;
        hyphens: auto;
        font-size: 22px !important;
    }
    
    .reassurance-section {
        height: auto;
        min-height: auto;
        padding: 20px 0;
    }
    
    .reassurance-container {
        padding: 0 15px;
    }
    
    .reassurance-items {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: space-between;
    }
    
    .reassurance-item {
        flex: 0 0 calc(50% - 7.5px);
        width: calc(50% - 7.5px);
        padding: 10px 0;
        min-width: 0;
    }
    
    .reassurance-icon {
        height: 40px;
        width: 40px;
    }
    
    .reassurance-text {
        font-size: 12px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .reassurance-section {
        padding: 15px 0;
        height: auto;
    }
    
    .reassurance-container {
        padding: 0 10px;
    }
    
    .reassurance-items {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-around;
        gap: 10px;
    }
    
    .reassurance-item {
        flex: 1;
        position: relative;
        padding: 8px 0;
        cursor: pointer;
    }
    
    .reassurance-icon {
        height: 40px;
        width: 40px;
        margin: 0 auto;
    }
    
    .reassurance-text {
        display: none !important;
    }
    
    .reassurance-tooltip {
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #333;
        color: #fff;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 12px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        margin-bottom: 8px;
        z-index: 1000;
        pointer-events: none;
        max-width: 200px;
        min-width: 120px;
        white-space: normal;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    .reassurance-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: #333;
    }
    
    .reassurance-item.active .reassurance-tooltip {
        opacity: 1;
        visibility: visible;
    }
    
    .section, .products-section, .services-section, .about-section, .google-reviews-section, .agents-map-homepage-section {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 0;
    }
    
    .products-section {
        padding: 0px 15px;
    }
}

/* ============================================
   SECTION PRODUITS WOOCOMMERCE
   ============================================ */

.products-section {
    width: 100%;
    padding: 20px 30px;
    background: #ffffff;
    box-shadow: none !important;
    margin: 0;
    margin-bottom: 20px;
}

/* Masquer les prix dans la section produits phares */
.products-section .product-price,
.products-section .price,
.products-section .woocommerce-Price-amount {
    display: none !important;
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.products-section-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #205983;
    margin: 0 0 0px 0;
    text-align: center;
}

.products-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 0px;
    align-items: stretch;
}

.products-carousel {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    position: relative;
    will-change: transform;
    width: 100%;
    align-items: stretch;
}

.products-carousel .product-item {
    flex: 0 0 calc((100% - 90px) / 4);
    min-width: calc((100% - 90px) / 4);
    max-width: calc((100% - 90px) / 4);
    margin-right: 0;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive pour le carrousel */
@media (max-width: 1200px) {
    .products-carousel .product-item {
        flex: 0 0 calc((100% - 60px) / 3);
        min-width: calc((100% - 60px) / 3);
        max-width: calc((100% - 60px) / 3);
    }
}

@media (max-width: 768px) {
    .products-carousel .product-item {
        flex: 0 0 calc((100% - 30px) / 2);
        min-width: calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 480px) {
    .products-carousel {
        gap: 0 !important;
        justify-content: flex-start;
    }
    
    .products-carousel .product-item {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .products-wrapper {
        overflow: hidden;
        position: relative;
    }
    
    /* Désactiver les clics sur les produits en mobile, sauf le bouton */
    .products-section .product-item {
        pointer-events: none;
    }
    
    .products-section .product-item .product-thumbnail a,
    .products-section .product-item .product-title a {
        pointer-events: none;
        cursor: default;
    }
    
    .products-section .product-item .product-actions,
    .products-section .product-item .product-actions *,
    .products-section .product-item .add_to_cart_button,
    .products-section .product-item .button {
        pointer-events: auto;
        cursor: pointer;
    }
}

/* Masquer le lien "Voir le panier" ajouté par WooCommerce après "Ajouter au panier" */
.products-section .added_to_cart,
.products-section .wc-forward.added_to_cart {
    display: none !important;
}

/* Produits phares : ne pas afficher les boutons (Ajouter au panier, etc.) */
.products-section .product-actions,
.products-section .product-item .product-actions {
    display: none !important;
}

/* Contrôles du carrousel */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    background: #205983;
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 11;
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #3F91CD;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 0;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #205983;
    width: 30px;
    border-radius: 6px;
}

.product-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: stretch;
}

.product-item:hover {
    border-color: #3F91CD;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.product-thumbnail {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.product-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #205983;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.product-title a {
    color: #205983;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #3F91CD;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #205983;
    margin-bottom: 15px;
}

.product-price .woocommerce-Price-amount {
    color: #205983;
}

.product-actions {
    margin-top: auto;
}

.product-actions .button,
.product-actions .add_to_cart_button {
    background: linear-gradient(135deg, #3F91CD 0%, #5BA3E0 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(63, 145, 205, 0.3) !important;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-family: "Archivo Narrow", sans-serif;
}

/* Alternance des couleurs pour les boutons produits (comme dans la maquette) */
.product-item:nth-child(odd) .product-actions .button,
.product-item:nth-child(odd) .product-actions .add_to_cart_button {
    background: linear-gradient(135deg, #3F91CD 0%, #5BA3E0 100%) !important;
    box-shadow: 0 2px 4px rgba(63, 145, 205, 0.3) !important;
}

.product-item:nth-child(even) .product-actions .button,
.product-item:nth-child(even) .product-actions .add_to_cart_button {
    background: #205983 !important;
    box-shadow: 0 2px 4px rgba(32, 89, 131, 0.3) !important;
}

.product-actions .button:hover,
.product-actions .add_to_cart_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(32, 89, 131, 0.4) !important;
    color: #ffffff !important;
}

.product-item:nth-child(odd) .product-actions .button:hover,
.product-item:nth-child(odd) .product-actions .add_to_cart_button:hover {
    background: linear-gradient(135deg, #205983 0%, #3F91CD 100%) !important;
}

.product-item:nth-child(even) .product-actions .button:hover,
.product-item:nth-child(even) .product-actions .add_to_cart_button:hover {
    background: #1a4a6b !important;
}

/* Responsive pour la section Produits */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .carousel-prev {
        left: -15px;
    }
    
    .carousel-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 60px 20px;
    }
    
    .products-section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: -10px;
    }
    
    .carousel-next {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: 0px 15px;
    }
    
    .products-section-title {
        font-size: 28px;
        margin-bottom: 0px;
        line-height: 1.3;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-carousel-wrapper {
        padding: 0 10px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
        background: #3f91cd9c;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .products-carousel .product-item {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

/* ============================================
   SECTION AVIS GOOGLE
   ============================================ */

.google-reviews-section {
    width: 100%;
    padding: 20px 30px;
    background: #f9f9f9;
    box-shadow: none !important;
    margin: 0;
    margin-bottom: 20px;
}

.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.reviews-section-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #205983;
    margin: 0 0 50px 0;
    text-align: center;
}

.reviews-content {
    width: 100%;
    margin-top: 30px;
}

/* Styles pour le contenu Trustindex.io */
.reviews-content iframe,
.reviews-content .trustindex-widget,
.reviews-content [id*="trustindex"] {
    max-width: 100%;
    margin: 0 auto;
}

/* Responsive pour la section Avis Google */
@media (max-width: 768px) {
    .google-reviews-section {
        padding: 60px 20px;
    }
    
    .reviews-section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .google-reviews-section {
        padding: 40px 15px;
    }
    
    .reviews-container {
        padding: 0;
    }
    
    .reviews-section-title {
        font-size: 28px;
        margin-bottom: 30px;
        line-height: 1.3;
    }
    
    .reviews-description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 30px;
    }
}

/* Section Services */
.services-section {
    width: 100%;
    padding: 20px 30px;
    background: #ffffff;
    box-shadow: none !important;
    margin: 0;
    margin-bottom: 20px;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.services-section-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #205983;
    margin: 0 0 50px 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: #f0f7ff;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(32, 89, 131, 0.1);
}

.service-icon {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon-img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.service-text {
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
}

.service-text p {
    margin: 0;
}

.service-text p:not(:last-child) {
    margin-bottom: 10px;
}

/* Responsive pour la section Services */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 20px;
    }
    
    .services-section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-item {
        padding: 25px 15px;
    }
    
    .service-icon-img {
        max-width: 60px;
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 40px 15px;
    }
    
    .services-container {
        padding: 0;
    }
    
    .services-section-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 30px;
    }
    
    .services-grid {
        gap: 20px;
    }
    
    .service-item {
        padding: 20px 15px;
    }
    
    .service-icon-img {
        max-width: 50px;
        max-height: 50px;
    }
    
    .service-text {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Section À Propos */
.about-section {
    width: 100%;
    padding: 20px 30px;
    background: #ffffff;
    box-shadow: none !important;
    margin: 0;
    margin-bottom: 20px;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.about-section-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #205983;
    margin: 0 0 50px 0;
    text-align: center;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.about-image-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
    font-size: 18px;
    line-height: 1.8;
    color: #495057;
}

.about-text p {
    margin: 0 0 20px 0;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Responsive pour la section À Propos */
@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-image,
    .about-text {
        flex: 1;
        max-width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 20px;
    }
    
    .about-section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .about-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 40px 15px;
    }
    
    .about-container {
        padding: 0;
    }
    
    .about-section-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 30px;
    }
    
    .about-content {
        gap: 25px;
    }
    
    .about-image {
        min-width: 100%;
        max-width: 100%;
    }
    
    .about-text {
        font-size: 15px;
        line-height: 1.7;
        min-width: 100%;
    }
}

/*
Theme Name: megdev-child
Template: hello-elementor
Version: 1.0
*/

/**
 * List styling
 */
 dl,
 dt,
 dd,
 ol,
 ul,
 li {
   margin-block-start: 0;
   margin-block-end: 0;
   border: 0;
   outline: 0;
   font-size: 100%;
   vertical-align: baseline;
   background: transparent;
 }
 table tbody > tr:nth-child(odd) > td, table tbody > tr:nth-child(odd) > th {
   background-color: rgb(255 255 255 / 0%);
 }
 .woocommerce-centered-container {
     max-width: 1140px;
     margin-left: auto;
     margin-right: auto;
     width: 100%;
     margin-top: 10px;
 }
 
 /* Photo principale produit WooCommerce - coins arrondis et ombre, sans bordure */
 .flex-viewport {
     border-radius: 16px !important;
     border: none !important;
     box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important;
 }
 
 /* VIGNETTES WooCommerce : test de spécificité et !important */
 .woocommerce div.product .woocommerce-product-gallery__image:not(:first-child) img,
 .woocommerce div.product .woocommerce-product-gallery__thumb img,
 .wc-block-product-gallery-thumbnails__thumbnail__image {
     border-radius: 8px !important;
   
     box-shadow: none !important;
     margin: 0 8px 0 0 !important;
     background: #e0f3ff !important; /* TEMP : bleu clair pour vérifier l'application */
 }
 
 /* Pour les galeries utilisant les blocs WooCommerce (nouvelle génération) */
 .wc-block-product-gallery-thumbnails {
     display: flex;
     flex-direction: row;
     justify-content: center;
     margin-top: 12px;
     gap: 8px;
 }
 
 .wc-block-product-gallery-thumbnails__thumbnail {
     margin-right: 8px !important;
 }
 .wc-block-product-gallery-thumbnails__thumbnail:last-child {
     margin-right: 0 !important;
 }
 
 /* Vignettes galerie FlexSlider WooCommerce - coins arrondis et ombre */
 .flex-control-nav.flex-control-thumbs li img {
     border-radius: 8px !important;
     border: none !important;
     margin: 0 8px 8px 0 !important;
     box-shadow: 0 2px 8px rgba(62,132,183,0.15) !important;
     background: none !important;
 }
 
 .flex-control-nav.flex-control-thumbs li {
     width: 20% !important;
     max-width: 20% !important;
     flex: 0 0 20% !important;
     box-sizing: border-box !important;
     display: flex !important;
     justify-content: center;
     align-items: center;
     padding: 0 !important;
     margin: 0 !important;
 }
 
 .flex-control-nav.flex-control-thumbs {
     width: 100% !important;
     display: flex !important;
     flex-wrap: wrap !important;
     justify-content: space-between !important;
     align-items: flex-start;
     margin-top: 12px !important;
     gap: 0 !important;
 }
 
 /* Accordéons pour la description produit */
 .accordion-item {
     margin-bottom: 8px;
     border: 1px solid #e0e0e0;
     border-radius: 8px;
     overflow: hidden;
 }
 
 .accordion-button {
    font-family: "Archivo Narrow", sans-serif !important;
     width: 100%;
     padding: 16px 20px;
     background: #3F91CD !important;
     border: none;
     text-align: left;
     font-size: 16px !important;
     font-weight: bolder !important;
     color: #FFF;
     cursor: pointer;
     transition: all 0.3s ease;
     position: relative;
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     gap: 12px;
     white-space: normal;
     word-wrap: break-word;
     overflow-wrap: break-word;
     min-height: auto;
 }
 
 .accordion-button span{
     font-family: "Archivo Narrow", sans-serif !important;
     font-size: 16px !important;
     font-weight: 600 !important;
     color: #FFF !important;
     flex: 1;
     line-height: 1.4;
     word-wrap: break-word;
     overflow-wrap: break-word;
     white-space: normal;
     text-align: left;
     display: block;
 }
 
 .accordion-button:hover {
     background: #e9ecef;
 }
 
 .accordion-button.active {
     background: #3F91CD !important;
     color: white;
 }
 
 .accordion-button::after {
     content: '+';
     position: absolute;
     right: 20px;
     top: 50%;
     transform: translateY(-50%);
     font-size: 20px;
     font-weight: bold;
     transition: transform 0.3s ease;
 }
 
 .accordion-button.active::after {
     transform: translateY(-50%) rotate(45deg);
 }
 
 /* Responsive pour les accordéons de la description produit */
 @media (max-width: 768px) {
     .accordion-button {
         padding: 14px 16px;
         font-size: 14px;
         gap: 8px;
         flex-wrap: wrap;
         min-height: auto;
         height: auto;
     }
     
     .accordion-button span {
         font-size: 14px;
         line-height: 1.3;
         flex: 1;
         min-width: 0;
         word-break: break-word;
         hyphens: auto;
         white-space: normal;
         display: block;
         padding-right: 8px;
     }
     
     .accordion-button::after {
         font-size: 18px;
         right: 16px;
         top: 50%;
         transform: translateY(-50%);
         flex-shrink: 0;
         align-self: flex-start;
         margin-top: 2px;
     }
 }
 
 @media (max-width: 480px) {
     .accordion-button {
         padding: 12px 14px;
         font-size: 13px;
         gap: 6px;
     }
     
     .accordion-button span {
         font-size: 13px;
         line-height: 1.2;
         padding-right: 6px;
     }
     
     .accordion-button::after {
         font-size: 16px;
         right: 14px;
         margin-top: 1px;
     }
 }
 
 .accordion-content {
     display: none;
     padding: 20px;
     background: white;
     border-top: 1px solid #e0e0e0;
 }
 
 .accordion-content p {
     margin-bottom: 12px;
     line-height: 1.6;
 }
 
 .accordion-content:last-child {
     margin-bottom: 0;
 }
 
/* Masquer le titre sur la page d'accueil */
.home .entry-header,
.home .entry-title {
    display: none !important;
}

/* Titre principal de la page produit */
.woocommerce div.product .product_title,
.woocommerce div.product h1.product_title,
.entry-title,
h1.entry-title {
    font-family: "Archivo Narrow", sans-serif !important;
    color: #205983 !important;
    font-weight: 600 !important;
}

/* Fiche produit : titre aligné à gauche (cohérent avec le bloc image / colonne résumé) */
body.single-product .woocommerce div.product div.summary.entry-summary {
    text-align: left !important;
    align-items: flex-start !important;
}
body.single-product .woocommerce div.product .product_title,
body.single-product .woocommerce div.product h1.product_title,
body.single-product h1.entry-title {
    text-align: left !important;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto !important;
    box-sizing: border-box;
    align-self: flex-start;
}
body.single-product .woocommerce div.product div.summary.entry-summary > .woocommerce-product-rating,
body.single-product .woocommerce div.product div.summary.entry-summary > .price,
body.single-product .woocommerce div.product div.summary.entry-summary > .stock {
    margin-left: 0 !important;
    margin-right: auto !important;
}

h2.entry-title a {
    color: #205983;
    text-decoration: none;
}
 
 /* Rendre transparent le bloc gris des options produit */
 .woocommerce div.product form.cart,
 .woocommerce div.product .variations_form,
 .woocommerce div.product .woocommerce-variation-add-to-cart,
 .woocommerce div.product .single_variation_wrap,
 .woocommerce div.product .woocommerce-variation,
 .woocommerce div.product .woocommerce-variation-price,
 .woocommerce div.product .woocommerce-variation-availability,
 .woocommerce div.product .woocommerce-variation-description {
     background: transparent !important;
     border: none !important;
     padding: 0 !important;
     margin: 0 !important;
 }
 
 /* Pour les conteneurs de variations */
 .woocommerce div.product .variations {
     background: transparent !important;
     border: none !important;
     padding: 0 !important;
 }
 
 /* Pour le bloc de quantité et bouton ajouter au panier */
 .woocommerce div.product .single_add_to_cart_wrapper {
     background: transparent !important;
     border: none !important;
     padding: 0 !important;
 }
 
 /* Onglets WooCommerce style Bootstrap moderne */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e9ecef;
    background: transparent;
    gap: 0;
}

/* Titre de l'onglet Description - style cohérent */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: "Archivo Narrow", sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #205983 !important;
}
 
 .woocommerce div.product .woocommerce-tabs ul.tabs li {
     margin: 0;
     background: transparent;
     border: none;
     border-radius: 0;
     position: relative;
 }
 
 .woocommerce div.product .woocommerce-tabs ul.tabs li a {
     display: block;
     padding: 16px 24px;
     color: #6c757d;
     text-decoration: none;
     font-weight: 500;
     font-size: 16px;
     border: none;
     background: transparent;
     transition: all 0.3s ease;
     position: relative;
     border-bottom: 3px solid transparent;
 }
 
 .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
     color: #3F91CD;
     background: rgba(63, 145, 205, 0.05);
     border-bottom-color: rgba(63, 145, 205, 0.3);
 }
 
 .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
     color: #3F91CD;
     background: transparent;
     border-bottom-color: #3F91CD;
     font-weight: 600;
 }
 
 /* Contenu des onglets */
.woocommerce div.product .woocommerce-Tabs-panel {
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    margin-top: 0;
}
 
 /* Responsive pour les onglets - masqués sur tous les écrans */
@media (max-width: 768px) {
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        display: none;
    }
}
 
 /* Styliser le bloc "Vous aimerez peut-être aussi..." style Bootstrap */
 .woocommerce .upsells.products,
 .woocommerce ul.products.columns-4 {
     margin-top: 40px;
     padding: 0;
 }
 
 /* Supprimer tous les pseudo-éléments qui causent des décalages */
 .woocommerce .upsells.products::before,
 .woocommerce .upsells.products::after,
 .woocommerce ul.products.columns-4::before,
 .woocommerce ul.products.columns-4::after {
     display: none !important;
     content: none !important;
 }
 
 .woocommerce .upsells.products h2 {
     font-family: "Archivo Narrow", sans-serif;
     color: #205983;
     font-size: 24px;
     font-weight: 600;
     margin-bottom: 24px;
     text-align: center;
 }
 
 .woocommerce .upsells.products ul.products,
 .woocommerce ul.products.columns-4 {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 32px;
     margin: 0;
     padding: 0;
     list-style: none;
     max-width: 100%;
 }
 
 .woocommerce .upsells.products ul.products li.product,
 .woocommerce ul.products.columns-4 li.product {
     background: white;
     border-radius: 12px;
     box-shadow: 0 4px 16px rgba(0,0,0,0.08);
     padding: 20px;
     margin: 0;
     transition: all 0.3s ease;
     border: none;
     text-align: center;
     width: 100%;
    /* min-height: 400px;*/
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     align-items: center;
 }
 
 .woocommerce .upsells.products ul.products li.product:hover,
 .woocommerce ul.products.columns-4 li.product:hover {
     transform: translateY(-4px);
     box-shadow: 0 8px 24px rgba(0,0,0,0.12);
 }
 
 /* Images des produits */
 .woocommerce .upsells.products ul.products li.product .woocommerce-loop-product__link img,
 .woocommerce ul.products.columns-4 li.product .woocommerce-loop-product__link img {
     border-radius: 8px;
  
     transition: all 0.3s ease;
     width: 100%;
     height: 200px;
     object-fit: contain;
     margin-bottom: 16px;
 }
 
 .woocommerce .upsells.products ul.products li.product:hover .woocommerce-loop-product__link img,
 .woocommerce ul.products.columns-4 li.product:hover .woocommerce-loop-product__link img {
     box-shadow: 0 4px 12px rgba(0,0,0,0.15);
 }
 
 /* Titres des produits */
 .woocommerce .upsells.products ul.products li.product .woocommerce-loop-product__title,
 .woocommerce ul.products.columns-4 li.product .woocommerce-loop-product__title {
     font-family: "Archivo Narrow", sans-serif;
     color: #205983;
     font-size: 18px;
     font-weight: 600;
     margin: 16px 0 8px 0;
     line-height: 1.3;
     flex-grow: 1;
 }
 
 /* Prix */
 .woocommerce .upsells.products ul.products li.product .price,
 .woocommerce ul.products.columns-4 li.product .price {
     color: #3F91CD;
     font-weight: 600;
     font-size: 18px;
     margin: 12px 0 20px 0;
 }
 
 /* Bouton "Ajouter au panier" principal de la page produit - style Bootstrap */
 .woocommerce div.product form.cart .button,
 .woocommerce div.product .single_add_to_cart_wrapper .button,
 .woocommerce div.product .woocommerce-variation-add-to-cart .button {
     background: #3F91CD !important;
     color: white !important;
     border: none !important;
     border-radius: 8px !important;
     padding: 16px 32px !important;
     font-weight: 600 !important;
     font-size: 16px !important;
     text-decoration: none !important;
     transition: all 0.3s ease !important;
     display: inline-block !important;
     text-align: center !important;
     cursor: pointer !important;
     box-shadow: 0 4px 12px rgba(63, 145, 205, 0.3) !important;
     min-width: 200px !important;
     text-transform: uppercase !important;
     letter-spacing: 0.5px !important;
 }
 
 .woocommerce div.product form.cart .button:hover,
 .woocommerce div.product .single_add_to_cart_wrapper .button:hover,
 .woocommerce div.product .woocommerce-variation-add-to-cart .button:hover {
     background: #205983 !important;
     transform: translateY(-2px) !important;
     box-shadow: 0 6px 16px rgba(63, 145, 205, 0.4) !important;
 }
 
 .woocommerce div.product form.cart .button:active,
 .woocommerce div.product .single_add_to_cart_wrapper .button:active,
 .woocommerce div.product .woocommerce-variation-add-to-cart .button:active {
     transform: translateY(0) !important;
     box-shadow: 0 2px 8px rgba(63, 145, 205, 0.3) !important;
 }
 
 /* Bouton désactivé */
 .woocommerce div.product form.cart .button:disabled,
 .woocommerce div.product .single_add_to_cart_wrapper .button:disabled,
 .woocommerce div.product .woocommerce-variation-add-to-cart .button:disabled {
     background: #6c757d !important;
     cursor: not-allowed !important;
     transform: none !important;
     box-shadow: none !important;
 }
 
 /* Conteneur du bouton */
 .woocommerce div.product .single_add_to_cart_wrapper {
     margin-top: 20px !important;
     text-align: center !important;
 }
 
 /* Responsive */
 @media (max-width: 768px) {
     .woocommerce div.product form.cart .button,
     .woocommerce div.product .single_add_to_cart_wrapper .button,
     .woocommerce div.product .woocommerce-variation-add-to-cart .button {
         padding: 14px 24px !important;
         font-size: 14px !important;
         min-width: 180px !important;
     }
 }
 
 /* Design moderne du formulaire de variations WooCommerce */
 .woocommerce div.product form.variations_form {
     background: #f8f9fa;
     border-radius: 12px;
     padding: 24px;
     margin: 20px 0;
     border: 1px solid #e9ecef;
 }
 
 /* Table des variations */
 .woocommerce div.product form.variations_form table.variations {
     width: 100%;
     border: none;
     margin-bottom: 20px;
 }
 
 .woocommerce div.product form.variations_form table.variations tbody {
     border: none;
 }
 
 .woocommerce div.product form.variations_form table.variations tr {
     border: none;
     background: transparent;
     display: flex;
     flex-direction: column;
     align-items: flex-start;
     margin-bottom: 16px;
     gap: 8px;
 }
 
 .woocommerce div.product form.variations_form table.variations th.label {
     background: transparent;
     border: none;
     padding: 0;
     width: 100%;
     font-weight: 600;
     color: #205983;
     font-size: 14px;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     margin-bottom: 4px;
 }
 
 .woocommerce div.product form.variations_form table.variations td.value {
     background: transparent;
     border: none;
     padding: 0;
     width: 100%;
 }
 
 /* Sélecteurs de couleur/style */
 .woocommerce div.product form.variations_form .variable-items-wrapper {
     display: flex;
     gap: 12px;
     flex-wrap: wrap;
     margin: 0;
     padding: 0;
     list-style: none;
 }
 
 .woocommerce div.product form.variations_form .variable-item {
     background: white;
     border: 2px solid #e9ecef;
     border-radius: 8px;
     padding: 12px 20px;
     cursor: pointer;
     transition: all 0.3s ease;
     margin: 0;
     min-width: 80px;
     text-align: center;
     font-weight: 500;
     font-size: 14px;
     color: #495057;
 }
 
 .woocommerce div.product form.variations_form .variable-item:hover {
     border-color: #3F91CD;
     background: rgba(63, 145, 205, 0.05);
     transform: translateY(-1px);
     box-shadow: 0 2px 8px rgba(63, 145, 205, 0.15);
 }
 
 .woocommerce div.product form.variations_form .variable-item.selected {
     border-color: #3F91CD;
     background: #3F91CD;
     color: white;
     box-shadow: 0 4px 12px rgba(63, 145, 205, 0.3);
 }
 
/* Bouton "Annuler la sélection" */
.woocommerce div.product form.variations_form .reset_variations {
    background: #6c757d;
    color: white;
    border: none;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-left: 12px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: "Archivo Narrow", sans-serif;
}

.woocommerce div.product form.variations_form .reset_variations:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.woocommerce div.product form.variations_form .reset_variations:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.2);
}
 
 /* Conteneur des variations */
 .woocommerce div.product form.variations_form .single_variation_wrap {
     background: white;
     border-radius: 8px;
     padding: 20px;
     margin-top: 20px;
     border: 1px solid #e9ecef;
 }
 
 /* Prix et disponibilité */
 .woocommerce div.product form.variations_form .woocommerce-variation-price {
     font-size: 20px;
     font-weight: 600;
     color: #3F91CD;
     margin-bottom: 16px;
 }
 
 .woocommerce div.product form.variations_form .woocommerce-variation-availability {
     margin-bottom: 16px;
 }
 
 /* Conteneur quantité + bouton */
 .woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart {
     display: flex;
     align-items: center;
     gap: 16px;
     flex-wrap: wrap;
 }
 
 /* Champ quantité */
 .woocommerce div.product form.variations_form .quantity {
     display: flex;
     align-items: center;
     gap: 8px;
 }
 
 .woocommerce div.product form.variations_form .quantity label {
     font-weight: 600;
     color: #205983;
     font-size: 14px;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }
 
 .woocommerce div.product form.variations_form .quantity input[type="number"] {
     width: 80px;
     padding: 12px;
     border: 2px solid #e9ecef;
     border-radius: 6px;
     font-size: 16px;
     text-align: center;
     transition: all 0.3s ease;
 }
 
 .woocommerce div.product form.variations_form .quantity input[type="number"]:focus {
     border-color: #3F91CD;
     outline: none;
     box-shadow: 0 0 0 3px rgba(63, 145, 205, 0.1);
 }
 
 /* Responsive */
 @media (max-width: 768px) {
     .woocommerce div.product form.variations_form {
         padding: 16px;
     }
     
     .woocommerce div.product form.variations_form table.variations tr {
         flex-direction: column;
         align-items: flex-start;
         gap: 8px;
     }
     
     .woocommerce div.product form.variations_form table.variations th.label {
         width: 100%;
     }
     
     .woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart {
         flex-direction: column;
         align-items: stretch;
     }
     
     .woocommerce div.product form.variations_form .quantity {
         justify-content: center;
     }
 }
 
 /* Styliser la liste des fonctionnalités du produit */
 .woocommerce-product-details__short-description {
     background: #f8f9fa;
     border-radius: 8px;
     padding: 20px;
     margin: 16px 0;
     border: 1px solid #3F91CD;
 }
 
 .product-features-list p {
     margin: 8px 0;
     font-size: 16px;
     line-height: 1.6;
     color: #495057;
     display: flex;
     align-items: center;
 }
 
 .product-features-list i {
     font-size: 16px;
     min-width: 20px;
     text-align: center;
 }
 
 /* Responsive */
 @media (max-width: 768px) {
     .product-features-list {
         padding: 16px;
         margin: 12px 0;
     }
     
     .product-features-list p {
         font-size: 15px;
     }
     
     .product-features-list i {
         font-size: 14px;
         min-width: 18px;
     }
 }
 
 /* Styliser le prix principal de la page produit */
 .woocommerce div.product .price,
 .woocommerce div.product p.price,
 .woocommerce div.product span.price {
     font-family: "Archivo Narrow", sans-serif !important;
     font-size: 20px !important;
     font-weight: 600 !important;
     color: #3F91CD !important;
     margin: 12px 0 !important;
     padding: 12px 16px !important;
     background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
     border-radius: 8px !important;
     border: 2px solid #e9ecef !important;
     display: inline-block !important;
     box-shadow: 0 2px 8px rgba(63, 145, 205, 0.1) !important;
     position: relative !important;
     overflow: hidden !important;
 }
 
 .woocommerce div.product .price::before,
 .woocommerce div.product p.price::before,
 .woocommerce div.product span.price::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 2px;
     background: linear-gradient(90deg, #3F91CD, #205983);
 }
 
 .woocommerce div.product .price .amount,
 .woocommerce div.product p.price .amount,
 .woocommerce div.product span.price .amount {
     font-size: 22px !important;
     font-weight: 700 !important;
     color: #205983 !important;
 }
 
 .woocommerce div.product .price .woocommerce-Price-currencySymbol,
 .woocommerce div.product p.price .woocommerce-Price-currencySymbol,
 .woocommerce div.product span.price .woocommerce-Price-currencySymbol {
     font-size: 18px !important;
     font-weight: 600 !important;
     color: #3F91CD !important;
     margin-left: 4px !important;
 }
 
 /* Prix barré (prix original) */
 .woocommerce div.product .price del,
 .woocommerce div.product p.price del,
 .woocommerce div.product span.price del {
     font-size: 14px !important;
     color: #6c757d !important;
     text-decoration: line-through !important;
     margin-right: 8px !important;
     opacity: 0.7 !important;
 }
 
 /* Prix soldé */
 .woocommerce div.product .price ins,
 .woocommerce div.product p.price ins,
 .woocommerce div.product span.price ins {
     text-decoration: none !important;
     font-weight: 700 !important;
 }
 
 /* Responsive */
 @media (max-width: 768px) {
     .woocommerce div.product .price,
     .woocommerce div.product p.price,
     .woocommerce div.product span.price {
         font-size: 18px !important;
         padding: 10px 12px !important;
         margin: 10px 0 !important;
     }
     
     .woocommerce div.product .price .amount,
     .woocommerce div.product p.price .amount,
     .woocommerce div.product span.price .amount {
         font-size: 20px !important;
     }
     
     .woocommerce div.product .price .woocommerce-Price-currencySymbol,
     .woocommerce div.product p.price .woocommerce-Price-currencySymbol,
     .woocommerce div.product span.price .woocommerce-Price-currencySymbol {
         font-size: 16px !important;
     }
 }

/* --- Styles migrés depuis functions.php --- */

/* Tableaux dans la description produit */
.woocommerce-Tabs-panel--description table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.woocommerce-Tabs-panel--description th, .woocommerce-Tabs-panel--description td {
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    text-align: left;
}
.woocommerce-Tabs-panel--description th {
    background: #f5f7fa;
    font-weight: 600;
    color: #3F91CD;
}
.woocommerce-Tabs-panel--description tr:nth-child(even) td {
    background: #f9fbfd;
}
.woocommerce-Tabs-panel--description tr:hover td {
    background: #eaf3fa;
}

/* Swatches en mode chip, version plus grande avec meilleur contraste */
.variable-items-wrapper .variable-item:not(.radio-variable-item) {
    height: 32px;
    min-width: 44px;
    border-radius: 16px !important;
    padding: 0 14px !important;
    font-size: 0.9em;
    background: #ffffff;
    color: #205983;
    border: 2px solid #3F91CD;
    box-shadow: 0 2px 4px rgba(63,145,205,0.1);
    margin: 0 4px 6px 0;
    display: inline-flex;
    align-items: center;
    transition: all 0.15s;
    font-weight: 600;
}

.variable-items-wrapper .variable-item.selected:not(.radio-variable-item),
.variable-items-wrapper .variable-item:hover:not(.radio-variable-item) {
    background: #3F91CD;
    color: #ffffff;
    border-color: #3F91CD;
    box-shadow: 0 4px 8px rgba(63,145,205,0.2);
    transform: translateY(-1px);
}

.variable-items-wrapper .variable-item-span {
    padding: 0;
}

.swatch-btn {
    min-width: 44px !important;
    height: 32px !important;
    border-radius: 16px !important;
    padding: 0 14px !important;
    font-size: 0.9em !important;
    background: #ffffff !important;
    color: #205983 !important;
    border: 2px solid #3F91CD !important;
    box-shadow: 0 2px 4px rgba(63,145,205,0.1) !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: none !important;
}

.swatch-btn:hover {
    background: #3F91CD !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(63,145,205,0.2) !important;
    transform: translateY(-1px) !important;
}

.swatch-btn.selected {
    background: #3F91CD !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(63,145,205,0.2) !important;
    transform: translateY(-1px) !important;
}

.custom-swatches { 
    margin-bottom: 12px; 
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.swatch-btn.selected, .swatch-btn:hover {
    background: #3F91CD !important;
    color: #fff !important;
    border-color: #3F91CD !important;
}

.swatch-btn img { 
    display: block; 
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    object-fit: cover !important;
}

/* Styles responsives pour les chips de variations sur mobile */
@media (max-width: 768px) {
    /* Masquer les chips sur mobile et afficher les selects natifs */
    .custom-swatches {
        display: none !important;
    }
    
    /* Afficher les selects de variations sur mobile */
    .variation-select-mobile {
        display: block !important;
        width: 100% !important;
        padding: 12px 16px !important;
        border: 2px solid #3F91CD !important;
        border-radius: 8px !important;
        background: white !important;
        font-size: 16px !important;
        color: #205983 !important;
        font-weight: 500 !important;
        margin-bottom: 12px !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F91CD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        background-size: 16px !important;
        padding-right: 40px !important;
    }
    
    .variation-select-mobile:focus {
        outline: none !important;
        border-color: #205983 !important;
        box-shadow: 0 0 0 3px rgba(63, 145, 205, 0.1) !important;
    }
    
    .variation-select-mobile option {
        padding: 8px !important;
        font-size: 16px !important;
    }
    
    /* Gestion du conteneur des variations pour éviter le débordement */
    .woocommerce div.product form.variations_form table.variations td.value {
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    /* Ajuster la taille des selects sur très petits écrans */
    .variation-select-mobile {
        padding: 10px 14px !important;
        font-size: 15px !important;
        padding-right: 36px !important;
        background-size: 14px !important;
    }
    
    .variation-select-mobile option {
        font-size: 15px !important;
        padding: 6px !important;
    }
}

/* Gestion spéciale pour les écrans très étroits */
@media (max-width: 360px) {
    .variation-select-mobile {
        padding: 8px 12px !important;
        font-size: 14px !important;
        padding-right: 32px !important;
        background-size: 12px !important;
    }
    
    .variation-select-mobile option {
        font-size: 14px !important;
        padding: 4px !important;
    }
}

/* Amélioration de l'affichage des chips */
.swatch-btn {
    position: relative !important;
}

/* Animation pour les chips sélectionnés sur desktop uniquement */
@media (min-width: 769px) {
    .swatch-btn.selected {
        transform: scale(1.05) !important;
        z-index: 2 !important;
    }
    
    .swatch-btn:hover {
        transform: scale(1.02) !important;
    }
}

/* Aligner le titre de variation à gauche */
th.label > label {
    text-align: left !important;
    display: block !important;
    width: 100%;
}

/* Aligner le titre de variation à gauche */
th.label > label {
    text-align: left !important;
    display: block !important;
    width: 100%;
}

/* Aligner les vignettes du diaporama WooCommerce à gauche */
.woocommerce-product-gallery .flex-control-thumbs {
    justify-content: flex-start !important;
    text-align: left !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
}
.woocommerce-product-gallery .flex-control-thumbs li {
    margin: 0 !important;
}

/* Cacher la description produit tant que les accordéons ne sont pas prêts */
.woocommerce-Tabs-panel--description {
    visibility: hidden;
}
.woocommerce-Tabs-panel--description.accordion-ready {
    visibility: visible;
    transition: visibility 0s;
}

/* Vidéos YouTube en pleine largeur dans la description produit */
.woocommerce-Tabs-panel--description iframe[src*="youtube.com"],
.woocommerce-Tabs-panel--description iframe[src*="youtu.be"] {
    width: 100% !important;
    max-width: 100%;
    height: 56vw;
    max-height: 480px;
    display: block;
    margin: 24px 0;
    aspect-ratio: 16/9;
}

/* Prix WooCommerce plus sobre et plus gros sur la fiche produit */
.single-product .price, .single-product .woocommerce-Price-amount, .single-product .woocommerce-variation-price {
    background: none !important;
    box-shadow: none !important;
    color: inherit !important;
    font-weight: normal !important;
    text-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    font-size: 2em !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    display: inline;
}

.woocommerce div.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    background: none !important;
    box-shadow: none !important;
    color: inherit !important;
    font-weight: normal !important;
    text-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    font-size: 2em !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    display: inline;
}

.woocommerce div.product .price .amount,
.woocommerce div.product p.price .amount,
.woocommerce div.product span.price .amount {
    font-size: inherit !important;
    font-weight: normal !important;
    color: inherit !important;
}

.woocommerce div.product .price .woocommerce-Price-currencySymbol,
.woocommerce div.product p.price .woocommerce-Price-currencySymbol,
.woocommerce div.product span.price .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
    font-weight: normal !important;
    color: inherit !important;
    margin-left: 0 !important;
}

.woocommerce div.product .price del,
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    font-size: inherit !important;
    color: #888 !important;
    text-decoration: line-through !important;
    margin-right: 8px !important;
    opacity: 0.7 !important;
}

.woocommerce div.product .price ins,
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    text-decoration: none !important;
    font-weight: normal !important;
}

/* Supprimer tout trait ou pseudo-élément au-dessus du prix */
.woocommerce div.product .price::before,
.woocommerce div.product p.price::before,
.woocommerce div.product span.price::before {
    display: none !important;
    content: none !important;
}

/* FAQ Produit - Design intégré avec la fiche produit */
.product-faq-section {
    margin-top: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Accordéon principal */
.faq-main-accordion {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.faq-main-question {
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    text-align: center;
    font-weight: 600;
    color: #205983;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-family: "Archivo Narrow", sans-serif;
    gap: 12px;
    margin-bottom: 0;
}

.faq-main-question:hover {
    background: transparent;
    color: #205983;
}

.faq-main-question.active {
    background: transparent;
    color: #205983;
}

.faq-main-question span {
    color: #205983;
    font-size: 24px;
    font-weight: 600;
    font-family: "Archivo Narrow", sans-serif;
}

.faq-main-question i {
    transition: transform 0.3s ease;
    font-size: 20px;
    color: #205983;
    margin-top: 2px;
}

.faq-main-answer {
    display: none;
    padding: 24px 0 0 0;
    background: transparent;
    border-top: none;
}

.faq-item-accordion {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.faq-item-accordion:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.faq-question {
	width: 100%;
    padding: 16px 20px;
    background: #3F91CD;
    border: none;
	text-align: left;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 16px;
    font-family: "Archivo Narrow", sans-serif;
    gap: 12px;
    min-height: auto;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-question.active {
    background: #205983;
    color: white;
}

.faq-question.active i {
    color: white;
    transform: rotate(180deg);
}

.faq-question span {
    flex: 1;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: left;
    display: block;
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
    margin-top: 2px;
    min-width: 14px;
}

.faq-answer {
    padding: 0 20px;
    display: none;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.faq-answer > div {
    padding: 20px 0;
    color: #495057;
    line-height: 1.6;
    font-size: 14px;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Interface d'administration des FAQ */
#product-faq-container .faq-item {
    border: 1px solid #ddd;
    margin: 10px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

#product-faq-container .faq-item h4 {
    margin: 0 0 10px 0;
    color: #205983;
    font-size: 16px;
    font-weight: 600;
}

#product-faq-container .faq-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #495057;
    font-size: 14px;
}

#product-faq-container .faq-item input[type="text"],
#product-faq-container .faq-item textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#product-faq-container .faq-item input[type="text"]:focus,
#product-faq-container .faq-item textarea:focus {
    border-color: #3F91CD;
    outline: none;
    box-shadow: 0 0 0 2px rgba(63, 145, 205, 0.1);
}

#product-faq-container .faq-item textarea {
    height: 100px;
    resize: vertical;
    margin-bottom: 10px;
}

#product-faq-container .remove-faq {
    background: #dc3232;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#product-faq-container .remove-faq:hover {
    background: #c92a2a;
    transform: translateY(-1px);
}

#add-faq {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    margin-top: 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

#add-faq:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

/* Métadonnées du produit - Design moderne */
.product_meta {
    margin-top: 30px;
    padding: 0;
    background: transparent;
    border: none;
}

.product-meta-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-item:first-child {
    padding-top: 0;
}

.meta-item:hover {
    background: rgba(63, 145, 205, 0.02);
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
}

.meta-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #205983;
    font-size: 14px;
    font-family: "Archivo Narrow", sans-serif;
    min-width: 120px;
}

.meta-label i {
    margin-right: 8px;
    color: #3F91CD;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.meta-value {
    color: #495057;
    font-size: 14px;
    text-align: right;
    flex: 1;
    margin-left: 16px;
    line-height: 1.4;
}

.meta-value a {
    color: #3F91CD;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-value a:hover {
    color: #205983;
    text-decoration: underline;
}

/* Responsive pour les métadonnées */
@media (max-width: 768px) {
    .product-meta-container {
        padding: 16px;
        margin-top: 20px;
    }
    
    .meta-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }
    
    .meta-label {
        min-width: auto;
        font-size: 13px;
    }
    
    .meta-value {
        text-align: left;
        margin-left: 24px;
        font-size: 13px;
    }
    
    .meta-item:hover {
        padding-left: 4px;
        padding-right: 4px;
        margin-left: -4px;
        margin-right: -4px;
    }
}

/* Badge "En stock" */
.stock-custom {
    display: block;
    width: fit-content;
    background: #38c172;
    color: #fff;
    font-weight: 600;
    font-size: 0.92em;
    text-transform: uppercase;
    border-radius: 16px;
    padding: 3px 10px 3px 8px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(56,193,114,0.10);
    letter-spacing: 0.5px;
}

.stock-custom i {
    margin-right: 6px;
    font-size: 1em;
}

/* Responsive pour les FAQ */
@media (max-width: 768px) {
    .product-faq-section {
        padding: 16px;
        margin-top: 30px;
    }
    
    .faq-main-question {
        font-size: 20px;
        gap: 8px;
    }
    
    .faq-main-question span {
        font-size: 20px;
    }
    
    .faq-main-question i {
        font-size: 18px;
    }
    
    .faq-main-answer {
        padding: 20px 0 0 0;
    }
    
    .faq-question {
        padding: 14px 16px;
        font-size: 14px;
        gap: 8px;
        flex-wrap: wrap;
        min-height: auto;
        height: auto;
    }
    
    .faq-question span {
        font-size: 14px;
        line-height: 1.3;
        flex: 1;
        min-width: 0;
        word-break: break-word;
        hyphens: auto;
        white-space: normal;
        display: block;
    }
    
    .faq-question i {
        font-size: 12px;
        margin-top: 1px;
        flex-shrink: 0;
        align-self: flex-start;
    }
    
    .faq-answer > div {
        padding: 16px 0;
        font-size: 13px;
    }
    
    #product-faq-container .faq-item {
        padding: 12px;
    }
    
    #product-faq-container .faq-item textarea {
        height: 80px;
    }
    
    #add-faq {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Styles spécifiques pour très petits écrans */
@media (max-width: 480px) {
    .faq-question {
        padding: 12px 14px;
        font-size: 13px;
        gap: 6px;
    }
    
    .faq-question span {
        font-size: 13px;
        line-height: 1.2;
    }
    
    .faq-question i {
        font-size: 11px;
        margin-top: 0;
    }
}

/* Espace en bas de la page produit */
.woocommerce div.product {
    margin-bottom: 60px;
}

/* Espace supplémentaire pour les pages produit avec FAQ */
.woocommerce div.product .product-faq-section {
    margin-bottom: 40px;
}

/* Section PDF du produit */
.product-pdf-section {
    margin-top: 30px;
    margin-bottom: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pdf-download-container {
    text-align: center;
}

.pdf-download-container h3 {
    color: #205983;
    font-size: 20px;
    font-weight: 600;
    font-family: "Archivo Narrow", sans-serif;
    margin-bottom: 16px;
}

.pdf-download-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #3F91CD;
    color: white;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(63, 145, 205, 0.3);
}

.pdf-download-link:hover {
    background: #205983;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(63, 145, 205, 0.4);
    text-decoration: none;
}

.pdf-download-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(63, 145, 205, 0.3);
}

.pdf-download-link i {
    font-size: 20px;
    color: white;
}

.pdf-download-link span {
    color: white;
}

/* Responsive pour la section PDF */
@media (max-width: 768px) {
    .product-pdf-section {
        padding: 20px;
        margin-top: 25px;
        margin-bottom: 30px;
    }
    
    .pdf-download-container h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }
    
    .pdf-download-link {
        padding: 14px 20px;
        font-size: 14px;
        gap: 10px;
    }
    
    .pdf-download-link i {
        font-size: 18px;
    }
}

/* Espace pour les produits avec variations */
.woocommerce div.product form.variations_form {
    margin-bottom: 30px;
}

/* Espace pour les onglets */
.woocommerce div.product .woocommerce-tabs {
    margin-bottom: 40px;
}

/* Section des avis clients */
.product-reviews-section {
    margin-top: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.product-reviews-section h2 {
    color: #205983;
    font-size: 24px;
    font-weight: 600;
    font-family: "Archivo Narrow", sans-serif;
    margin-bottom: 24px;
    text-align: center;
}

.reviews-container {
    max-width: 100%;
}

/* Styles pour les avis WooCommerce */
.woocommerce-Reviews {
    margin: 0;
    padding: 0;
}

.woocommerce-Reviews-title {
    display: none;
}

/* Liste des avis */
.woocommerce-Reviews-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-Reviews-list li {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.woocommerce-Reviews-list li:last-child {
    margin-bottom: 0;
}

/* En-tête de l'avis */
.woocommerce-Reviews-list .review_comment_container {
    margin-bottom: 12px;
}

.woocommerce-Reviews-list .meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.woocommerce-Reviews-list .woocommerce-review__author {
    font-weight: 600;
    color: #205983;
    font-size: 16px;
}

.woocommerce-Reviews-list .woocommerce-review__dash {
    display: none;
}

.woocommerce-Reviews-list .woocommerce-review__published-date {
    color: #6c757d;
    font-size: 14px;
}

/* Étoiles */
.woocommerce-Reviews-list .star-rating {
    color: #ffc107;
    font-size: 16px;
}

/* Contenu de l'avis */
.woocommerce-Reviews-list .description {
    color: #495057;
    line-height: 1.6;
    font-size: 14px;
}

/* Formulaire d'avis */
.woocommerce-Reviews #review_form {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    margin-top: 24px;
}

.woocommerce-Reviews #review_form h3 {
    color: #205983;
    font-size: 20px;
    font-weight: 600;
    font-family: "Archivo Narrow", sans-serif;
    margin-bottom: 20px;
}

.woocommerce-Reviews #review_form .comment-form-rating {
    margin-bottom: 20px;
}

.woocommerce-Reviews #review_form .comment-form-rating label {
    color: #205983;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.woocommerce-Reviews #review_form .stars {
    display: flex;
    gap: 4px;
}

.woocommerce-Reviews #review_form .stars a {
    color: #e9ecef;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-Reviews #review_form .stars a:hover,
.woocommerce-Reviews #review_form .stars a.active {
    color: #ffc107;
}

/* Champs du formulaire */
.woocommerce-Reviews #review_form .comment-form-comment label {
    color: #205983;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.woocommerce-Reviews #review_form .comment-form-comment textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
}

.woocommerce-Reviews #review_form .comment-form-comment textarea:focus {
    border-color: #3F91CD;
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 145, 205, 0.1);
}

/* Bouton de soumission */
.woocommerce-Reviews #review_form .form-submit {
    margin-top: 20px;
}

.woocommerce-Reviews #review_form .submit {
    background: #3F91CD;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(63, 145, 205, 0.3);
}

.woocommerce-Reviews #review_form .submit:hover {
    background: #205983;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(63, 145, 205, 0.4);
}

/* Responsive pour les avis */
@media (max-width: 768px) {
    .product-reviews-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .product-reviews-section h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .woocommerce-Reviews-list li {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .woocommerce-Reviews-list .meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .woocommerce-Reviews #review_form {
        padding: 20px;
        margin-top: 20px;
    }
    
    .woocommerce-Reviews #review_form h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .woocommerce-Reviews #review_form .submit {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Responsive pour l'espacement */
@media (max-width: 768px) {
    .woocommerce div.product {
        margin-bottom: 40px;
    }
    
    .woocommerce div.product .product-faq-section {
        margin-bottom: 30px;
    }
    
    .woocommerce div.product .woocommerce-tabs {
        margin-bottom: 30px;
    }
}

/* Formulaire de contact en bas des pages produit */
.product-contact-form {
    margin-top: 60px;
    padding: 40px 0;
    background: #e1ebf6f5;
    border-top: 1px solid #e0e0e0;
    border-radius: 16px;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;

}

.contact-form-container h2 {
    color: #205983;
    font-size: 28px;
    font-weight: 600;
    font-family: "Archivo Narrow", sans-serif;
    margin-bottom: 16px;
    text-align: center;
}

.contact-form-container p {
    color: #495057;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

/* Styles pour le formulaire WPForms */
.product-contact-form .wpforms-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.product-contact-form .wpforms-form {
    max-width: 100%;
}

.product-contact-form .wpforms-field {
    margin-bottom: 20px;
    text-align: left;
}

.product-contact-form .wpforms-field-label {
    color: #205983;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    text-align: left;
}

.product-contact-form .wpforms-required-label {
    color: #dc3545;
}

.product-contact-form .wpforms-field input[type="text"],
.product-contact-form .wpforms-field input[type="email"],
.product-contact-form .wpforms-field input[type="tel"],
.product-contact-form .wpforms-field textarea,
.product-contact-form .wpforms-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    text-align: left;
}

.product-contact-form .wpforms-field input[type="text"]:focus,
.product-contact-form .wpforms-field input[type="email"]:focus,
.product-contact-form .wpforms-field input[type="tel"]:focus,
.product-contact-form .wpforms-field textarea:focus,
.product-contact-form .wpforms-field select:focus {
    border-color: #3F91CD;
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 145, 205, 0.1);
}

.product-contact-form .wpforms-field textarea {
    min-height: 120px;
    resize: vertical;
}

.product-contact-form .wpforms-submit-container {
    text-align: center;
    margin-top: 30px;
}

.product-contact-form .wpforms-submit {
    background: #3F91CD;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(63, 145, 205, 0.3);
}

.product-contact-form .wpforms-submit:hover {
    background: #205983;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(63, 145, 205, 0.4);
}

.product-contact-form .wpforms-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(63, 145, 205, 0.3);
}

/* Messages de succès/erreur */
.product-contact-form .wpforms-confirmation-container {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.product-contact-form .wpforms-error-container {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

/* Responsive pour le formulaire */
@media (max-width: 768px) {
    .product-contact-form {
        margin-top: 40px;
        padding: 30px 0;
    }
    
    .contact-form-container {
        padding: 0 16px;
    }
    
    .contact-form-container h2 {
        font-size: 24px;
    }
    
    .contact-form-container p {
        font-size: 14px;
    }
    
    .product-contact-form .wpforms-container {
        padding: 20px;
    }
    
    .product-contact-form .wpforms-submit {
        padding: 14px 24px;
        font-size: 14px;
    }
}
.wpforms-field-container .url {
    display: none;
}

/* Styles spécifiques pour la page d'accueil - Grille de produits */
.home .elementor-widget-woocommerce-products .woocommerce {
    margin: 0;
    padding: 0;
}

.home .elementor-widget-woocommerce-products .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home .elementor-widget-woocommerce-products .product {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.home .elementor-widget-woocommerce-products .product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(63, 145, 205, 0.15);
    border-color: #3F91CD;
}

/* Images des produits */
.home .elementor-widget-woocommerce-products .product img,
.home .woocommerce ul.products.columns-4 .product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    object-position: center;
    background: #ffffff !important;
    border-radius: 8px 8px 0 0;
    padding: 0;
    margin: 0;
}

/* Contenu du produit */
.home .elementor-widget-woocommerce-products .woocommerce-LoopProduct-link {
    display: block;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

/* Titre du produit */
.home .elementor-widget-woocommerce-products .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    color: #205983;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-family: "Archivo Narrow", sans-serif;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
   
}

/* Prix */
.home .elementor-widget-woocommerce-products .price {
    font-size: 18px;
    font-weight: 700;
    color: #3F91CD;
    margin: 0 0 16px 0;
    display: block;
}

.home .elementor-widget-woocommerce-products .woocommerce-Price-amount {
    color: #3F91CD;
}

/* Bouton d'ajout au panier */
.home .elementor-widget-woocommerce-products .add_to_cart_button {
    width: 100%;
    background: #3F91CD;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    margin: 0;
}

.home .elementor-widget-woocommerce-products .add_to_cart_button:hover {
    background: #2a7ab8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(63, 145, 205, 0.3);
}


.home .woocommerce ul.products.columns-4 {
    display: grid
;
    grid-template-columns: repeat(auto-fit, minmax(244px, 1fr));
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 100%;
}

.home .elementor-widget-woocommerce-products img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail,
.home .woocommerce ul.products.columns-4 img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    background: #ffffff !important;
    object-fit: contain !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    border-radius: 8px 8px 0 0 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .home .elementor-widget-woocommerce-products .products {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .home .elementor-widget-woocommerce-products .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 16px;
    }
    
    .home .elementor-widget-woocommerce-products .product img,
    .home .woocommerce ul.products.columns-4 .product img {
        aspect-ratio: 1 / 1;
        padding: 0;
    }
    
    .home .elementor-widget-woocommerce-products .woocommerce-loop-product__title {
        font-size: 14px;
        min-height: 40px;
    }
    
    .home .elementor-widget-woocommerce-products .price {
        font-size: 16px;
    }
    
    .home .elementor-widget-woocommerce-products .add_to_cart_button {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .home .elementor-widget-woocommerce-products .products {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }
    
    .home .elementor-widget-woocommerce-products .product img,
    .home .woocommerce ul.products.columns-4 .product img {
        aspect-ratio: 1 / 1;
        padding: 0;
    }
    
    .home .elementor-widget-woocommerce-products .woocommerce-loop-product__title {
        font-size: 13px;
        min-height: 36px;
    }
}

/* Images carrées pour les archives produits */
.woocommerce ul.products .product img,
.woocommerce ul.products.columns-4 .product img,
.woocommerce ul.products.columns-3 .product img,
.woocommerce ul.products.columns-2 .product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    object-position: center;
    background: #ffffff !important;
    border-radius: 8px;
    padding: 0;
    margin: 0;
}

/* Spécifique pour les archives produits (pas la page d'accueil) */
.archive.woocommerce ul.products .product img,
.tax-product_cat ul.products .product img,
.tax-product_tag ul.products .product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    object-position: center;
    background: #ffffff !important;
    border-radius: 8px;
    padding: 0;
    margin: 0;
}

/* Titres d’archive catégorie / tag produit (h2.entry-title + lien) : pas violet, pas souligné */
body.tax-product_cat header.entry-header h2.entry-title a,
body.tax-product_cat header.entry-header h2.entry-title a:visited,
body.tax-product_tag header.entry-header h2.entry-title a,
body.tax-product_tag header.entry-header h2.entry-title a:visited {
    color: #205983 !important;
    text-decoration: none !important;
}
body.tax-product_cat header.entry-header h2.entry-title a:hover,
body.tax-product_cat header.entry-header h2.entry-title a:focus,
body.tax-product_tag header.entry-header h2.entry-title a:hover,
body.tax-product_tag header.entry-header h2.entry-title a:focus {
    color: #3F91CD !important;
    text-decoration: none !important;
}

/* Stylisation des titres de catégories - DESKTOP ET MOBILE */
.woocommerce ul.products li.product-category h2.woocommerce-loop-category__title {
    color: #333 !important;
    text-transform: uppercase !important;
    padding-top: 5px !important;
}

/* Images de catégories uniformes 300x300 */
.woocommerce ul.products li.product-category img {
    width: 300px !important;
    height: 300px !important;
    object-fit: cover !important;
    object-position: center;
    border-radius: 8px;
    background: #ffffff;
    margin: 0 auto;
    display: block;
}

/* Container des images de catégories */
.woocommerce ul.products li.product-category a {
    display: block;
    text-align: center;
}


button.faq-main-question {
    background: none !important;
}
/* Responsive pour les images de catégories */
@media (max-width: 768px) {
    .woocommerce ul.products li.product-category img {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .woocommerce ul.products li.product-category a {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products li.product-category img {
        width: 100% !important;
        max-width: 250px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .woocommerce ul.products li.product-category a {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }
}

/* Correction des titres de catégories sur mobile */
@media (max-width: 768px) {
    .woocommerce ul.products .product img,
    .woocommerce ul.products.columns-4 .product img,
    .woocommerce ul.products.columns-3 .product img,
    .woocommerce ul.products.columns-2 .product img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: contain !important;
        object-position: center;
        background: #ffffff !important;
        border-radius: 8px;
        padding: 0;
        margin: 0;
    }
    
    /* Correction des titres de catégories - MOBILE SEULEMENT */
    .woocommerce ul.products li.product-category a {
        text-align: center !important;
        display: block;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .woocommerce ul.products li.product-category h2.woocommerce-loop-category__title {
        text-align: center !important;
        margin: 0 auto !important;
        padding: 5px 0 10px 0 !important;
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        box-sizing: border-box;
        color: #333 !important;
        text-transform: uppercase !important;
    }
    
    /* Correction pour éviter le scroll horizontal - MOBILE SEULEMENT */
    .woocommerce ul.products li.product-category {
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }
    
    .woocommerce ul.products {
        margin: 0 !important;
        padding: 0 10px !important;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products .product img,
    .woocommerce ul.products.columns-4 .product img,
    .woocommerce ul.products.columns-3 .product img,
    .woocommerce ul.products.columns-2 .product img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: contain !important;
        object-position: center;
        background: #ffffff !important;
        border-radius: 8px;
        padding: 0;
        margin: 0;
    }
    
    /* Correction supplémentaire pour très petits écrans - MOBILE SEULEMENT */
    .woocommerce ul.products li.product-category h2.woocommerce-loop-category__title {
        font-size: 1.1rem !important;
        padding: 5px 5px 8px 5px !important;
        color: #333 !important;
        text-transform: uppercase !important;
    }
    
    .woocommerce ul.products {
        padding: 0 5px !important;
    }
    
    .woocommerce ul.products li.product-category a {
        padding: 0 5px;
    }
}

main#main {
    margin-bottom: 24px;
}

/* Masquer les tableaux sur mobile dans les fiches produits */
@media (max-width: 768px) {
    .woocommerce-Tabs-panel--description table,
    .woocommerce div.product .woocommerce-Tabs-panel table,
    .single-product .woocommerce-Tabs-panel table {
        display: none !important;
    }
    
    /* Masquer le titre "A retenir :" sur mobile (mais pas les H4 dans les accordéons) */
    .woocommerce-Tabs-panel--description > h4,
    .woocommerce div.product .woocommerce-Tabs-panel > h4,
    .single-product .woocommerce-Tabs-panel > h4 {
        display: none !important;
    }
    
    /* S'assurer que les H4 dans les accordéons sont visibles sur mobile */
    .woocommerce-Tabs-panel--description .accordion-content h4,
    .woocommerce div.product .woocommerce-Tabs-panel .accordion-content h4,
    .single-product .woocommerce-Tabs-panel .accordion-content h4 {
        display: block !important;
        margin-bottom: 12px;
        font-weight: 600;
        color: #205983;
    }
    
    /* Message informatif pour les tableaux masqués */
    .woocommerce-Tabs-panel--description table::before,
    .woocommerce div.product .woocommerce-Tabs-panel table::before,
    .single-product .woocommerce-Tabs-panel table::before {
        content: "Tableau disponible sur desktop";
        display: block;
        background: #f8f9fa;
        padding: 12px;
        border-radius: 6px;
        color: #6c757d;
        font-size: 14px;
        text-align: center;
        margin-bottom: 16px;
        border: 1px solid #e9ecef;
    }
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    display: none;
}

/* Bloc product-meta déplacé à la fin de la fiche produit */
.product-meta-end {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.product-meta-end .product_meta {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.product-meta-end .product-meta-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Responsive pour le product-meta déplacé */
@media (max-width: 768px) {
    .product-meta-end {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .product-meta-end .product-meta-container {
        padding: 16px;
    }
}

/* ============================================
   GESTION DES AGENTS ET CARTES GÉOGRAPHIQUES
   ============================================ */

/* Styles pour les pages agents individuelles */
.agent-single {
    max-width: 100% !important;
    margin: 0;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

.agent-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.agent-thumbnail {
    flex-shrink: 0;
}

.agent-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #3F91CD;
    box-shadow: 0 4px 16px rgba(63, 145, 205, 0.2);
}

.agent-header-content {
    flex: 1;
}

.agent-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #205983;
    margin: 0 0 20px 0;
}

.agent-contact-info {
    margin-top: 20px;
}

.agent-contact-info p {
    margin: 12px 0;
    font-size: 16px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-contact-info i {
    color: #3F91CD;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.agent-contact-info a {
    color: #3F91CD;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agent-contact-info a:hover {
    color: #205983;
    text-decoration: underline;
}

.agent-content {
    margin-top: 40px;
}

.agent-zones {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.agent-zones h2 {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #205983;
    margin: 0 0 20px 0;
}

.zones-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zone-item {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 15px;
}

.zone-item:last-child {
    border-bottom: none;
}

.zone-item strong {
    color: #205983;
    margin-right: 8px;
}

.agent-description {
    line-height: 1.8;
    color: #495057;
    font-size: 16px;
}

.agent-description h2,
.agent-description h3,
.agent-description h4 {
    font-family: "Archivo Narrow", sans-serif;
    color: #205983;
    margin-top: 30px;
    margin-bottom: 15px;
}

.agent-description p {
    margin-bottom: 16px;
}

/* Formulaire de contact agent */
.agent-contact-form-wrapper {
    margin-top: 50px;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.agent-contact-form-wrapper h2 {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #205983;
    margin: 0 0 30px 0;
}

.agent-contact-form .form-group {
    margin-bottom: 25px;
}

.agent-contact-form .form-group label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 15px;
}

.agent-contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.agent-contact-form .form-control:focus {
    outline: none;
    border-color: #205983;
    box-shadow: 0 0 0 3px rgba(32, 89, 131, 0.1);
}

.agent-contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.agent-contact-submit-btn {
    background: #205983;
    color: #ffffff;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.agent-contact-submit-btn:hover:not(:disabled) {
    background: #3F91CD;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 89, 131, 0.3);
}

.agent-contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.agent-contact-form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.agent-contact-form-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.agent-contact-form-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.agent-contact-form-message i {
    margin-right: 8px;
}

/* Responsive pour le formulaire de contact */
@media (max-width: 768px) {
    .agent-contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .agent-contact-form-wrapper h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .agent-contact-form-wrapper {
        padding: 25px 15px;
    }
    
    .agent-contact-form-wrapper h2 {
        font-size: 24px;
    }
    
    .agent-contact-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== Landing produit — style type Apple (apple.com/macbook-air) ========== */
.landing-produit {
    margin-bottom: 0;
}

.landing-produit-body {
    width: 100%;
    max-width: none;
}

/* Conteneur centré pour titres / CTA (texte type Apple) */
.landing-produit-container {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.landing-produit-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

/* Hero pleine largeur */
.landing-produit-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.landing-produit-hero-image {
    width: 100%;
    line-height: 0;
}

.landing-produit-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 85vh;
}

.landing-produit-hero-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.25), transparent);
    color: #fff;
}

.landing-produit-hero .landing-produit-title-hero {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.landing-produit-hero .landing-produit-excerpt-hero {
    color: rgba(255,255,255,0.95);
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.4;
}

.landing-produit-header {
    text-align: center;
}

.landing-produit-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #205983;
    margin: 0 0 0.75rem 0;
    line-height: 1.1;
}

.landing-produit-excerpt {
    font-size: 1.25rem;
    color: #495057;
    line-height: 1.5;
    margin: 0;
}

/* Zone contenu : blocs pleine largeur possibles */
.landing-produit-content {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* Blocs « Largeur complète » : vraie pleine largeur (style Apple) */
.single-landing-produit .landing-produit-content .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* Image pleine largeur : bord à bord, sans padding latéral */
.single-landing-produit .landing-produit-content > .wp-block-image.alignfull,
.single-landing-produit .landing-produit-content > .wp-block-image.landing-image-full {
    padding-left: 0;
    padding-right: 0;
}

.single-landing-produit .landing-produit-content > .wp-block-image.alignfull figure,
.single-landing-produit .landing-produit-content > .wp-block-image.landing-image-full figure,
.single-landing-produit .landing-produit-content > .wp-block-image.alignfull img,
.single-landing-produit .landing-produit-content > .wp-block-image.landing-image-full img {
    width: 100%;
    max-width: none;
    display: block;
}

.single-landing-produit .landing-produit-content .alignfull .alignfull {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Blocs « Large » : un peu plus que le contenu standard */
.single-landing-produit .landing-produit-content .alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Blocs par défaut (sans align) : colonne centrée type Apple */
.single-landing-produit .landing-produit-content > *:not(.alignfull):not(.alignwide) {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Sections type Apple : espacement vertical généreux */
.single-landing-produit .landing-produit-content > .wp-block-group,
.single-landing-produit .landing-produit-content > .wp-block-cover {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.single-landing-produit .landing-produit-content > .wp-block-group.alignfull,
.single-landing-produit .landing-produit-content > .wp-block-cover.alignfull {
    padding-left: 24px;
    padding-right: 24px;
}

/* Typo type Apple dans le contenu */
.landing-produit-content .wp-block-heading,
.landing-produit-content h2,
.landing-produit-content h3,
.landing-produit-content h4 {
    font-family: "Archivo Narrow", sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #205983;
    line-height: 1.2;
}

.landing-produit-content h2,
.landing-produit-content .wp-block-heading.has-h-2-font-size {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.landing-produit-content h3,
.landing-produit-content .wp-block-heading.has-h-3-font-size {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.landing-produit-content p,
.landing-produit-content .wp-block-paragraph {
    font-size: 1.125rem;
    line-height: 1.65;
    color: #1d1d1f;
    margin-bottom: 1.25rem;
}

.landing-produit-content .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
}

.landing-produit-content .wp-block-media-text {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* CTA final */
.landing-produit-cta {
    text-align: center;
}

.landing-produit-cta .landing-produit-container {
    padding-top: 2rem;
    padding-bottom: 3rem;
    border-top: 1px solid #e5e5e7;
}

.landing-produit-cta-button {
    display: inline-block;
    background: #205983;
    color: #fff !important;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 980px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.landing-produit-cta-button:hover {
    background: #3F91CD;
    transform: translateY(-2px);
}

body.single-landing-produit {
    overflow-x: hidden;
}

/* Archive des agents */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.page-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 42px;
    font-weight: 600;
    color: #205983;
    margin: 0 0 15px 0;
}

.archive-description {
    font-size: 18px;
    color: #6c757d;
    line-height: 1.6;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.agent-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(63, 145, 205, 0.2);
}

.agent-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.agent-card-logo-top {
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.agent-card-logo-top .agent-card-logo {
    max-width: 95%;
    width: auto;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    display: block;
}

.agent-card-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.agent-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    display: block;
}

.agent-card:hover .agent-card-photo,
.agent-card-link:hover .agent-card-photo {
    transform: scale(1.05);
}

/* Logo overlay au survol */
.agent-card-logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    opacity: 1 !important; /* TEMPORAIRE : visible pour inspection */
    transition: opacity 0.3s ease;
    z-index: 20;
    pointer-events: none;
    visibility: visible;
}

.agent-card:hover .agent-card-logo-overlay,
.agent-card-link:hover .agent-card-logo-overlay,
.agent-card:hover .agent-card-thumbnail .agent-card-logo-overlay,
.agent-card-link:hover .agent-card-thumbnail .agent-card-logo-overlay {
    opacity: 1;
}

.agent-card-logo {
    max-width: 85%;
    width: auto;
    height: auto;
    max-height: 70%;
    object-fit: contain;
    display: block;
}

.agent-card-content {
    padding: 24px;
}

.agent-card-title,
.agent-card-content h2.agent-card-title,
.agent-card-content h4.agent-card-title,
.agent-card-content h2,
.agent-card-content h4 {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #205983;
    margin: 0 0 8px 0;
    text-align: center !important;
    width: 100%;
    display: block;
}

.agent-card-zone {
    font-size: 14px;
    color: #3F91CD;
    text-align: center !important;
    margin: 0 0 12px 0;
    font-weight: 500;
    display: block;
    width: 100%;
}

.agent-card-excerpt {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.agent-card-location {
    color: #3F91CD;
    font-size: 14px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-card-location i {
    font-size: 16px;
}

.agent-card-link-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3F91CD;
    font-weight: 600;
    font-size: 15px;
    margin-top: 15px;
    transition: gap 0.3s ease;
}

.agent-card:hover .agent-card-link-text {
    gap: 12px;
}

/* Section Nos Agents - Carte interactive */
.nos-agents-section {
    width: 100%;
    padding: 80px 30px;
    background: #ffffff;
    box-shadow: none !important;
}

.nos-agents-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.nos-agents-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #205983;
    margin: 0 0 40px 0;
    text-align: center;
}

.agents-search-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    display: flex;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    padding: 12px 20px;
    background: #3F91CD;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #205983;
}

.geolocate-button {
    padding: 12px 20px;
    background: #ffffff;
    color: #205983;
    border: 2px solid #205983;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.geolocate-button:hover {
    background: #205983;
    color: #ffffff;
}

.geolocate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.agents-map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.agents-map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none !important;
    border: 1px solid #e0e0e0;
}

.agents-results {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: none !important;
    border: 1px solid #e0e0e0;
    max-height: 500px;
    overflow-y: auto;
}

.agents-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.agents-results-header h3 {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #205983;
    margin: 0;
}

.agents-count {
    background: #3F91CD;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.agents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agents-list .agent-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    box-shadow: none !important;
}

.agents-list .agent-card:hover {
    border-color: #3F91CD;
    transform: translateY(-2px);
}

.agents-list .agent-card-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.agents-list .agent-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agents-list .agent-card-content h4,
.agents-list .agent-card-content .agent-card-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 18px;
    text-align: center;
    font-weight: 600;
    color: #205983;
    margin: 0 0 8px 0;
}

.agents-list .agent-card-zone {
    font-size: 14px;
    color: #3F91CD;
    text-align: center;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.agents-list .agent-card-content h4 a {
    color: #205983;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agents-list .agent-card-content h4 a:hover {
    color: #3F91CD;
}

.agent-location,
.agent-phone {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.agent-location i,
.agent-phone i {
    color: #3F91CD;
    margin-right: 5px;
}

.agent-phone a {
    color: #666;
    text-decoration: none;
}

.agent-phone a:hover {
    color: #205983;
}

.agents-list .agent-card-link {
    display: inline-block;
    margin-top: 10px;
    color: #3F91CD;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.agents-list .agent-card-link:hover {
    color: #205983;
}

/* Styles pour les marqueurs Leaflet */
.agent-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 30px;
    height: 30px;
    background: #3F91CD;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.marker-pin i {
    color: #ffffff;
    font-size: 16px;
    transform: rotate(45deg);
}

.marker-pin.user {
    background: #205983;
}

/* Popup Leaflet */
.agent-popup {
    min-width: 200px;
}

.agent-popup h4 {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #205983;
    margin: 0 0 10px 0;
}

.agent-popup h4 a {
    color: #205983;
    text-decoration: none;
}

.agent-popup p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.agent-popup i {
    color: #3F91CD;
    margin-right: 5px;
}

.agent-link-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #205983;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.agent-link-btn:hover {
    background: #3F91CD;
    color: #ffffff;
}

.error-message,
.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Responsive pour les pages agents */
@media (max-width: 768px) {
    .agent-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .agent-photo {
        width: 150px;
        height: 150px;
    }
    
    .agent-title {
        font-size: 28px;
    }
    
    .agents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .nos-agents-section {
        padding: 60px 20px;
    }
    
    .nos-agents-title {
        font-size: 32px;
    }
    
    .agents-search-container {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .geolocate-button {
        width: 100%;
    }
    
    .agents-map {
        height: 350px;
    }
    
    .agents-results {
        max-height: 350px;
    }
}

@media (max-width: 1024px) {
    .agents-map-container {
        grid-template-columns: 1fr;
    }
    
    .agents-map {
        height: 400px;
    }
    
    .agents-results {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .agent-single {
        padding: 20px 15px;
    }
    
    .agent-photo {
        width: 120px;
        height: 120px;
    }
    
    .agent-title {
        font-size: 24px;
    }
    
    .agent-contact-info p {
        font-size: 14px;
    }
    
    .agent-zones {
        padding: 16px;
    }
    
    .agent-zones h2 {
        font-size: 20px;
    }
    
    .nos-agents-section {
        padding: 40px 15px;
    }
    
    .nos-agents-title {
        font-size: 28px;
    }
    
    .agents-list .agent-card {
        flex-direction: column;
        text-align: center;
    }
    
    .agents-list .agent-card-thumbnail {
        margin: 0 auto;
    }
}

/* ============================================
   SECTION CARTE DES AGENTS - PAGE D'ACCUEIL
   ============================================ */

.agents-map-homepage-section {
    width: 100%;
    padding: 20px 30px;
    background: #ffffff;
    box-shadow: none !important;
    margin: 0;
    margin-bottom: 20px;
}

.agents-map-homepage-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.agents-map-homepage-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #205983;
    margin: 0 0 30px 0;
    text-align: center;
}

.agents-map-homepage-text {
    max-width: 900px;
    margin: 0 0 40px 0;
    text-align: left;
    font-size: 18px;
    line-height: 1.8;
    color: #495057;
}

.agents-map-homepage-text p {
    margin: 0 0 15px 0;
}

.agents-map-homepage-text p:last-child {
    margin-bottom: 0;
}

/* En-tête de la section carte : titre+texte à gauche, image à droite */
.agents-map-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

.agents-map-header.agents-map-header--no-image {
    grid-template-columns: 1fr;
}

.agents-map-header-content {
    max-width: 100%;
}

.agents-map-header-image {
    display: flex;
    justify-content: right;
    align-items: center;
}

.agents-map-header-image img {
    max-width: 100%;
    height: auto;
    max-height: 351px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive : sur mobile, l'image passe sous le texte */
@media (max-width: 768px) {
    .agents-map-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .agents-map-header-image {
        order: 2;
    }
    
    .agents-map-header-content {
        order: 1;
    }
}

.agents-map-homepage-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    margin-top: 30px;
}

/* La carte prend 60% de la largeur (3fr sur 5fr total) - colonne 1 (gauche) */
.agents-map-france-container {
    grid-column: 1;
}

/* La sidebar prend 40% de la largeur - colonne 2 (droite) */
.agents-map-sidebar {
    grid-column: 2;
}

.agents-map-france-container {
    position: relative;
}

.agents-map-find-button-container {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

/* Desktop : masquer le bouton "Trouver mon opticien" et s'assurer que la sidebar est à droite */
@media (min-width: 769px) {
    .agents-map-find-button-container {
        display: none;
    }
    
    /* S'assurer que la sidebar est bien positionnée à droite (pas en overlay) */
    .agents-map-sidebar {
        position: relative !important;
        transform: none !important;
        max-height: 600px;
        overflow-y: auto;
    }
    
    .agents-map-sidebar-overlay {
        display: none !important;
    }
}

.agents-map-find-optician-btn {
    background: linear-gradient(135deg, #3F91CD 0%, #5BA3E0 100%);
    color: #ffffff;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(63, 145, 205, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.agents-map-find-optician-btn:hover {
    background: linear-gradient(135deg, #205983 0%, #3F91CD 100%);
    box-shadow: 0 4px 8px rgba(32, 89, 131, 0.4);
    transform: translateY(-1px);
}

.agents-map-find-optician-btn:active {
    transform: translateY(0);
}

.france-map-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background: #f9f9f9;
}

.france-map-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Message réservé aux administrateurs si aucun marqueur (site en ligne sans contenus opticiens) */
.agents-map-empty-admin-notice {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    margin: 0;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #1a1a1a;
    background: rgba(255, 255, 230, 0.95);
    border: 1px solid #e6c200;
    border-radius: 6px;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Pictos plus petits sur la page d’accueil (même position qu’en admin) */
.agent-picto-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease, filter 0.3s ease;
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
}

.agent-picto-marker svg {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    display: block;
}

/* Forcer la couleur du SVG via CSS */
.agent-picto-marker svg path,
.agent-picto-marker svg .cls-1 {
    fill: var(--marker-color, #3a53a0) !important;
}

.agent-picto-marker:hover {
    transform: translate(-50%, -50%) scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(58, 83, 160, 0.5));
}

.agent-picto-marker.selected {
    transform: translate(-50%, -50%) scale(1.25);
    filter: drop-shadow(0 6px 12px rgba(58, 83, 160, 0.7));
    z-index: 15;
}

.picto-svg {
    width: 26px;
    height: 26px;
    display: block;
}

/* Card au survol */
.france-map-image-wrapper {
    position: relative;
}

.agent-hover-card {
    position: absolute;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px;
    min-width: 180px;
    max-width: 220px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.agent-hover-card.visible {
    pointer-events: auto;
}

.agent-hover-card-contact-btn {
    pointer-events: auto;
}

.agent-hover-card.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.agent-hover-card-thumbnail {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f8f9fa;
    position: relative;
}

.agent-hover-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;
}

.agent-hover-card-thumbnail .agent-card-logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    opacity: 1 !important; /* TEMPORAIRE : visible pour inspection */
    transition: opacity 0.3s ease;
    z-index: 20;
    pointer-events: none;
}

.agent-hover-card:hover .agent-card-logo-overlay,
.agent-hover-card:hover .agent-hover-card-thumbnail .agent-card-logo-overlay {
    opacity: 1;
}

.agent-hover-card-content {
    text-align: left;
}

.agent-hover-card-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #205983;
    margin: 0 0 8px 0;
}

.agent-hover-card-location {
    font-size: 12px;
    color: #666;
    margin: 4px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.agent-hover-card-location i {
    color: #3F91CD;
    width: 18px;
    text-align: center;
}

.agent-hover-card-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.agent-hover-card-contact-btn {
    display: inline-block;
    width: 100%;
    background: #205983;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
    font-family: "Archivo Narrow", sans-serif;
    box-shadow: 0 2px 4px rgba(32, 89, 131, 0.3);
    border: none;
}

.agent-hover-card-contact-btn:hover {
    background: #1a4a6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(32, 89, 131, 0.4);
    color: #ffffff !important;
}

/* Sidebar */
.agents-map-sidebar {
    /* background: #f9f9f9; */
    border-radius: 3px;
    padding: 14px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    transition: all 0.3s ease;
    max-height: 600px;
    overflow-y: auto;
    position: relative;
}

/* Bouton croix pour fermer - masqué par défaut sur desktop */
.agents-map-sidebar-close {
    display: none;
}

/* Section de recherche dans la sidebar */
.agents-map-search-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.agents-map-search-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #205983;
    margin: 0 0 25px 0;
    text-align: center;
}

.agents-map-search-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agent-geolocate-button {
    flex: 1;
    background: #205983;
    color: #ffffff;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(32, 89, 131, 0.3);
}

.agent-geolocate-button:hover:not(:disabled) {
    background: #1a4a6b;
    box-shadow: 0 4px 8px rgba(32, 89, 131, 0.4);
    transform: translateY(-1px);
}

.agent-geolocate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.agents-map-address-search {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 15px;
}

.search-location-icon {
    color: #205983;
    font-size: 18px;
    flex-shrink: 0;
}

.agent-address-input {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: transparent;
}

.agent-address-input:focus {
    outline: none;
}

.agents-map-address-search:focus-within {
    border-color: #205983;
}

.agent-address-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 50px;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: -1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.agent-address-autocomplete .autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-address-autocomplete .autocomplete-item:last-child {
    border-bottom: none;
}

.agent-address-autocomplete .autocomplete-item:hover,
.agent-address-autocomplete .autocomplete-item.active {
    background-color: #f5f5f5;
}

.agent-address-autocomplete .autocomplete-item i {
    color: #205983;
    font-size: 14px;
    flex-shrink: 0;
}

.agent-address-autocomplete .autocomplete-item span {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.agents-map-search-buttons {
    display: flex;
    gap: 10px;
}

.agent-search-address-button {
    flex: 1;
    background: linear-gradient(135deg, #3F91CD 0%, #5BA3E0 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(63, 145, 205, 0.3);
}

.agent-search-address-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #205983 0%, #3F91CD 100%);
    box-shadow: 0 4px 8px rgba(32, 89, 131, 0.4);
    transform: translateY(-1px);
}

.agent-search-address-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* Résultats de recherche */
.agents-search-results {
    margin-top: 20px;
}

.agents-search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agent-search-result-item {
    padding: 0px 19px 2px 0px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    margin-bottom: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.agent-search-result-item:hover {
    background: #f0f7ff;
    border-color: #205983;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.agent-result-thumbnail {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    background: #f8f9fa;
}

.agent-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    align-items: center;
}

.agent-result-name {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #205983;
    margin: 0;
    line-height: 1.2;
}

.agent-result-zone {
    font-size: 14px;
    color: #3F91CD;
    line-height: 1.2;
    margin: 0;
    font-weight: 600;
}

.agent-result-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.agent-result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 15px;
}

.agent-distance {
    color: #205983;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.agent-contact-button {
    background: #205983;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(32, 89, 131, 0.3);
    white-space: nowrap;
}

.agent-contact-button:hover {
    background: #1a4a6b;
    box-shadow: 0 4px 8px rgba(32, 89, 131, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
}

.agents-map-sidebar.active {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.agents-map-sidebar-placeholder {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
    margin: 0;
}

.agent-sidebar-card {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.agent-sidebar-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.agent-sidebar-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #f8f9fa;
    position: relative;
}

.agent-sidebar-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agent-sidebar-thumbnail .agent-card-logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    opacity: 1 !important; /* TEMPORAIRE : visible pour inspection */
    transition: opacity 0.3s ease;
    z-index: 20;
    pointer-events: none;
}

.agent-sidebar-card:hover .agent-card-logo-overlay,
.agent-sidebar-card:hover .agent-sidebar-thumbnail .agent-card-logo-overlay {
    opacity: 1;
}

.agent-sidebar-title {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #205983;
    margin: 0 0 25px 0;
    text-align: center;
}

.agent-sidebar-info {
    margin-bottom: 25px;
}

.agent-sidebar-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.agent-sidebar-info-item i {
    color: #3F91CD;
    font-size: 20px;
    width: 24px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.agent-sidebar-info-content {
    flex: 1;
}

.agent-sidebar-info-content p {
    margin: 0;
    font-size: 15px;
    color: #495057;
    line-height: 1.6;
}

.agent-sidebar-info-content a {
    color: #3F91CD;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agent-sidebar-info-content a:hover {
    color: #205983;
    text-decoration: underline;
}

.agent-sidebar-excerpt {
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.agent-sidebar-excerpt p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.agent-sidebar-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.agent-sidebar-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #205983;
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(32, 89, 131, 0.3);
    border: none;
}

.agent-sidebar-contact-btn:hover {
    background: #1a4a6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(32, 89, 131, 0.4);
    color: #ffffff !important;
}

.agent-sidebar-contact-btn i {
    font-size: 18px;
}

/* Responsive pour la section carte des agents */
@media (max-width: 1024px) {
    /*
     * Une colonne + grid-column: 1 sur les deux blocs : la carte reste en haut,
     * les champs passent en dessous (plus de 2e colonne implicite ni rognage).
     */
    .agents-map-homepage-wrapper {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        align-items: stretch;
    }

    .agents-map-france-container {
        grid-column: 1;
        width: 100%;
        min-width: 0;
        order: 1;
    }

    .agents-map-sidebar {
        grid-column: 1;
        width: 100%;
        min-width: 0;
        max-height: none;
        height: auto;
        order: 2;
    }
}

@media (max-width: 768px) {
    .agents-map-homepage-section {
        padding: 40px 15px;
    }
    
    .agents-map-homepage-title {
        font-size: 28px;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    .agents-map-homepage-text {
        font-size: 15px;
        margin-bottom: 25px;
        padding: 0;
        line-height: 1.6;
    }
    
    .agents-map-homepage-wrapper {
        gap: 20px;
    }
    
    .agents-map-container {
        height: 400px;
        min-height: 400px;
    }
    
    .agents-map-sidebar {
        max-height: none;
        height: auto;
        padding: 20px 15px;
    }
    
    .agent-sidebar-thumbnail {
        height: 150px;
    }
    
    .agent-sidebar-title {
        font-size: 22px;
    }
    
    .agent-sidebar-info-content {
        font-size: 14px;
    }
    
    .agent-sidebar-contact-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .agents-map-homepage-section {
        padding: 30px 10px;
    }
    
    .agents-map-homepage-title {
        font-size: 24px;
    }
    
    .agents-map-homepage-text {
        font-size: 14px;
    }
    
    .agents-map-find-button-container {
        margin-top: 15px;
    }
    
    .agents-map-find-optician-btn {
        width: 100%;
        font-size: 16px;
        padding: 14px 24px;
        justify-content: center;
    }
    
    /* Solution 1: Empiler carte et sidebar verticalement */
    .agents-map-homepage-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .agents-map-france-container {
        grid-column: 1;
        width: 100%;
        min-width: 0;
    }

    .agents-map-sidebar {
        grid-column: 1;
        width: 100%;
        min-width: 0;
    }
    
    .agents-map-container {
        height: 300px;
        min-height: 300px;
        order: 1;
    }
    
    .france-map-image-wrapper {
        width: 130%;
        margin-left: -15%;
    }
    
    /* Solution 2: Sidebar en modal/overlay au lieu de côte à côte */
    .agents-map-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        padding: 20px 15px;
        padding-top: 50px;
        background: #ffffff;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        border-radius: 20px 20px 0 0;
        z-index: 1000;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .agents-map-sidebar.active {
        transform: translateY(0);
    }
    
    /* Bouton croix pour fermer l'overlay mobile */
    .agents-map-sidebar-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        background: transparent;
        border: none;
        color: #205983;
        font-size: 20px;
        cursor: pointer;
        z-index: 1001;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
        padding: 0;
    }
    
    .agents-map-sidebar-close:hover,
    .agents-map-sidebar-close:focus {
        background: #f0f0f0;
        color: #1a4a6b;
        outline: none;
    }
    
    .agents-map-sidebar-close i {
        line-height: 1;
    }
    
    /* Overlay pour fermer la sidebar */
    .agents-map-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .agents-map-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Solution 3: Pictos plus petits et carte plus grande avec rognage sur mobile */
    .agents-map-france-container {
        overflow: hidden;
        width: 100%;
    }
    
    .france-map-image-wrapper {
        width: 130%;
        margin-left: -15%;
    }
    
    .agent-picto-marker {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
    }
    
    .agent-picto-marker svg {
        width: 22px !important;
        height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
    }
    
    /* Solution 4: Bouton pour ouvrir/fermer la sidebar */
    .agents-map-sidebar-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background: #205983;
        color: #ffffff;
        border: none;
        border-radius: 50%;
        font-size: 24px;
        cursor: pointer;
        z-index: 998;
        box-shadow: 0 4px 12px rgba(32, 89, 131, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .agents-map-sidebar-toggle:hover {
        background: #3F91CD;
        transform: scale(1.1);
    }
    
    .agents-map-sidebar-toggle.active {
        background: #d32f2f;
    }
    
    /* Solution 5: Améliorer les cards hover pour mobile (clic au lieu de hover) */
    .agent-hover-card {
        position: fixed;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        max-width: 90%;
        z-index: 1001;
    }
    
    .agent-hover-card.visible {
        transform: translateX(-50%) translateY(0);
    }
    
    .agent-sidebar-thumbnail {
        height: 120px;
    }
    
    .agent-sidebar-title {
        font-size: 20px;
    }
    
    /* Solution 6: Ajouter un indicateur de scroll pour la sidebar */
    .agents-map-sidebar::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #ccc;
        border-radius: 2px;
    }
}

/* ============================================
   AMÉLIORATIONS GLOBALES MOBILE - PAGE D'ACCUEIL
   ============================================ */

@media (max-width: 768px) {
    /* Espacements globaux */
    section {
        margin-bottom: 40px;
    }
    
    /* Titres de sections */
    .section-title,
    .products-section-title,
    .services-section-title,
    .about-section-title,
    .reviews-section-title,
    .agents-map-homepage-title {
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Conteneurs */
    .container,
    .section-container,
    .products-container,
    .services-container,
    .about-container,
    .reviews-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Images responsives */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Boutons */
    .button,
    .btn,
    a.button {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* Espacements encore plus réduits */
    section {
        margin-bottom: 30px;
    }
    
    /* Padding réduit pour toutes les sections */
    .section,
    .products-section,
    .services-section,
    .about-section,
    .google-reviews-section,
    .agents-map-homepage-section {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Typographie optimisée */
    h1, h2, h3 {
        word-wrap: break-word;
        line-height: 1.3;
    }
    
    p {
        line-height: 1.6;
    }
}

@media (max-width: 768px) {
    .agents-map-homepage-section {
        padding: 60px 20px;
    }
    
    .agents-map-homepage-title {
        font-size: 32px;
        margin-bottom: 25px;
    }
    
    .agents-map-homepage-text {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 20px;
    }
    
    .picto-svg {
        width: 35px;
        height: 35px;
    }
    
    .agent-hover-card {
        min-width: 220px;
        max-width: 250px;
        padding: 15px;
    }
    
    .agent-hover-card-thumbnail {
        height: 140px;
    }
    
    .agent-hover-card-title {
        font-size: 18px;
    }
    
    .agents-map-sidebar {
        padding: 20px;
        max-height: 400px;
    }
    
    .agent-sidebar-thumbnail {
        height: 150px;
    }
    
    .agent-sidebar-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .agents-map-homepage-section {
        padding: 40px 15px;
    }
    
    .agents-map-homepage-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .agents-map-homepage-text {
        font-size: 15px;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .picto-svg {
        width: 30px;
        height: 30px;
    }
    
    .agent-hover-card {
        min-width: 200px;
        max-width: 220px;
        padding: 12px;
    }
    
    .agent-hover-card-thumbnail {
        height: 120px;
    }
    
    .agent-sidebar-thumbnail {
        height: 120px;
    }
    
    .agent-sidebar-title {
        font-size: 20px;
    }
    
    .agent-sidebar-contact-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}