 /************************************/
/****    00. Additional CSS    ****/
/************************************/

@import url('https://fonts.cdnfonts.com/css/misses');
@import url('https://fonts.cdnfonts.com/css/varela-round-3');
@import url('https://fonts.cdnfonts.com/css/montserrat');

@import url('https://fonts.cdnfonts.com/css/fjalla-one-2');

:root {
  --red: #37050e; 
  --black-soft: #121212;
  --gold: #b8a882;
  --rose: #e3afb3;
  --gold-light: #d4c4a0;
  --text-main: #fff;
  --text-black: #000;
  --text-muted: #fff;
  --white: #faf9f6;
  --panel-bg: #e3afb3;
  --font-display: 'Fjalla One', sans-serif;
  --font-ui: "Montserrat", sans-serif;
  --trans: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 40px rgba(26, 24, 20, 0.14);
  --shadow-panel: 0 -4px 60px rgba(26, 24, 20, 0.22);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--red);
  color: var(--text-main);
  font-family: var(--font-ui);
}
body.rtl {
  direction: rtl;
}
body.rtl .back-btn svg {
  transform: scaleX(-1);
}
body.rtl .list-card:hover {
  transform: translateX(-4px);
}

/* Loading */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}
.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--gold-light);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.lang-switcher {
    position: fixed;
    top: 0;
    right: 5px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--rose);
    backdrop-filter: blur(12px);
    border-radius: 0px 0px 14px 14px;
    padding: 5px 10px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.2);
  opacity: 30%;
  padding: 2px 4px;
  transition: color var(--trans);
}
.lang-btn.active,
.lang-btn:hover {
  color: #fff;
  opacity: 100%;
}
.lang-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
}

/* Screens */
.screen {
  position: fixed;
  inset: 0;
  background: var(--red);
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans), transform var(--trans);
  transform: translateX(30px);
  -webkit-overflow-scrolling: touch;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.screen.slide-out {
  opacity: 0;
  transform: translateX(-30px);
}

/* ===================== HOME ===================== */
#screen-home {
  display: flex;
  align-items: center;
  justify-content: center;
}
#screen-home::before {
  content: "";
  position: fixed;
  inset: 0;
  /*background: radial-gradient(*/
  /*    ellipse at 20% 80%,*/
  /*    rgba(184, 168, 130, 0.12) 0%,*/
  /*    transparent 60%*/
  /*  ),*/
  /*  radial-gradient(*/
  /*    ellipse at 80% 20%,*/
  /*    rgba(184, 168, 130, 0.08) 0%,*/
  /*    transparent 50%*/
  /*  );*/
  pointer-events: none;
}
.home-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 80px 24px 40px;
  min-height: 100vh;
  position: relative;
  justify-content: flex-start;
}

.logo{
    width: 100%;
}
.logo-circle {
  width: 250px;
  height: 250px; 
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative; 
}
@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(184, 168, 130, 0);
  }
  50% {
    box-shadow: 0 0 30px 8px rgba(184, 168, 130, 0.18);
  }
}
.logo-circle::before {
  content: "";
  position: absolute;
  inset: 8px; 
  border-radius: 50%;
}
.logo-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--white);
  line-height: 1;
}
.logo-sub {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-top: 6px;
}
.home-socials {
  display: flex;
  gap: 16px;
}
.social-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--trans);
}
.social-icon svg {
  width: 18px;
  height: 18px;
}
.social-icon:hover {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
  transform: translateY(-2px);
}
.menu-cta {
  background: var(--white);
  color: var(--red);
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  padding: 18px 56px;
  border-radius: 4px;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.menu-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.menu-cta:hover::before {
  transform: scaleX(1);
}
.menu-cta span {
  position: relative;
  z-index: 1;
}
.award-badge {
  text-align: center;
  padding: 14px 20px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  opacity: 0.65;
}
.award-text {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.award-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.award-year {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold);
}

/* ===================== SCREEN HEADER ===================== */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--red);
  border-bottom: 0.5px solid rgba(184, 168, 130, 0.3);
}
.back-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--trans);
  flex-shrink: 0;
}
.back-btn:hover {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.back-btn svg {
  width: 18px;
  height: 18px;
}
.header-center {
  text-align: center;
  flex: 1;
  min-width: 0;
}
.header-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-breadcrumb {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ===================== NIVEAU 1 — catégorie_sub_sub ===================== */
/* Grid 2 colonnes avec grandes cartes image (comme l'écran catégories original) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 16px;
}
.grid-card {
  position: relative;
  aspect-ratio: 1/1.1;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans);
}
.grid-card:hover,
.grid-card:active {
  transform: scale(0.97);
  box-shadow: var(--shadow);
}
.grid-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.grid-card:hover .grid-card-img {
  transform: scale(1.06);
}
.grid-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 24, 20, 0.78) 0%,
    rgba(26, 24, 20, 0.18) 55%,
    transparent 100%
  );
}
.grid-card-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--white);

    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}
.grid-card-sub {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-style: italic;
  font-weight: 300;
  color: rgba(232, 227, 216, 0.7);
}

/* Footer niveau 1 */
.screen-footer {
  padding: 20px 20px 40px;
  border-top: 0.5px solid rgba(184, 168, 130, 0.4);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.social-sm {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(184, 168, 130, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  margin-right: 3px;
  transition: var(--trans);
}
.social-sm svg {
  width: 13px;
  height: 13px;
}
.social-sm:hover {
  background: var(--white);
  color: var(--red);
}
.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 7px;
}
.footer-info-item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.footer-detail {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 21px;
}
.footer-contact {
  border-top: 0.5px solid rgba(184, 168, 130, 0.3);
  padding-top: 14px;
}

/* ===================== NIVEAU 2 — catégorie_sub ===================== */
/* Hero image + liste de cartes horizontales */
.screen-hero {
  height: 160px;
  position: relative;
  overflow: hidden;
}
.screen-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.screen-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(232, 227, 216, 0.3) 0%,
    var(--red) 100%
  );
}

.list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 16px 40px;
}
.list-card-img-wrap {
  position: relative;
  aspect-ratio: 1/1.05;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans);
}
.list-card-img-wrap:hover,
.list-card-img-wrap:active {
  transform: scale(0.97);
  box-shadow: var(--shadow);
}
.list-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.list-card-img-wrap:hover img {
  transform: scale(1.06);
}
.list-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 24, 20, 0.72) 0%,
    rgba(26, 24, 20, 0.15) 55%,
    transparent 100%
  );
}
.list-card-img-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box; 
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--white);
}
.list-card-img-count {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-style: italic;
  color: rgba(232, 227, 216, 0.65);
}

/* ===================== NIVEAU 3 — catégorie ===================== */
/* Liste verticale avec image vignette */
.subcat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 16px 40px;
}
.subcat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--rose);
  border-radius: 14px;
  padding: 13px;
  cursor: pointer;
  border: 1px solid rgba(184, 168, 130, 0.2);
  transition: var(--trans);
  box-shadow: 0 2px 10px rgba(26, 24, 20, 0.06);
}
.subcat-row:hover,
.subcat-row:active {
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.subcat-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--black-soft);
}
.subcat-info {
  flex: 1;
}
.subcat-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
}
.subcat-count {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 3px;
  font-style: italic;
}
.subcat-arrow {
  color: var(--gold);
  transition: transform var(--trans);
}
.subcat-row:hover .subcat-arrow {
  transform: translateX(4px);
}
.subcat-arrow svg {
  width: 18px;
  height: 18px;
}

/* ===================== PANEL — articles ===================== */
.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 24, 20, 0);
  pointer-events: none;
  transition: background var(--trans);
}
.panel-backdrop.active {
  background: rgba(26, 24, 20, 0.5);
  pointer-events: all;
}
.items-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--black-soft);
  border-radius: 24px 24px 0 0;
  max-height: 93vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: var(--shadow-panel);
  -webkit-overflow-scrolling: touch;
}
.items-panel.open {
  transform: translateY(0);
}
.panel-handle {
  display: flex;
  justify-content: center;
  padding: 12px 0 0;
}
.panel-handle-bar {
  width: 36px;
  height: 4px;
  background: rgba(184, 168, 130, 0.4);
  border-radius: 2px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 10px;
}
.panel-close {
  width: 36px;
  height: 36px;
  background: rgba(26, 24, 20, 0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--trans);
}
.panel-close:hover {
  background: var(--white);
  color: var(--red);
}
.panel-close svg {
  width: 16px;
  height: 16px;
}
.panel-title-wrap {
  text-align: center;
}
.panel-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--white);
}
.panel-meta {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 2px;
}
.panel-items {
  padding: 6px 14px 48px;
}

/* Article card : Image + Titre + Prix + Description */
.item-card {
  background: var(--red);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(184, 168, 130, 0.15);
  box-shadow: 0 2px 16px rgba(26, 24, 20, 0.07);
  animation: fadeUp 0.4s ease both;
}
.item-card:last-child {
  margin-bottom: 0;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.item-card:nth-child(1) {
  animation-delay: 0.04s;
}
.item-card:nth-child(2) {
  animation-delay: 0.09s;
}
.item-card:nth-child(3) {
  animation-delay: 0.14s;
}
.item-card:nth-child(4) {
  animation-delay: 0.19s;
}
.item-card:nth-child(5) {
  animation-delay: 0.23s;
}
.item-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
}
.item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.item-card:hover .item-img {
  transform: scale(1.04);
}
.item-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 55%,
    rgba(26, 24, 20, 0.38) 100%
  );
}
.item-body {
  padding: 14px 16px 16px;
}
.item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.item-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1.2;
}
.item-price {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  background: var(--white);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}
.item-desc {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 300; 
  color: var(--text-muted);
  line-height: 1.7;
}

::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 4px;
}

@media (min-width: 480px) {
  .screen,
  .items-panel {
    max-width: 480px;
    left: 50%;
    right: auto;
  }
  .screen {
    transform: translateX(calc(-50% + 15px));
  }
  .screen.active {
    transform: translateX(-50%);
  }
  .screen.slide-out {
    transform: translateX(calc(-50% - 15px));
  }
  .items-panel {
    transform: translate(-50%, 100%);
  }
  .items-panel.open {
    transform: translate(-50%, 0);
  }
  .panel-backdrop {
    max-width: none;
    left: 0;
    right: 0;
  }
  .lang-switcher {
    right: calc(50% - 240px + 16px);
  }
}
