:root{
  --bg: #031127;
  --bg-deep: #020b19;

  --text: #f5f2eb;
  --muted: #c9c0b2;
  --muted-soft: #a89e91;

  --ivory: #f3ebde;
  --ivory-deep: #ddd1bb;
  --visited-soft: #e7b784;
  --hover-soft: #fff4e6;

  --shadow-soft: 0 8px 18px rgba(0,0,0,0.16);
  --shadow-photo: 0 18px 40px rgba(0,0,0,0.22);

  --radius: 16px;
  --pill: 999px;
  --container: 1480px;
}

/* =========================
   RESET
========================= */

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

html,
body{
  margin: 0;
  padding: 0;
}

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

/* =========================
   LIENS - BASE COMMUNE
========================= */

a{
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

/* =========================
   ACCESSIBILITE
========================= */

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

/* =========================
   BOUTON RETOUR EN HAUT
========================= */

.back-to-top{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(243,235,222,0.94);
  color: #0b1426;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow:
    0 12px 24px rgba(0,0,0,0.28),
    0 0 0 1px rgba(255,255,255,0.18) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible{
  background: #fff4e6;
  color: #000;
  border-color: rgba(255,255,255,0.32);
  box-shadow:
    0 16px 30px rgba(0,0,0,0.32),
    0 0 0 1px rgba(255,255,255,0.22) inset;
  outline: none;
}

.back-to-top.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================
   SCROLLBAR
   (à garder ici seulement si tu la veux partout)
========================= */

::-webkit-scrollbar{
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track{
  background: transparent;
  border-radius: 20px;
}

::-webkit-scrollbar-thumb{
  background: #E6B980;
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover{
  background: #F2CFA4;
}

*{
  scrollbar-width: thin;
  scrollbar-color: #E6B980 transparent;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 640px){
  .back-to-top{
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}