/* =========================================================
   REBELZ — style.css
   Variables issues de Charte_graphique_Rebelz.html
   ========================================================= */

:root {
  --noir-profond: #0B0B0B;
  --anthracite: #1A1A1A;
  --blanc-casse: #F1EDE6;
  --orange: #FF6A00;
  --bleu: #00E5FF;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-width: 1200px;
  --radius: 4px;
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

body {
  background-color: var(--noir-profond);
  color: var(--blanc-casse);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* Fond photo plein écran — toutes les pages SAUF l'accueil (qui a sa vidéo) */
body.subpage {
  background-image: linear-gradient(rgba(11,11,11,0.55), rgba(11,11,11,0.6)), url('../images/ambiance-neon.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* ---------- Effet néon (titres) ---------- */
h1, h2, h3 {
  color: var(--blanc-casse);
  text-shadow:
    0 0 6px rgba(255, 106, 0, 0.85),
    0 0 16px rgba(255, 106, 0, 0.75),
    0 0 34px rgba(255, 106, 0, 0.55),
    0 0 70px rgba(255, 106, 0, 0.35),
    0 2px 20px rgba(0, 0, 0, 0.6);
}

/* Focus visible partout (accessibilité clavier) */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: rgba(11, 11, 11, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding-top: 0px; /* repli pour navigateurs sans support de env() */
  padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
}

.logo {
  display: block;
}

.logo-img {
  height: 84px;
  width: auto;
  transform: rotate(-25deg);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--blanc-casse);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}

.lang-switch {
  position: relative;
  border-left: 1px solid rgba(241, 237, 230, 0.2);
  padding-left: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--blanc-casse);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.lang-toggle:hover {
  background: rgba(241, 237, 230, 0.08);
}

.flag-icon {
  display: inline-flex;
  line-height: 0;
}

.flag-icon svg {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: block;
}

.lang-code {
  letter-spacing: 0.05em;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(11, 11, 11, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(241, 237, 230, 0.15);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 20;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: calc(var(--radius) - 1px);
  font-size: 14px;
  color: var(--blanc-casse);
}

.lang-option:hover {
  background: rgba(241, 237, 230, 0.08);
}

.lang-option-current {
  color: var(--orange);
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  /* voile sombre pour la lisibilité du texte sur la vidéo */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0.35) 0%, rgba(11,11,11,0.75) 100%);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.hero-overlay.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-title {
  font-size: clamp(40px, 8vw, 88px);
  color: var(--blanc-casse);
}

.hero-tagline {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--blanc-casse);
  opacity: 0.85;
  margin: 0 0 28px;
}

/* ---------- Bouton son (hero) ---------- */
.sound-toggle {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  right: 28px;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  right: calc(28px + env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(241, 237, 230, 0.4);
  background: rgba(11, 11, 11, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--blanc-casse);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sound-toggle:hover {
  border-color: var(--bleu);
  transform: scale(1.08);
}

.sound-toggle[aria-pressed="true"] {
  border-color: var(--orange);
  color: var(--orange);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease,
              box-shadow 0.25s ease,
              color 0.2s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--noir-profond);
  box-shadow: 0 0 0 rgba(255, 106, 0, 0);
}

.btn-primary:hover {
  background: var(--bleu);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.35);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
}

/* ---------- Intro ---------- */
.intro {
  padding: 80px 0;
  background: var(--anthracite);
}

.intro-content {
  max-width: 720px;
  font-size: 18px;
}

.intro-content p:first-child {
  color: var(--blanc-casse);
}

.intro-content p {
  color: rgba(241, 237, 230, 0.75);
}

/* ---------- Aperçu produits ---------- */
.products-preview {
  padding: 80px 0;
}

.products-preview h2 {
  font-size: 40px;
  margin-bottom: 32px;
}

.printful-placeholder {
  border: 1px dashed rgba(241, 237, 230, 0.3);
  border-radius: var(--radius);
  padding: 60px 20px;
  text-align: center;
  color: rgba(241, 237, 230, 0.5);
}

/* ---------- Réassurance ---------- */
.reassurance {
  padding: 60px 0;
  background: var(--anthracite);
}

.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.reassurance-item {
  text-align: center;
}

.reassurance-item h3 {
  font-size: 20px;
}

.reassurance-item p {
  font-size: 14px;
  color: rgba(241, 237, 230, 0.7);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(241, 237, 230, 0.5);
}

.main-nav a.active {
  color: var(--orange);
}

/* ---------- Pages secondaires (sans hero plein écran) ---------- */
body.subpage main {
  padding-top: 110px; /* repli pour navigateurs sans support de env()/calc() combinés */
  padding-top: calc(110px + env(safe-area-inset-top, 0px));
}

/* ---------- Bandeau titre (pages secondaires) ---------- */
.page-header {
  padding: 60px 0 40px;
}
.page-header h1 {
  font-size: clamp(32px, 6vw, 56px);
  margin: 0;
}

/* ---------- Layout 2 colonnes (Contact) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 100px 0;
}
.split-text p {
  color: rgba(241, 237, 230, 0.8);
  margin-bottom: 1.2em;
}
.split-text strong {
  color: var(--blanc-casse);
}

/* ---------- Panneau de contenu (texte lisible sur le fond photo) ---------- */
.content-panel {
  background: rgba(11, 11, 11, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(241, 237, 230, 0.1);
  border-radius: var(--radius);
  padding: 40px;
}

.about-section {
  padding: 100px 0;
}
.about-section .content-panel {
  max-width: 760px;
}

/* ---------- Formulaire (Contact) ---------- */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: rgba(241, 237, 230, 0.6);
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(241, 237, 230, 0.3);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--blanc-casse);
  font-family: var(--font-body);
  font-size: 15px;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--bleu);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.btn-form {
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-form:hover {
  background: var(--orange);
  color: var(--noir-profond);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.3);
}
.btn-form:active {
  transform: translateY(0);
}
.btn-form:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Infos de contact ---------- */
.contact-info {
  margin-top: 24px;
}
.contact-info dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange);
  margin-top: 20px;
}
.contact-info dd {
  margin: 4px 0 0;
  color: rgba(241, 237, 230, 0.8);
}
.contact-info dd a {
  text-decoration: underline;
  text-decoration-color: rgba(241, 237, 230, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.contact-info dd a:hover {
  color: var(--bleu);
  text-decoration-color: var(--bleu);
}

/* ---------- Icônes réseaux sociaux ---------- */
.social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-icons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.social-icons svg {
  width: 18px;
  height: 18px;
}
.social-icons .icon-instagram {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.social-icons .icon-tiktok {
  background: #000000;
}
.social-icons .icon-youtube {
  background: #ff0000;
}
.social-subscribe {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(241, 237, 230, 0.6);
}

/* ---------- Galerie photo (À propos) ---------- */
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.about-gallery img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(241, 237, 230, 0.12);
}
@media (max-width: 600px) {
  .about-gallery {
    grid-template-columns: 1fr;
  }
}

/* ---------- Captcha ---------- */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.captcha-question {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--blanc-casse);
  white-space: nowrap;
}
.captcha-row input {
  max-width: 100px;
}
.form-note {
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}
.form-note.errorText,
.form-note.errorSendText,
.form-note.invalidText {
  color: var(--orange);
}
.form-note.successText {
  color: var(--bleu);
}

/* ---------- Catalogue ---------- */
.catalogue-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 40px 0;
}
.filter-pill {
  border: 1px solid rgba(241, 237, 230, 0.3);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.filter-pill:hover {
  border-color: var(--bleu);
  color: var(--bleu);
  transform: translateY(-2px);
}
.filter-pill.active {
  border-color: var(--orange);
  color: var(--orange);
}
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.catalogue-grid:empty {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .reassurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalogue-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
    padding: 60px 0;
  }
}

/* ---------- Menu mobile (hamburger) ---------- */
@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .nav-wrap {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(78vw, 320px);
    background: rgba(11, 11, 11, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 28px;
    padding: 110px 28px 28px;
    padding: calc(110px + env(safe-area-inset-top, 0px)) 28px calc(28px + env(safe-area-inset-bottom, 0px));
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 15;
    overflow-y: auto;
  }

  .nav-wrap.open {
    transform: translateX(0);
  }

  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .main-nav a {
    font-size: 16px;
  }

  .lang-switch {
    border-left: none;
    border-top: 1px solid rgba(241, 237, 230, 0.2);
    padding-left: 0;
    padding-top: 20px;
    width: 100%;
  }

  .lang-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: transparent;
    border: none;
    padding: 10px 0 0;
    min-width: 0;
  }

  .lang-dropdown.open {
    display: flex;
  }
}

@media (max-width: 600px) {
  .reassurance-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    height: 76px;
  }
  .logo-img {
    height: 56px;
  }
  body.subpage main {
    padding-top: 76px;
    padding-top: calc(76px + env(safe-area-inset-top, 0px));
  }
  .nav-wrap {
    padding-top: 96px;
    padding-top: calc(96px + env(safe-area-inset-top, 0px));
  }
  .catalogue-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
  .hero {
    background: var(--anthracite) url('../images/hero-poster.jpg') center/cover;
  }
  .hero-overlay {
    /* Pas de vidéo qui se termine pour déclencher l'affichage : le texte reste visible */
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
