/* ==========================================================================
   Girault Conceptions — Start Page
   Dark glassmorphism, bleu Girault #0098D8
   ========================================================================== */

:root {
  --bg-0: #05080d;
  --bg-1: #0a0e14;
  --bg-2: #0f1620;
  --surface-glass: rgba(20, 28, 40, 0.55);
  --surface-glass-strong: rgba(28, 38, 54, 0.78);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-1: #f3f6fb;
  --text-2: #b6c2d4;
  --text-3: #7a8699;
  --brand: #0098D8;
  --brand-glow: rgba(0, 152, 216, 0.55);
  --brand-bright: #34beff;
  --danger: #ff4d6d;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  /* Springy ease-out: gentle overshoot for that "iTunes feel" */
  --transition-smooth: cubic-bezier(0.16, 1.05, 0.32, 1);
  --transition-snap:   cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "cv01";
  overflow: hidden;
}

/* Force hidden attribute to win over our flex/grid display rules. */
[hidden] { display: none !important; }

body {
  background:
    radial-gradient(1100px 800px at 20% -10%, rgba(0, 152, 216, 0.18), transparent 60%),
    radial-gradient(900px 700px at 100% 110%, rgba(89, 39, 192, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  min-height: 100vh;
  position: relative;
}

/* ========== Background orbs + grid ========== */
.bg-orbs { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: orbDrift 30s ease-in-out infinite;
}
.orb-1 { width: 480px; height: 480px; background: #0098D8; top: -120px; left: -120px; animation-delay: 0s; }
.orb-2 { width: 380px; height: 380px; background: #6d28d9; bottom: -100px; right: 10%;   animation-delay: -10s; }
.orb-3 { width: 320px; height: 320px; background: #06b6d4; top: 40%; left: 50%;          animation-delay: -20s; }

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.1); }
  66%      { transform: translate(-50px, 30px) scale(0.95); }
}

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 90%);
}

/* ========== Header ========== */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  gap: 24px;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.logo {
  width: 52px; height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 152, 216, 0.4));
}
.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #fff 0%, #b6c2d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-tag {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}
.header-right { display: flex; align-items: center; gap: 16px; }
.clock {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.btn-ghost {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-glass);
  border: 1px solid var(--border-soft);
  color: var(--text-1);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
}
.btn-ghost:hover {
  background: var(--surface-glass-strong);
  border-color: var(--brand);
  color: var(--brand-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px var(--brand-glow);
}

/* ========== Category switcher (3D) ========== */
.category-switcher {
  position: relative;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 16px 32px 0;
  perspective: 1200px;
  flex-wrap: wrap;
}
.cat-pill {
  --c: var(--brand);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--surface-glass);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transform-style: preserve-3d;
  transition:
    transform 0.45s var(--transition-smooth),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.4s ease;
}
.cat-pill .cat-icon { font-size: 1.1rem; line-height: 1; }
.cat-pill .cat-count {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text-3);
}
.cat-pill:hover {
  color: var(--text-1);
  background: var(--surface-glass-strong);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.cat-pill.active {
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, black));
  border-color: var(--c);
  color: white;
  box-shadow:
    0 8px 32px -8px color-mix(in srgb, var(--c) 70%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateZ(10px) translateY(-2px);
}
.cat-pill.active .cat-count {
  background: rgba(255,255,255,0.18);
  color: white;
}

/* Switcher animation when changing category */
.category-switcher.switching .cat-pill:not(.active) {
  animation: pillFlip 0.5s var(--transition-smooth);
}
@keyframes pillFlip {
  0% { transform: rotateY(0); opacity: 0.4; }
  50% { transform: rotateY(15deg); opacity: 0.7; }
  100% { transform: rotateY(0); opacity: 1; }
}

/* Pill drag-and-drop (edit mode) */
body.edit-mode .cat-pill { cursor: grab; }
body.edit-mode .cat-pill:active { cursor: grabbing; }
.cat-pill.dragging {
  opacity: 0.4;
  transform: scale(0.96);
  cursor: grabbing;
}
.cat-pill.drop-before {
  box-shadow: inset 3px 0 0 var(--brand-bright), 0 8px 24px -8px var(--brand-glow);
}
.cat-pill.drop-after {
  box-shadow: inset -3px 0 0 var(--brand-bright), 0 8px 24px -8px var(--brand-glow);
}

/* ========== Stage / CoverFlow ========== */
.stage {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: calc(100vh - 200px);
  min-height: 520px;
  padding: 0 24px;
}

.coverflow {
  --mx: 0;     /* mouse X normalised, -0.5 to 0.5 */
  --my: 0;     /* mouse Y normalised, -0.5 to 0.5 */
  position: relative;
  width: 100%;
  flex: 1;
  perspective: 1600px;
  perspective-origin: 50% 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.coverflow:active { cursor: grabbing; }
.coverflow.switching    .cover { transition: none; }
.coverflow.auto-scrolling .cover { transition: none; }
/* Visual hint on the active scroll side */
.coverflow.auto-scrolling { cursor: ew-resize; }

/* @property declarations let us animate custom CSS variables (idle float, hover, tilt). */
@property --float-y     { syntax: '<length>'; inherits: false; initial-value: 0px;  }
@property --hover-scale { syntax: '<number>'; inherits: false; initial-value: 1;    }
@property --hover-y     { syntax: '<length>'; inherits: false; initial-value: 0px;  }
@property --tilt-x      { syntax: '<angle>';  inherits: false; initial-value: 0deg; }
@property --tilt-y      { syntax: '<angle>';  inherits: false; initial-value: 0deg; }

.cover {
  /* Layout transform vars (set inline by JS) */
  --x:    0px;
  --z:    0px;
  --roty: 0deg;
  /* Hover / mouse-tilt vars (driven by CSS pseudo-states) */
  --hover-scale: 1;
  --hover-y:     0px;
  --tilt-x:      0deg;
  --tilt-y:      0deg;
  --float-y:     0px;

  position: absolute;
  width: 360px;
  height: 240px;            /* 3:2 — format écran PC type Surface/Chromebook */
  border-radius: 18px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transform-origin: center center;
  transform:
    translate3d(var(--x), calc(var(--hover-y) + var(--float-y)), var(--z))
    rotateY(calc(var(--roty) + var(--tilt-y)))
    rotateX(var(--tilt-x))
    scale(var(--hover-scale));
  transition:
    transform 0.7s var(--transition-smooth),
    opacity 0.45s ease,
    filter 0.5s ease,
    border-color 0.4s ease,
    box-shadow 0.5s ease,
    --hover-scale 0.35s var(--transition-snap),
    --hover-y     0.35s var(--transition-snap),
    --tilt-x      0.25s ease-out,
    --tilt-y      0.25s ease-out;
  will-change: transform, opacity, filter;
}

/* Focused cover — bright + glow + reacts to mouse tilt */
.cover[data-pos="0"] {
  filter: brightness(1.1) saturate(1.18);
  border-color: var(--brand);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--brand-glow),
    0 0 80px -10px var(--brand-glow);
  z-index: 50;
  --tilt-x: calc(var(--my) * -9deg);
  --tilt-y: calc(var(--mx) *  11deg);
  animation: coverFloat 6s ease-in-out infinite;
}

@keyframes coverFloat {
  0%, 100% { --float-y: 0px; }
  50%      { --float-y: -6px; }
}

/* Pause idle float during transitions or auto-scroll to avoid micro-jitter. */
.coverflow.switching      .cover[data-pos="0"],
.coverflow.auto-scrolling .cover[data-pos="0"] { animation: none; }

/* Side covers — hover lifts them slightly to suggest interactivity */
.cover[data-pos="-1"], .cover[data-pos="1"]   { opacity: 0.92; filter: brightness(0.78) saturate(0.92); z-index: 40; }
.cover[data-pos="-2"], .cover[data-pos="2"]   { opacity: 0.74; filter: brightness(0.6)  saturate(0.85); z-index: 30; }
.cover[data-pos="-3"], .cover[data-pos="3"]   { opacity: 0.5;  filter: brightness(0.48) saturate(0.75); z-index: 20; }
.cover[data-far]                              { opacity: 0;    pointer-events: none;    z-index: 0;  }

/* Hover effects on non-focused covers */
.cover[data-pos="-1"]:hover,
.cover[data-pos="1"]:hover,
.cover[data-pos="-2"]:hover,
.cover[data-pos="2"]:hover,
.cover[data-pos="-3"]:hover,
.cover[data-pos="3"]:hover {
  --hover-scale: 1.06;
  --hover-y: -8px;
  filter: brightness(0.95) saturate(1);
  opacity: 1;
}

/* Subtle "press" feedback */
.cover:active { --hover-scale: 0.97; transition-duration: 0.15s; }

/* Default image rendering: icon-sized, centered with padding.
   Used for favicons (small source) and the live favicon proxy. */
.cover-img {
  max-width: 55%;
  max-height: 65%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  padding: 12px;
}

/* Full-bleed rendering: fills the cover edge-to-edge (screenshots, custom uploads). */
.cover-img.cover-img-fill {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: inherit;
  padding: 0;
  background: none;
}

.cover-initials {
  width: 60%;
  height: 70%;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.cover-title {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cover[data-pos="0"] .cover-title { opacity: 1; }

/* Reflet sous la cover centrale */
.cover[data-pos="0"]::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: 0;
  right: 0;
  height: 50%;
  background: inherit;
  border-radius: inherit;
  border: inherit;
  transform: scaleY(-1);
  opacity: 0.18;
  filter: blur(2px);
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

/* Action badges (edit + delete) in edit mode */
.cover-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  gap: 8px;
  z-index: 5;
}
.cover-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 1.1rem;
  font-family: inherit;
  padding: 0;
  transition: all 0.2s ease;
}
.cover-action:hover { transform: scale(1.1); }
.cover-edit:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.cover-delete:hover {
  background: var(--danger);
  border-color: var(--danger);
}
.cover-action > svg { pointer-events: none; }
body.edit-mode .cover[data-pos="0"] .cover-actions { display: flex; }

/* Empty state */
.coverflow-empty {
  text-align: center;
  color: var(--text-3);
  padding: 60px 20px;
}
.coverflow-empty-icon { font-size: 3rem; opacity: 0.4; }

/* CoverFlow info under stage */
.coverflow-info {
  text-align: center;
  margin-top: 12px;
  min-height: 50px;
}
.info-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #fff, #b6c2d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.info-url {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Controls */
.coverflow-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}
.ctrl-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface-glass);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--text-1);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
}
.ctrl-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  transform: scale(1.08);
  box-shadow: 0 8px 24px -6px var(--brand-glow);
}
.ctrl-pager {
  min-width: 80px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.9rem;
}

/* FAB add */
.fab {
  position: fixed;
  bottom: 80px;
  right: 32px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  border: none;
  color: white;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 32px -6px var(--brand-glow), 0 0 0 1px rgba(255,255,255,0.1) inset;
  z-index: 100;
  transition: all 0.3s var(--transition-smooth);
}
.fab:hover {
  transform: scale(1.08) rotate(90deg);
  box-shadow: 0 16px 40px -6px var(--brand-glow);
}

/* Edit mode banner */
.edit-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--brand);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  font-size: 0.85rem;
  color: var(--text-1);
  z-index: 99;
  box-shadow: 0 8px 32px -8px var(--brand-glow);
}
.edit-banner .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 10px var(--brand-bright);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.edit-banner .link {
  background: none;
  border: none;
  color: var(--brand-bright);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.edit-banner .link:hover { background: rgba(0, 152, 216, 0.15); }

/* ========== Modales ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 8, 13, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.modal-overlay[hidden] { display: none; }

.glass {
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal {
  width: 100%;
  max-width: 440px;
  animation: modalIn 0.3s var(--transition-smooth);
}
.modal-lg { max-width: 560px; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 1.6rem;
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.2s ease;
}
.modal-close:hover { background: rgba(255,255,255,0.06); color: var(--text-1); }

.modal-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
  font-size: 0.78rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.field input[type=text],
.field input[type=password],
.field input[type=url],
.field input[type=file],
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border-soft);
  color: var(--text-1);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}
.field input:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 152, 216, 0.2);
}
.field input[type=color] {
  height: 44px;
  width: 100%;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border-soft);
  cursor: pointer;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Image options (4–5 cards, wraps gracefully on narrow screens) */
.image-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.image-option {
  cursor: pointer;
  position: relative;
}
.image-option input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card {
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border-soft);
  text-align: center;
  transition: all 0.25s var(--transition-smooth);
}
.opt-icon {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.opt-label {
  font-size: 0.85rem;
  font-weight: 500;
}
.opt-hint {
  font-size: 0.7rem;
  color: var(--text-3);
  margin-top: 2px;
}
.image-option input:checked + .opt-card {
  border-color: var(--brand);
  background: rgba(0, 152, 216, 0.12);
  box-shadow: 0 0 0 2px rgba(0, 152, 216, 0.15);
}
.image-option:hover .opt-card { border-color: var(--border-strong); }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.btn-primary,
.btn-secondary {
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--transition-smooth);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: white;
  box-shadow: 0 4px 16px -4px var(--brand-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px var(--brand-glow);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}
.btn-secondary {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-soft);
  color: var(--text-1);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); }

.form-error {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.35);
  color: #ff8fa3;
  font-size: 0.85rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .header { padding: 16px 18px; }
  .logo { width: 42px; height: 42px; }
  .brand-name { font-size: 0.95rem; }
  .brand-tag { font-size: 0.65rem; }
  .clock { display: none; }
  .category-switcher { gap: 8px; padding: 12px 12px 0; }
  .cat-pill { padding: 8px 12px; font-size: 0.82rem; }
  .cat-pill .cat-count { display: none; }
  .stage { height: calc(100vh - 180px); min-height: 380px; padding: 0 8px; }
  .cover { width: 260px; height: 173px; border-radius: 14px; }
  .cover-img { max-width: 55%; max-height: 65%; padding: 8px; }
  .cover-initials { width: 60%; height: 70%; font-size: 2.2rem; }
  .info-title { font-size: 1.1rem; }
  .info-url { font-size: 0.7rem; word-break: break-all; padding: 0 16px; }
  .fab { width: 52px; height: 52px; bottom: 70px; right: 18px; }
  .edit-banner { font-size: 0.75rem; padding: 8px 14px; gap: 10px; }
  .modal { max-width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .image-options { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .cover { width: 220px; height: 147px; }
  .cover-initials { font-size: 1.8rem; }
  .ctrl-btn { width: 40px; height: 40px; }
}

/* Réduction des animations si préférence */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
