/*!
Theme Name: Xpertive
Theme URI: http://underscores.me/
Author: Revolucy
Author URI: https://www.revolucy.fr/
Description: Xpertive - Custom theme for workshop pits
Version: 1.0.2
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: xpertive
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

/*--------------------------------------------------------------
# DEBUT CSS REVOLUCY
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# GLOBAL - Prevent horizontal overflow from decorative elements
--------------------------------------------------------------*/
body {
    overflow-x: hidden;
}

div.gtranslate_wrapper img {
  margin: 0 5px !important;
  border-radius: 3px;
}

/*--------------------------------------------------------------
# WYSIWYG - WordPress image alignment & figure/caption
# Classes posées par TinyMCE quand la cliente insère une image
# dans un champ WYSIWYG (Bloc Contenu, intro, etc.).
# Sans ces règles, "Centrer/Aligner" et `<figure>` n'ont aucun effet
# visuel parce que Tailwind preflight passe `img { display:block }`.
--------------------------------------------------------------*/
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}
.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}
.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}
.alignnone {
    display: block;
    margin-bottom: 1em;
}

figure.wp-caption,
.wp-caption {
    display: block;
    max-width: 100%;
    margin-bottom: 2em;
}
figure.wp-caption.aligncenter,
.wp-caption.aligncenter {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
}
figure.wp-caption.alignleft,
.wp-caption.alignleft {
    float: left;
    margin: 0 1.5em 2em 0;
}
figure.wp-caption.alignright,
.wp-caption.alignright {
    float: right;
    margin: 0 0 2em 1.5em;
}

/* Standalone images (without wp-caption wrapper) also need breathing room */
.wysiwyg-content > img,
.wysiwyg-content > p > img.aligncenter,
.wysiwyg-content > p > img.alignnone {
    margin-bottom: 1.5em;
}

/* WYSIWYG [video] shortcode (.wp-video) — center by default
   WP renders <div class="wp-video" style="width:640px"> without margins,
   so the video sticks to the left even when the user clicks "centrer".
   In our WYSIWYG context, videos should center within the content column. */
.wysiwyg-content .wp-video,
.entry-content .wp-video {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.75em;
    max-width: 100%;
}
.wysiwyg-content .wp-video video,
.entry-content .wp-video video {
    max-width: 100%;
    height: auto;
}
.wysiwyg-content .wp-video.alignleft,
.entry-content .wp-video.alignleft {
    margin-left: 0;
    margin-right: auto;
    float: left;
}
.wysiwyg-content .wp-video.alignright,
.entry-content .wp-video.alignright {
    margin-left: auto;
    margin-right: 0;
    float: right;
}

/* WYSIWYG iframe alignment (oEmbed YouTube/Vimeo)
   When the user pastes a video URL, WP turns it into an <iframe>; the
   TinyMCE "centrer" button puts text-align:center on the wrapping <p>,
   but most iframes ignore it because their default display is inline
   with a fixed width attribute. Force them into block flow with auto
   margins so the alignment is honored. */
.wysiwyg-content iframe,
.entry-content iframe {
    max-width: 100%;
}
.wysiwyg-content p[style*="text-align: center"] iframe,
.wysiwyg-content p[style*="text-align:center"] iframe,
.wysiwyg-content p.aligncenter iframe,
.wysiwyg-content .aligncenter iframe,
.wysiwyg-content figure.aligncenter iframe,
.entry-content p[style*="text-align: center"] iframe,
.entry-content p[style*="text-align:center"] iframe,
.entry-content p.aligncenter iframe,
.entry-content .aligncenter iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wysiwyg-content p[style*="text-align: right"] iframe,
.wysiwyg-content p[style*="text-align:right"] iframe,
.entry-content p[style*="text-align: right"] iframe,
.entry-content p[style*="text-align:right"] iframe {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

figcaption,
.wp-caption-text {
    font-size: 0.85em;
    color: #666;
    text-align: center;
    margin-top: 0.5em;
    font-style: italic;
}

/* Clip horizontal overflow without affecting vertical (for decorative arrows) */
.overflow-x-clip {
    overflow-x: clip;
}

/* Gallery mobile - slide up animation */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-slide-up {
    animation: fadeSlideUp 0.4s ease-out forwards;
}

/*--------------------------------------------------------------
# BREADCRUMB HERO (Yoast SEO)
--------------------------------------------------------------*/

.breadcrumb-hero a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-hero a:hover {
    color: #FF6600;
}

.breadcrumb-hero span[class*="breadcrumb_last"] {
    font-weight: 700;
    text-decoration: underline;
}

/*--------------------------------------------------------------
# CLASSES TITRES UTILITAIRES
--------------------------------------------------------------*/

.title-h1 {
    font-family: 'Michroma', sans-serif;
    font-size: 48px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.3;
}

.title-h2,
.wysiwyg-content h2 {
    font-family: 'Michroma', sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.3;
}

.title-h3,
.wysiwyg-content h3 {
    font-family: 'Barlow', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
}

.title-h4,
.wysiwyg-content h4 {
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

/* Liens WYSIWYG */
.wysiwyg-content a {
    color: var(--color-brand-orange);
    text-decoration: underline;
}

.wysiwyg-content a:hover {
    color: var(--color-brand-orange-dark);
}

/*--------------------------------------------------------------
# WYSIWYG HERO - Styles spécifiques pour le hero
--------------------------------------------------------------*/

.wysiwyg-hero h2 {
    font-family: 'Michroma', sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.wysiwyg-hero p {
    font-family: 'Barlow', sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
}

.wysiwyg-hero a {
    color: #FF6600;
    text-decoration: underline;
}

/*--------------------------------------------------------------
# STYLES WYSIWYG - Listes flèches & Boutons CTA
--------------------------------------------------------------*/

/* Ordered lists in WYSIWYG - numbered with orange.
   Native list-style + ::marker so each <ol> is semantically independent
   and TinyMCE's start="N" attribute is honored when present. */
.wysiwyg-content ol {
    list-style: decimal outside;
    padding-left: 1.75em;
    margin-left: 0;
    margin-bottom: 24px;
}

.wysiwyg-content ol > li {
    padding-left: 6px;
    margin-bottom: 12px;
}

.wysiwyg-content ol > li::marker {
    color: #FF6600;
    font-weight: 700;
    font-family: 'Barlow', sans-serif;
}

/* Unordered lists in WYSIWYG / Timeline / arrow-list — orange chevron bullets */
.wysiwyg-content ul,
.timeline-content-right ul,
ul.arrow-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 24px;
}

.wysiwyg-content ul li,
.timeline-content-right ul li,
ul.arrow-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.wysiwyg-content ul li::before,
.timeline-content-right ul li::before,
ul.arrow-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: var(--bullet-offset, 2px);
    width: 19px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='15' height='16' viewBox='0 0 15 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.1748 0.25L14.5049 8L6.1748 15.75H0.642578L8.89258 8.18457L9.09375 8L8.89258 7.81641L0.642578 0.25H6.1748Z' fill='%23FF6600'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Bouton CTA (span ou a) */
.btn-primary,
span.btn-primary,
a.btn-primary {
    display: inline-block;
    background-color: #F49B00;
    color: white !important;
    padding: 12px 24px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #FF6600;
}

/* Texte orange */
.text-brand-orange {
    color: #FF6600 !important;
}

/* Sur-titre - Style Michroma décoratif sans utiliser H2
   Utilise le bouton "Sur-titre" dans l'éditeur WYSIWYG */
.surtitre,
span.surtitre,
.wysiwyg-content .surtitre,
.wysiwyg-content span.surtitre,
.wysiwyg-hero .surtitre {
    font-family: 'Michroma', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive sur-titre */
@media (min-width: 768px) {
    .surtitre,
    span.surtitre,
    .wysiwyg-content .surtitre,
    .wysiwyg-content span.surtitre,
    .wysiwyg-hero .surtitre {
        font-size: 22px;
    }
}

@media (min-width: 1024px) {
    .surtitre,
    span.surtitre,
    .wysiwyg-content .surtitre,
    .wysiwyg-content span.surtitre,
    .wysiwyg-hero .surtitre {
        font-size: 25px;
    }
}

/* DEBUT GLOBAL */

/* =====================================================
   CUSTOM STYLE
   Pour page Flexible
   ===================================================== */

.page-template-page-flexible #section_text p {
  margin-bottom: 2px;
}

.page-template-page-flexible #section_text > h2 {
  font-size: 22px;
  margin-top: 30px;
}

.single-post figure img,
.single-post img.size-medium,
.single-post img.size-full,
.single-post img.size-large,
.page-template-page-flexible #section_text img.attachment-medium_large,
.page-template-page-flexible #section_text img.size-full,
.page-template-page-flexible #section_text img.swiper-slide-image,
.page-template-page-flexible #section_text img.attachment-large {
  max-height: 500px;
  width: auto;
  margin: 20px auto;
  border-radius: 5px;
}

/*--------------------------------------------------------------
# AVANT/APRÈS - Diagonal clip design
--------------------------------------------------------------*/

/* Diagonal clip for "/" effect - steeper angle */
.clip-diagonal-left {
  clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%);
}

.clip-diagonal-right {
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
}

/* Vertical text for labels */
.writing-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* Split backgrounds (top color - bottom color)
   Uses CSS variables from WindPress @theme
   -------------------------------------------------- */

/* From white */
.bg-split-white-brand-grey-light { background: linear-gradient(to bottom, #fff 50%, var(--color-brand-grey-light) 50%); }
.bg-split-white-brand-grey { background: linear-gradient(to bottom, #fff 50%, var(--color-brand-grey) 50%); }
.bg-split-white-brand-silver { background: linear-gradient(to bottom, #fff 50%, var(--color-brand-silver) 50%); }
.bg-split-white-brand-dark { background: linear-gradient(to bottom, #fff 50%, var(--color-brand-dark) 50%); }
.bg-split-white-brand-dark-secondary { background: linear-gradient(to bottom, #fff 50%, var(--color-brand-dark-secondary) 50%); }
.bg-split-white-brand-orange { background: linear-gradient(to bottom, #fff 50%, var(--color-brand-orange) 50%); }
.bg-split-white-brand-orange-light { background: linear-gradient(to bottom, #fff 50%, var(--color-brand-orange-light) 50%); }
.bg-split-white-brand-orange-dark { background: linear-gradient(to bottom, #fff 50%, var(--color-brand-orange-dark) 50%); }

/* From brand-grey-light */
.bg-split-brand-grey-light-white { background: linear-gradient(to bottom, var(--color-brand-grey-light) 50%, #fff 50%); }
.bg-split-brand-grey-light-brand-grey { background: linear-gradient(to bottom, var(--color-brand-grey-light) 50%, var(--color-brand-grey) 50%); }
.bg-split-brand-grey-light-brand-silver { background: linear-gradient(to bottom, var(--color-brand-grey-light) 50%, var(--color-brand-silver) 50%); }
.bg-split-brand-grey-light-brand-dark { background: linear-gradient(to bottom, var(--color-brand-grey-light) 50%, var(--color-brand-dark) 50%); }
.bg-split-brand-grey-light-brand-dark-secondary { background: linear-gradient(to bottom, var(--color-brand-grey-light) 50%, var(--color-brand-dark-secondary) 50%); }
.bg-split-brand-grey-light-brand-orange { background: linear-gradient(to bottom, var(--color-brand-grey-light) 50%, var(--color-brand-orange) 50%); }
.bg-split-brand-grey-light-brand-orange-light { background: linear-gradient(to bottom, var(--color-brand-grey-light) 50%, var(--color-brand-orange-light) 50%); }
.bg-split-brand-grey-light-brand-orange-dark { background: linear-gradient(to bottom, var(--color-brand-grey-light) 50%, var(--color-brand-orange-dark) 50%); }

/* From brand-grey */
.bg-split-brand-grey-white { background: linear-gradient(to bottom, var(--color-brand-grey) 50%, #fff 50%); }
.bg-split-brand-grey-brand-grey-light { background: linear-gradient(to bottom, var(--color-brand-grey) 50%, var(--color-brand-grey-light) 50%); }
.bg-split-brand-grey-brand-silver { background: linear-gradient(to bottom, var(--color-brand-grey) 50%, var(--color-brand-silver) 50%); }
.bg-split-brand-grey-brand-dark { background: linear-gradient(to bottom, var(--color-brand-grey) 50%, var(--color-brand-dark) 50%); }
.bg-split-brand-grey-brand-dark-secondary { background: linear-gradient(to bottom, var(--color-brand-grey) 50%, var(--color-brand-dark-secondary) 50%); }
.bg-split-brand-grey-brand-orange { background: linear-gradient(to bottom, var(--color-brand-grey) 50%, var(--color-brand-orange) 50%); }
.bg-split-brand-grey-brand-orange-light { background: linear-gradient(to bottom, var(--color-brand-grey) 50%, var(--color-brand-orange-light) 50%); }
.bg-split-brand-grey-brand-orange-dark { background: linear-gradient(to bottom, var(--color-brand-grey) 50%, var(--color-brand-orange-dark) 50%); }

/* From brand-silver */
.bg-split-brand-silver-white { background: linear-gradient(to bottom, var(--color-brand-silver) 50%, #fff 50%); }
.bg-split-brand-silver-brand-grey-light { background: linear-gradient(to bottom, var(--color-brand-silver) 50%, var(--color-brand-grey-light) 50%); }
.bg-split-brand-silver-brand-grey { background: linear-gradient(to bottom, var(--color-brand-silver) 50%, var(--color-brand-grey) 50%); }
.bg-split-brand-silver-brand-dark { background: linear-gradient(to bottom, var(--color-brand-silver) 50%, var(--color-brand-dark) 50%); }
.bg-split-brand-silver-brand-dark-secondary { background: linear-gradient(to bottom, var(--color-brand-silver) 50%, var(--color-brand-dark-secondary) 50%); }
.bg-split-brand-silver-brand-orange { background: linear-gradient(to bottom, var(--color-brand-silver) 50%, var(--color-brand-orange) 50%); }
.bg-split-brand-silver-brand-orange-light { background: linear-gradient(to bottom, var(--color-brand-silver) 50%, var(--color-brand-orange-light) 50%); }
.bg-split-brand-silver-brand-orange-dark { background: linear-gradient(to bottom, var(--color-brand-silver) 50%, var(--color-brand-orange-dark) 50%); }

/* From brand-dark */
.bg-split-brand-dark-white { background: linear-gradient(to bottom, var(--color-brand-dark) 50%, #fff 50%); }
.bg-split-brand-dark-white-60 { background: linear-gradient(to bottom, var(--color-brand-dark) 60%, #fff 60%); }
.bg-split-brand-dark-brand-grey-light { background: linear-gradient(to bottom, var(--color-brand-dark) 50%, var(--color-brand-grey-light) 50%); }
.bg-split-brand-dark-brand-grey { background: linear-gradient(to bottom, var(--color-brand-dark) 50%, var(--color-brand-grey) 50%); }
.bg-split-brand-dark-brand-silver { background: linear-gradient(to bottom, var(--color-brand-dark) 50%, var(--color-brand-silver) 50%); }
.bg-split-brand-dark-brand-dark-secondary { background: linear-gradient(to bottom, var(--color-brand-dark) 50%, var(--color-brand-dark-secondary) 50%); }
.bg-split-brand-dark-brand-orange { background: linear-gradient(to bottom, var(--color-brand-dark) 50%, var(--color-brand-orange) 50%); }
.bg-split-brand-dark-brand-orange-light { background: linear-gradient(to bottom, var(--color-brand-dark) 50%, var(--color-brand-orange-light) 50%); }
.bg-split-brand-dark-brand-orange-dark { background: linear-gradient(to bottom, var(--color-brand-dark) 50%, var(--color-brand-orange-dark) 50%); }

/* From brand-dark-secondary */
.bg-split-brand-dark-secondary-white { background: linear-gradient(to bottom, var(--color-brand-dark-secondary) 50%, #fff 50%); }
.bg-split-brand-dark-secondary-brand-grey-light { background: linear-gradient(to bottom, var(--color-brand-dark-secondary) 50%, var(--color-brand-grey-light) 50%); }
.bg-split-brand-dark-secondary-brand-grey { background: linear-gradient(to bottom, var(--color-brand-dark-secondary) 50%, var(--color-brand-grey) 50%); }
.bg-split-brand-dark-secondary-brand-silver { background: linear-gradient(to bottom, var(--color-brand-dark-secondary) 50%, var(--color-brand-silver) 50%); }
.bg-split-brand-dark-secondary-brand-dark { background: linear-gradient(to bottom, var(--color-brand-dark-secondary) 50%, var(--color-brand-dark) 50%); }
.bg-split-brand-dark-secondary-brand-orange { background: linear-gradient(to bottom, var(--color-brand-dark-secondary) 50%, var(--color-brand-orange) 50%); }
.bg-split-brand-dark-secondary-brand-orange-light { background: linear-gradient(to bottom, var(--color-brand-dark-secondary) 50%, var(--color-brand-orange-light) 50%); }
.bg-split-brand-dark-secondary-brand-orange-dark { background: linear-gradient(to bottom, var(--color-brand-dark-secondary) 50%, var(--color-brand-orange-dark) 50%); }

/* From brand-orange */
.bg-split-brand-orange-white { background: linear-gradient(to bottom, var(--color-brand-orange) 50%, #fff 50%); }
.bg-split-brand-orange-brand-grey-light { background: linear-gradient(to bottom, var(--color-brand-orange) 50%, var(--color-brand-grey-light) 50%); }
.bg-split-brand-orange-brand-grey { background: linear-gradient(to bottom, var(--color-brand-orange) 50%, var(--color-brand-grey) 50%); }
.bg-split-brand-orange-brand-silver { background: linear-gradient(to bottom, var(--color-brand-orange) 50%, var(--color-brand-silver) 50%); }
.bg-split-brand-orange-brand-dark { background: linear-gradient(to bottom, var(--color-brand-orange) 50%, var(--color-brand-dark) 50%); }
.bg-split-brand-orange-brand-dark-secondary { background: linear-gradient(to bottom, var(--color-brand-orange) 50%, var(--color-brand-dark-secondary) 50%); }
.bg-split-brand-orange-brand-orange-light { background: linear-gradient(to bottom, var(--color-brand-orange) 50%, var(--color-brand-orange-light) 50%); }
.bg-split-brand-orange-brand-orange-dark { background: linear-gradient(to bottom, var(--color-brand-orange) 50%, var(--color-brand-orange-dark) 50%); }

/* From brand-orange-light */
.bg-split-brand-orange-light-white { background: linear-gradient(to bottom, var(--color-brand-orange-light) 50%, #fff 50%); }
.bg-split-brand-orange-light-brand-grey-light { background: linear-gradient(to bottom, var(--color-brand-orange-light) 50%, var(--color-brand-grey-light) 50%); }
.bg-split-brand-orange-light-brand-grey { background: linear-gradient(to bottom, var(--color-brand-orange-light) 50%, var(--color-brand-grey) 50%); }
.bg-split-brand-orange-light-brand-silver { background: linear-gradient(to bottom, var(--color-brand-orange-light) 50%, var(--color-brand-silver) 50%); }
.bg-split-brand-orange-light-brand-dark { background: linear-gradient(to bottom, var(--color-brand-orange-light) 50%, var(--color-brand-dark) 50%); }
.bg-split-brand-orange-light-brand-dark-secondary { background: linear-gradient(to bottom, var(--color-brand-orange-light) 50%, var(--color-brand-dark-secondary) 50%); }
.bg-split-brand-orange-light-brand-orange { background: linear-gradient(to bottom, var(--color-brand-orange-light) 50%, var(--color-brand-orange) 50%); }
.bg-split-brand-orange-light-brand-orange-dark { background: linear-gradient(to bottom, var(--color-brand-orange-light) 50%, var(--color-brand-orange-dark) 50%); }

/* From brand-orange-dark */
.bg-split-brand-orange-dark-white { background: linear-gradient(to bottom, var(--color-brand-orange-dark) 50%, #fff 50%); }
.bg-split-brand-orange-dark-brand-grey-light { background: linear-gradient(to bottom, var(--color-brand-orange-dark) 50%, var(--color-brand-grey-light) 50%); }
.bg-split-brand-orange-dark-brand-grey { background: linear-gradient(to bottom, var(--color-brand-orange-dark) 50%, var(--color-brand-grey) 50%); }
.bg-split-brand-orange-dark-brand-silver { background: linear-gradient(to bottom, var(--color-brand-orange-dark) 50%, var(--color-brand-silver) 50%); }
.bg-split-brand-orange-dark-brand-dark { background: linear-gradient(to bottom, var(--color-brand-orange-dark) 50%, var(--color-brand-dark) 50%); }
.bg-split-brand-orange-dark-brand-dark-secondary { background: linear-gradient(to bottom, var(--color-brand-orange-dark) 50%, var(--color-brand-dark-secondary) 50%); }
.bg-split-brand-orange-dark-brand-orange { background: linear-gradient(to bottom, var(--color-brand-orange-dark) 50%, var(--color-brand-orange) 50%); }
.bg-split-brand-orange-dark-brand-orange-light { background: linear-gradient(to bottom, var(--color-brand-orange-dark) 50%, var(--color-brand-orange-light) 50%); }

/*--------------------------------------------------------------
# GRAVITY FORMS - Dark Theme (styling only, no layout)
--------------------------------------------------------------*/

/* Labels */
.gform-xpertive-dark .gfield_label,
.gform-xpertive-dark legend.gfield_label {
    font-family: 'Michroma', sans-serif !important;
    font-size: 11px !important;
    color: #fff !important;
    text-transform: uppercase !important;
}
.gform-xpertive-dark .gfield_required { color: #FF6600 !important; }
.gform-xpertive-dark .ginput_complex label { font-size: 11px !important; color: rgba(255,255,255,0.5) !important; }

/* Inputs */
.gform-xpertive-dark input[type="text"],
.gform-xpertive-dark input[type="email"],
.gform-xpertive-dark input[type="tel"],
.gform-xpertive-dark input.large,
.gform-xpertive-dark select,
.gform-xpertive-dark textarea {
    padding: 10px 12px !important;
    font-size: 15px !important;
    color: #fff !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,102,0,0.5) !important;
    border-radius: 4px !important;
    outline: none !important;
}
.gform-xpertive-dark input:focus,
.gform-xpertive-dark select:focus,
.gform-xpertive-dark textarea:focus {
    border-color: #FF6600 !important;
    background: rgba(255,255,255,0.1) !important;
}
.gform-xpertive-dark input::placeholder,
.gform-xpertive-dark textarea::placeholder { color: rgba(255,255,255,0.4) !important; }

/* File upload */
.gform-xpertive-dark .ginput_container_fileupload {
    padding: 12px !important;
    border: 2px dashed rgba(255,102,0,0.5) !important;
    border-radius: 4px !important;
    background: rgba(255,255,255,0.03) !important;
}
.gform-xpertive-dark input[type="file"] { border: none !important; background: transparent !important; color: #fff !important; }
.gform-xpertive-dark .gform_fileupload_rules { color: rgba(255,255,255,0.5) !important; font-size: 12px !important; }

/* Checkbox */
.gform-xpertive-dark input[type="checkbox"] { accent-color: #FF6600 !important; }
.gform-xpertive-dark .gfield_consent_label { color: rgba(255,255,255,0.8) !important; font-size: 13px !important; }

/* Submit */
.gform-xpertive-dark input[type="submit"] {
    background: #FF6600 !important;
    color: #fff !important;
    padding: 14px 40px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}
.gform-xpertive-dark input[type="submit"]:hover { background: #e55a00 !important; }

.gform_required_legend, .gform_title { display: none; }

/* Confirmation message on dark theme */
.gform-xpertive-dark .gform_confirmation_message,
.gform-xpertive-dark .gform_confirmation_wrapper {
    color: #FF6600 !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    padding: 32px 16px !important;
}

/*--------------------------------------------------------------
# UTILITIES
--------------------------------------------------------------*/

/* Line clamp - Truncate text to N lines */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================================================
   LEAFLET — Carte des implantations
   ===================================================== */

/* Container */
.xpertive-map-container {
    height: clamp(450px, 60vh, 650px);
    width: 100%;
}

/* ─── Controls ─────────────────────────────────────── */
.leaflet-bar {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    border-radius: 3px;
    overflow: hidden;
}
.leaflet-bar a,
.leaflet-bar a:link {
    width: 34px;
    height: 34px;
    line-height: 34px;
    background-color: #252525 !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 16px;
}
.leaflet-bar a:last-child { border-bottom: none; }
.leaflet-bar a:hover,
.leaflet-bar a:focus {
    background-color: #333 !important;
    color: #FF6600 !important;
}
/* Fullscreen — original Leaflet SVG sprite, white default, orange on hover */
.fullscreen-icon {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 26 52" xmlns="http://www.w3.org/2000/svg"><path fill="white" d="M20.6 36.7H16a.9.9 0 0 1-.8-.8v-4.5c0-.2.2-.4.4-.4h1.4c.3 0 .5.2.5.4v3h3c.2 0 .4.2.4.5v1.4c0 .2-.2.4-.4.4zm-9.9-.8v-4.5c0-.2-.2-.4-.4-.4H8.9c-.3 0-.5.2-.5.4v3h-3c-.2 0-.4.2-.4.5v1.4c0 .2.2.4.4.4H10c.4 0 .8-.4.8-.8zm0 10.7V42c0-.4-.4-.8-.8-.8H5.4c-.2 0-.4.2-.4.4v1.4c0 .3.2.5.4.5h3v3c0 .2.2.4.5.4h1.4c.2 0 .4-.2.4-.4zm6.9 0v-3h3c.2 0 .4-.2.4-.5v-1.4c0-.2-.2-.4-.4-.4H16c-.4 0-.8.4-.8.8v4.5c0 .2.2.4.4.4h1.4c.3 0 .5-.2.5-.4zM5 10.3V5.9c0-.5.4-.9.9-.9h4.4c.2 0 .4.2.4.4V7c0 .2-.2.4-.4.4h-3v3c0 .2-.2.4-.4.4H5.4a.4.4 0 0 1-.4-.4zm10.3-4.9V7c0 .2.2.4.4.4h3v3c0 .2.2.4.4.4h1.5c.2 0 .4-.2.4-.4V5.9c0-.5-.4-.9-.9-.9h-4.4c-.2 0-.4.2-.4.4zm5.3 9.9H19c-.2 0-.4.2-.4.4v3h-3c-.2 0-.4.2-.4.4v1.5c0 .2.2.4.4.4h4.4c.5 0 .9-.4.9-.9v-4.4c0-.2-.2-.4-.4-.4zm-9.9 5.3V19c0-.2-.2-.4-.4-.4h-3v-3c0-.2-.2-.4-.4-.4H5.4c-.2 0-.4.2-.4.4v4.4c0 .5.4.9.9.9h4.4c.2 0 .4-.2.4-.4z"/></svg>') !important;
}
.fullscreen-icon:hover {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 26 52" xmlns="http://www.w3.org/2000/svg"><path fill="%23FF6600" d="M20.6 36.7H16a.9.9 0 0 1-.8-.8v-4.5c0-.2.2-.4.4-.4h1.4c.3 0 .5.2.5.4v3h3c.2 0 .4.2.4.5v1.4c0 .2-.2.4-.4.4zm-9.9-.8v-4.5c0-.2-.2-.4-.4-.4H8.9c-.3 0-.5.2-.5.4v3h-3c-.2 0-.4.2-.4.5v1.4c0 .2.2.4.4.4H10c.4 0 .8-.4.8-.8zm0 10.7V42c0-.4-.4-.8-.8-.8H5.4c-.2 0-.4.2-.4.4v1.4c0 .3.2.5.4.5h3v3c0 .2.2.4.5.4h1.4c.2 0 .4-.2.4-.4zm6.9 0v-3h3c.2 0 .4-.2.4-.5v-1.4c0-.2-.2-.4-.4-.4H16c-.4 0-.8.4-.8.8v4.5c0 .2.2.4.4.4h1.4c.3 0 .5-.2.5-.4zM5 10.3V5.9c0-.5.4-.9.9-.9h4.4c.2 0 .4.2.4.4V7c0 .2-.2.4-.4.4h-3v3c0 .2-.2.4-.4.4H5.4a.4.4 0 0 1-.4-.4zm10.3-4.9V7c0 .2.2.4.4.4h3v3c0 .2.2.4.4.4h1.5c.2 0 .4-.2.4-.4V5.9c0-.5-.4-.9-.9-.9h-4.4c-.2 0-.4.2-.4.4zm5.3 9.9H19c-.2 0-.4.2-.4.4v3h-3c-.2 0-.4.2-.4.4v1.5c0 .2.2.4.4.4h4.4c.5 0 .9-.4.9-.9v-4.4c0-.2-.2-.4-.4-.4zm-9.9 5.3V19c0-.2-.2-.4-.4-.4h-3v-3c0-.2-.2-.4-.4-.4H5.4c-.2 0-.4.2-.4.4v4.4c0 .5.4.9.9.9h4.4c.2 0 .4-.2.4-.4z"/></svg>') !important;
}
/* Locate control — white icon, orange on hover, orange bg when active */
.leaflet-control-locate a { background-color: #252525 !important; }
.leaflet-control-locate a .leaflet-control-locate-location-arrow {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="white" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>') !important;
}
.leaflet-control-locate a:hover { background-color: #333 !important; }
.leaflet-control-locate a:hover .leaflet-control-locate-location-arrow {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23FF6600" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>') !important;
}
.leaflet-control-locate.active a { background-color: #FF6600 !important; }
.leaflet-control-locate.active a .leaflet-control-locate-location-arrow {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="white" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>') !important;
}

/* ─── Popups ───────────────────────────────────────── */
.leaflet-popup-content-wrapper {
    background: #252525 !important;
    border-radius: 3px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5) !important;
    padding: 0 !important;
    overflow: hidden;
    font-family: 'Barlow', sans-serif;
}
.leaflet-popup-content {
    margin: 0 !important;
    line-height: 1.5;
}
.leaflet-popup-tip {
    background: #252525 !important;
}
.leaflet-popup a.leaflet-popup-close-btn {
    color: rgba(255,255,255,0.4);
}
.leaflet-popup a.leaflet-popup-close-btn:hover {
    color: #FF6600;
}
.xpertive-popup {
    padding: 16px 18px;
    min-width: 200px;
    max-width: 280px;
    max-height: 50vh;
    overflow-y: auto;
}
.xpertive-popup__title {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    margin: 0 0 2px;
    letter-spacing: 0.01em;
}
.xpertive-popup__address {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin: 0 0 10px;
}
.xpertive-popup__desc {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
    margin-top: 2px;
}
.xpertive-popup__desc img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 8px;
}
.xpertive-popup__desc a {
    color: #FF6600;
}

/* ─── Attribution ──────────────────────────────────── */
.leaflet-control-attribution {
    background: rgba(0,0,0,0.5) !important;
    color: rgba(255,255,255,0.35) !important;
    font-size: 10px !important;
}
.leaflet-control-attribution a {
    color: rgba(255,255,255,0.5) !important;
}

/* ─── Filter bar ───────────────────────────────────── */
.map-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 2px;
    background: transparent;
    color: rgba(255,255,255,0.35);
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s;
}
.map-filter-btn.active {
    background: #202020;
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.map-filter-btn:not(.active) {
    opacity: 0.5;
}
.map-filter-btn:hover {
    background: #333;
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    opacity: 1;
}
.map-filter-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.map-filter-dot--split {
    background: linear-gradient(110deg, #fff 50%, #FF6600 50%);
}

