/* ==========================================================================
   LES MAINS DE L'ARTISAN — Design system « Atelier »
   --------------------------------------------------------------------------
   Direction : artisanat traditionnel, matiere et solidite.
   Blocs francs, angles quasi droits, filets fins, photos plein cadre,
   aucune animation gratuite : uniquement des transitions de survol.

   Ce fichier est charge apres style.css + style-tailwind.css : il fait
   autorite sur la typographie, les couleurs de surface et les boutons.
   Aucun recompilage Tailwind n'est necessaire.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. POLICES
   Titres  : Aleo (slab serif variable) — la matiere, la brique, l'atelier
   Textes  : Montserrat (variable) — neutre, tres lisible
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "titleFont";
  src:
    url("../fonts/Aleo-VariableFont_wght.ttf") format("truetype-variations"),
    url("../fonts/Aleo-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "titleFont";
  src:
    url("../fonts/Aleo-Italic-VariableFont_wght.ttf")
      format("truetype-variations"),
    url("../fonts/Aleo-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "baseTypo";
  src:
    url("../fonts/Montserrat-VariableFont_wght.ttf")
      format("truetype-variations"),
    url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. JETONS
   -------------------------------------------------------------------------- */

:root {
  /* Couleurs de marque — reprises de config.json */
  --lw-primary: #206faa;
  --lw-secondary: #7fa348;

  /**
   * Le vert d'origine (#8cc640) tirait vers le lime : trop « sportif » pour
   * un artisan traditionnel. Remplace par un vert sauge/olive, qui tient sur
   * le sable comme sur les fonds sombres. Le CSS Tailwind etant fige, on
   * redefinit aussi la variable de theme pour les composants non repris.
   */
  --color-secondary: #7fa348;

  /* Declinaisons figees (les var() ne se composent pas en color-mix partout) */
  --lw-primary-dark: #17537f;
  --lw-primary-darker: #0f3c5d;
  --lw-primary-light: #6aa8dc; /* survols sur fond sombre */
  --lw-secondary-dark: #6a8a3a;

  /* Neutres chauds : le mortier, la pierre, la chaux */
  --lw-ink: #1b1c1e;
  --lw-body: #4c4f55;
  --lw-muted: #7c7f86;
  --lw-sand: #f6f3ee;
  --lw-sand-deep: #efeae1;
  --lw-line: #e3ded5;
  --lw-line-strong: #cfc8bb;
  --lw-white: #ffffff;

  /* Fonds sombres (footer, encarts) */
  --lw-dark: #1d2126;
  --lw-dark-soft: #262b31;

  /* Rythme */
  --lw-section-y: clamp(3.25rem, 6vw, 5.5rem);
  --lw-gutter: clamp(1.25rem, 4vw, 3rem);
  --lw-max: 82rem;

  /* Formes */
  --lw-radius: 2px;
  --lw-radius-lg: 3px;

  /* Mouvement — sobre et unique */
  --lw-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --lw-fast: 200ms;
  --lw-slow: 420ms;

  /* Ombres */
  --lw-shadow-sm: 0 1px 2px rgba(27, 28, 30, 0.05);
  --lw-shadow: 0 10px 30px -12px rgba(27, 28, 30, 0.22);
  --lw-shadow-lg: 0 24px 60px -24px rgba(27, 28, 30, 0.35);
}

/**
 * Utilitaires Tailwind « secondary » : le build est fige sur l'ancien vert,
 * on les realigne ici (composants non repris : avis, faq, variantes).
 */
.bg-secondary {
  background-color: var(--lw-secondary) !important;
}
.bg-secondary\/50 {
  background-color: rgba(127, 163, 72, 0.5) !important;
}
.text-secondary {
  color: var(--lw-secondary) !important;
}
.text-secondary\/95 {
  color: rgba(127, 163, 72, 0.95) !important;
}
.border-secondary {
  border-color: var(--lw-secondary) !important;
}
.fill-secondary {
  fill: var(--lw-secondary) !important;
}
.before\:bg-secondary::before {
  background-color: var(--lw-secondary) !important;
}
.after\:bg-secondary::after {
  background-color: var(--lw-secondary) !important;
}
.hover\:bg-secondary:hover {
  background-color: var(--lw-secondary) !important;
}
.hover\:bg-secondary\/95:hover {
  background-color: rgba(127, 163, 72, 0.95) !important;
}
.hover\:text-secondary:hover {
  color: var(--lw-secondary) !important;
}
.focus\:bg-secondary:focus {
  background-color: var(--lw-secondary) !important;
}

/* --------------------------------------------------------------------------
   3. BASE
   -------------------------------------------------------------------------- */

body {
  font-family:
    "baseTypo",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--lw-body);
  background-color: var(--lw-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body p {
  margin-bottom: 1.1rem !important;
}

body p:last-child {
  margin-bottom: 0 !important;
}

::selection {
  background: var(--lw-primary);
  color: #fff;
}

img {
  max-width: 100%;
}

/* Transition par defaut sur tout ce qui reagit au survol */
a,
button,
input[type="submit"],
svg,
.lw-btn,
.lw-card,
.lw-icon-tile {
  transition:
    color var(--lw-fast) var(--lw-ease),
    background-color var(--lw-fast) var(--lw-ease),
    border-color var(--lw-fast) var(--lw-ease),
    fill var(--lw-fast) var(--lw-ease),
    stroke var(--lw-fast) var(--lw-ease),
    box-shadow var(--lw-fast) var(--lw-ease),
    transform var(--lw-fast) var(--lw-ease),
    opacity var(--lw-fast) var(--lw-ease);
}

a {
  color: var(--lw-primary);
  text-decoration: none;
}

a:hover {
  color: var(--lw-primary-dark);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHIE — un seul systeme de titres pour tous les composants
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6,
.lw-title,
.font-display {
  font-family: "titleFont", Georgia, "Times New Roman", serif;
  color: var(--lw-ink);
}

/* Surtitre : filet court + libelle espace */
.lw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: "baseTypo", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lw-primary);
}

.lw-eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  flex: 0 0 auto;
  background-color: var(--lw-primary);
}

.lw-eyebrow--center {
  justify-content: center;
}

.lw-eyebrow--center::after {
  content: "";
  width: 2rem;
  height: 1px;
  flex: 0 0 auto;
  background-color: var(--lw-primary);
}

.lw-eyebrow--light,
.lw-eyebrow--light::before,
.lw-eyebrow--light::after {
  color: var(--lw-white);
}

.lw-eyebrow--light::before,
.lw-eyebrow--light::after {
  background-color: rgba(255, 255, 255, 0.55);
}

/* Titres */
.lw-title {
  margin: 0 0 1.25rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lw-title--hero {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
}

.lw-title--section {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.lw-title--sub {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}

.lw-title--light {
  color: var(--lw-white);
}

.lw-title em,
.lw-title .lw-accent {
  font-style: normal;
  color: var(--lw-primary);
}

/* Chapo */
.lw-lead {
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--lw-body);
}

.lw-lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Separateur de titre (option admin « separatorTitles ») */
.separatorTitle,
.lw-rule {
  display: block;
  width: 3.5rem !important;
  height: 2px !important;
  margin-bottom: 1.75rem;
  border: 0;
  background-color: var(--lw-primary) !important;
  opacity: 1;
}

.separatorTitle.mx-auto,
.lw-rule--center {
  margin-left: auto;
  margin-right: auto;
}

/* Entete de section reutilisable */
.lw-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.lw-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Contenu editorial (WYSIWYG ACF) */
.lw-prose {
  color: var(--lw-body);
}

.lw-prose h2,
.lw-prose h3,
.lw-prose h4 {
  margin: 2rem 0 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}

.lw-prose h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}
.lw-prose h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}
.lw-prose h4 {
  font-size: 1.15rem;
}

/* Specificite volontairement elevee : style.css cible `body ul:not(#menu-footer)` */
body .lw-prose ul,
body .lw-prose ol {
  margin: 0 0 1.25rem !important;
  padding-left: 0 !important;
  list-style: none !important;
}

body .lw-prose ol {
  counter-reset: lw-ol;
}

body .lw-prose li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 1.85rem;
  list-style: none;
}

body .lw-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--lw-primary);
  transform: rotate(45deg);
}

body .lw-prose ol li::before {
  counter-increment: lw-ol;
  content: counter(lw-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--lw-primary);
}

/* Si l'admin active une puce personnalisee, on lui laisse la main */
body .lw-prose.iconListEnabled ul li::before,
.iconListEnabled ul li::before {
  width: 1.1rem;
  height: 1.1rem;
  top: 0.35em;
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: none;
}

.lw-prose strong {
  color: var(--lw-ink);
  font-weight: 600;
}

.lw-prose a {
  color: var(--lw-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.lw-prose a:hover {
  color: var(--lw-primary-dark);
}

/* --------------------------------------------------------------------------
   5. BOUTONS — deux styles, pas un de plus
      .lw-btn--primary  : plein
      .lw-btn--outline  : contour
      (+ modificateurs de taille / d'inversion, jamais de 3e apparence)
   -------------------------------------------------------------------------- */

.lw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--lw-radius);
  font-family: "baseTypo", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.lw-btn:focus-visible {
  outline: 2px solid var(--lw-primary);
  outline-offset: 3px;
}

.lw-btn i,
.lw-btn svg {
  flex: 0 0 auto;
  font-size: 1.35em;
  line-height: 1;
}

.lw-btn svg {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
}

/* -- Plein -- */
.lw-btn--primary {
  background-color: var(--lw-primary);
  border-color: var(--lw-primary);
  color: var(--lw-white);
}

.lw-btn--primary:hover,
.lw-btn--primary:focus {
  background-color: var(--lw-primary-dark);
  border-color: var(--lw-primary-dark);
  color: var(--lw-white);
  transform: translateY(-2px);
  box-shadow: var(--lw-shadow);
}

.lw-btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* -- Contour -- */
.lw-btn--outline {
  background-color: transparent;
  border-color: var(--lw-primary);
  color: var(--lw-primary);
}

.lw-btn--outline:hover,
.lw-btn--outline:focus {
  background-color: var(--lw-primary);
  border-color: var(--lw-primary);
  color: var(--lw-white);
  transform: translateY(-2px);
  box-shadow: var(--lw-shadow);
}

.lw-btn--outline:active {
  transform: translateY(0);
  box-shadow: none;
}

/* -- Inversions sur fond sombre / photo -- */
.lw-btn--primary.is-light {
  background-color: var(--lw-white);
  border-color: var(--lw-white);
  color: var(--lw-ink);
}

.lw-btn--primary.is-light:hover,
.lw-btn--primary.is-light:focus {
  background-color: var(--lw-sand);
  border-color: var(--lw-sand);
  color: var(--lw-ink);
}

.lw-btn--outline.is-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--lw-white);
}

.lw-btn--outline.is-light:hover,
.lw-btn--outline.is-light:focus {
  background-color: var(--lw-white);
  border-color: var(--lw-white);
  color: var(--lw-ink);
}

/* -- Tailles -- */
.lw-btn--sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.lw-btn--block {
  width: 100%;
}

/* -- Icone seule (meme peau, format carre) -- */
.lw-btn--icon {
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  gap: 0;
}

.lw-btn--icon i,
.lw-btn--icon svg {
  font-size: 1.15rem;
}

.lw-btn--icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* Groupe de boutons (remplace .buttons du theme) */
.lw-btn-group,
.buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.lw-btn-group--center,
.lw-btn-group.is-center {
  justify-content: center;
}

/* Le theme historique poussait .buttons a 75px de marge et 60px de gap */
.buttons {
  margin-top: 2rem;
  gap: 0.85rem;
}

/* --------------------------------------------------------------------------
   6. MISE EN PAGE
   -------------------------------------------------------------------------- */

.lw-section {
  position: relative;
  padding-top: var(--lw-section-y);
  padding-bottom: var(--lw-section-y);
}

.lw-section--sand {
  background-color: var(--lw-sand);
}

.lw-section--dark {
  background-color: var(--lw-dark);
  color: rgba(255, 255, 255, 0.78);
}

.lw-wrap {
  width: 100%;
  max-width: var(--lw-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--lw-gutter);
  padding-right: var(--lw-gutter);
}

.lw-wrap--wide {
  max-width: 96rem;
}

.lw-wrap--narrow {
  max-width: 60rem;
}

/**
 * Le page builder insere un <section class="spacer"> entre chaque bloc.
 * Le rythme vertical est desormais porte par .lw-section : on neutralise
 * ce spacer pour eviter les doubles espacements et les bandes blanches
 * entre deux sections de meme couleur.
 * (Pour le reactiver : supprimer la regle ci-dessous.)
 */
section.spacer {
  height: 0 !important;
  min-height: 0 !important;
}

/* --------------------------------------------------------------------------
   7. CARTES & VISUELS
   -------------------------------------------------------------------------- */

.lw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--lw-white);
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
  overflow: hidden;
}

a.lw-card:hover,
.lw-card:hover {
  border-color: var(--lw-line-strong);
  box-shadow: var(--lw-shadow);
  transform: translateY(-4px);
}

.lw-card__media {
  position: relative;
  overflow: hidden;
  background-color: var(--lw-sand-deep);
}

.lw-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--lw-slow) var(--lw-ease);
}

.lw-card:hover .lw-card__media img {
  transform: scale(1.05);
}

.lw-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1.5rem 1.75rem;
}

/* Vignette d'icone (contacts, atouts) */
.lw-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
  background-color: var(--lw-white);
  color: var(--lw-primary);
}

.lw-icon-tile i {
  font-size: 1.4rem;
  line-height: 1;
  color: inherit;
}

.lw-icon-tile--solid {
  background-color: var(--lw-primary);
  border-color: var(--lw-primary);
  color: var(--lw-white);
}

/* Sans cadre : pied de page, l'icone seule suffit */
.lw-icon-tile--ghost {
  width: auto;
  height: auto;
  background-color: transparent;
  border: 0;
  color: var(--lw-primary-light);
}

.lw-icon-tile--ghost i {
  font-size: 1.75rem;
}

/* Ratio d'image plein cadre */
.lw-media-fill {
  position: relative;
  overflow: hidden;
  background-color: var(--lw-sand-deep);
  background-size: cover;
  background-position: center;
}

/* --------------------------------------------------------------------------
   8. EN-TETE
   -------------------------------------------------------------------------- */

:root {
  --lw-header-h: 76px;
}

@media (min-width: 64rem) {
  :root {
    --lw-header-h: 112px;
  }
}

/* L'en-tete est fixe : on decale le contenu d'autant */
.site-main {
  padding-top: var(--lw-header-h);
}

.lw-navbar {
  border-bottom: 1px solid var(--lw-line);
  box-shadow: 0 1px 0 rgba(27, 28, 30, 0.02);
}

.lw-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#menu-main > li {
  margin: 0;
}

#menu-main > li > a {
  position: relative;
  font-family: "baseTypo", sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
}

#menu-main > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--lw-fast) var(--lw-ease);
}

#menu-main > li:hover > a::after,
#menu-main > li.current-menu-item > a::after,
#menu-main > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

/* Sous-menus : fond clair, filet haut a la couleur du theme */
#menu-main .sub-menu {
  top: 100% !important;
  min-width: 15rem;
  padding: 0.5rem 0 !important;
  background-color: var(--lw-white) !important;
  backdrop-filter: none !important;
  border-top: 3px solid var(--lw-primary) !important;
  border-radius: 0 0 var(--lw-radius) var(--lw-radius);
  box-shadow: var(--lw-shadow);
  overflow: hidden;
}

#menu-main .sub-menu li {
  width: 100%;
  margin-bottom: 0 !important;
  display: block !important;
}

#menu-main .sub-menu a {
  display: block !important;
  width: 100%;
  padding: 0.55rem 1.15rem !important;
  font-family: "baseTypo", sans-serif !important;
  font-size: 0.92rem !important;
  color: var(--lw-body) !important;
  transition:
    background-color var(--lw-fast) var(--lw-ease),
    color var(--lw-fast) var(--lw-ease);
}

#menu-main .sub-menu a:hover {
  background-color: var(--lw-sand);
  color: var(--lw-primary) !important;
}

/* Bouton burger / fermeture */
.lw-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
  background-color: transparent;
  color: var(--lw-ink);
}

.lw-burger svg {
  fill: currentColor;
  width: 1.4rem;
  height: 1.4rem;
}

.lw-burger:hover {
  background-color: var(--lw-sand);
  border-color: var(--lw-line-strong);
}

/* Panneau mobile */
.lw-mobile-nav {
  background-color: var(--lw-white);
}

.navbar-menu ul.mobile > li {
  align-items: flex-start !important;
  border-bottom: 1px solid var(--lw-line);
}

.navbar-menu ul.mobile > li > a {
  width: 100%;
  padding: 1rem 0 !important;
  margin-bottom: 0 !important;
  text-align: left !important;
  color: var(--lw-ink) !important;
}

.navbar-menu ul.mobile > li > a:hover {
  color: var(--lw-primary) !important;
}

.navbar-menu ul.mobile li .sub-menu li a {
  color: var(--lw-body) !important;
  font-family: "baseTypo", sans-serif !important;
  font-size: 0.95rem !important;
}

.navbar-menu ul.mobile > li.current-menu-ancestor > a,
.navbar-menu ul.mobile > li.current-menu-item > a {
  background-color: transparent !important;
  color: var(--lw-primary) !important;
  padding: 1rem 0 !important;
}

/* Barre de contact au-dessus du menu */
.lw-topbar {
  background-color: var(--lw-dark);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.lw-topbar a {
  color: rgba(255, 255, 255, 0.82);
}

.lw-topbar a:hover {
  color: var(--lw-white);
}

.lw-topbar i {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.lw-topbar a:hover i {
  color: var(--lw-white);
}

/* Menu mobile */
.navbar-menu ul.mobile > li > a {
  font-family: "titleFont", serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.navbar-burger,
.navbar-close {
  background: transparent;
  cursor: pointer;
}

.navbar-burger:hover svg,
.navbar-close:hover svg {
  opacity: 0.65;
}

/* --------------------------------------------------------------------------
   9. HERO
   -------------------------------------------------------------------------- */

.lw-hero {
  position: relative;
  background-color: var(--lw-sand);
}

.lw-hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.75rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 4.5rem);
}

@media (min-width: 64rem) {
  .lw-hero__panel {
    position: relative;
    min-height: min(calc(100vh - var(--lw-header-h)), 46rem);
  }
}

.lw-hero__media {
  position: relative;
  min-height: 22rem;
  height: 60vw;
  max-height: 34rem;
  background-color: var(--lw-sand-deep);
}

@media (min-width: 64rem) {
  .lw-hero__media {
    height: auto;
    max-height: none;
    min-height: min(calc(100vh - var(--lw-header-h)), 46rem);
  }
}

.lw-hero__logo {
  max-height: 5.5rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.75rem;
  align-self: flex-start;
}

.lw-hero__place {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 0 !important;
  font-size: 0.9rem;
  color: var(--lw-muted);
}

.lw-hero__place i {
  font-size: 1.15rem;
  color: var(--lw-primary);
}

/* Carrousel du hero : cellules pleine largeur, pas de gouttiere */
.lw-hero .carousel,
.lw-hero .carousel-cell,
.lw-hero .flickity-viewport {
  height: 100% !important;
  background-color: var(--lw-sand-deep);
  border-radius: 0;
}

.lw-hero .carousel-cell {
  width: 100%;
  margin-right: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.lw-hero .flickity-page-dots {
  bottom: 1.25rem;
}

.lw-hero .flickity-page-dots .dot {
  width: 2rem;
  height: 3px;
  margin: 0 4px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  transition: background-color var(--lw-fast) var(--lw-ease);
}

.lw-hero .flickity-page-dots .dot.is-selected {
  background: var(--lw-white);
}

/* --------------------------------------------------------------------------
   9 bis. BANNIERE DE PAGE
   -------------------------------------------------------------------------- */

.lw-pagehead {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--lw-sand);
}

.lw-pagehead__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.75rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem);
}

.lw-pagehead__media {
  min-height: 16rem;
  height: 45vw;
  max-height: 26rem;
}

@media (min-width: 64rem) {
  .lw-pagehead {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .lw-pagehead__media {
    height: auto;
    max-height: none;
    min-height: 26rem;
  }

  .lw-pagehead--reverse .lw-pagehead__panel {
    order: 2;
  }
}

/* --------------------------------------------------------------------------
   10. PRESTATIONS
   -------------------------------------------------------------------------- */

.lw-presta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
}

/* Nombre de colonnes force depuis l'admin (« Nombre d'item par ligne ») */
@media (min-width: 64rem) {
  .lw-presta-grid[style*="--lw-cols"] {
    grid-template-columns: repeat(var(--lw-cols), minmax(0, 1fr));
  }
}

.lw-presta {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 26rem;
  background-color: var(--lw-ink);
  border-radius: var(--lw-radius);
  overflow: hidden;
  isolation: isolate;
}

.lw-presta__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--lw-slow) var(--lw-ease);
}

.lw-presta__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(19, 21, 24, 0.88) 0%,
    rgba(19, 21, 24, 0.55) 38%,
    rgba(19, 21, 24, 0.12) 72%,
    rgba(19, 21, 24, 0.05) 100%
  );
  transition: opacity var(--lw-fast) var(--lw-ease);
}

.lw-presta__content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1.75rem;
  color: var(--lw-white);
}

.lw-presta__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: "titleFont", serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--lw-white);
}

.lw-presta__title img {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
}

.lw-presta__desc {
  margin-top: 0.6rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.lw-presta__desc p {
  margin-bottom: 0.5rem !important;
}

.lw-presta__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lw-white);
}

.lw-presta__more::after {
  content: "";
  width: 1.5rem;
  height: 1px;
  background-color: currentColor;
  transition: width var(--lw-fast) var(--lw-ease);
}

/* Etat de survol : seulement si la carte est cliquable */
a.lw-presta:hover .lw-presta__img {
  transform: scale(1.06);
}

a.lw-presta:hover .lw-presta__veil {
  opacity: 0.85;
}

a.lw-presta:hover .lw-presta__more::after {
  width: 2.75rem;
}

/* Trait d'accent bas de carte */
.lw-presta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: 3px;
  background-color: var(--lw-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--lw-slow) var(--lw-ease);
}

a.lw-presta:hover::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   11. GALERIE
   -------------------------------------------------------------------------- */

.lw-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.lw-gallery__item {
  position: relative;
  height: 20rem;
  border-radius: var(--lw-radius);
  overflow: hidden;
  cursor: zoom-in;
  background-color: var(--lw-sand-deep);
}

.lw-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--lw-slow) var(--lw-ease);
}

.lw-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(19, 21, 24, 0);
  transition: background-color var(--lw-fast) var(--lw-ease);
}

.lw-gallery__item:hover img {
  transform: scale(1.06);
}

.lw-gallery__item:hover::after {
  background-color: rgba(19, 21, 24, 0.2);
}

@media (min-width: 64rem) {
  .lw-gallery__item {
    height: 24rem;
  }
}

/* --------------------------------------------------------------------------
   12. TEXTE + PHOTO
   -------------------------------------------------------------------------- */

.lw-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 64rem) {
  .lw-split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  /* « Position photo : gauche » — le media passe avant le texte */
  .lw-split--reverse .lw-split__media {
    order: -1;
  }
}

.lw-split__media {
  position: relative;
  min-height: 22rem;
  height: 100%;
  border-radius: var(--lw-radius);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--lw-sand-deep);
}

@media (min-width: 64rem) {
  .lw-split__media {
    min-height: 34rem;
  }
}

/* Filet d'encadrement discret, rappel du trait de macon */
.lw-split__media::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   13. BLOC TEXTE (typo)
   -------------------------------------------------------------------------- */

.lw-typo {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}

@media (min-width: 64rem) {
  .lw-typo {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .lw-typo__aside {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

/* --------------------------------------------------------------------------
   14. CTA
   -------------------------------------------------------------------------- */

.lw-cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(26rem, 55vh, 34rem);
  background-color: var(--lw-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

@media (min-width: 64rem) {
  .lw-cta {
    background-attachment: fixed;
  }
}

.lw-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15, 24, 33, 0.9) 0%,
    rgba(15, 24, 33, 0.72) 45%,
    rgba(15, 24, 33, 0.42) 100%
  );
}

.lw-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.lw-cta__inner .lw-lead {
  color: rgba(255, 255, 255, 0.8);
}

.lw-cta__highlight {
  color: var(--lw-secondary);
}

/* Variante « carte + CTA » (bloc Map utilise en CTA) */
.lw-mapcta {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--lw-dark);
}

.lw-mapcta__panel {
  display: flex;
  align-items: center;
  padding: clamp(2.75rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
}

.lw-mapcta__inner {
  max-width: 34rem;
}

.lw-mapcta__inner .lw-lead {
  color: rgba(255, 255, 255, 0.75);
}

.lw-mapcta__map {
  min-height: 22rem;
  height: 60vw;
  max-height: 34rem;
}

@media (min-width: 64rem) {
  .lw-mapcta {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .lw-mapcta__map {
    height: auto;
    max-height: none;
    min-height: 34rem;
  }
}

/* --------------------------------------------------------------------------
   15. CONTACT / FORMULAIRE
   -------------------------------------------------------------------------- */

.lw-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 64rem) {
  .lw-contact {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

.lw-contact__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lw-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.lw-contact__label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lw-muted);
}

.lw-contact__value {
  font-family: "titleFont", serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--lw-ink);
}

.lw-contact__value a {
  color: inherit;
}

.lw-contact__value a:hover {
  color: var(--lw-primary);
}

.lw-form-panel {
  background-color: var(--lw-white);
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.lw-section--sand .lw-form-panel {
  box-shadow: var(--lw-shadow-sm);
}

/* Champs */
#contactForm fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 12rem;
}

#contactForm label,
.lw-form-panel label {
  font-family: "baseTypo", sans-serif !important;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lw-muted) !important;
  margin-bottom: 0.4rem;
}

.form-field {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: "baseTypo", sans-serif;
  font-size: 0.95rem;
  color: var(--lw-ink);
  background-color: var(--lw-white);
  border: 1px solid var(--lw-line-strong);
  border-radius: var(--lw-radius);
  transition:
    border-color var(--lw-fast) var(--lw-ease),
    box-shadow var(--lw-fast) var(--lw-ease);
}

.form-field:hover {
  border-color: var(--lw-muted);
}

.form-field:focus {
  outline: none;
  border-color: var(--lw-primary);
  box-shadow: 0 0 0 3px rgba(32, 111, 170, 0.14);
}

.form-field::placeholder {
  color: #a8aab0;
}

textarea.form-field {
  min-height: 9rem;
  resize: vertical;
}

.submitButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.25rem !important;
  font-family: "baseTypo", sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lw-white) !important;
  background-color: var(--lw-primary) !important;
  border: 1px solid var(--lw-primary);
  border-radius: var(--lw-radius) !important;
  cursor: pointer;
}

.submitButton:hover {
  background-color: var(--lw-primary-dark) !important;
  border-color: var(--lw-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--lw-shadow);
}

fieldset.error .form-field {
  border-color: var(--color-error-900, #ef4444);
}

fieldset.succes .form-field {
  border-color: var(--color-success-900, #22c55e);
}

/* --------------------------------------------------------------------------
   16. CARTE (map)
   -------------------------------------------------------------------------- */

/**
 * Leaflet monte ses panneaux et controles jusqu'a z-index 1000, ce qui passait
 * au-dessus de l'en-tete fixe. `isolation: isolate` enferme toute cette pile
 * dans un contexte d'empilement local : la carte ne peut plus deborder.
 */
#map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
}

/* Bandeau carte pleine largeur (map-3) */
.lw-mapband {
  position: relative;
  z-index: 0;
}

.lw-mapband #map {
  height: clamp(20rem, 45vw, 34rem);
  border-top: 1px solid var(--lw-line);
  border-bottom: 1px solid var(--lw-line);
}

/* --------------------------------------------------------------------------
   17. PARTENAIRES
   -------------------------------------------------------------------------- */

.lw-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.lw-partners img {
  max-height: 5.5rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition:
    filter var(--lw-fast) var(--lw-ease),
    opacity var(--lw-fast) var(--lw-ease);
}

.lw-partners img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   18. EQUIPE
   -------------------------------------------------------------------------- */

.lw-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  max-width: 68rem;
  margin: 0 auto;
}

.lw-team__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.5rem;
  background-color: var(--lw-white);
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
}

.lw-team__card:hover {
  border-color: var(--lw-line-strong);
  box-shadow: var(--lw-shadow);
  transform: translateY(-4px);
}

.lw-team__photo {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--lw-line);
}

.lw-team__name {
  margin: 1.25rem 0 0.2rem;
  font-family: "titleFont", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lw-ink);
}

.lw-team__role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lw-primary);
}

/* --------------------------------------------------------------------------
   19. BLOG
   -------------------------------------------------------------------------- */

.lw-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.75rem;
}

.lw-blog__media {
  height: 14rem;
}

.lw-blog__title {
  font-family: "titleFont", serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--lw-ink);
}

.lw-card:hover .lw-blog__title {
  color: var(--lw-primary);
}

.lw-blog__meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lw-muted);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.6rem;
  font-family: "baseTypo", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lw-body);
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--lw-primary) !important;
  border-color: var(--lw-primary);
  color: var(--lw-white) !important;
}

/* --------------------------------------------------------------------------
   20. AVANT / APRES
   -------------------------------------------------------------------------- */

.containerhere {
  border-radius: var(--lw-radius);
  overflow: hidden;
  border: 1px solid var(--lw-line);
}

.containerhere .slider-button {
  border-color: var(--lw-white) !important;
}

/* --------------------------------------------------------------------------
   21. VILLES DUPLIQUEES
   -------------------------------------------------------------------------- */

/**
 * Bloc de maillage interne : present dans le DOM (liens crawlables) mais
 * jamais visible. Technique « screen reader only » plutot qu'une marge
 * negative : le masquage ne depend pas du bloc qui precede.
 */
.duplicate_city {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   22. PIED DE PAGE
   -------------------------------------------------------------------------- */

footer.v3Footer {
  background-color: var(--lw-dark);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

footer.v3Footer .lw-footer-top {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

footer.v3Footer .txtCustom,
footer.v3Footer .txtCustom a {
  color: rgba(255, 255, 255, 0.85);
}

footer.v3Footer .txtCustom a:hover {
  color: var(--lw-primary-light);
}

#footerMenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#footerMenu li {
  display: block;
  margin: 0;
}

#footerMenu li a {
  font-family: "baseTypo", sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

#footerMenu li a:hover,
#footerMenu li.current-menu-item > a,
#footerMenu li.current-menu-ancestor > a {
  color: var(--lw-primary-light);
}

#footerMenu .sub-menu {
  display: none;
}

.lw-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: 20px;
}

.lw-footer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lw-footer-block .lw-contact__label {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

.lw-footer-block .txtCustom {
  font-family: "titleFont", serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.lw-footer-sep {
  height: 1px;
  border: 0;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.12);
}

footer .socialFooter {
  border-radius: var(--lw-radius) !important;
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  box-shadow: none !important;
}

footer .socialFooter:hover {
  transform: translateY(-2px);
}

footer .lw-copyright {
  background-color: #101214;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

footer .lw-copyright svg {
  color: rgba(255, 255, 255, 0.75);
}

footer .lw-copyright a:hover svg {
  color: var(--lw-white);
}

footer .lw-copyright a {
  color: rgba(255, 255, 255, 0.55);
}

footer .lw-copyright a:hover {
  color: var(--lw-primary-light);
}

/* --------------------------------------------------------------------------
   23. RESEAUX SOCIAUX (hors footer)
   -------------------------------------------------------------------------- */

.lw-socials,
.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.social {
  justify-content: center;
}

/* Pastille par defaut : meme peau que .lw-btn--outline */
.lw-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--lw-line);
  border-radius: var(--lw-radius);
  background-color: var(--lw-white);
  color: var(--lw-primary);
}

.lw-social svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.lw-social:hover {
  background-color: var(--lw-primary);
  border-color: var(--lw-primary);
  color: var(--lw-white);
  transform: translateY(-2px);
}

/* Sans cadre : barre de contact sombre */
.lw-social--bare {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
}

.lw-social--bare:hover {
  background: transparent;
  color: var(--lw-white);
  transform: none;
}

.lw-social--bare svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* Pied de page : fond sombre */
.lw-social--footer {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--lw-white);
}

.lw-social--footer:hover {
  background-color: var(--lw-primary);
  border-color: var(--lw-primary);
  color: var(--lw-white);
}

/* --------------------------------------------------------------------------
   24. CARROUSEL (flickity) — habillage sobre
   -------------------------------------------------------------------------- */

.flickity-button {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-radius: var(--lw-radius) !important;
  color: var(--lw-ink) !important;
  box-shadow: var(--lw-shadow-sm);
}

.flickity-button:hover {
  background-color: var(--lw-primary) !important;
  color: var(--lw-white) !important;
}

.flickity-button:disabled {
  opacity: 0.25;
}

/* --------------------------------------------------------------------------
   24 bis. UTILITAIRES MANQUANTS DANS LE BUILD TAILWIND
   Le CSS Tailwind est fige (pas de recompilation) : ces quelques utilitaires
   employes par les nouveaux gabarits n'y figuraient pas.
   -------------------------------------------------------------------------- */

.gap-3 {
  gap: 0.75rem;
}
.gap-10 {
  gap: 2.5rem;
}
.pt-10 {
  padding-top: 2.5rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.shrink-0 {
  flex-shrink: 0;
}
.min-h-\[76px\] {
  min-height: 76px;
}
.max-w-\[600px\] {
  max-width: 600px;
}
.min-w-\[320px\] {
  min-width: 320px;
}

@media (min-width: 1280px) {
  .xl\:px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   25. DIVERS
   -------------------------------------------------------------------------- */

/* Ancrages sous l'en-tete fixe */
:target {
  scroll-margin-top: 7rem;
}

html {
  scroll-behavior: smooth;
}

/* Le theme historique ajoutait un fond gris sur les carrousels */
.carousel {
  background: var(--lw-sand-deep);
}

/* Neutralise l'ancien style de titres au cas ou une classe Tailwind subsiste */
.lw-title.font-display {
  letter-spacing: -0.015em;
}

/* La galerie utilise des <button> : on remet a plat le style natif */
button.lw-gallery__item {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  width: 100%;
}

/* Visuel de remplacement quand le formulaire est masque */
.lw-contact__visual {
  min-height: 24rem;
  height: 100%;
  border-radius: var(--lw-radius);
}

/* Legende du comparateur avant / apres */
.lw-befaf__legend {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(
    to top,
    rgba(19, 21, 24, 0.82),
    rgba(19, 21, 24, 0)
  );
  color: var(--lw-white);
  font-size: 0.9rem;
}

/* Logo du pied de page */
.lw-footer-logo {
  max-height: 5rem;
  width: auto;
  object-fit: contain;
}

/* Modale image */
#modal > a {
  top: 1.5rem !important;
  right: 2rem !important;
  line-height: 1;
}

#modal-img {
  border-radius: var(--lw-radius);
}

/* Toasters du formulaire */
.toaster > div,
.toasterSuccess > div {
  border-radius: var(--lw-radius) !important;
}

.toaster .toastTitle,
.toasterSuccess .toastTitle {
  font-family: "titleFont", serif;
}

/* Pages editoriales sans page builder (mentions legales, 404, article) */
.single-post h1,
.single-post h2,
.single-post h3,
.single-post h4,
.single-post h5 {
  font-family: "titleFont", serif;
  color: var(--lw-ink);
}

.mentions-legales h1,
.mentions-legales h2,
.mentions-legales h3 {
  color: var(--lw-ink);
}
