/* ==========================================================================
   Components CSS - Riad LallaBaya Design System
   Refonte Luxe Marocain
   ========================================================================== */

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Typography - Élégance raffinée
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-normal);
  line-height: var(--leading-tight);
  color: var(--color-gray-700);
  margin: 0 0 var(--space-4);
  letter-spacing: var(--tracking-wide);
}

h1 {
  font-size: var(--text-5xl);
  letter-spacing: var(--tracking-elegant);
}

h2 {
  font-size: var(--text-4xl);
  letter-spacing: var(--tracking-elegant);
}

h3 {
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-wide);
}

h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   Container
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--narrow {
  max-width: var(--container-md);
}

.container--wide {
  max-width: var(--container-2xl);
}

/* ==========================================================================
   Buttons - Élégance et sophistication
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: var(--tracking-elegant);
  text-transform: uppercase;
  text-decoration: none;
  border: var(--border-width-2) solid transparent;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all var(--duration-normal) var(--ease-luxe);
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 6px 20px rgba(58, 55, 51, 0.2);
}

.btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.btn--secondary:hover {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
  box-shadow: var(--shadow-rose);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: none;
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(58, 55, 51, 0.15);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
  border-color: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  background-color: var(--color-sable);
}

/* Nouveau: Bouton luxe doré */
.btn--luxe {
  background-color: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: none;
}

.btn--luxe:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
  box-shadow: var(--shadow-gold);
}

/* Nouveau: Bouton lumière (pour fond sombre) */
.btn--light {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.btn--light:hover {
  background-color: var(--color-white);
  color: var(--color-gray-800);
  border-color: var(--color-white);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ==========================================================================
   Cards - Chaleur et profondeur
   ========================================================================== */

.card {
  position: relative;
  background-color: var(--color-white);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-subtle);
  transition:
    transform var(--duration-normal) var(--ease-luxe),
    box-shadow var(--duration-normal) var(--ease-luxe);
}

.card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-rose), var(--color-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-luxe);
  z-index: 10;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.card:hover::before {
  transform: scaleX(1);
}

.card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(42, 39, 36, 0.25) 0%,
    transparent 40%
  );
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-default);
}

.card:hover .card__image::after {
  opacity: 1;
}

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

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__content {
  padding: var(--space-6);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  margin: 0 0 var(--space-2);
  letter-spacing: var(--tracking-wide);
}

.card__description {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.card__footer {
  padding: var(--space-4) var(--space-6);
  border-top: var(--border-width) solid var(--color-border);
}

/* ==========================================================================
   Section - Structure élégante
   ========================================================================== */

.section {
  padding: var(--section-padding-y) 0;
  position: relative;
}

.section--gray {
  background-color: var(--color-background-alt);
}

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

.section--rose {
  background-color: var(--color-rose-lighter);
}

.section--dark {
  background-color: var(--color-gray-800);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section--dark p {
  color: var(--color-gray-300);
}

.section__header {
  text-align: center;
  max-width: var(--container-md);
  margin: 0 auto var(--space-12);
}

.section__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-elegant);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* Ornement marocain pour les titres de section */
.section__title::after {
  content: '';
  display: block;
  width: 100px;
  height: 20px;
  margin: var(--space-5) auto 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0 10H35' stroke='%23C9A962' stroke-width='1' fill='none'/%3E%3Cpath d='M65 10H100' stroke='%23C9A962' stroke-width='1' fill='none'/%3E%3Cpath d='M50 2L55 10L50 18L45 10Z' fill='%23D4A5A5'/%3E%3Ccircle cx='40' cy='10' r='2' fill='%23C9A962'/%3E%3Ccircle cx='60' cy='10' r='2' fill='%23C9A962'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Variante: pas d'ornement */
.section__title--plain::after {
  display: none;
}

/* ==========================================================================
   Hero - Immersion et grandeur
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__background img,
.hero__background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(42, 39, 36, 0.2) 0%,
    rgba(42, 39, 36, 0.4) 50%,
    rgba(42, 39, 36, 0.6) 100%
  );
}

/* Vignette subtile */
.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-md);
  padding: var(--space-8);
}

/* Ornement étoile avant le titre */
.hero__content::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 0L24 12L36 8L28 16L40 20L28 24L36 32L24 28L20 40L16 28L4 32L12 24L0 20L12 16L4 8L16 12Z' fill='%23C9A962' fill-opacity='0.7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: var(--font-light);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-luxe);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  font-weight: var(--font-light);
  letter-spacing: var(--tracking-wide);
}

@media (max-width: 768px) {
  .hero__title {
    font-size: var(--text-4xl);
    letter-spacing: var(--tracking-elegant);
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }
}

/* Hero sans média - Fond sombre de fallback */
.hero--no-media {
  background: linear-gradient(
    135deg,
    var(--color-gray-800) 0%,
    var(--color-gray-700) 50%,
    #3D3A36 100%
  );
}

.hero--no-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23C9A962' fill-opacity='0.04'%3E%3Cpath d='M40 0L50 15L65 10L60 25L75 30L65 40L75 50L60 55L65 70L50 65L40 80L30 65L15 70L20 55L5 50L15 40L5 30L20 25L15 10L30 15Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.hero--no-media .hero__overlay {
  display: none;
}

.hero--no-media .hero__content {
  z-index: 2;
}

/* Hero compact - Pour les pages intérieures */
.hero--compact {
  min-height: 45vh;
  max-height: 400px;
}

.hero--compact .hero__content::before {
  display: none;
}

.hero--compact .hero__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-3);
}

.hero--compact .hero__subtitle {
  font-size: var(--text-lg);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero--compact {
    min-height: 35vh;
    max-height: 300px;
  }

  .hero--compact .hero__title {
    font-size: var(--text-3xl);
  }

  .hero--compact .hero__subtitle {
    font-size: var(--text-base);
  }
}

/* ==========================================================================
   Navigation - Fluidité et élégance
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--space-4) 0;
  transition:
    background-color var(--duration-normal) var(--ease-default),
    padding var(--duration-normal) var(--ease-default),
    backdrop-filter var(--duration-normal) var(--ease-default);
}

.navbar--scrolled {
  background-color: rgba(255, 254, 250, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3) 0;
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-white);
  letter-spacing: var(--tracking-elegant);
  transition: color var(--duration-normal) var(--ease-default);
}

.navbar--scrolled .navbar__logo {
  color: var(--color-gray-700);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-white);
  transition: color var(--duration-normal) var(--ease-default);
}

/* Underline animé doré */
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-luxe);
}

.navbar__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar--scrolled .navbar__link {
  color: var(--color-gray-600);
}

.navbar__link:hover {
  color: var(--color-gold);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: background-color var(--duration-normal) var(--ease-default);
}

.navbar--scrolled .navbar__toggle span {
  background-color: var(--color-gray-700);
}

@media (max-width: 768px) {
  .navbar__toggle {
    display: flex;
  }

  /* Logo masqué sur mobile tant que la navbar est transparente
     (évite le doublon avec le titre du hero), réapparaît au scroll */
  .navbar__logo {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-default);
  }

  .navbar--scrolled .navbar__logo {
    opacity: 1;
    pointer-events: auto;
  }

  .navbar__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: var(--space-4);
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
  }

  .navbar__menu.is-open {
    display: flex;
  }

  .navbar__link {
    display: block;
    padding: var(--space-3) 0;
    color: var(--color-gray-700);
    border-bottom: var(--border-width) solid var(--color-border);
  }

  .navbar__link::after {
    display: none;
  }
}

/* ==========================================================================
   Navbar Dropdown
   ========================================================================== */

.navbar__dropdown {
  position: relative;
}

/* BOUTON - Reset total et copie des styles de .navbar__link */
.navbar__dropdown-toggle {
  /* Reset TOTAL */
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  /* Styles identiques à .navbar__link */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-white);
  transition: color var(--duration-normal) var(--ease-default);
}

.navbar--scrolled .navbar__dropdown-toggle {
  color: var(--color-gray-600);
}

.navbar__dropdown-toggle:hover {
  color: var(--color-gold);
}

/* Texte avec underline animé - aligné avec .navbar__link */
.navbar__dropdown-text {
  position: relative;
}

.navbar__dropdown-text::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-luxe);
}

.navbar__dropdown-toggle:hover .navbar__dropdown-text::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Flèche */
.navbar__dropdown-arrow {
  transition: transform var(--duration-normal) var(--ease-default);
}

.navbar__dropdown-arrow.is-open {
  transform: rotate(180deg);
}

/* DROPDOWN MENU - Style luxe marocain */
.navbar__dropdown-menu {
  position: absolute !important;
  top: calc(100% + 1rem) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  min-width: 240px;
  padding: var(--space-4) 0;
  background: var(--color-white);
  border: none;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 20px 50px -12px rgba(0, 0, 0, 0.15);
  list-style: none;
  z-index: 9999;
}

/* Accent doré subtil en haut */
.navbar__dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-5);
  right: var(--space-5);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-gold),
    transparent
  );
}

/* Liens du dropdown */
.navbar__dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  letter-spacing: var(--tracking-wide);
  text-transform: none;
  color: var(--color-gray-600);
  white-space: nowrap;
  transition:
    color var(--duration-fast) var(--ease-default),
    padding-left var(--duration-fast) var(--ease-default);
}

.navbar__dropdown-link:hover {
  color: var(--color-gold);
  padding-left: calc(var(--space-6) + 0.25rem);
}

/* ==========================================================================
   Navbar Dropdown - Mobile
   ========================================================================== */

@media (max-width: 768px) {
  .navbar__dropdown {
    width: 100%;
  }

  .navbar__dropdown-toggle {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-3) 0;
    color: var(--color-gray-700);
    border-bottom: var(--border-width) solid var(--color-border);
  }

  .navbar__dropdown-text::after {
    display: none;
  }

  .navbar__dropdown-menu {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    min-width: 100%;
    padding: 0;
    background: var(--color-sable-light);
    border: none;
    box-shadow: none;
  }

  .navbar__dropdown-menu::before {
    display: none;
  }

  .navbar__dropdown-link {
    padding: var(--space-3) var(--space-4);
    padding-left: var(--space-6);
    border-bottom: 1px solid var(--color-border);
  }

  .navbar__dropdown-link:hover {
    padding-left: var(--space-6);
  }

  .navbar__dropdown-link:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   Footer - Sophistication sombre
   ========================================================================== */

.footer {
  position: relative;
  background-color: var(--color-gray-800);
  color: var(--color-gray-300);
  padding: var(--space-16) 0 var(--space-8);
  overflow: hidden;
}

/* Pattern subtil en overlay */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M40 0L50 15L65 10L60 25L75 30L65 40L75 50L60 55L65 70L50 65L40 80L30 65L15 70L20 55L5 50L15 40L5 30L20 25L15 10L30 15Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

/* Ligne gradient en haut */
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-gold) 20%,
    var(--color-rose) 50%,
    var(--color-gold) 80%,
    transparent
  );
}

.footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-gold-light);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-wide);
}

.footer__text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__link {
  display: block;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  transition: color var(--duration-fast) var(--ease-default);
}

.footer__link:hover {
  color: var(--color-rose-light);
}

.footer__bottom {
  position: relative;
  z-index: 1;
  padding-top: var(--space-8);
  border-top: var(--border-width) solid var(--color-gray-700);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* ==========================================================================
   Gallery Grid - Immersion visuelle
   ========================================================================== */

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.gallery__item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--duration-normal) var(--ease-luxe);
  /* Max 3 par ligne, centré si moins */
  flex: 0 1 calc(33.333% - var(--space-4));
  max-width: 400px;
  min-width: 280px;
}

.gallery__item:hover {
  box-shadow: 0 0 0 2px var(--color-gold);
}

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

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(42, 39, 36, 0.7) 0%,
    rgba(42, 39, 36, 0.2) 30%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-default);
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-luxe);
}

.gallery__item:hover .gallery__caption {
  transform: translateY(0);
}

/* ==========================================================================
   Feature Items (Équipements)
   ========================================================================== */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6);
}

.feature {
  text-align: center;
  padding: var(--space-4);
  transition:
    background-color var(--duration-normal) var(--ease-default),
    transform var(--duration-normal) var(--ease-luxe);
}

.feature:hover {
  background-color: var(--color-sable);
  transform: translateY(-4px);
}

.feature__icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.feature__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Equipment Grid (Booking.com style) - Raffiné
   ========================================================================== */

.equipment-grid {
  margin-top: var(--space-6);
}

.equipment-grid__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-wide);
}

.equipment-grid__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
}

.equipment-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-sable-light);
  border: 1px solid transparent;
  transition:
    background var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default);
}

.equipment-item:hover {
  background: var(--color-white);
  border-color: var(--color-rose-light);
  box-shadow: 0 4px 12px rgba(212, 165, 165, 0.15);
}

.equipment-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--color-rose);
}

.equipment-item__icon svg {
  width: 24px;
  height: 24px;
}

.equipment-item__name {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-tight);
}

/* ==========================================================================
   Room Card (specific) - Luxe raffiné
   ========================================================================== */

.room-card {
  position: relative;
  background-color: var(--color-white);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-subtle);
  transition:
    transform var(--duration-normal) var(--ease-luxe),
    box-shadow var(--duration-normal) var(--ease-luxe);
}

.room-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-rose), var(--color-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-luxe);
  z-index: 10;
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.room-card:hover::before {
  transform: scaleX(1);
}

.room-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.room-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(42, 39, 36, 0.25) 0%,
    transparent 40%
  );
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-default);
}

.room-card:hover .room-card__image::after {
  opacity: 1;
}

.room-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-luxe);
}

.room-card:hover .room-card__image img {
  transform: scale(1.05);
}

.room-card__content {
  padding: var(--space-6);
}

.room-card__type {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-rose);
  margin-bottom: var(--space-2);
}

.room-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-wide);
}

.room-card__details {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Service Card - Carte service luxe
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition:
    transform var(--duration-normal) var(--ease-luxe),
    box-shadow var(--duration-normal) var(--ease-luxe);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.service-card__image {
  position: absolute;
  inset: 0;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-luxe);
}

.service-card:hover .service-card__image img {
  transform: scale(1.08);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(42, 39, 36, 0.85) 0%,
    rgba(42, 39, 36, 0.4) 40%,
    rgba(42, 39, 36, 0.1) 70%,
    transparent 100%
  );
  transition: background var(--duration-normal) var(--ease-default);
}

.service-card:hover .service-card__overlay {
  background: linear-gradient(
    to top,
    rgba(42, 39, 36, 0.9) 0%,
    rgba(42, 39, 36, 0.5) 50%,
    rgba(42, 39, 36, 0.2) 80%,
    transparent 100%
  );
}

.service-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  color: var(--color-white);
  transform: translateY(calc(100% - 4.5rem));
  transition: transform var(--duration-normal) var(--ease-luxe);
}

.service-card:hover .service-card__content {
  transform: translateY(0);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-wide);
}

.service-card__description {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--duration-normal) var(--ease-default),
    transform var(--duration-normal) var(--ease-luxe);
}

.service-card:hover .service-card__description {
  opacity: 1;
  transform: translateY(0);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gold-light);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--duration-normal) var(--ease-default),
    transform var(--duration-normal) var(--ease-luxe),
    color var(--duration-fast) var(--ease-default);
}

.service-card:hover .service-card__link {
  opacity: 1;
  transform: translateY(0);
}

.service-card__link:hover {
  color: var(--color-white);
}

.service-card__link svg {
  transition: transform var(--duration-fast) var(--ease-default);
}

.service-card__link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Service Card - Variant: Side-by-Side
   ========================================================================== */

/* Container pour layout side-by-side (vertical flex) */
.services-list--side-by-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

/* Mode side-by-side */
.service-card--side-by-side {
  display: flex;
  aspect-ratio: auto;
  cursor: default;
  box-shadow: none;
}

.service-card--side-by-side:hover {
  transform: none;
  box-shadow: none;
}

.service-card--side-by-side .service-card__image {
  position: relative;
  flex: 0 0 50%;
  aspect-ratio: 1/1;
}

.service-card--side-by-side .service-card__image img {
  height: 100%;
}

.service-card--side-by-side .service-card__overlay {
  display: none;
}

.service-card--side-by-side .service-card__content {
  position: relative;
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-10);
  transform: none;
}

.service-card--side-by-side .service-card__title {
  color: var(--color-gray-700);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.service-card--side-by-side .service-card__description {
  color: var(--color-text-muted);
  opacity: 1;
  transform: none;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.service-card--side-by-side .service-card__link {
  opacity: 1;
  transform: none;
  color: var(--color-rose-dark);
}

.service-card--side-by-side .service-card__link:hover {
  color: var(--color-gold);
}

/* Alternance: impair (1, 3, 5...) = image à DROITE */
.services-list--side-by-side .service-card--side-by-side:nth-child(odd) {
  flex-direction: row-reverse;
}

/* Alternance: pair (2, 4, 6...) = image à GAUCHE */
.services-list--side-by-side .service-card--side-by-side:nth-child(even) {
  flex-direction: row;
}

/* Tablet */
@media (max-width: 1024px) {
  .service-card--side-by-side .service-card__content {
    padding: var(--space-8);
  }

  .service-card--side-by-side .service-card__title {
    font-size: var(--text-2xl);
  }
}

/* Mobile: afficher le contenu directement (pas de hover) */
@media (max-width: 640px) {
  /* Tous les service-cards: contenu visible directement */
  .service-card__content {
    transform: translateY(0);
  }

  .service-card__description,
  .service-card__link {
    opacity: 1;
    transform: translateY(0);
  }

  .service-card:hover {
    transform: none;
  }

  .service-card:hover .service-card__image img {
    transform: none;
  }

  /* Side-by-side: forcer le mode overlay */
  .services-list--side-by-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .service-card--side-by-side {
    display: block;
    aspect-ratio: 1/1;
    min-height: auto;
  }

  .service-card--side-by-side .service-card__image {
    position: absolute;
    inset: 0;
    flex: none;
  }

  .service-card--side-by-side .service-card__overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(42, 39, 36, 0.85) 0%,
      rgba(42, 39, 36, 0.4) 40%,
      rgba(42, 39, 36, 0.1) 70%,
      transparent 100%
    );
  }

  .service-card--side-by-side .service-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    flex: none;
    padding: var(--space-6);
    background: transparent;
  }

  .service-card--side-by-side .service-card__title {
    color: var(--color-white);
    font-size: var(--text-2xl);
  }

  .service-card--side-by-side .service-card__description {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-sm);
  }

  .service-card--side-by-side .service-card__link {
    color: var(--color-gold-light);
  }
}

/* ==========================================================================
   Amenity Item - Équipement élégant
   ========================================================================== */

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  transition:
    background var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default),
    transform var(--duration-normal) var(--ease-luxe);
}

.amenity-item:hover {
  background: var(--color-sable-light);
  border-color: var(--color-rose-light);
  box-shadow: 0 4px 16px rgba(212, 165, 165, 0.12);
  transform: translateY(-2px);
}

.amenity-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--color-rose);
  background: var(--color-rose-lighter);
  transition: background var(--duration-fast) var(--ease-default);
}

.amenity-item:hover .amenity-item__icon {
  background: var(--color-rose-light);
}

.amenity-item__icon svg {
  width: 22px;
  height: 22px;
}

.amenity-item__label {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-tight);
  font-weight: var(--font-medium);
}

/* Variante compacte pour listes longues */
.amenity-item--compact {
  padding: var(--space-3);
  gap: var(--space-2);
}

.amenity-item--compact .amenity-item__icon {
  width: 32px;
  height: 32px;
}

.amenity-item--compact .amenity-item__icon svg {
  width: 18px;
  height: 18px;
}

.amenity-item--compact .amenity-item__label {
  font-size: var(--text-xs);
}

/* ==========================================================================
   Form Elements - Élégance
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
  letter-spacing: var(--tracking-wide);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  transition:
    border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-rose);
  box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.2);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   Prose - Contenu Markdown / Texte riche
   ========================================================================== */

.prose {
  color: var(--color-text);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-normal);
  color: var(--color-gray-700);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-wide);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-normal);
  color: var(--color-gray-700);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-wide);
}

.prose h4 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  color: var(--color-gray-700);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.prose p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  font-weight: var(--font-semibold);
  color: var(--color-gray-700);
}

.prose em {
  font-style: italic;
}

.prose ul,
.prose ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.prose li {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}

.prose ul li::marker {
  color: var(--color-rose);
}

.prose ol li::marker {
  color: var(--color-gold);
}

.prose blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-6);
  border-left: 3px solid var(--color-gold);
  background-color: var(--color-sable-light);
  font-style: italic;
  color: var(--color-gray-600);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--color-rose-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-rose-light);
  text-underline-offset: 2px;
  transition: color var(--duration-fast) var(--ease-default);
}

.prose a:hover {
  color: var(--color-rose);
}

.prose hr {
  margin: var(--space-10) auto;
  border: none;
  width: 100px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0 10H35' stroke='%23C9A962' stroke-width='1' fill='none'/%3E%3Cpath d='M65 10H100' stroke='%23C9A962' stroke-width='1' fill='none'/%3E%3Cpath d='M50 2L55 10L50 18L45 10Z' fill='%23D4A5A5'/%3E%3Ccircle cx='40' cy='10' r='2' fill='%23C9A962'/%3E%3Ccircle cx='60' cy='10' r='2' fill='%23C9A962'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   Tables Markdown
   ============================================ */

.prose table,
.bloc-texte table,
.service-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
}

.prose th,
.bloc-texte th,
.service-content th {
  background-color: var(--color-sable);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: var(--font-medium);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--color-gold);
}

.prose td,
.bloc-texte td,
.service-content td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.prose tr:last-child td,
.bloc-texte tr:last-child td,
.service-content tr:last-child td {
  border-bottom: none;
}

.prose tr:hover td,
.bloc-texte tr:hover td,
.service-content tr:hover td {
  background-color: var(--color-rose-lighter);
}

/* Responsive tables */
@media (max-width: 640px) {
  .prose table,
  .bloc-texte table,
  .service-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Utilities pour les couleurs */
.text-gold { color: var(--color-gold); }
.text-rose { color: var(--color-rose); }
.bg-sable { background-color: var(--color-sable); }
.bg-rose-light { background-color: var(--color-rose-lighter); }

/* ==========================================================================
   Instagram Card - Cartes réseaux sociaux
   ========================================================================== */

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .instagram-grid {
    grid-template-columns: 1fr;
  }
}

/* Variante : une seule carte centrée */
.instagram-grid--single {
  grid-template-columns: minmax(0, 450px);
  justify-content: center;
}

@media (max-width: 1024px) {
  .instagram-grid--single {
    grid-template-columns: minmax(0, 450px);
  }
}

.instagram-card {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--duration-normal) var(--ease-luxe),
    box-shadow var(--duration-normal) var(--ease-luxe);
}

.instagram-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.instagram-card__image {
  position: absolute;
  inset: 0;
}

.instagram-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-luxe);
}

.instagram-card:hover .instagram-card__image img {
  transform: scale(1.08);
}

.instagram-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(42, 39, 36, 0.85) 0%,
    rgba(42, 39, 36, 0.4) 40%,
    rgba(212, 165, 165, 0.1) 70%,
    rgba(201, 169, 98, 0.05) 100%
  );
  transition: background var(--duration-normal) var(--ease-default);
}

.instagram-card:hover .instagram-card__overlay {
  background: linear-gradient(
    to top,
    rgba(42, 39, 36, 0.9) 0%,
    rgba(42, 39, 36, 0.5) 50%,
    rgba(212, 165, 165, 0.15) 80%,
    rgba(201, 169, 98, 0.1) 100%
  );
}

.instagram-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  color: var(--color-white);
  text-align: center;
}

.instagram-card__icon {
  display: block;
  margin: 0 auto var(--space-4);
  color: var(--color-gold-light);
  opacity: 0.9;
  transition:
    transform var(--duration-normal) var(--ease-luxe),
    opacity var(--duration-normal) var(--ease-default);
}

.instagram-card:hover .instagram-card__icon {
  transform: scale(1.1);
  opacity: 1;
}

.instagram-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin: 0 0 var(--space-2);
  letter-spacing: var(--tracking-wide);
}

.instagram-card__handle {
  font-size: var(--text-sm);
  color: var(--color-gold-light);
  margin: 0 0 var(--space-3);
  letter-spacing: var(--tracking-wider);
}

.instagram-card__description {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: var(--leading-relaxed);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--duration-normal) var(--ease-default),
    transform var(--duration-normal) var(--ease-luxe);
}

.instagram-card:hover .instagram-card__description {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: description toujours visible */
@media (max-width: 640px) {
  .instagram-card__description {
    opacity: 1;
    transform: translateY(0);
  }

  .instagram-card:hover {
    transform: none;
  }

  .instagram-card:hover .instagram-card__image img {
    transform: none;
  }
}

/* ==========================================================================
   Gallery carousel wrap (limite la largeur sur grands écrans)
   ========================================================================== */
.gallery-carousel-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

/* ==========================================================================
   Photo Lightbox (clic sur une image -> modal plein écran avec zoom)
   ========================================================================== */
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.94);
  z-index: var(--z-modal, 9999);
  display: none;
  opacity: 0;
  transition: opacity var(--duration-default, 0.3s) var(--ease-default, ease);
}

.photo-lightbox--open {
  display: block;
  opacity: 1;
}

.photo-lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: var(--color-white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: background var(--duration-fast, 0.15s) ease;
}

.photo-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.photo-lightbox__swiper {
  width: 100%;
  height: 100%;
}

.photo-lightbox__swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-4);
}

.photo-lightbox__swiper .swiper-zoom-container {
  width: 100%;
  height: 100%;
}

.photo-lightbox__swiper .swiper-zoom-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.photo-lightbox__swiper .swiper-button-prev,
.photo-lightbox__swiper .swiper-button-next {
  color: var(--color-white);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  transition: background var(--duration-fast, 0.15s) ease;
}

.photo-lightbox__swiper .swiper-button-prev:hover,
.photo-lightbox__swiper .swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.18);
}

.photo-lightbox__swiper .swiper-button-prev::after,
.photo-lightbox__swiper .swiper-button-next::after {
  font-size: 20px;
}

@media (max-width: 640px) {
  .photo-lightbox__swiper .swiper-slide {
    padding: var(--space-8) var(--space-2);
  }

  .photo-lightbox__close {
    top: var(--space-2);
    right: var(--space-2);
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .photo-lightbox__swiper .swiper-button-prev,
  .photo-lightbox__swiper .swiper-button-next {
    width: 38px;
    height: 38px;
  }

  .photo-lightbox__swiper .swiper-button-prev::after,
  .photo-lightbox__swiper .swiper-button-next::after {
    font-size: 16px;
  }
}
