/* ==========================================================================
   Rixe Club — feuille de style unique
   Palette et typos reprises à l'identique du site d'origine.
   ========================================================================== */

@font-face { font-family: "PP Gosha Sans"; src: url("../fonts/PPGoshaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PP Gosha Sans"; src: url("../fonts/PPGoshaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PP Gosha Sans"; src: url("../fonts/PPGoshaSans-Ultralight.woff2") format("woff2"); font-weight: 200; font-display: swap; }

:root {
  /* Couleurs Rixe (identiques à l'ancien thème) */
  --blue-100:   #BDECE8;
  --blue-200:   #273677;
  --blue-400:   #4B619A;
  --green-200:  #059D8E;
  --green-400:  #279359;
  --green-500:  #47B6AD;
  --purple-200: #C66EC3;
  --purple-400: #802B7D;
  --red-100:    #F3C5C5;
  --red-200:    #FFE1F7;
  --red-300:    #E87B80;
  --red-400:    #E05D29;
  --red-500:    #FC0130;
  --red-600:    #DD4A52;
  --red-700:    #DB373E;
  --yellow:     #F7F8B4;
  --black:      #000;
  --white:      #fff;

  --font-title: "PP Gosha Sans", Helvetica, Arial, sans-serif;
  --font-text:  Montserrat, Helvetica, Arial, sans-serif;

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(56px, 9vw, 128px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Typo ---------- */
.t-display, .t-h1, .t-h2, .t-h3 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: .9;
  text-transform: uppercase;
  text-wrap: balance;
}
.t-display { font-size: clamp(2.5rem, 9vw, 8rem); }
.t-h1      { font-size: clamp(2rem, 5.5vw, 3.75rem); }
.t-h2      { font-size: clamp(1.75rem, 4vw, 3rem); }
.t-h3      { font-size: clamp(1.25rem, 2.4vw, 1.875rem); line-height: 1.05; }
.t-kicker  {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.t-body {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.7;
}

/* ---------- Mise en page ---------- */
.section { padding: var(--section-y) var(--gutter); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.wrap { max-width: 1280px; margin-inline: auto; }
.wrap--narrow { max-width: 960px; margin-inline: auto; }
.stack { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stack > * + * { margin-top: clamp(20px, 3vw, 32px); }

.bg-black    { background: var(--black);      color: var(--purple-200); }
.bg-red-300  { background: var(--red-300);    color: var(--yellow); }
.bg-red-600  { background: var(--red-600);    color: var(--yellow); }
.bg-green    { background: var(--green-200);  color: var(--yellow); }
.bg-purple   { background: var(--purple-400); color: var(--yellow); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(280px, 100%);
  padding: 1rem 2rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.bg-black  .btn { color: var(--white); }
.bg-black  .btn:hover { background: var(--white); color: var(--black); }
.bg-red-300 .btn:hover { background: var(--yellow); color: var(--red-300); }
.bg-red-600 .btn:hover { background: var(--yellow); color: var(--red-600); }
.bg-green  .btn:hover { background: var(--yellow); color: var(--green-200); }
.bg-purple .btn:hover { background: var(--yellow); color: var(--purple-400); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  color: var(--purple-200);
  transition: transform .3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1536px;
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.logo { display: block; width: 52px; height: 52px; color: var(--purple-200); }
.logo svg { width: 100%; height: 100%; }

.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block;
  padding: .5rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.nav a:hover,
.nav a[aria-current="page"] { background: var(--purple-200); color: var(--white); }
.nav a[aria-current="page"] { font-style: italic; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .5rem 1rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: 700 .875rem/1 var(--font-text);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.cart-toggle:hover { background: var(--purple-200); color: var(--white); }
.cart-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.cart-count { min-width: 1ch; }
.cart-count:empty::before { content: "0"; }
.cart-count .shopify-buy__cart-toggle { display: inline; }
.cart-count .shopify-buy--visually-hidden { display: none; }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-button svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--white);
    border-top: 1px solid var(--red-200);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: .875rem .75rem; font-size: .875rem; }
  .logo { width: 44px; height: 44px; }
}

/* ---------- Home : événement à la une ---------- */
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.rounds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  width: 100%;
  text-align: left;
}
.round {
  padding: 24px;
  border: 1.5px solid var(--purple-200);
  border-radius: 20px;
  color: var(--white);
}
.round__label { color: var(--purple-200); }
.round__place { margin-top: 12px; font-family: var(--font-title); font-weight: 700; font-size: 1.375rem; line-height: 1; text-transform: uppercase; color: var(--purple-200); }
.round__time  { margin-top: 6px; font-weight: 700; font-size: .875rem; letter-spacing: .08em; }
.round__text  { margin-top: 16px; font-size: .875rem; line-height: 1.6; }
@media (max-width: 800px) { .rounds { grid-template-columns: 1fr; } }

.tagline { font-family: var(--font-title); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; color: var(--purple-200); }

/* ---------- Home : cartes (affiche / BD) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  max-width: 1040px;
  margin-inline: auto;
}
.card { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.card__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(0,0,0,.08);
}
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card__img:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; max-width: 420px; } }

/* ---------- Home : deux blocs ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > * { padding: clamp(56px, 8vw, 112px) var(--gutter); }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { color: var(--white); }
.newsletter-form {
  display: flex;
  width: 100%;
  max-width: 560px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 1.125rem 1.5rem;
  border: 1.5px solid var(--white);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: var(--white);
  color: var(--red-600);
  font: 700 .875rem var(--font-text);
}
.newsletter-form input[type="email"]::placeholder { color: var(--red-600); opacity: 1; }
.newsletter-form button {
  padding: 1.125rem 1.75rem;
  border: 1.5px solid var(--white);
  border-radius: 0 999px 999px 0;
  background: transparent;
  color: var(--white);
  font: 700 .875rem var(--font-text);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.newsletter-form button:hover { background: var(--white); color: var(--red-600); }
.hp { position: absolute; left: -9999px; }
.newsletter-msg { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(40px, 5vw, 56px) var(--gutter);
  color: var(--red-600);
  background: var(--white);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  margin-inline: auto;
  font-size: .8125rem;
  letter-spacing: .15em;
  text-align: center;
  text-transform: uppercase;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.socials { display: flex; justify-content: center; gap: 16px; margin-top: 12px; }
.socials img { width: 28px; height: 28px; }
@media (max-width: 700px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Fonds supplémentaires ---------- */
.bg-yellow     { background: var(--yellow);     color: var(--purple-400); }
.bg-red-200    { background: var(--red-200);    color: var(--purple-400); }
.bg-purple-200 { background: var(--purple-200); color: var(--yellow); }
.bg-blue       { background: var(--blue-200);   color: var(--red-300); }
.bg-yellow .btn:hover     { background: var(--purple-400); color: var(--yellow); }
.bg-red-200 .btn:hover    { background: var(--purple-400); color: var(--red-200); }
.bg-purple-200 .btn:hover { background: var(--yellow); color: var(--purple-200); }
.bg-blue .btn:hover       { background: var(--red-300); color: var(--blue-200); }
.bg-black .btn--yellow    { color: var(--yellow); }
.bg-black .btn--yellow:hover { background: var(--yellow); color: var(--black); }
.section--flush-top { padding-top: 0; }
.font-text { font-family: var(--font-text); }

/* ---------- Texte courant ---------- */
.prose > * + * { margin-top: 1em; }
.prose a { text-decoration: underline; }
.prose img { margin-inline: auto; }
.prose table { border-collapse: collapse; }
.prose td, .prose th { border: 1px solid currentColor; padding: .25em .5em; }

/* ---------- Chargement ---------- */
[aria-busy="true"] { min-height: 40vh; }
.loader {
  width: 36px; height: 36px; margin: 15vh auto;
  border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%;
  opacity: .6; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.load-error { padding: 48px var(--gutter); text-align: center; font-weight: 600; }

.une-image img, .event-cover img { max-height: 80vh; width: auto; margin-inline: auto; }

/* ---------- Grilles d'images (events, galeries) ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--black);
}
.tile {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  text-decoration: none;
  background: var(--white);
}
.tile:nth-child(3n) { border-right: 0; }
.tile__img { display: block; aspect-ratio: 1; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile__img img { transform: scale(1.04); }
.tile__caption {
  padding: 16px;
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tile:hover .tile__caption { background: var(--black); color: var(--white); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile:nth-child(3n) { border-right: 1px solid var(--black); } .tile:nth-child(2n) { border-right: 0; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } .tile { border-right: 0 !important; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px; padding: 4px; }
.gallery__item { margin: 0; aspect-ratio: 1; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); }
.videos:has(> :nth-child(3):last-child) { grid-template-columns: repeat(2, 1fr); }
.videos > :first-child { grid-column: 1 / -1; }
@media (max-width: 700px) { .videos { grid-template-columns: 1fr; } }

/* ---------- Le Club ---------- */
.club-links { display: grid; grid-template-columns: repeat(3, 1fr); }
.club-link { position: relative; display: block; aspect-ratio: 1; overflow: hidden; color: var(--white); text-decoration: none; background: var(--black); }
.club-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.club-link:hover img { transform: scale(1.04); opacity: .85; }
.club-link__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px;
  font-family: var(--font-title); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: .95;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
@media (max-width: 800px) { .club-links { grid-template-columns: 1fr; } .club-link { aspect-ratio: 16 / 10; } }

.offer__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.offer__head .t-kicker { margin-top: 16px; }
.offer__body > * + * { margin-top: 20px; }
.offer__body .prose { line-height: 1.7; }
@media (max-width: 800px) { .offer__grid { grid-template-columns: 1fr; text-align: center; } .offer__body .btn { margin-inline: auto; } }

/* ---------- Shop ---------- */
.shop-nav { background: var(--red-300); color: var(--yellow); }
.shop-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 0; padding: 18px var(--gutter); list-style: none; }
.shop-nav a { display: block; padding: .4rem .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.shop-nav a:hover, .shop-nav a[aria-current="page"] { background: var(--yellow); color: var(--red-400); }
.shop-nav a[aria-current="page"] { font-style: italic; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  border-top: 1px solid var(--black);
  border-left: 1px solid var(--black);
}
.product-card {
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--black); border-bottom: 1px solid var(--black);
  text-decoration: none; background: var(--white);
}
.product-card__img { display: block; aspect-ratio: 249 / 340; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card__caption { padding: 16px 8px; font-size: .75rem; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.product-card:hover .product-card__caption { background: var(--red-300); color: var(--yellow); }
.shop-grid .loader, .shop-grid .load-error { grid-column: 1 / -1; }

.crumbs { padding: 18px var(--gutter); font-size: .75rem; font-weight: 600; text-transform: uppercase; color: var(--red-300); background: var(--yellow); max-width: none; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 5vw, 80px) var(--gutter); }
.product__main img { width: 100%; }
.product__thumbs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.product__thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; overflow: hidden; }
.product__thumbs button[aria-current="true"] { border-color: var(--black); }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.product__price { margin-top: 16px; padding-bottom: 24px; border-bottom: 1px solid #d1d5db; font-weight: 600; }
.product__buy { margin-top: 24px; }
.product__desc { margin-top: 24px; font-size: .9375rem; line-height: 1.7; }
@media (max-width: 800px) { .product { grid-template-columns: 1fr; } .product__info { position: static; } }

/* Bouton d'achat Shopify aux couleurs Rixe */
.product__buy .shopify-buy__product { max-width: none !important; }
.product__buy .shopify-buy__btn {
  width: 100%; padding: 1rem 2rem !important; border-radius: 999px !important;
  background: var(--red-300) !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase;
}
.product__buy .shopify-buy__btn:hover { background: var(--red-600) !important; }
.product__buy .shopify-buy__product { display: flex; flex-wrap: wrap; gap: 12px; }
.product__buy .shopify-buy__product__variant-selectors { flex: 1 1 100%; }
.product__buy .shopify-buy__option-select__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.product__buy .shopify-buy__option-select-wrapper { position: relative; }
.product__buy .shopify-buy__select-icon { display: none; }
.product__buy select, .product__buy .shopify-buy__quantity {
  width: 100%;
  padding: .9rem 1.5rem;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  font: 700 .875rem var(--font-text);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--black);
}
.product__buy select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.25em;
}
.product__buy .shopify-buy__quantity-container { flex: 0 0 96px; }
.product__buy .shopify-buy__quantity { padding-inline: 1rem; text-align: center; }
.product__buy .shopify-buy__btn-wrapper { flex: 1 1 200px; }

/* ---------- Contact ---------- */
.contact { color: var(--white); }
.contact-form { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 720px; text-align: left; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: .9rem 1.5rem;
  border: 1.5px solid var(--red-100);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: 700 .875rem var(--font-text);
  letter-spacing: .04em;
}
.contact-form textarea { border-radius: 24px; resize: vertical; }
.contact-form ::placeholder { color: var(--red-100); opacity: 1; text-transform: uppercase; }
.contact-form select { appearance: none; text-transform: uppercase; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1.25rem center; background-size: 1.25em; }
.contact-form select option { color: var(--black); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; background: var(--white); color: var(--red-600); }
.contact-form .btn { align-self: flex-end; color: var(--white); }
.contact-form .btn:hover { background: var(--white); color: var(--red-600); }
.contact-msg { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 600px) { .contact-form__row { grid-template-columns: 1fr; } .contact-form .btn { align-self: stretch; } }

/* ---------- Pages infos ---------- */
.info-page { font-size: .9375rem; line-height: 1.7; }
.info-page h1 { margin-bottom: 32px; color: var(--red-600); }

.site-footer__legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Panier Shopify ---------- */
.shopify-buy__btn { font-family: var(--font-text) !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
