/* ============================================
   CROQUE & KIFFE — Custom Styles
   ============================================ */

body {
  background-color: #050505;
  color: #e5e2e1;
  scroll-behavior: smooth;
}

/* Brush stroke background (titre + séparateurs) */
.brush-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='20'%3E%3Cpath d='M0 10 Q 25 2 50 10 T 100 10' stroke='%23ffbd77' stroke-width='8' fill='none' stroke-opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 100px 20px;
}

/* Séparateur orange horizontal entre sections */
.orange-brush-divider {
  height: 20px;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='20'%3E%3Cpath d='M0 10 Q 50 2 100 10 T 200 10 T 300 10 T 400 10' stroke='%23f59a23' stroke-width='6' fill='none' stroke-opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 400px 20px;
  opacity: 0.7;
  margin: 2rem 0;
}

/* Glow orange sur les titres hero */
.text-glow {
  text-shadow: 0 0 20px rgba(245, 154, 35, 0.6);
}

/* Bordure subtile pour cards */
.card-border {
  border: 1px solid rgba(153, 153, 153, 0.2);
}

/* Ligne pointillée pour séparateurs de prix */
.dotted-line {
  border-bottom: 2px dotted rgba(153, 153, 153, 0.4);
}

/* Gradient hero (noir bas → transparent haut) */
.hero-gradient {
  background: linear-gradient(
    0deg,
    #050505 0%,
    rgba(5, 5, 5, 0.5) 50%,
    rgba(5, 5, 5, 0.1) 100%
  );
}

/* Gradient plein pour pages contact/horaires */
.street-noir-gradient {
  background: linear-gradient(
    180deg,
    rgba(19, 19, 19, 0.7) 0%,
    rgba(19, 19, 19, 0.95) 100%
  );
}

/* Card nocturne (horaires) */
.nocturnal-card {
  background: #1a1a1a;
  border: 1px solid rgba(153, 153, 153, 0.2);
  transition: border-color 0.3s ease;
}
.nocturnal-card:hover {
  border-color: #ffbd77;
}

/* Brush stroke accent line (pour titres de section) */
.brush-stroke {
  height: 8px;
  background-color: #ffbd77;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0 5 Q 25 0 50 5 T 100 5' stroke='black' stroke-width='5' fill='none'/%3E%3C/svg%3E");
  mask-size: cover;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0 5 Q 25 0 50 5 T 100 5' stroke='black' stroke-width='5' fill='none'/%3E%3C/svg%3E");
  -webkit-mask-size: cover;
  opacity: 0.8;
}

/* ── Mobile menu overlay ── */
#mobile-menu {
  display: none;
}
#mobile-menu.open {
  display: flex;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Sticky header transparent → opaque ── */
#main-header {
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#main-header.scrolled {
  background-color: rgba(19, 19, 19, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(84, 68, 53, 0.3);
}

/* ── Focus visible (accessibilité) ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #ffbd77;
  outline-offset: 2px;
}

/* ── Conteneurs d'images (garantis avant chargement Tailwind CDN) ── */
/*
 * aspect-ratio sur le conteneur + img en position:absolute;inset:0
 * = pas de dépendance circulaire (l'img est hors-flux, ne contribue
 * pas au calcul de hauteur du parent). Fiable en Grid et Flex.
 */
.card-img {
  position: relative;
  overflow: hidden;
  background-color: #2a2a2a;
  aspect-ratio: 4 / 3;
}
.card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}
.group:hover .card-img img {
  transform: scale(1.08);
}

/* Dégradé overlay (homepage cards) */
.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.12) 45%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.card-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 2;
}

/* Thumbnail horizontal (page menu) — dimensions fixes sur sm+ */
@media (min-width: 640px) {
  .menu-thumb {
    aspect-ratio: unset;
    height: 8.5rem;
    width: 10rem;
    flex-shrink: 0;
  }
}

/* ── Skip-to-content (accessibilité clavier) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 12px 24px;
  background: #ffbd77;
  color: #492900;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  font-family: "Be Vietnam Pro", sans-serif;
}
.skip-link:focus {
  top: 0;
}
