@font-face {
  font-family: "BBB-Herthey-Futural";
  src: url("BBB-Herthey-Futural-40.woff") format("woff");
}

.frame {
  background-color: #ffff;
  border: 1px solid #ffff;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  position: relative;
  padding: 30px 20px;
  box-sizing: border-box;
}

/* Header aligné à droite */
.frame .header {
  display: flex;
  justify-content: flex-end;
  gap: 40px;
  font-family: "BBB-Herthey-Futural", Helvetica;
  font-weight: 400;
  font-size: 20px;
  color: #a1b7ff;
  margin-right: 20px;
}

.nav-item a {
  text-decoration: none;
  color: inherit;
}

.frame .header .about {
  color: #a1b7ff;
}

/* Monogramme */
.monogramme-container {
  position: absolute;
  top: 20px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.monogramme {
  width: 70px;
  height: auto;
  display: block;
  cursor: pointer;
}

.monogramme img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   LEAP TYPE
   ============================================================ */

@font-face {
  font-family: 'Leaptype';
  src: url('Leaptype-Regular.ttf') format('truetype');
  font-weight: 300;
}
@font-face {
  font-family: 'Leaptype';
  src: url('leaptype-modere.ttf') format('truetype');
  font-weight: 500;
}
@font-face {
  font-family: 'Leaptype';
  src: url('leaptype-dense.ttf') format('truetype');
  font-weight: 700;
}

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

body {
  background: #ffffff;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ============================================================
   TEXTE ÉDITABLE
   ============================================================ */

#editable-text {
  font-family: 'Leaptype', sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 9vw, 600px);
  line-height: 1;
  color: #a1b7ff;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  overflow: hidden;
  text-align: center;
  width: 100%;
  padding: 0;
  margin-bottom: 40px;
  margin-top: 250px;
  letter-spacing: 0.01em;
  transition: font-weight 0.10s ease;
  cursor: text;
}

/* ============================================================
   SLIDER
   ============================================================ */

.slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 280px;
  height: 1.5px;
  background: #a1b7ff;
  outline: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #a1b7ff;
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #a1b7ff;
  cursor: pointer;
  border: none;
}

input[type="range"]::-moz-range-track {
  height: 1.5px;
  background: #a1b7ff;
}

.slider-label {
  font-family: "BBB-Herthey-Futural", Helvetica;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #a1b7ff;
  font-weight: bold;
}

/* ============================================================
   DOWNLOAD — bas droite
   ============================================================ */

.download-btn {
  position: fixed;
  bottom: 90px;
  right: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #a1b7ff;
  cursor: pointer;
}

.download-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1.5px solid #a1b7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1b7ff;
  transition: background 0.2s ease, color 0.2s ease;
}

.download-circle svg {
  width: 30px;
  height: 30px;
}

.download-btn:hover .download-circle {
  background: #a1b7ff;
  color: #ffffff;
}

.download-btn span {
  font-family: "BBB-Herthey-Futural", Helvetica;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #a1b7ff;
  white-space: nowrap;
}

/* ── MOBILE (max 768px) ── */
@media screen and (max-width: 768px) {
  .frame {
    padding: 20px 14px;
  }

  .frame .header {
    font-size: 14px;
    gap: 20px;
    margin-right: 10px;
    margin-top: 14px;
  }

  .monogramme {
    width: 40px;
  }

  #editable-text {
    font-size: clamp(30px, 14vw, 120px);
    margin-top: 300px;
    margin-bottom: 30px;
  }

  input[type="range"] {
    max-width: 200px;
  }

  .download-btn {
    bottom: 20px;
    right: 20px;
    gap: 6px;
  }

  .download-circle {
    width: 52px;
    height: 52px;
  }

  .download-circle svg {
    width: 22px;
    height: 22px;
  }

  .download-btn span {
    font-size: 12px;
  }
}