/* ==========================================================================
   HOMEPAGE - Categories Section
   ========================================================================== */
.categories-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  width: 100%;
  background: #EEEBD6;
  min-height: 290px;
  contain: layout style;
}

.categories-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  width: 100%;
  max-width: 1218px;
  box-sizing: border-box;
}

.categories-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  gap: 12px;
  width: 100%;
  max-width: 1170px;
}

.category-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 16px 0;
  gap: 8px;
  flex: 1;
  min-width: 0;
  height: 210px;
  background: #FFFFFF;
  border-radius: 12px;
  text-decoration: none;
  overflow: hidden;
  filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease, filter 0.3s ease;
  outline: none;
}

.category-card:focus,
.category-card:focus-visible {
  outline: none;
  border: none;
  box-shadow: none;
}

.category-card:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0px 12px 24px rgba(0, 0, 0, 0.14));
}

.category-title {
  width: 100%;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  color: #5E582E;
  margin: 0;
  flex-shrink: 0;
}

.category-image {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}

.category-image img {
  height: 270px;
  width: auto;
  max-width: 100%;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .categories-section {
    padding: 32px 0;
  }

  .categories-container {
    padding: 0 16px;
  }

  .categories-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .category-card {
    min-width: calc(50% - 6px);
    flex: 0 0 calc(50% - 6px);
    padding: 10px 10px 0;
    height: 200px;
  }

  .category-title {
    font-size: 18px;
    line-height: 22px;
  }

  .category-image img {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .categories-section {
    padding: 24px 0;
  }

  .categories-container {
    padding: 0 12px;
  }

  .categories-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .category-card {
    min-width: calc(50% - 4px);
    flex: 0 0 calc(50% - 4px);
    padding: 8px 8px 0;
    gap: 6px;
    height: 160px;
    border-radius: 8px;
  }

  .category-title {
    font-size: 14px;
    line-height: 18px;
  }

  .category-image img {
    height: 200px;
  }
}

@media (max-width: 360px) {
  .category-card {
    height: 130px;
  }

  .category-title {
    font-size: 12px;
    line-height: 16px;
  }

  .category-image img {
    height: 160px;
  }
}

/* ==========================================================================
   HOMEPAGE - Rachat de Bijoux
   ========================================================================== */
.rachat-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 0;
  gap: 32px;
  width: 100%;
  background: #FFFFFF;
}

.rachat-title {
  width: 100%;
  max-width: 1170px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 40px;
  text-align: center;
  color: #5E582E;
  margin: 0;
}

.rachat-title strong {
  font-weight: 700;
}

.rachat-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 1170px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #DCDCDC;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.rachat-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px;
  width: 300px;
  min-width: 300px;
  background: #F8F7EF;
  border-right: 1px solid #DCDCDC;
  border-bottom: none;
  box-sizing: border-box;
  border-radius: 0;
  height: auto;
  gap: 0;
}

.rachat-left-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: auto;
}

.rachat-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  text-transform: uppercase;
  color: #A89E53;
  text-align: center;
  margin: 0;
}

.rachat-subtitle {
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 24px;
  color: #000000;
  text-align: center;
  margin: 0;
}

.vieil-or {
  color: #A89E53;
}

.rachat-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #666;
  text-align: center;
  margin: 0;
}

.rachat-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  border: none;
  border-radius: 0;
  height: auto;
}

.rachat-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 44px;
  background: #FFFFFF;
  border-bottom: 1px solid #ECECEC;
  transition: background 0.15s ease;
}

.rachat-row:last-child {
  border-bottom: none;
}

.rachat-row[data-carat]:hover {
  background: #FDFDF8;
}

.rachat-header {
  height: 40px;
  background: #F8F8F5;
  border-bottom: 1px solid #DCDCDC;
}

.rachat-header .rachat-cell {
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
}

.rachat-cell {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 16px;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 22px;
  color: #333;
  box-sizing: border-box;
  white-space: nowrap;
  border: none;
}

.rachat-cell-carat {
  flex: 1 1 0;
  justify-content: flex-start;
  padding-left: 24px;
  font-weight: 600;
  font-size: 16px;
  color: #000;
}

.rachat-cell-qty {
  flex: 0 0 160px;
  justify-content: center;
}

.rachat-cell-price {
  flex: 1 1 0;
  justify-content: center;
  color: #666;
}

.rachat-cell-price::before {
  display: none;
}

.rachat-cell-total {
  flex: 1 1 0;
  justify-content: flex-end;
  padding-right: 24px;
  font-weight: 600;
  color: #968D4A;
  font-size: 16px;
  min-width: 0;
}

.rachat-cell-total::before {
  display: none;
}

.rachat-input {
  width: 80px;
  height: 34px;
  background: #F5F5F0;
  border: 1px solid #DCDCDC;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
  color: #000000;
  padding: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.rachat-input:focus {
  border-color: #A89E53;
  outline: none;
  background: #FFFFFF;
}

.rachat-row-total {
  height: 52px;
  border-top: 2px solid #A89E53;
  border-bottom: none;
  background: #FAFAF6;
}

.rachat-row-total .rachat-cell-carat,
.rachat-row-total .rachat-cell-qty {
  visibility: hidden;
}

.rachat-row-total .rachat-cell-price {
  justify-content: flex-end;
  font-weight: 600;
  font-size: 15px;
  color: #333;
  padding-right: 12px;
}

.rachat-row-total .rachat-cell-total {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  color: #968D4A;
}

.rachat-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 48px;
  gap: 8px;
  min-width: 393px;
  height: 48px;
  background: #A89E53;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.rachat-btn:hover {
  background: #968D4A;
  color: #FFFFFF;
}

.rachat-btn svg {
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .rachat-container {
    margin: 0 16px;
    max-width: calc(100% - 32px);
  }
  .rachat-btn {
    width: 90%;
    max-width: 393px;
  }
}

@media (max-width: 1024px) {
  .rachat-container {
    flex-direction: column;
  }
  .rachat-left {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid #DCDCDC;
    padding: 24px 20px;
  }
}

@media (max-width: 768px) {
  .rachat-section {
    padding: 32px 0;
    gap: 20px;
  }
  .rachat-title {
    font-size: 24px;
    line-height: 32px;
    padding: 0 16px;
  }
  .rachat-container {
    margin: 0 12px;
    max-width: calc(100% - 24px);
  }
  .rachat-left {
    padding: 20px 16px;
  }
  .rachat-headline {
    font-size: 22px;
    line-height: 28px;
  }
  .rachat-subtitle {
    font-size: 17px;
    line-height: 22px;
  }
  .rachat-text {
    font-size: 14px;
    line-height: 18px;
  }
  .rachat-cell {
    padding: 4px 10px;
    font-size: 13px;
  }
  .rachat-cell-carat {
    padding-left: 14px;
    font-size: 14px;
  }
  .rachat-cell-qty {
    flex: 0 0 110px;
  }
  .rachat-cell-total {
    padding-right: 14px;
    font-size: 14px;
  }
  .rachat-header .rachat-cell {
    font-size: 10px;
  }
  .rachat-input {
    width: 64px;
    height: 30px;
    font-size: 14px;
  }
  .rachat-row-total .rachat-cell-total {
    font-size: 20px;
  }
  .rachat-btn {
    min-width: auto;
    width: calc(100% - 24px);
    max-width: none;
    padding: 0 16px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .rachat-section {
    padding: 24px 0;
    gap: 16px;
  }
  .rachat-container {
    margin: 0 8px;
    max-width: calc(100% - 16px);
  }
  .rachat-left {
    padding: 16px 12px;
  }
  .rachat-headline {
    font-size: 20px;
    line-height: 24px;
  }
  .rachat-subtitle {
    font-size: 16px;
    line-height: 20px;
  }

  .rachat-header {
    display: none;
  }

  .rachat-row[data-carat] {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 14px;
    gap: 4px 0;
  }

  .rachat-row[data-carat] .rachat-cell {
    height: auto;
    padding: 2px 4px;
  }

  .rachat-row[data-carat] .rachat-cell-carat {
    flex: 0 0 50%;
    width: 50%;
    padding-left: 4px;
    font-size: 16px;
  }

  .rachat-row[data-carat] .rachat-cell-qty {
    flex: 0 0 50%;
    width: 50%;
    justify-content: flex-end;
  }

  .rachat-row[data-carat] .rachat-cell-price {
    flex: 0 0 50%;
    width: 50%;
    justify-content: flex-start;
    font-size: 12px;
    color: #999;
  }

  .rachat-row[data-carat] .rachat-cell-price::before {
    display: inline;
    content: "Prix/g : ";
    font-size: 11px;
    font-weight: 600;
    color: #AAA;
    margin-right: 2px;
  }

  .rachat-row[data-carat] .rachat-cell-total {
    flex: 0 0 50%;
    width: 50%;
    padding-right: 4px;
    font-size: 14px;
  }

  .rachat-row[data-carat] .rachat-cell-total::before {
    display: inline;
    content: "Total : ";
    font-size: 11px;
    font-weight: 400;
    color: #AAA;
    margin-right: 2px;
  }

  .rachat-row-total {
    height: auto;
    padding: 12px 14px;
  }

  .rachat-row-total .rachat-cell-carat,
  .rachat-row-total .rachat-cell-qty {
    display: none;
  }

  .rachat-row-total .rachat-cell-price {
    flex: 1 1 auto;
    justify-content: flex-start;
    font-size: 14px;
    padding-left: 4px;
  }

  .rachat-row-total .rachat-cell-total {
    flex: 0 0 auto;
    font-size: 20px;
    padding-right: 4px;
  }

  .rachat-input {
    width: 60px;
    height: 28px;
    font-size: 14px;
  }

  .rachat-btn {
    font-size: 14px;
    height: 44px;
    padding: 0 12px;
  }
}

/* ==========================================================================
   HOMEPAGE - Devises Carousel
   ========================================================================== */
@media (max-width: 1024px) {
  .cv-home-metaux-devises {
    grid-template-columns: 1fr !important;
  }
}

.cv-home-devises {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 16px;
  width: 100%;
  flex-grow: 1;
}

.cv-home-devises-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  text-align: center;
  color: #5E582E;
  margin: 0;
  align-self: stretch;
}

.cv-home-devises-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E6E6E6;
  box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.cv-home-devises-slider {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.cv-devises-page {
  display: none;
  width: 100%;
}

.cv-devises-page.active {
  display: block;
}

.cv-devises-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cv-devises-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  height: 80px;
}

.cv-devise-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  flex: 1;
  height: 80px;
  border: 1px solid #E6E6E6;
  box-sizing: border-box;
}

.cv-devise-link {
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.cv-devise-link:hover {
  background: #FAFAFA;
}

.cv-devise-flag {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-devise-flag img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
}

.cv-devise-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 8px;
  flex-grow: 1;
}

.cv-devise-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 21px;
  display: flex;
  align-items: center;
  color: #A89E53;
}

.cv-devise-rates {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  display: flex;
  flex-direction: column;
  color: #000000;
}

.cv-devises-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  width: 100%;
}

.cv-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #D9D9D9;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.cv-dot:first-child {
  width: 32px;
  border-radius: 6px;
}

.cv-dot.active {
  background: #A89E53;
}

.cv-dot.active:first-child,
.cv-dot:first-child.active {
  width: 32px;
  border-radius: 6px;
}

.cv-dot:hover:not(.active) {
  background: #BFBFBF;
}

@media (max-width: 1024px) {
  .cv-devises-row {
    flex-direction: column;
    height: auto;
  }
  .cv-devise-item {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 768px) {
  .cv-home-devises-title {
    font-size: 24px;
    line-height: 32px;
  }
  .cv-devise-flag { width: 48px; height: 48px; }
  .cv-devise-flag img { width: 48px; height: 48px; }
  .cv-devise-name { font-size: 15px; }
}

/* =====================================================================
   BLOC « À SAVOIR » — Liens éditoriaux homepage
   ===================================================================== */
.cv-asavoir {
  background: #F4F2EE;
  padding: 56px 24px 64px;
  border-top: 1px solid #E8E4DC;
  border-bottom: 1px solid #E8E4DC;
}
.cv-asavoir__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.cv-asavoir__title {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #5A5A5A;
  margin: 0 0 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid #D8D3C8;
  display: inline-block;
}
.cv-asavoir__title span {
  color: #C5A14A;
  font-weight: 700;
}
.cv-asavoir__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ── Item ── */
.cv-asavoir__item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #E0DBD0;
  border-radius: 6px;
  padding: 20px 18px 20px 20px;
  text-decoration: none !important;
  color: #2A2A2A;
  transition: border-color .22s, box-shadow .22s, background .22s;
  position: relative;
  overflow: hidden;
}
.cv-asavoir__item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #C5A14A;
  transform: scaleY(0);
  transition: transform .22s ease;
  transform-origin: bottom;
  border-radius: 0 2px 2px 0;
}
.cv-asavoir__item:hover {
  border-color: #C5A14A;
  box-shadow: 0 4px 18px rgba(197,161,74,.12);
  background: #FDFBF7;
  color: #1A1A1A !important;
}
.cv-asavoir__item:hover::before { transform: scaleY(1); }

/* ── Icône ── */
.cv-asavoir__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #F4F2EE;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A8070;
  transition: background .22s, color .22s;
}
.cv-asavoir__icon svg { width: 26px; height: 26px; }
.cv-asavoir__item:hover .cv-asavoir__icon {
  background: #F5EDD7;
  color: #9E7E34;
}

/* ── Texte ── */
.cv-asavoir__text { flex: 1; min-width: 0; }
.cv-asavoir__label {
  font-family: 'Raleway', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: #2A2A2A;
  line-height: 1.35;
  display: block;
  transition: color .22s;
}
.cv-asavoir__item:hover .cv-asavoir__label { color: #9E7E34; }

/* ── Flèche ── */
.cv-asavoir__arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F0EDE5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A08040;
  transition: background .22s, color .22s, transform .22s;
}
.cv-asavoir__arrow svg { width: 14px; height: 14px; }
.cv-asavoir__item:hover .cv-asavoir__arrow {
  background: #C5A14A;
  color: #fff;
  transform: translateX(3px);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cv-asavoir__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cv-asavoir { padding: 40px 16px 48px; }
  .cv-asavoir__grid { grid-template-columns: 1fr; gap: 8px; }
  .cv-asavoir__item { padding: 16px 14px; }
  .cv-asavoir__icon { width: 38px; height: 38px; }
  .cv-asavoir__icon svg { width: 22px; height: 22px; }
}
