/**
 * Store Locator — styles spécifiques au module (sidebar + carte).
 *
 * IMPORTANT : les styles `.store`, `.store__picture`, `.store__name`,
 * `.store__info`, `.store__actions`, etc. NE SONT PAS définis ici — ils
 * sont déjà dans le theme principal (custom/components/_store.scss). On les
 * réutilise telles quelles pour préserver le design existant des vignettes.
 */

/* ================= Wrapper full-bleed gauche =================
 * La sidebar doit toucher le bord gauche du viewport (pas de gutter du
 * .container parent). On casse le container parent en étendant le wrapper
 * à 100vw, puis on compense côté main pour garder son contenu dans la grille
 * normale. `overflow-x: hidden` parent évite scroll horizontal mobile.
 */
/* Reset des paddings/margins parents pour que la sidebar colle réellement
   au header ET au footer sur cette page uniquement.
   Scope : body#module-ov_store_locator-list. */
body#module-ov_store_locator-list #wrapper,
body#module-ov_store_locator-list .wrapper {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}
body#module-ov_store_locator-list .wrapper__content,
body#module-ov_store_locator-list #content-wrapper {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.ov-store-locator {
    margin-left: calc(50% - 50vw);
    width: 100vw;
    margin-top: 0;
}

/* ================= Sidebar nav magasins ================= */
.ov-store-locator__sidebar {
    background-color: #F1F1F1;
    padding: 0 0 1rem;
    min-height: 100%;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.ov-store-locator__nav-item + .ov-store-locator__nav-item {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ov-store-locator__nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1.25rem;
    color: #223A88;
    text-decoration: none;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-left: 4px solid transparent;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
}

.ov-store-locator__nav-link:hover {
    background-color: #E8EAF1;
    color: #223A88;
    text-decoration: none;
    transform: translateX(2px);
}

.ov-store-locator__nav-link.is-active {
    background-color: #fff;
    color: #223A88;
    border-left-color: #FFC600;
    transform: none;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Hexagone bleu plein + Material Icon blanc au centre (sur sidebar claire).
   clip-path : hexagone pointu horizontal. Sur actif : on inverse en blanc
   avec picto bleu pour matcher l'item actif (fond blanc). */
.ov-store-locator__nav-icon-hex {
    width: 38px;
    height: 34px;
    background-color: #223A88;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.ov-store-locator__nav-icon-hex .material-icons {
    color: #fff;
    font-size: 18px;
    transition: color 0.2s ease;
}

.ov-store-locator__nav-link.is-active .ov-store-locator__nav-icon-hex {
    background-color: #FFC600;
}

.ov-store-locator__nav-link.is-active .ov-store-locator__nav-icon-hex .material-icons {
    color: #223A88;
}

.ov-store-locator__nav-label {
    flex: 1;
    line-height: 1.2;
}

/* Chevron à droite : invisible par défaut, apparaît au hover/actif */
.ov-store-locator__nav-chevron {
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    color: #223A88;
}

.ov-store-locator__nav-link.is-active .ov-store-locator__nav-chevron {
    opacity: 1;
    transform: translateX(2px);
}

.ov-store-locator__nav-link:hover .ov-store-locator__nav-chevron {
    opacity: 0.5;
}

/* ================= Card cliquable (stretched-link) =================
 * Sur /magasins (theme stores.tpl) le nom du magasin est un <a.stretched-link>
 * qui rend toute la card cliquable. Les éléments interactifs internes (RDV,
 * stock, téléphone, mail) doivent rester au-dessus pour rester cliquables. */
.store__name-link {
    color: inherit;
    text-decoration: none;
}
.store__name-link:hover,
.store__name-link:focus {
    color: inherit;
    text-decoration: underline;
}
/* On remonte les CONTENEURS interactifs entiers (pas seulement les liens/
   boutons) au-dessus du calque cliquable. Sinon les liens inline (ex: adresse
   sur 2 lignes) laissent l'interligne retomber sur le lien de la carte, et le
   z-index sur le lien seul ne suffit pas. La carte reste cliquable sur l'image
   et le nom (hors de ces blocs). */
.store .store__actions,
.store .store__info,
.store .store__info-mobile,
.store .store__stock-link,
.store .store__actions .btn,
.store .store__hours-toggle,
.store .store__clamp-toggle,
.store .store__info-content a,
.store .store__address-text a {
    position: relative;
    z-index: 2;
}

/* Boutons d'action desactives ("Indisponible") : Bootstrap leur met
   pointer-events:none, donc malgre le z-index le survol/clic retombe sur le
   lien de la carte. On les rend prioritaires aussi -> survol = bouton (curseur
   not-allowed), clic = rien (bouton disabled), au lieu d'ouvrir la fiche. */
.store .store__actions .btn:disabled,
.store .store__actions .btn[disabled] {
    pointer-events: auto;
    cursor: not-allowed;
}

/* ================= Page magasin individuelle (/magasin/{slug}) =================
 * Container responsive + spacing harmonisé entre sections.
 * Les types de sections (hero_info, map, products, text_image, icon_columns) ont
 * chacun leurs propres rules ci-dessous. */
.ov-store-magasin {
    padding-top: 0.5rem;
}

@media (max-width: 767.98px) {
    .ov-store-magasin { padding-left: 1rem; padding-right: 1rem; }
}

/* Bannière optionnelle en haut de la fiche magasin (éditable dans le BO). */
.ov-store-magasin__banner {
    margin-bottom: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
}
.ov-store-magasin__banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ov-store-magasin__title {
    font-family: Inter, sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 2rem;
    color: #000;
    text-transform: uppercase;
    margin: 1rem 0 0.5rem;
    letter-spacing: 0;
}

@media (max-width: 575.98px) {
    .ov-store-magasin__title { font-size: 1.4rem; }
}

.ov-store-magasin__subtitle {
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1rem;
    color: #000;
    margin: 0 0 2rem;
}

.ov-store-magasin__back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #223A88;
    text-decoration: none;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.ov-store-magasin__back:hover { text-decoration: underline; }

/* Titre de section (icône + texte) — design Figma */
.ov-store-section {
    margin: 2rem 0;
}

.ov-store-section__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1.25rem;
    color: #223A88;
    margin: 0 0 1rem;
}

.ov-store-section__title-icon {
    color: #223A88;
    font-size: 22px;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* ----- Section hero_info : 3 cols (adresse/contact/horaires) + CTAs ----- */
.ov-hero-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.ov-hero-info__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ov-hero-info__col {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
    color: #2e2e2e;
    line-height: 1.4;
}

.ov-hero-info__col--contact {
    flex-direction: column;
    gap: 0.35rem;
}

/* Le bloc contact aligne chaque ligne (icône + lien) ; pas de retrait global. */
.ov-hero-info__col--contact > .ov-hero-info__line:first-child {
    margin-top: 0;
}

.ov-hero-info__line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Colonne horaires : icône + zone clampable avec flèche "voir plus". */
.ov-hero-info__col--hours {
    align-items: flex-start;
}

.ov-hero-info__hours-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

/* État replié : ~3 lignes visibles (line-height 1.4 × 0.9rem). */
.ov-hero-info__hours-text {
    overflow: hidden;
    max-height: 3.78em;
    transition: max-height 0.2s ease;
}

.ov-hero-info__hours-text--expanded {
    max-height: 40em;
}

.ov-hero-info__hours-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #223A88;
    cursor: pointer;
    line-height: 1;
}

.ov-hero-info__hours-toggle .material-icons {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.ov-hero-info__hours-toggle[aria-expanded="true"] .material-icons {
    transform: rotate(180deg);
}

/* Icônes hero — SVG custom (pin / mail / clock). Material `phone` conservé. */
.ov-hero-info__icon {
    color: #223A88;
    font-size: 18px;
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Icône SVG dans les boutons RDV (blanche) — proportions alignées sur les CTA icon_columns */
.ov-hero-info__btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.ov-hero-info__text a,
.ov-hero-info__line a {
    color: inherit;
    text-decoration: none;
}
.ov-hero-info__text a:hover,
.ov-hero-info__line a:hover {
    text-decoration: underline;
}

.ov-hero-info__ctas {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 220px;
}

.ov-hero-info__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 4px;
    background-color: #223A88;
    color: #fff;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: normal;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
    justify-content: flex-start;
}

.ov-hero-info__btn:hover {
    background-color: #1B2F6F;
    color: #fff;
}

.ov-hero-info__btn .material-icons { font-size: 20px; }

.ov-hero-info__btn--disabled {
    background-color: #adadad;
    cursor: not-allowed;
    opacity: 0.8;
}

@media (max-width: 991.98px) {
    .ov-hero-info {
        grid-template-columns: 1fr;
    }
    .ov-hero-info__ctas {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .ov-hero-info__cols {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ----- Section text_image : texte + image alongside (Figma "La plus grande boutique") ----- */
.ov-text-image {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    /* align-items: stretch (défaut) → la colonne média se cale sur
       la hauteur du texte (bloc gris dynamique). */
    align-items: stretch;
}

.ov-text-image--left {
    grid-template-columns: 1fr 2fr;
}

.ov-text-image--left .ov-text-image__media { order: -1; }

/* Pas d'image fournie : le texte prend toute la largeur (plus de placeholder
   gris vide a droite/gauche). */
.ov-text-image--no-media {
    grid-template-columns: 1fr;
}

.ov-text-image__text {
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    color: #2e2e2e;
    line-height: 1.55;
}

.ov-text-image__text p { margin: 0 0 0.75rem; }
.ov-text-image__text strong { color: #000; }

/* La colonne média remplit la hauteur de la rangée (= hauteur du texte). */
.ov-text-image__media {
    display: flex;
}

.ov-text-image__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    background-color: #d9d9d9;
}

/* Placeholder gris quand pas d'image fournie : s'ajuste dynamiquement à
   la hauteur du texte (plus d'aspect-ratio fixe). */
.ov-text-image__placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border-radius: 6px;
    background-color: #d9d9d9;
}

@media (max-width: 767.98px) {
    .ov-text-image,
    .ov-text-image--left {
        grid-template-columns: 1fr;
    }
    .ov-text-image--left .ov-text-image__media { order: 0; }
}

/* ----- Section icon_columns (Atelier / Services / Univers — Figma) ----- */
.ov-icon-columns {
    padding: 2rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.ov-icon-columns--bg-transparent { background-color: transparent; padding-left: 0; padding-right: 0; }
.ov-icon-columns--bg-white       { background-color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
/* Bloc Atelier : padding container ~51px horizontal / ~40px vertical (cf annotations Figma) */
.ov-icon-columns--bg-blue {
    background-color: #223A88;
    color: #fff;
    padding: 2.5rem 3.2rem;
}

/* Titre rendu DANS le bloc (cas bg=blue / Atelier) — blanc italic */
.ov-icon-columns__title {
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 1rem;
}

.ov-icon-columns__intro {
    margin: 0 0 1.25rem;
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
    color: inherit;
    line-height: 1.55;
}

.ov-icon-columns--bg-blue .ov-icon-columns__intro strong { color: #fff; }

.ov-icon-columns__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    /* align-items: stretch (défaut) → colonnes de hauteur égale.
       Le bloc image se cale ainsi sur une ligne de base commune. */
    align-items: stretch;
}
.ov-icon-columns__grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.ov-icon-columns__grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }

/* En-tête colonne (icône + titre) */
.ov-icon-columns__col-header {
    display: flex;
    align-items: center;
}

/* Layout stacked (Atelier/Services) : icône centrée + titre dessous centré */
.ov-icon-columns--layout-stacked .ov-icon-columns__col {
    text-align: center;
}
.ov-icon-columns--layout-stacked .ov-icon-columns__col-header {
    flex-direction: column;
    gap: 0.75rem;
}

/* Layout inline (Univers) : icône + titre sur la même ligne, alignés gauche.
   Colonne en flex-column → le bloc image (flex:1) remplit l'espace restant
   pour que les 3 carrés gris s'alignent sur une ligne de base commune. */
.ov-icon-columns--layout-inline .ov-icon-columns__col {
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ov-icon-columns--layout-inline .ov-icon-columns__col-media {
    flex: 1 1 auto;
    margin-top: 1rem;
    min-height: 150px;
}
/* Le placeholder/image remplit toute la zone média flex (pas d'aspect-ratio
   fixe → hauteur dynamique selon l'espace disponible dans la colonne). */
.ov-icon-columns--layout-inline .ov-icon-columns__col-media img,
.ov-icon-columns--layout-inline .ov-icon-columns__col-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}
.ov-icon-columns--layout-inline .ov-icon-columns__col-header {
    flex-direction: row;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
.ov-icon-columns--layout-inline .ov-icon-columns__icon {
    width: 40px;
    height: 40px;
    margin: 0;
    flex-shrink: 0;
}
.ov-icon-columns--layout-inline .ov-icon-columns__icon .material-icons {
    font-size: 22px;
}

/* Icônes — cercle par défaut (Atelier / Services = cercles pleins, cf Figma).
   Le variant circle_colored (Univers) passe en squircle plus bas. */
.ov-icon-columns__icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Univers : squircle (carré arrondi) */
.ov-icon-columns--icons-circle_colored .ov-icon-columns__icon {
    border-radius: 22%;
}

.ov-icon-columns__icon .material-icons { font-size: 36px; }

/* Icône SVG custom (univers) — blanche, contenue dans le squircle */
.ov-icon-columns__icon-svg {
    width: 58%;
    height: 58%;
    object-fit: contain;
}

/* Blocs "Nos services" (cercle bleu) et "Notre atelier" (cercle blanc) :
   rond 119×119 + padding 20, picto 61.281×61.281 (mêmes dimensions). */
.ov-icon-columns--icons-circle_blue .ov-icon-columns__icon,
.ov-icon-columns--icons-circle_white .ov-icon-columns__icon {
    width: 119px;
    height: 119px;
    padding: 20px;
    box-sizing: border-box;
}
.ov-icon-columns--icons-circle_blue .ov-icon-columns__icon-svg,
.ov-icon-columns--icons-circle_white .ov-icon-columns__icon-svg {
    width: 61.281px;
    height: 61.281px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

/* Image / placeholder sous chaque colonne (Univers) */
.ov-icon-columns__col-media { margin-top: 1rem; }
.ov-icon-columns__col-media img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.ov-icon-columns__col-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 6px;
    background-color: #d9d9d9;
}

/* Variant 1 : icon style bleu plein → icône blanche */
.ov-icon-columns--icons-circle_blue .ov-icon-columns__icon {
    background-color: #223A88;
}
.ov-icon-columns--icons-circle_blue .ov-icon-columns__icon .material-icons {
    color: #fff;
}

/* Variant 2 : icon style cercle blanc → icône bleue (utilisé sur fond bleu) */
.ov-icon-columns--icons-circle_white .ov-icon-columns__icon {
    background-color: #fff;
}
.ov-icon-columns--icons-circle_white .ov-icon-columns__icon .material-icons {
    color: #223A88;
}

/* Variant 3 : cercle override par couleur custom (icon blanche par défaut) */
.ov-icon-columns--icons-circle_colored .ov-icon-columns__icon {
    background-color: #223A88;
}
.ov-icon-columns--icons-circle_colored .ov-icon-columns__icon .material-icons {
    color: #fff;
}

.ov-icon-columns__col-title {
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: inherit;
}

/* En layout inline (Univers), le titre est dans le flex header → pas de marge.
   Regular (pas d'italic) — cf Figma. */
.ov-icon-columns--layout-inline .ov-icon-columns__col-title {
    margin: 0;
    font-style: normal;
}

.ov-icon-columns__col-text {
    font-family: Inter, sans-serif;
    font-size: 0.85rem;
    line-height: 1.45;
    color: inherit;
    opacity: 0.95;
}

.ov-icon-columns__col-text p {
    margin: 0 0 0.6rem;
}
.ov-icon-columns__col-text p:last-child {
    margin-bottom: 0;
}

/* Phrase d'accroche au-dessus du bouton CTA (Figma : bloc Atelier) */
.ov-icon-columns__cta-text {
    margin: 1.5rem 0 0;
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: inherit;
    text-align: center;
}

.ov-icon-columns__cta {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Quand une accroche précède le CTA, l'espace au-dessus est réduit
   (la marge supérieure est déjà portée par l'accroche). */
.ov-icon-columns__cta-text + .ov-icon-columns__cta {
    margin-top: 0.85rem;
}

/* Bloc "Nos services" : bouton CTA centré (ticket Pages Magasins).
   Cible bg=transparent + icon_style=circle_blue (Nos services uniquement),
   pour ne pas affecter "Univers" (bg=transparent + icons=circle_colored) qui
   n'a pas de CTA. */
.ov-icon-columns--bg-transparent.ov-icon-columns--icons-circle_blue .ov-icon-columns__cta {
    justify-content: center;
}

.ov-icon-columns__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    /* Le CTA peut etre un <button> (RDV Calendly) : sans ca il garde le border
       UA "2px outset" (biseau noir 3D qui suit le border-radius). */
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.15s ease;
}

.ov-icon-columns--bg-blue .ov-icon-columns__cta-btn {
    background-color: #fff;
    color: #223A88;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
}
.ov-icon-columns--bg-blue .ov-icon-columns__cta-icon {
    width: 20px;
    height: 20px;
}
.ov-icon-columns--bg-blue .ov-icon-columns__cta-btn:hover {
    background-color: #E8EAF1;
}

.ov-icon-columns--bg-transparent .ov-icon-columns__cta-btn,
.ov-icon-columns--bg-white .ov-icon-columns__cta-btn {
    background-color: #223A88;
    color: #F9FAFB;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}
.ov-icon-columns--bg-transparent .ov-icon-columns__cta-icon,
.ov-icon-columns--bg-white .ov-icon-columns__cta-icon {
    width: 20px;
    height: 20px;
}
.ov-icon-columns--bg-transparent .ov-icon-columns__cta-btn:hover,
.ov-icon-columns--bg-white .ov-icon-columns__cta-btn:hover {
    background-color: #1B2F6F;
    color: #fff;
}

/* CTA atelier indisponible (pas d'event Calendly valide pour ce magasin) :
   bouton present mais grise. Les selecteurs scopes bg-* battent les regles de
   fond bleu/blanc ci-dessus. border:none enleve aussi le biseau UA du <button>. */
.ov-icon-columns__cta-btn--disabled,
.ov-icon-columns--bg-blue .ov-icon-columns__cta-btn--disabled,
.ov-icon-columns--bg-white .ov-icon-columns__cta-btn--disabled,
.ov-icon-columns--bg-transparent .ov-icon-columns__cta-btn--disabled {
    background-color: #C9CDD6;
    color: #6B7280;
    border: none;
    cursor: not-allowed;
}

.ov-icon-columns__cta-btn .material-icons { font-size: 18px; }

/* Icône SVG du bouton CTA (briefcase RDV) — hérite la couleur du texte. */
.ov-icon-columns__cta-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .ov-icon-columns__grid[data-cols="3"],
    .ov-icon-columns__grid[data-cols="4"] {
        grid-template-columns: 1fr;
    }
}

/* ----- Section map_block ----- */
.ov-store-magasin-map {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    isolation: isolate;
    z-index: 0;
}

.ov-store-magasin-map .leaflet-pane,
.ov-store-magasin-map .leaflet-top,
.ov-store-magasin-map .leaflet-bottom {
    z-index: 0 !important;
}

/* ================= Titre page (à droite de la sidebar) ================= */
.ov-store-locator__page-title {
    font-family: Inter, sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 2rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 0 0 1rem;
}

/* ================= Main ================= */
.ov-store-locator__main {
    padding: 1.5rem;
    background: #fff;
}

/* Sélecteur — pas de bandeau bleu, fond transparent.
   Le label est masqué visuellement (gardé pour a11y). */
.ov-store-locator__selector {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

.ov-store-locator__selector .form-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Layout search input + bouton géoloc (mirror recherche principale du site) */
.ov-store-locator__search-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.ov-store-locator__search-wrapper {
    position: relative;
    flex: 0 0 auto;
    width: 280px;
}

.ov-store-locator__search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 20px;
    pointer-events: none;
}

.ov-store-locator__search-input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: #f1f1f1;
    color: #2e2e2e;
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ov-store-locator__search-input:focus {
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(34, 58, 136, 0.15);
}

.ov-store-locator__search-input::placeholder {
    color: #9b9b9b;
}

.ov-store-locator__search-suggestions {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1500;
}

.ov-store-locator__search-suggestions li {
    padding: 0.55rem 1rem;
    cursor: pointer;
    color: #2e2e2e;
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ov-store-locator__search-suggestions li:hover,
.ov-store-locator__search-suggestions li.is-highlighted {
    background-color: #E8EAF1;
    color: #223A88;
}

.ov-store-locator__search-suggestions li .material-icons {
    color: #223A88;
    font-size: 16px;
}

.ov-store-locator__search-suggestions__empty {
    color: #6c757d;
    font-style: italic;
    cursor: default !important;
}

.ov-store-locator__search-suggestions__empty:hover {
    background-color: transparent !important;
    color: #6c757d !important;
}

/* Bouton Géolocalisation */
.ov-store-locator__geoloc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    border: none;
    border-radius: 4px;
    background-color: #223A88;
    color: #fff;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.ov-store-locator__geoloc-btn:hover {
    background-color: #1B2F6F;
    color: #fff;
}

.ov-store-locator__geoloc-btn:active {
    transform: scale(0.97);
}

.ov-store-locator__geoloc-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.ov-store-locator__geoloc-btn .material-icons {
    font-size: 18px;
}

/* Bloc info magasin affiché sous le dropdown au change */
.ov-store-locator__selected-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fff;
    color: #2e2e2e;
    border-radius: 4px;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ov-store-locator__selected-section {
    margin-bottom: 0.5rem;
}

.ov-store-locator__selected-section:last-child {
    margin-bottom: 0;
}

.ov-store-locator__selected-label {
    display: inline-block;
    color: #2e2e2e;
    text-decoration: underline;
    font-weight: normal;
    margin-bottom: 0.25rem;
}

.ov-store-locator__selected-phone {
    font-weight: bold;
}

.ov-store-locator__selected-info a {
    color: #223A88;
    text-decoration: none;
}

.ov-store-locator__selected-info a:hover {
    text-decoration: underline;
}

/* ================= Carte Leaflet ================= */
.ov-store-locator__map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
    position: relative;
    /* Leaflet utilise z-index élevés sur ses panes (400 base, 700 popup,
       1000 controls). Sans contexte d'empilement, ces panes peuvent passer
       AU-DESSUS du header sticky du theme (qui a un z-index plus bas).
       `isolation: isolate` crée un nouveau stacking context qui CONTIENT
       tous les z-index Leaflet à l'intérieur de la carte. */
    isolation: isolate;
    z-index: 0;
}

/* Belt + braces : on cap aussi explicitement les panes Leaflet à 0
   pour les vieux navigateurs qui ignorent `isolation`. */
.ov-store-locator__map .leaflet-pane,
.ov-store-locator__map .leaflet-top,
.ov-store-locator__map .leaflet-bottom {
    z-index: 0 !important;
}
.ov-store-locator__map .leaflet-control {
    z-index: 1 !important;
}

@media (max-width: 767.98px) {
    .ov-store-locator__map {
        height: 350px;
    }
}

/* Popup magasin sur la carte — entièrement cliquable vers /magasin/{slug} */
.leaflet-popup-content a.ov-store-popup {
    display: block;
    font-family: Inter, sans-serif;
    min-width: 180px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
    padding: 0.25rem;
    border-radius: 4px;
}

.leaflet-popup-content a.ov-store-popup:hover {
    background-color: #f1f1f1;
    text-decoration: none;
}

.leaflet-popup-content .ov-store-popup__name {
    font-weight: 700;
    color: #223A88;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.leaflet-popup-content .ov-store-popup__address {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.leaflet-popup-content .ov-store-popup__cta {
    font-size: 0.8rem;
    color: #223A88;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Highlight visuel des cards quand sélection sidebar/dropdown */
.store.is-focused .card {
    border-color: #223A88;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(34, 58, 136, 0.15);
}

/* ================= Typo cards réduite (scope: page locator only) =================
 * Les cards sont en col-lg-4 dans le main col-lg-9 → encore plus étroites
 * qu'en pleine page. La typo du _store.scss theme (0.875rem content) déborde
 * → on réduit ici sans toucher au theme global.
 */
.ov-store-locator .store__info-header {
    font-size: 0.8rem; /* 12.8px (au lieu de 0.95rem) */
}

.ov-store-locator .store__info-header .material-icons {
    font-size: 15px; /* au lieu de 18px */
}

.ov-store-locator .store__info-content {
    font-size: 0.75rem; /* 12px (au lieu de 0.875rem) */
    line-height: 1.35;
}

.ov-store-locator .store__hours-text,
.ov-store-locator .store__address-text {
    font-size: 0.75rem;
    line-height: 1.35;
}

/* Boutons d'action compacts (textes courts Atelier / Essai) */
.ov-store-locator .store__actions .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

.ov-store-locator .store__actions .btn .material-icons {
    font-size: 1rem;
}

/* Lien stocks magasin */
.ov-store-locator .store__stock-link {
    font-size: 0.8rem;
}
