/* HOME XMAS 2026 - bloc "A mettre sous le sapin" seul - prefixe .xh : aucun impact sur le reste du site */

/* Variables */
.xh { --brown: #76402D; --cream: #F3EADD; --navy: #1B2440; --gap: 10px; --w: 87%; --inset: clamp(12px, 1.2vw, 20px); --space: clamp(40px, 4.5vw, 72px);
 background: #fff !important; color: var(--brown); font-family: var(--font-primary, "Montserrat", Arial, sans-serif); line-height: 1.5; }

/* Remise a zero */
.xh * { box-sizing: border-box; }
.xh h2, .xh h3 { margin: 0; font-family: inherit; }
.xh a { color: inherit; text-decoration: none; }
.xh img { display: block; width: 100%; height: auto; }
.xh ul { margin: 0; padding: 0; list-style: none; }
.xh li { min-width: 0; margin: 0; padding: 0; }
.xh li::before { content: none; }

/* Tuile photo + libelle */
.xh-tile { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--navy); cursor: pointer; }
.xh-tile img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform 1s ease; }
.xh-tile::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.xh .xh-tile h3 { position: absolute; z-index: 1; left: var(--inset); right: var(--inset); bottom: var(--inset);
  font-size: clamp(16px, 1.1vw, 20px); font-weight: 500; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
@media (hover: hover) { .xh-tile:hover img { transform: scale(1.015); } }

/* Titre */
.xh-text { max-width: 60ch; margin: 0 auto; padding: var(--space) 20px 0; text-align: center; }
.xh .xh-text h2 { font-size: clamp(20px, 1.5vw, 24px); font-weight: 500; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; }

/* Lien "Voir plus" */
.xh .xh-more { display: inline-block; font-size: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: underline 1px; text-underline-offset: 1px; }
.xh .xh-more:hover { opacity: .6; }

/* A mettre sous le sapin : autant de colonnes que de tuiles, CTA en dessous */
.xh-carousel { width: var(--w); margin: clamp(20px, 2.2vw, 32px) auto 0; }
.xh .xh-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--gap); }
.xh .xh-tiles h3 { text-align: center; }
.xh-cta { padding: clamp(20px, 2.2vw, 32px) 20px var(--space); text-align: center; }

/* Accessibilite */
.xh a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .xh * { transition: none !important; animation: none !important; } }

/* Tablette */
@media (max-width: 1024px) { .xh { --w: 94%; } }

/* Mobile : grille 2 x 2 */
@media (max-width: 767px) {
  .xh { --gap: 6px; --w: calc(100% - 12px); --inset: 10px; --space: 32px; }
  .xh .xh-tiles h3 { font-size: 14px; }
  .xh .xh-text h2 { font-size: 18px; }
  .xh-carousel { margin-top: 20px; }
  .xh .xh-tiles { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .xh .xh-tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .xh .xh-tiles li:last-child:nth-child(odd) .xh-tile { aspect-ratio: 3 / 2; }
  .xh-cta { padding-top: 20px; }
}