/* NALO UI tweaks — 2026-12-03
   1) Fleches moches dans le menu drawer mobile -> remplacees par chevron pivotant
   2) Theme toggle deplace en bas du drawer (CSS seule, le JS clone l'element)
   3) Bouton langue FR plus petit (desktop + mobile)
*/

/* === 0. SELECTION TEXTE : fond bleu visible (eviter l'invisible noir sur noir) === */
::selection {
  background-color: #2f5fb8 !important;
  color: #ffffff !important;
}
::-moz-selection {
  background-color: #2f5fb8 !important;
  color: #ffffff !important;
}

/* === 0-B. MOBILE : double-tap ne zoom plus la page (galeries, boutons, nav) === */
@media (pointer: coarse) {
  html, body, img, a, button, .nalo-photo-stack, .nalo-cms__gallery,
  .nalo-home-slider, .nalo-lightbox, .card-wrapper, [role="button"],
  .header, .menu-drawer, .nalo-photo-stack * {
    touch-action: manipulation !important;
  }
}

/* === 1. MENU DRAWER : fleche pointe a droite par defaut, vers le bas quand ouvert === */
.js .menu-drawer__menu-item .icon-caret { display: none !important; }
.js .menu-drawer__menu-item .icon-arrow {
  display: block !important;
  width: 11px !important;
  height: auto !important;
  transform: rotate(0deg) !important;
  transition: transform 0.2s ease;
  opacity: 0.6;
}
.js details[open] > summary.menu-drawer__menu-item .icon-arrow {
  transform: rotate(90deg) !important;
}
/* Le wrapper qui contient le caret (invisible) ne doit pas prendre de place */
.menu-drawer__menu-item > .svg-wrapper:has(> .icon-caret) {
  display: none !important;
}

/* === 2. THEME TOGGLE : masque dans le header mobile, montre le clone dans le drawer === */
@media screen and (max-width: 989px) {
  /* cache le toggle original dans le header mobile */
  .header__icons > .nalo-theme-toggle,
  .header__icons > .nalo-header-end > .nalo-theme-toggle {
    display: none !important;
  }
}
/* Clone injecte dans le menu drawer : positionne en bas a droite au niveau des socials */
.menu-drawer__utility-links .nalo-drawer-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--color-foreground), 0.08);
}
.menu-drawer__utility-links .nalo-drawer-footer-row .list-social {
  margin: 0;
  flex: 1;
}
.menu-drawer__utility-links .nalo-drawer-footer-row .nalo-theme-toggle {
  margin: 0;
  flex-shrink: 0;
}

/* === 3. BOUTON LANGUE : compact mais le texte "FR"/"EN" doit rester visible === */
.nalo-language-picker,
.desktop-localization-wrapper select,
.header-localization select,
label:has(> .nalo-language-picker__label) select {
  font-size: 12px !important;
  padding: 4px 22px 4px 10px !important;
  min-width: 72px !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.3 !important;
  background-size: 8px !important;
  background-position: right 7px center !important;
  text-indent: 0 !important;
}
.nalo-language-picker__label {
  font-size: 11px !important;
}
/* Mobile : plus compact mais texte toujours lisible, collé tout a droite */
@media screen and (max-width: 989px) {
  .header__icons .nalo-language-picker,
  .header__icons .desktop-localization-wrapper select,
  .header__icons .desktop-localization-wrapper {
    font-size: 11.5px !important;
    padding: 3.3px 20px 3.3px 9px !important;
    min-width: 66px !important;
    background-size: 7.2px !important;
  }
  .header .header__icons {
    justify-content: flex-end !important;
    padding-right: 10px !important;
  }
  .header__icons > .desktop-localization-wrapper,
  .header__icons > .nalo-header-end {
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}

/* === 4. MOBILE : logo NALO plus a gauche + plus petit, croix decallee === */
@media screen and (max-width: 749px) {
  .header.page-width {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  .header__heading-link {
    margin-left: -8px !important;
    padding-left: 0 !important;
  }
  .header__heading-link img,
  .header__heading-link svg,
  .header__heading-logo {
    max-width: 78px !important;
    max-height: 32px !important;
    width: auto !important;
    height: auto !important;
  }
  /* repousse le hamburger lui aussi un peu a gauche */
  .header__icon--menu {
    margin-left: -4px !important;
  }
  /* Croix de fermeture du drawer : decalee de 10px vers la gauche */
  details[open] .header__icon--menu .icon-close,
  header-drawer details[open] summary svg.icon-close {
    margin-left: 10px !important;
  }
  .menu-drawer summary.header__icon--menu[aria-expanded="true"],
  menu-drawer-container details[open] > summary.header__icon--menu {
    padding-left: 14px !important;
  }
}

/* === 5. BLOQUE le slider et ses fleches quand le drawer mobile est ouvert === */
body:has(header-drawer > details[open]) .nalo-home-slider__arrow,
body:has(menu-drawer > details[open]) .nalo-home-slider__arrow,
body:has(header-drawer > details[open]) .nalo-home-slider,
body:has(menu-drawer > details[open]) .nalo-home-slider {
  pointer-events: none !important;
}
body:has(header-drawer > details[open]) .nalo-home-slider__arrow,
body:has(menu-drawer > details[open]) .nalo-home-slider__arrow {
  visibility: hidden !important;
  opacity: 0 !important;
}

/* === 6. TOGGLE THEME : fond integre au theme, icones toujours contrastees === */
.nalo-theme-toggle {
  border-radius: 6px !important;
  background: transparent !important;
  border: 1px solid rgba(var(--color-foreground), 0.35) !important;
  padding: 2px !important;
}
.nalo-theme-toggle__option {
  border-radius: 4px !important;
  background: transparent !important;
  color: rgb(var(--color-foreground)) !important;
}
.nalo-theme-toggle__option svg,
.nalo-theme-toggle__option img {
  color: rgb(var(--color-foreground)) !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}
/* Option active : fond sombre contraste, icone claire */
.nalo-theme-toggle__option[aria-pressed="true"],
.nalo-theme-toggle__option.is-active,
.nalo-theme-toggle__option.nalo-theme-toggle__option--active {
  background: rgba(var(--color-foreground), 0.85) !important;
  color: rgb(var(--color-background)) !important;
}
.nalo-theme-toggle__option[aria-pressed="true"] svg,
.nalo-theme-toggle__option.is-active svg,
.nalo-theme-toggle__option.nalo-theme-toggle__option--active svg {
  color: rgb(var(--color-background)) !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* === 7. LIGHTBOX : minimum de taille pour eviter l'effet "miniature" === */
.nalo-lightbox img {
  min-width: min(85vw, 420px) !important;
  min-height: min(50vh, 420px) !important;
  object-fit: contain !important;
}
@media screen and (min-width: 750px) {
  .nalo-lightbox img {
    min-width: min(70vw, 720px) !important;
    min-height: min(70vh, 720px) !important;
  }
}

/* === 8. BOUTON ACCUEIL ajoute via JS : meme style que les autres entrees === */
.header__menu-item.nalo-accueil-link,
.menu-drawer__menu-item.nalo-accueil-link {
  color: inherit !important;
  text-transform: inherit !important;
}
.menu-drawer__menu-item.nalo-accueil-link {
  font-size: 1.8rem !important;
  padding: 1.1rem 3rem !important;
}

/* === 9. BOUTONS BLEUS NALO (Me contacter, Envoyer, CTA personnalises) === */
:root { --nalo-blue: #0a2a66; --nalo-blue-hover: #0c3480; }
.button--primary,
button.button--primary,
a.button--primary,
.nalo-cta-blue,
a.nalo-cta-blue,
button.nalo-cta-blue,
.nalo-exhibition-cta,
.nalo-series-cta,
.nalo-more-block__link,
a.nalo-more-block__link,
input[type="submit"]:not(.nalo-no-blue),
form button[type="submit"]:not(.nalo-no-blue):not(.nalo-theme-toggle__option):not(.nalo-visual-add-image):not([aria-label*="Agrandir"]):not(.nalo-lightbox__close):not(.nalo-lightbox__prev):not(.nalo-lightbox__next):not(.nalo-home-slider__arrow) {
  background-color: var(--nalo-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: background-color .15s ease, transform .15s ease !important;
}
.button--primary:hover,
.nalo-cta-blue:hover,
.nalo-exhibition-cta:hover,
.nalo-series-cta:hover,
.nalo-more-block__link:hover,
a.nalo-more-block__link:hover {
  background-color: var(--nalo-blue-hover) !important;
  transform: translateY(-1px);
  color: #fff !important;
}

/* === 10. EXPOSITIONS : la description reste visible, le toggle natif navigue === */
.nalo-cms__exhibition .nalo-expo-toggle {
  display: none !important;
}

/* === 11. BOUTON BLEU : rectangle plein, rien a l'interieur (pas de bulle, pas de glow) === */
.button,
.button--primary,
button.button,
a.button,
.nalo-cta-blue,
.nalo-exhibition-cta,
.nalo-series-cta,
.nalo-expo-toggle,
.nalo-more-block__link,
.contact__button,
form[action*="contact"] button[type="submit"],
.shopify-payment-button__button {
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  background-image: none !important;
  text-shadow: none !important;
  border-image: none !important;
}
/* Supprime TOUT pseudo element qui cree une bulle interieure sur un bouton */
.button::before,
.button::after,
.button--primary::before,
.button--primary::after,
button.button::before,
button.button::after,
a.button::before,
a.button::after,
.nalo-cta-blue::before,
.nalo-cta-blue::after,
.nalo-exhibition-cta::before,
.nalo-exhibition-cta::after,
.nalo-series-cta::before,
.nalo-series-cta::after,
.nalo-more-block__link::before,
.nalo-more-block__link::after,
.contact__button::before,
.contact__button::after,
form[action*="contact"] button[type="submit"]::before,
form[action*="contact"] button[type="submit"]::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}
.button:hover,
.button--primary:hover,
.nalo-cta-blue:hover,
.nalo-exhibition-cta:hover,
.nalo-series-cta:hover,
.contact__button:hover,
form[action*="contact"] button[type="submit"]:hover {
  box-shadow: none !important;
  outline: none !important;
  background-image: none !important;
}

/* === 12. FAQ / filtres : pills -> rectangles arrondis legers === */
.nalo-cms__faq-filter,
.nalo-faq__filter,
.faq-filter,
.filter-pill,
[class*="faq-filter"],
[class*="faq__filter"],
[class*="faq-tag"],
[class*="faq_cat"],
[class*="pill"]:not(.nalo-no-flat),
[class*="chip"]:not(.nalo-no-flat),
[class*="tag-link"],
.facets__list button,
.facets-vertical button,
.nalo-cms__faq button,
.nalo-cms__faq a,
.nalo-cms__faq-toc,
.nalo-cms__faq-toc a,
.nalo-cms__faq-toc button,
.nalo-cms__faq-toc li,
.nalo-cms__faq-toc li a,
.nalo-cms__faq-toc li button,
button.facet-checkbox,
nav.filter-nav button,
nav.filter-nav a,
.filters__item,
.filter-group__item,
button[data-filter],
a[data-filter],
[data-faq-filter] {
  border-radius: 6px !important;
}
/* Classe helper posee par JS pour ecraser n'importe quelle pill detectee */
.nalo-flatten-pill,
.nalo-flatten-pill * {
  border-radius: 6px !important;
}

/* === 13-A. HEADER DESKTOP : fleches derriere menu, logo a gauche, FR colle a droite === */
@media screen and (min-width: 990px) {
  /* Header au-dessus des fleches carousel */
  .section-header,
  .shopify-section-header,
  .header-wrapper,
  header.header-wrapper {
    position: relative !important;
    z-index: 100 !important;
  }
  .nalo-home-slider__arrow,
  .nalo-home-slider .nalo-home-slider__arrow {
    z-index: 1 !important;
  }
  /* Logo NALO legerement decale a gauche */
  .header .header__heading,
  .header .header__heading-link {
    transform: translateX(-8%) !important;
  }
  /* Masque le label "Langue" redondant */
  .header .desktop-localization-wrapper > label:not(:has(select)),
  .header .desktop-localization-wrapper > span:not(:has(select)):not(.nalo-keep),
  .header .nalo-language-picker__label,
  .header label[for*="locale"],
  .header label[for*="Locale"] {
    display: none !important;
  }
  /* Header padding raisonnable, pas de max-width override qui casse le menu */
  .header.page-width,
  .header-wrapper .header {
    padding-right: 20px !important;
  }
  .header .header__icons {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
  }
  .header .header__icons .desktop-localization-wrapper,
  .header .header__icons .nalo-language-picker,
  .header .header__icons .nalo-header-end {
    order: 99 !important;
    margin-left: 8px !important;
    margin-right: 0 !important;
  }
  .header .header__icons .header__icon--cart,
  .header .header__icons a[href*="/cart"],
  .header .header__icons cart-icon-bubble {
    order: 95 !important;
  }
  .header .header__icons .nalo-theme-toggle {
    order: 94 !important;
  }
}

/* === 13-B. PAGE DETAIL EXPOSITION : row 2 colonnes injectee par JS (nalo-expo-row) === */
/* Masque la description seulement sur la page LISTE (plusieurs expositions) */
body:not(.nalo-expo-detail) .nalo-cms__exhibition .nalo-cms__text {
  display: none !important;
}
/* Supprime l'espace vertical excessif entre la meta et la row 2col */
body.nalo-expo-detail .nalo-cms__exhibition {
  padding-top: 0 !important;
}
body.nalo-expo-detail .nalo-cms__exhibition-meta {
  margin-bottom: 18px !important;
}
/* Row 2 colonnes creee par JS : photos a gauche, description a droite */
.nalo-expo-row {
  display: block;
}
@media (min-width: 900px) {
  .nalo-expo-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1.15fr) !important;
    column-gap: 40px !important;
    align-items: start !important;
    margin-top: 10px !important;
  }
  .nalo-expo-row > .nalo-photo-stack,
  .nalo-expo-row > .nalo-cms__gallery,
  .nalo-expo-row > .nalo-cms__media-grid,
  .nalo-expo-row > .nalo-cms__exhibition-gallery,
  .nalo-expo-row > .nalo-cms__media {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: start !important;
    justify-self: stretch !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .nalo-expo-row > .nalo-cms__text {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    align-self: start !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: clamp(1.7rem, 1.6vw, 1.95rem) !important;
    line-height: 1.75 !important;
    font-weight: 500 !important;
    margin: 0 !important;
    color: inherit !important;
    white-space: pre-line !important;
  }
  .nalo-expo-row > .nalo-cms__text::before { display: none !important; content: none !important; }
  /* S'assure que la galerie n'a pas de padding-top interne qui la decale */
  .nalo-expo-row .nalo-cms__gallery,
  .nalo-expo-row .nalo-cms__gallery > :first-child,
  .nalo-expo-row .nalo-cms__media,
  .nalo-expo-row .nalo-cms__media-grid {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
/* Mobile : stack vertical */
@media (max-width: 899px) {
  .nalo-expo-row > .nalo-cms__text {
    display: block !important;
    margin-top: 22px !important;
    font-size: 1.7rem !important;
    line-height: 1.7 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    white-space: pre-line !important;
  }
  .nalo-expo-row > .nalo-cms__text::before { display: none !important; content: none !important; }
}

/* === 13-C. PAGE CONTACT V3 : minimaliste chic, divider lumineux, nom/email en 2 col === */
.nalo-contact-page main h1:not(.nalo-contact-hero h1),
.nalo-contact-page main .main-page-title:not(.nalo-contact-hero *),
.nalo-contact-page .contact__title:not(.nalo-contact-hero *),
.nalo-contact-page h1.title:not(.nalo-contact-hero *) {
  display: none !important;
}

.nalo-contact-wrap {
  max-width: 760px !important;
  margin: 32px auto 80px !important;
  padding: 0 20px !important;
  display: block !important;
  position: relative !important;
}

.nalo-contact-hero {
  text-align: center !important;
  padding: 24px 0 18px !important;
  position: relative !important;
}
.nalo-contact-hero::after {
  content: "" !important;
  display: block !important;
  width: 80px !important;
  height: 2px !important;
  margin: 24px auto 0 !important;
  background: linear-gradient(90deg, transparent, #4a7bd8, transparent) !important;
}
.nalo-contact-hero h1 {
  font-family: "Playfair Display", Georgia, serif !important;
  font-style: italic !important;
  font-weight: 500 !important;
  font-size: clamp(3.4rem, 5.5vw, 5rem) !important;
  line-height: 1.05 !important;
  margin: 0 0 10px !important;
  letter-spacing: 0.5px !important;
  color: rgb(var(--color-foreground)) !important;
}
.nalo-contact-hero h1 em {
  font-style: normal !important;
  color: #4a7bd8 !important;
}
.nalo-contact-hero p {
  font-size: 1.4rem !important;
  line-height: 1.6 !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  opacity: 0.78 !important;
}

/* Cache les stats de la v2 (si recharge progressive) */
.nalo-contact-stats { display: none !important; }

.nalo-contact-formcard {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 28px 0 0 !important;
  margin: 0 !important;
  position: relative !important;
}
.nalo-contact-formcard::before { display: none !important; }

/* Nom + Email sur 2 colonnes (desktop) via grille sur le container .contact__fields */
@media (min-width: 640px) {
  .nalo-contact-formcard .contact__fields,
  .nalo-contact-formcard > div:has(> .field:nth-of-type(1)) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px 14px !important;
  }
  /* Nom (1) + Email (2) : 1 col chacun */
  .nalo-contact-formcard .contact__fields > .field:nth-of-type(1) { grid-column: 1 !important; }
  .nalo-contact-formcard .contact__fields > .field:nth-of-type(2) { grid-column: 2 !important; }
  /* Numero de telephone : centre, prend les 2 colonnes mais 60% max centre */
  .nalo-contact-formcard .contact__fields > .field:nth-of-type(3) {
    grid-column: 1 / -1 !important;
    max-width: 60% !important;
    margin: 0 auto !important;
  }
  /* Commentaire : pleine largeur */
  .nalo-contact-formcard .contact__fields > .field:nth-of-type(4) {
    grid-column: 1 / -1 !important;
  }
}

.nalo-contact-formcard .field,
.nalo-contact-formcard .form__field,
.nalo-contact-formcard .contact__field {
  margin-bottom: 18px !important;
}
.nalo-contact-formcard input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.nalo-contact-formcard textarea,
.nalo-contact-formcard select {
  background: rgba(var(--color-foreground), 0.05) !important;
  border: 1.5px solid rgba(var(--color-foreground), 0.18) !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  font-size: 1.45rem !important;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s !important;
  color: rgb(var(--color-foreground)) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
/* === Contact fields : label AU-DESSUS, input large, propre === */
.nalo-contact-formcard .field,
.nalo-contact-formcard .contact__field,
.nalo-contact-formcard .form__field {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}
.nalo-contact-formcard .field::before,
.nalo-contact-formcard .field::after,
.nalo-contact-formcard .contact__field::before,
.nalo-contact-formcard .contact__field::after,
.nalo-contact-formcard .form__field::before,
.nalo-contact-formcard .form__field::after {
  display: none !important;
  content: none !important;
}
/* Label : AU-DESSUS de l'input (via flex order -1) */
.nalo-contact-formcard .field__label,
.nalo-contact-formcard .contact__field label,
.nalo-contact-formcard .form__field label,
.nalo-contact-formcard label:not(.nalo-contact-radio) {
  order: -1 !important;
  position: static !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: block !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  opacity: 1 !important;
  font-size: 1.2rem !important;
  color: rgba(var(--color-foreground), 0.78) !important;
  letter-spacing: 0.5px !important;
  font-weight: 600 !important;
  pointer-events: auto !important;
  width: auto !important;
  text-transform: uppercase !important;
}
/* Inputs : PLEINE LARGEUR */
.nalo-contact-formcard .field > input,
.nalo-contact-formcard .field > textarea,
.nalo-contact-formcard .contact__field > input,
.nalo-contact-formcard .contact__field > textarea {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Options natives du select : fond integre au theme (plus de blanc flashy) */
.nalo-contact-formcard select option {
  background: rgb(var(--color-background)) !important;
  color: rgb(var(--color-foreground)) !important;
  padding: 12px !important;
}
.nalo-contact-formcard select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: linear-gradient(45deg, transparent 50%, rgba(var(--color-foreground), 0.6) 50%),
                    linear-gradient(135deg, rgba(var(--color-foreground), 0.6) 50%, transparent 50%) !important;
  background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 14px) calc(50% - 2px) !important;
  background-size: 6px 6px, 6px 6px !important;
  background-repeat: no-repeat !important;
  padding-right: 40px !important;
  cursor: pointer !important;
}
.nalo-contact-formcard input:focus,
.nalo-contact-formcard textarea:focus,
.nalo-contact-formcard select:focus {
  border-color: #4a7bd8 !important;
  background: rgba(var(--color-foreground), 0.08) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(74, 123, 216, 0.22) !important;
}
.nalo-contact-formcard textarea {
  min-height: 160px !important;
  resize: vertical !important;
}
.nalo-contact-formcard .field__label,
.nalo-contact-formcard label:not(.nalo-contact-radio) {
  color: rgba(var(--color-foreground), 0.82) !important;
  font-size: 1.25rem !important;
  letter-spacing: 0.5px !important;
  font-weight: 600 !important;
}

/* Nouveaux champs ajoutes par JS : sujet + budget optionnel */
.nalo-contact-extra {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}
@media (min-width: 640px) {
  .nalo-contact-extra { grid-template-columns: 1fr 1fr !important; }
}
.nalo-contact-extra label {
  display: block !important;
  color: rgba(var(--color-foreground), 0.82) !important;
  font-size: 1.2rem !important;
  margin-bottom: 6px !important;
  font-weight: 600 !important;
}
.nalo-contact-formcard button[type="submit"],
.nalo-contact-formcard button.button--primary,
.nalo-contact-formcard .button {
  margin-top: 18px !important;
  padding: 16px 48px !important;
  min-width: 100% !important;
  font-size: 1.45rem !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

.nalo-contact-footer {
  margin-top: 36px !important;
  padding-top: 24px !important;
  border-top: 1px solid rgba(var(--color-foreground), 0.1) !important;
  text-align: center !important;
  font-size: 1.3rem !important;
  color: rgba(var(--color-foreground), 0.65) !important;
}
.nalo-contact-footer a {
  color: #4a7bd8 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}
.nalo-contact-footer a:hover { text-decoration: underline !important; }

/* === 14. HEADER MOBILE REORGANISATION ===
   Ordre souhaite : [X]  [NALO]  (espace)  [LOUPE centre]  (espace)  [CART] [FR tout a droite]
*/
@media screen and (max-width: 749px) {
  .header.page-width,
  .section-header .header {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding-right: 6px !important;
  }

  .header__icon--menu,
  header-drawer summary.header__icon--menu {
    margin-left: 14px !important;
    padding-left: 0 !important;
  }

  .header__heading,
  .header__heading-link {
    margin-left: 4px !important;
    margin-right: 0 !important;
    flex: 0 0 auto !important;
  }

  .header .header__icons {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    padding-right: 0 !important;
    margin-right: -4px !important;
    position: static !important;
  }
  /* FR dropdown : COLLE au bord droit absolu */
  .header .header__icons .nalo-language-picker,
  .header .header__icons .desktop-localization-wrapper,
  .header .header__icons .nalo-header-end {
    margin-right: 0 !important;
    padding-right: 0 !important;
  }

  /* LOUPE : directement a gauche du panier (plus centree) */
  .header__icons details-modal,
  .header__icons .header__search,
  .header__icons > details-modal.header__search,
  .header__icons > .header__icon--search,
  .header__icons a.header__icon--search {
    position: static !important;
    transform: none !important;
    order: 85 !important;  /* juste avant le panier (order 90) */
    margin: 0 !important;
    padding: 0 !important;
    z-index: auto !important;
  }
  /* RECHERCHE OUVERTE : barre horizontale pleine largeur sous le header, PAS une bande verticale */
  /* NB: [open] est sur le <details> enfant, pas sur <details-modal> */
  .header__icons details-modal:has(details[open]) {
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    z-index: auto !important;
  }
  .header__icons details-modal details[open] .modal__content,
  .header__icons details-modal details[open] .search-modal,
  .header__icons .header__search details[open] .modal__content,
  .header__icons .header__search details[open] .search-modal {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 72px !important;
    bottom: auto !important;
    transform: none !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 72px) !important;
    overflow-y: auto !important;
    z-index: 999 !important;
    opacity: 1 !important;
    background: rgb(var(--color-background)) !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  /* Resultats predictifs : cale sous le form, pleine largeur */
  .header__icons details-modal details[open] .search-modal__content,
  .header__icons details-modal details[open] .search-modal__form,
  .header__icons details-modal details[open] predictive-search,
  .header__icons details-modal details[open] form.search,
  .header__icons details-modal details[open] .predictive-search {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    gap: 8px !important;
  }
  .header__icons details-modal details[open] .search__input,
  .header__icons details-modal details[open] input[type="search"] {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .header__icons details-modal details[open] .search-modal__close-button {
    position: static !important;
    flex: 0 0 auto !important;
  }

  /* PANIER : COLLE a gauche du FR (gap zero) */
  .header .header__icons .header__icon--cart,
  .header .header__icons a[href*="/cart"],
  .header .header__icons cart-icon-bubble,
  .header .header__icons .cart-link {
    order: 90 !important;
    margin: 0 !important;
    padding-right: 0 !important;
  }

  /* THEME TOGGLE : cache sur mobile dans le header (reste dispo dans le drawer) */
  .header .header__icons .nalo-theme-toggle {
    display: none !important;
  }

  /* FR : COLLE TOUT A DROITE, directement a droite du panier */
  .header .header__icons .nalo-language-picker,
  .header .header__icons .desktop-localization-wrapper,
  .header .header__icons .nalo-header-end,
  .header .header__icons label:has(> select) {
    order: 99 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}


/** NALO category contents **/
.nalo-category-contents {
  max-width: 1280px;
  margin: 32px auto 48px;
  padding: 0 24px;
  color: inherit;
}
.nalo-category-contents__title {
  color: inherit;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  text-align: center;
}
.nalo-category-contents__body {
  color: inherit;
  max-width: 820px;
  margin: 0 auto 24px;
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.92;
  text-align: center;
}
.nalo-category-contents__body p { margin: 0 0 12px; color: inherit; }
/* Hard overrides when black theme is active */
html[data-nalo-theme="black"] .nalo-category-contents,
html[data-nalo-theme="black"] .nalo-category-contents__title,
html[data-nalo-theme="black"] .nalo-category-contents__body,
html[data-nalo-theme="black"] .nalo-category-contents__body p { color: #fff; }
.nalo-category-contents__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.nalo-category-contents__tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  background: rgba(127, 127, 127, 0.15);
  text-decoration: none;
}
.nalo-category-contents__tile img,
.nalo-category-contents__tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.nalo-category-contents__tile:hover img,
.nalo-category-contents__tile:hover video { transform: scale(1.03); }
@media (max-width: 640px) {
  .nalo-category-contents { padding: 0 16px; margin: 20px auto 32px; }
  .nalo-category-contents__gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
/** /NALO category contents **/
