/*  =================================== *\
    Star Shop – Consolidated Stylesheet
\*  =================================== */

/* === Root Variables === */

:root {

  --head-typo: 'univia-pro', sans-serif;
  --body-typo: 'univia-pro', sans-serif;

  --background-bleu-dark: #0a1d29;
  --background-bleu-light: #194967;
  --form-bleu: #143A52;
  --card-dark: #0F2C3E;
  --card-light: #143A52;
  --text-light: #ffffff;
  --text-bleu-light: #ADD3EB;
  --text-bleu-medium: #54ADF7;
  --button-light: #F0F0F0;
  --button-medium: #54ADF7;
  --button-dark: #979C9F;
  --border-light: #ADD3EB;

  --type-bg: url('../medias/images/Thumbnail.jpg');

  --navbar-h: 64px;
}

/* === Reset & Global Basics === */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--body-typo);
  background: var(--background-bleu-dark);
  color: var(--text-light);
}

/* === HOME - LANDING PAGE === */

.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

.hero-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--background-bleu-dark));
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 1rem;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-family: var(--head-typo);
}

.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 300;
  font-family: var(--body-typo);
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.arrow {
  width: 15px;
  color: var(--text-light);
  opacity: 0;
  animation: pulseScroll 2.5s infinite ease-in-out;
  transform: rotate(270deg);
}

.arrow-1 {
  animation-delay: 0s;
}

.arrow-2 {
  animation-delay: 0.5s;
}

.arrow-3 {
  animation-delay: 1s;
}

@keyframes pulseScroll {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.shop-section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background: var(--background-bleu-dark);
  color: var(--text-light);
  font-family: var(--body-typo);
}

.shop-intro {
  padding-inline: 2rem;
  max-inline-size: 60ch;
}

.shop-intro h2 {
  margin-block-end: 0.35em;
  font: clamp(2.3rem, 6vw + 1rem, 3.4rem)/1 var(--head-typo);
}

.shop-intro p {
  margin-block-end: 2.2rem;
  font-size: 1.25rem;
  color: var(--text-bleu-light);
}

.shop-cards {
  --card-gap: 1.5rem;
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  padding-inline: 2rem;
  list-style: none;
  margin: 0;
}

.shop-card {
  position: relative;
  height: 30vh;
  min-height: 18rem;
  border: 2px solid var(--text-bleu-medium);
  border-radius: 12px;
  overflow: visible;
  background: url('../medias/images/BackgroundCardShop.webp') center/cover no-repeat;
  transition: border-color 0.3s ease;
}

.shop-card:is(:hover, :focus-within) {
  border-color: var(--text-bleu-light);
}

.card-link {
  display: flex;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.card-text {
  flex: 1 1 50%;
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  background: transparent;
}

.card-title {
  margin: 0;
  font: clamp(1.8rem, 1.2vw + 1.5rem, 2.5rem)/1 var(--head-typo);
  color: var(--text-light);
}

.card-description {
  margin: 0;
  font-size: clamp(1.15rem, 0.6vw + 1.1rem, 1.35rem);
  line-height: 1.45;
  color: var(--text-bleu-light);
}

.enter-link {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.2rem);
  color: var(--text-bleu-medium);
}

.card-image {
  flex: 1 1 50%;
  position: relative;
  margin: 0;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 125%;
  width: auto;
  max-width: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.shop-card:is(:hover, :focus-within) .card-overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .shop-card {
    height: 50vh;
    background: none;
    overflow: hidden;
  }

  .card-link {
    flex-direction: column;
  }

  .card-text {
    order: 2;
    flex: 0 0 auto;
    background: transparent;
    text-align: left;
    align-items: flex-start;
    padding: 1.4rem 1.2rem 1.6rem;
  }

  .card-title {
    font-size: 1.9rem;
  }

  .card-description {
    font-size: 1.25rem;
  }

  .enter-link {
    font-size: 1.15rem;
  }

  .card-image {
    order: 1;
    flex: 1 1 auto;
    min-height: 0;
    background: url('../medias/images/BackgroundCardShop.webp') center/cover no-repeat;
    overflow: hidden;
  }

  .card-overlay {
    height: 90%;
    opacity: 1;
  }
}

/* === DETAIL - PAGE === */

.detail-container {
  margin-top: 4rem;
  display: flex;
  height: 80vh;
  overflow: hidden;
}

.image-block {
  padding: 2rem;
  flex: 1 1 60%;
  display: flex;
}

.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.info-block {
  padding: 2rem;
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.info-block h1 {
  margin: 0;
  font-size: 2.5rem;
  color: var(--text-light);
}

.info-block .manufacturer {
  margin: 0;
  font-size: 0.9rem;
}

.info-box {
  display: flex;
  flex-direction: column;
}

.info-box strong {
  font-size: 1.1rem;
  color: var(--text-bleu-light);
  margin-bottom: 5px;
}

.info-box span {
  font-size: 1rem;
}

.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 15px;
  background: var(--card-light);
  padding: 15px 20px;
  margin-top: auto;
}

.price-box .label {
  font-size: 1.2rem;
  color: var(--text-bleu-light);
}

.price-box .value {
  font-size: 1.4rem;
}

@media (max-width: 1024px) {
  .detail-container {
    flex-direction: column;
    height: auto;
  }

  .image-block,
  .info-block {
    flex: 1 1 100%;
    padding: 1rem;
  }
}

.separator {
  width: 100%;
  border-bottom: 1px solid var(--background-bleu-light);
}

.location-section {
  padding: 1.5rem;
}

.location-section h2 {
  text-align: center;
  color: var(--text-bleu-light);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.location-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.card-location {
  flex: 1 1 calc(50% - 1rem);
  max-width: calc(50% - 1rem);
  background: var(--card-dark);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  transition: background 0.3s, border 0.3s;
}

.card-location:hover {
  background: var(--card-light);
  border-color: var(--border-light);
}

.card-location img {
  width: 100%;
  height: 75%;
  max-height: 300px;
  object-fit: cover;
  transition: transform 0.3s;
}

.card-location:hover img {
  transform: scale(1.05);
}

.card-location h2 {
  margin: 1rem auto;
  font-family: var(--head-typo);
  font-size: 1.3rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .card-location {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .card-location {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* === STORE - PAGE === */

.video-background {
  margin-top: 2rem;
  position: relative;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: blur(4px);
}

.video-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
}

.video-overlay h1 {
  font-family: var(--head-typo);
  font-size: 3rem;
  margin: 0;
}

.type-carousel-wrapper {
  position: relative;
  margin-top: -60px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 2rem;
}

.type-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  padding: 1rem;
}

.type-carousel::-webkit-scrollbar {
  display: none;
}

.type-card {
  flex: 0 0 auto;
  width: 200px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.type-img {
  position: relative;
  height: 100px;
  width: 200px;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--card-dark);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--type-bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.type-card:hover .type-img::before,
.type-card.selected .type-img::before {
  opacity: 0.9;
}

.type-card:hover .type-img,
.type-card.selected .type-img {
  border-color: var(--text-light);
}

.type-card:hover,
.type-card.selected {
  transform: scale(1.05);
}

.type-text {
  position: relative;
  z-index: 2;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--text-light);
}

.type-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.2rem;
  color: var(--text-bleu-light);
}

.carousel-arrow {
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 4;
  transition: background 0.3s;
}

.carousel-arrow svg {
  color: var(--text-light);
}

.carousel-arrow:hover {
  background: var(--card-dark);
}

.carousel-arrow.right {
  transform: rotate(180deg);
}

.interface-layout {
  display: flex;
  gap: 2rem;
  padding: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .interface-layout {
    flex-direction: column;
    padding-inline: 1rem;
  }
}

.filters-wrapper {
  display: flex;
  flex-direction: column;
  flex: 0 0 360px;
  max-width: 360px;
  max-height: 600px;
  background: var(--card-light);
  border-radius: 15px;
  overflow: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filters-wrapper::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1024px) {
  .filters-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

.filters-header {
  background: var(--card-light);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--text-bleu-medium);
  z-index: 1;
}

.filters-header h3 {
  font-size: 1.6rem;
  margin: 0;
}

.clear-btn {
  font-size: 1rem;
  text-decoration: none;
  color: var(--text-bleu-medium);
}

.clear-btn:hover {
  color: var(--text-bleu-light);
}

.filters-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filters-scroll::-webkit-scrollbar {
  display: none;
}

#filter-form {
  display: flex;
  flex-direction: column;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  appearance: none;
  background: var(--background-bleu-dark);
  border: 1px solid var(--text-bleu-medium);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  display: inline-block;
}

input[type="checkbox"]:checked {
  background: var(--text-bleu-medium);
  border-color: var(--text-bleu-medium);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8L7 11L12 5' stroke='%230a1d29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

fieldset {
  border: none;
  margin-bottom: 1rem;
}

legend {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.results-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
  .top-bar {
    justify-content: center;
  }
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--card-light);
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: border 0.3s;
}

.search-bar:hover,
.search-bar:focus-within {
  border-color: var(--text-bleu-light);
}

.search-bar input[type="text"] {
  background: transparent;
  border: none;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  color: var(--text-bleu-light);
  font-family: var(--body-typo);
  outline: none;
  width: 200px;
}

@media (max-width: 1024px) {
  .search-bar {
    width: 100%;
  }

  .search-bar input[type="text"] {
    width: 100%;
  }
}

.search-bar input::placeholder {
  color: var(--text-bleu-light);
  opacity: 0.8;
}

.results-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .results-container {
    grid-template-columns: 1fr;
  }
}

.result-card {
  flex: 1 1 100%;
  background: var(--card-dark);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s, border 0.3s;
  border: 2px solid transparent;
  position: relative;
}

.result-card:hover {
  background: var(--card-light);
  border: 2px solid var(--border-light);
}

.result-card img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  transition: transform 0.3s;
}

.result-card:hover img {
  transform: scale(1.05);
}

.result-card small {
  margin: 1rem 1rem 0;
  color: var(--text-light);
  font-size: 0.875rem;
}

.result-card h2 {
  margin: 0.2rem 1rem;
  font-family: var(--head-typo);
  font-size: 1.5rem;
  color: var(--text-light);
  text-align: start;
}

.result-card p {
  margin: 0.5rem 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--body-typo);
}

.result-card p::before {
  content: "Ship value";
  color: var(--text-bleu-light);
  font-size: 0.875rem;
  margin-right: auto;
}

.result-card p span {
  color: var(--text-light);
  font-weight: bold;
}

@media (max-width: 1024px) {
  .result-card {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .result-card {
    flex: 1 1 100%;
  }
}

/* === NAVIGATION === */

nav.sc-navbar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-h);
  background: var(--card-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1100;
}

.sc-left,
.sc-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.sc-navbar-logo {
  height: 54px;
  display: block;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.3rem;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-bleu-light);
  transition: color 0.25s;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
  color: var(--text-light);
}

.dropdown-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.25s;
}

.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: fixed;
  left: 0;
  width: 100vw;
  background: var(--background-bleu-light);
  display: none;
  flex-direction: row;
  justify-content: space-between;
  padding: 2rem 3rem;
  gap: 3rem;
  z-index: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  min-width: 240px;
}

.dropdown-item {
  text-decoration: none;
  display: block;
}

.underline-hover {
  position: relative;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--text-bleu-light);
  transition: color 0.25s;
}

.underline-hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 1px;
  width: 0;
  background: var(--text-bleu-light);
  transition: width 0.25s;
}

.underline-hover:hover::after {
  width: 100%;
}

.underline-hover:hover {
  color: var(--text-light);
}

.dropdown-item p {
  font-size: 1rem;
  margin-top: 0.25rem;
  color: var(--text-light);
  max-width: 280px;
  line-height: 1.35;
}

.dropdown-image img {
  width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 920px) {
  .dropdown-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-top: 1.5rem;
  }
}

/* === FOOTER === */

.sc-footer {
  background: var(--card-dark);
  color: var(--text-bleu-light);
  font-size: 0.9rem;
  margin-top: 4rem;
}

.sc-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem 5rem;
  justify-content: space-between;
}

.sc-footer-brand{
  position: relative;
  flex: 1 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sc-footer-logo{
  width: 140px;
  height: auto;
  display: block;
  margin: 0;
}

.sc-footer-nav {
  flex: 1 1 140px;
}

.sc-footer-nav h3 {
  font-family: var(--head-typo);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.sc-footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-left: 0;
}

.sc-footer-nav a {
  text-decoration: none;
  color: var(--text-bleu-light);
  transition: color 0.25s;
}

.sc-footer-nav a:hover,
.sc-footer-nav a:focus {
  color: var(--text-bleu-medium);
}

.sc-footer-copy {
  border-top: 1px solid var(--border-light);
  text-align: center;
  padding: 1.4rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  background: var(--card-light);
  color: var(--text-bleu-light);
}

.sc-footer-copy a {
  color: var(--text-bleu-medium);
  text-decoration: none;
}

.sc-footer-copy a:hover {
  color: var(--text-light);
}

@media (max-width: 640px) {
  .sc-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .sc-footer-nav {
    width: 100%;
  }
}