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

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

/* ── CURSEUR PERSONNALISÉ BLEU ── */
*, body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='4' cy='4' r='3' fill='%23a1b7ff' stroke='%23a1b7ff' stroke-width='1'/%3E%3C/svg%3E") 4 4, auto;
}

button, input[type="range"], .shape-btn, .toggle, .btn, .monogramme, .nav-item a {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='4' cy='4' r='3.5' fill='%23a1b7ff' stroke='white' stroke-width='1'/%3E%3C/svg%3E") 4 4, pointer;
}

/* Frame générale */
.frame {
  background-color: #ffff;
  border: 1px solid #ffff;
  width: 100%;
  min-width: 1276px;
  min-height: 2051px;
  position: relative;
  padding: 30px 20px;
  box-sizing: border-box;
}

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

/* 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;
}

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

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

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

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


/* ── VARIABLES ── */
:root {
  --bg:     #ffffff;
  --ink:    #a1b7ff;
  --panel:  #ffffff;
  --accent: #a1b7ff;
  --border: #a1b7ff;
}

/* ── LAYOUT ── */
body {
  font-family: "BBB-Herthey-Futural", Helvetica;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}

header {
  padding: 18px 28px;
  display: flex;
  align-items: baseline;
  gap: 20px;
}

header h1 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

header span {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* ── PANEL ── */
.panel {
  width: 260px;
  min-width: 220px;
  flex-shrink: 0;
  padding: 22px 20px;
  border-left: 1.5px solid var(--ink);
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  color: var(--ink);
}

.panel-section { display: flex; flex-direction: column; gap: 10px; }

.panel-section h2 {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.field { display: flex; flex-direction: column; gap: 10px; }

.field label {
  font-size: 10px;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
}

.field label span {
  color: var(--accent);
  font-weight: 700;
  min-width: 32px;
  text-align: right;
}

/* ── INPUTS ── */
input[type="text"] {
  font-family: "BBB-Herthey-Futural", Helvetica;
  font-size: 14px;
  padding: 9px 11px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  letter-spacing: 0.05em;
  transition: border-color 0.15s;
  width: 100%;
}
input[type="text"]:focus { border-color: var(--accent); }

input[type="range"] {
  width: 100%;
  height: 2px;
  background: #a1b7ff;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border: 1.5px solid #a1b7ff;
  border-radius: 50%;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='4' cy='4' r='3.5' fill='%23a1b7ff' stroke='white' stroke-width='1'/%3E%3C/svg%3E") 4 4, ew-resize;
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border: 1.5px solid #a1b7ff;
  border-radius: 50%;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='4' cy='4' r='3.5' fill='%23a1b7ff' stroke='white' stroke-width='1'/%3E%3C/svg%3E") 4 4, ew-resize;
}

/* ── SHAPE BUTTONS ── */
.shape-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.shape-btn {
  aspect-ratio: 1;
  border: 1.5px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: border-color 0.1s, background 0.1s;
}
.shape-btn:hover  { border-color: var(--ink); }
.shape-btn.active { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ── TOGGLES ── */
.toggle-row { display: flex; align-items: center; gap: 10px; }

.toggle {
  width: 36px;
  height: 20px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s;
}
.toggle::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--ink);
  top: 2px;
  left: 2px;
  transition: left 0.15s, background 0.15s;
}
.toggle.on { background: var(--accent); border-color: var(--accent); }
.toggle.on::after { left: 18px; background: #fff; }

.toggle-label { font-size: 10px; letter-spacing: 0.08em; }

/* ── BUTTONS ── */
.btn {
  font-family: "BBB-Herthey-Futural", Helvetica;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  transition: background 0.12s, color 0.12s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ── CANVAS AREA ── */
.canvas-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 32px;
  position: relative;
}

canvas {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.hint {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

.copyright {
  font-family: "BBB-Herthey-Futural", Helvetica;
  color: #a1b7ff;
  position: relative;
  bottom: 20px;
  right: 24px;
  margin-left: 1200px;
  margin-top:100px ;
  font-size: 12px;
  line-height: 10px;
  opacity: 0.7;
  z-index: 999;
}