/* ============================================
   KERUKERA - Hub Principal (kerukera.com)
   Charte : Orange #C7A45D | Noir #000 | Gris #333
   Police : Inter (sans-serif moderne)
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #ffffff;
  background: #000000;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === HEADER === */
.hub-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  pointer-events: none;
}

.logo-container {
  pointer-events: auto;
}

.logo {
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.logo-accent {
  color: #C7A45D;
}

/* Tagline sous le logo */
.hub-header__tagline {
  font-size: 0.9rem;
  font-weight: 400;
  color: #C7A45D;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
  text-align: center;
}

/* === SPLIT-SCREEN PRINCIPAL === */
.hub-split {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
}

/* === PANELS === */
.hub-panel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-panel:hover {
  flex: 1.15;
}

/* Fond panel Pro (légèrement éclairci pour lisibilité) */
.hub-panel--pro {
  background: linear-gradient(135deg, #111111 0%, #222222 50%, #151515 100%);
}

/* Fond panel Particuliers (légèrement assombri pour lisibilité) */
.hub-panel--particuliers {
  background: linear-gradient(135deg, #151515 0%, #252525 50%, #1a1a1a 100%);
}

/* Overlay pour l'effet au hover */
.hub-panel__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(199, 164, 93, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hub-panel:hover .hub-panel__overlay {
  opacity: 1;
}

/* Contenu du panel */
.hub-panel__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 480px;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.hub-panel:hover .hub-panel__content {
  transform: translateY(-8px);
}

/* Badge B2B / B2C */
.hub-panel__badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(199, 164, 93, 0.5);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #C7A45D;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* Titre principal */
.hub-panel__title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* Divider orange */
.hub-panel__divider {
  width: 60px;
  height: 3px;
  background: #C7A45D;
  margin: 0 auto 1.5rem;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.hub-panel:hover .hub-panel__divider {
  width: 100px;
}

/* Sous-titre */
.hub-panel__subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #C7A45D;
}

/* Localisation */
.hub-panel__location {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

/* Description */
.hub-panel__description {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

/* CTA Découvrir */
.hub-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border: 2px solid #C7A45D;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #C7A45D;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.hub-panel:hover .hub-panel__cta {
  background: #C7A45D;
  color: #000000;
  transform: translateX(0);
}

.hub-panel__cta svg {
  transition: transform 0.3s ease;
}

.hub-panel:hover .hub-panel__cta svg {
  transform: translateX(4px);
}

/* === SÉPARATEUR ORANGE VERTICAL === */
.hub-separator {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #C7A45D 15%,
    #C7A45D 85%,
    transparent 100%
  );
  z-index: 10;
  box-shadow: 0 0 20px rgba(199, 164, 93, 0.3);
}

/* === FOOTER === */
.hub-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  text-align: center;
  padding: 1rem 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.hub-footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.hub-footer__links a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
  padding: 0.2rem 0.4rem;
}

.hub-footer__links a:hover {
  color: #C7A45D;
}

.hub-footer__sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
}

.hub-footer__copy {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

/* === RESPONSIVE (Mobile-first) === */

/* Tablette */
@media (max-width: 1024px) {
  .hub-panel__title {
    font-size: 2rem;
  }

  .hub-panel__subtitle {
    font-size: 1.25rem;
  }

  .hub-panel__description {
    font-size: 0.85rem;
  }
}

/* Mobile : empilage vertical */
@media (max-width: 768px) {
  body {
    overflow-y: auto;
    height: auto;
  }

  .hub-header {
    position: relative;
    height: 60px;
    background: #000000;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .hub-split {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 60px);
  }

  .hub-panel {
    min-height: 50vh;
    flex: none;
  }

  .hub-panel:hover {
    flex: none;
  }

  .hub-panel__title {
    font-size: 1.75rem;
  }

  .hub-panel__subtitle {
    font-size: 1.1rem;
  }

  .hub-panel__content {
    padding: 1.5rem;
  }

  /* Séparateur horizontal sur mobile */
  .hub-separator {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: 4px;
    background: linear-gradient(
      to right,
      transparent 0%,
      #C7A45D 15%,
      #C7A45D 85%,
      transparent 100%
    );
    box-shadow: 0 0 15px rgba(199, 164, 93, 0.3);
  }

  .hub-footer {
    position: relative;
    padding: 1.5rem 1rem;
    background: #000000;
  }

  .hub-footer__links {
    gap: 0.2rem;
  }

  .hub-footer__links a {
    font-size: 0.7rem;
  }
}

/* Petit mobile */
@media (max-width: 480px) {
  .hub-panel__title {
    font-size: 1.5rem;
  }

  .hub-panel__description {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .hub-panel__cta {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* === ANIMATIONS D'ENTRÉE === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hub-panel__content {
  animation: fadeInUp 0.8s ease-out;
}

.hub-panel--particuliers .hub-panel__content {
  animation-delay: 0.15s;
  animation-fill-mode: both;
}

@keyframes separatorGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(199, 164, 93, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(199, 164, 93, 0.5);
  }
}

.hub-separator {
  animation: separatorGlow 3s ease-in-out infinite;
}

/* === ÉTAT DÉSACTIVÉ (grisé) === */
.hub-panel--disabled {
  pointer-events: none;
  cursor: default;
  position: relative;
}

.hub-panel--disabled::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(180, 180, 180, 0.55);
  z-index: 50;
  backdrop-filter: blur(1px);
}

.hub-panel--disabled:hover {
  flex: 1;
}

.hub-panel--disabled:hover .hub-panel__overlay {
  opacity: 0;
}

.hub-panel--disabled:hover .hub-panel__content {
  transform: translateY(0);
}

.hub-panel--disabled:hover .hub-panel__divider {
  width: 60px;
}

.hub-panel--disabled:hover .hub-panel__cta {
  background: transparent;
  color: #C7A45D;
}

/* === ACCESSIBILITÉ === */
.hub-panel:focus-visible {
  outline: 3px solid #C7A45D;
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === PRINT === */
@media print {
  .hub-header,
  .hub-footer,
  .hub-separator {
    display: none;
  }

  .hub-split {
    flex-direction: column;
  }

  .hub-panel {
    background: white !important;
    color: black !important;
    min-height: auto;
    padding: 2rem;
    page-break-inside: avoid;
  }
}

/* === SOUS-CHOIX PRO (Arts / Manoir) — 2026-04-24 === */
.hub-subchoice {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 440px;
}

.hub-subchoice__card {
  display: block;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(199, 164, 93, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.hub-subchoice__card:hover {
  background: rgba(199, 164, 93, 0.15);
  border-color: #C7A45D;
  transform: translateX(4px);
}

.hub-subchoice__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #C7A45D;
  margin-bottom: 0.4rem;
  letter-spacing: 0.3px;
}

.hub-subchoice__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.hub-subchoice__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #C7A45D;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hub-subchoice__card:hover .hub-subchoice__cta {
  color: #D4B574;
}

@media (max-width: 768px) {
  .hub-subchoice {
    max-width: 100%;
  }
  .hub-subchoice__card {
    padding: 1rem;
  }
  .hub-subchoice__desc {
    font-size: 0.8rem;
  }
}
