/*
Theme Name: Bicycleddy Theme
Author: Lee
Version: 2.4
*/

:root {
  --bg: #ffffff;
  --text: #a1a1a1;
  --border: #e3e3e3;
  --accent: #a1a1a1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.25; /* Interligne compact sans espace parasite */
  padding: 3rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow-x: hidden;
}

/* Rendu Desktop : vidéo plein écran en arrière-plan */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  filter: grayscale(1) blur(1.5px) contrast(40);
  transform: translateZ(0);
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header {
  padding-top: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: none;
  margin-bottom: 0;
}

/* Logo texte Bicycleddy */
h1 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
}

/* Bandeau des marques encadré */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 2.8rem;
  margin: 1.5rem 0 3.5rem 0;
  display: flex;
  align-items: center;
  font-family: "Courier New", Courier, monospace;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 2px;
  animation: scroll-left 35s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem 4rem;
  margin-bottom: 3rem;
  align-items: start;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.25;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.25;
}

.badge {
  display: inline-block;
  background: var(--border);
  color: var(--text);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* Tableau Desktop */
.hours-table {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.25;
}

.hours-table td {
  padding: 0.45rem 0;
  border-bottom: 1px var(--border) dashed;
}

.hours-table td:first-child {
  text-align: left;
}

.hours-table td:last-child {
  text-align: right;
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  font-size: 0.9rem;
  color: var(--accent);
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.6;
}

/* ==========================================================
   VERSION MOBILE (< 768px) : LIGNES DIRECTES SANS ESPACE
   ========================================================== */
@media (max-width: 768px) {
  body {
    padding: 2rem 1.5rem 3rem 1.5rem;
    padding-top: calc(2rem + env(safe-area-inset-top));
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    line-height: 1.25;
  }

  .container {
    width: 100%;
    max-width: 100%;
  }

  header {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    text-align: center;
  }

  h1 {
    font-size: 1.05rem;
    text-align: center;
  }

  /* Marquee pleine largeur */
  .marquee-wrapper {
    height: 2.5rem;
    margin: 1rem -1.5rem 2.5rem -1.5rem;
    padding: 0 1.5rem;
  }

  /* Espacement entre les 3 colonnes principales */
  .grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
    margin-bottom: 2rem;
  }

  .grid > div {
    width: 100%;
    text-align: center;
  }

  /* Espacement entre chaque groupe (ex: Vente -> Atelier) */
  p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.25;
    text-align: center;
  }

  p:last-child {
    margin-bottom: 0;
  }

  /* Titre collé sans le moindre saut de ligne parasite */
  strong {
    font-size: 1rem;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1.25;
    text-align: center;
  }

  /* Tableau des horaires compact */
  .hours-table {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .hours-table td {
    padding: 0.45rem 0.25rem;
  }

  .hours-table td:first-child {
    text-align: left;
  }

  .hours-table td:last-child {
    text-align: right;
  }

  footer {
    padding-top: 1.5rem;
    font-size: 0.85rem;
    justify-content: center;
    text-align: center;
  }
}