/* base.css — reset, fond, couleurs, animations */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: monospace;
  font-size: 16px;
  background: url(https://cizi.fr/web_images/9c0722106004343.5f85fead2894a.gif) no-repeat center center fixed;
  background-size: cover;
  background-color: #000;
  color: rgba(240,235,220,0.9);
  overflow-x: hidden;
  padding-top: 60px;
}
a { color: inherit; text-decoration: none; }

:root {
  --fg:       rgba(240,235,220,0.9);
  --fg-dim:   rgba(240,235,220,0.55);
  --fg-faint: rgba(240,235,220,0.3);
  --bd:       rgba(240,235,220,0.2);
  --bd-hover: rgba(240,235,220,0.5);
  --bg-soft:  rgba(0,0,0,0.5);
  --bg-hover: rgba(255,255,255,0.08);
  --red-loc:  rgba(220,80,80,0.95);

  --content-max: 2000px;       /* largeur max du contenu sur grand écran */
}

/* ─── Marges latérales transparentes sur grand écran ─── */
.header {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}
/* La slim reste en pleine largeur (style barre d'OS) */

.btn-round {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--fg-faint);
  background: var(--bg-soft);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px; font-weight: bold;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
  padding: 0;
}
.btn-heart:hover {
  border-color: #ff4d6d;
  color: #ff4d6d;
  background: rgba(255,77,109,0.1);
}
.btn-qmark:hover {
  border-color: var(--bd-hover);
  color: rgba(240,235,220,0.98);
  background: var(--bg-hover);
}

.btn-fullscreen {
  width: 32px; height: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--bd);
  border-radius: 8px;
  color: var(--fg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-fullscreen:hover {
  border-color: var(--bd-hover);
  background: var(--bg-hover);
  color: rgba(240,235,220,0.98);
}
.btn-fullscreen svg { width: 16px; height: 16px; }

#hearts-rain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}
.heart {
  position: absolute; top: -40px;
  color: #ff4d6d;
  text-shadow: 0 0 10px rgba(255,77,109,0.6);
  animation: fall linear forwards;
  user-select: none;
}
@keyframes fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Bouton remonter en haut */
#scroll-top {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 150;
  width: 66px; height: 66px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--bd);
  color: var(--fg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s, border-color 0.2s;
}
#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
#scroll-top:hover {
  background: rgba(0,0,0,0.8);
  border-color: var(--bd-hover);
}

.icon-chevron-up {
  width: 22px; height: 22px;
  display: block;
}
.icon-chevron-up polyline {
  transition: transform 0.25s ease;
  transform-origin: center;
}
#scroll-top:hover .icon-chevron-up polyline:last-child {
  transform: translateY(-3px);
}
#scroll-top:hover .icon-chevron-up polyline:first-child {
  transform: translateY(-1px);
}
