:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --border: #d9e2ef;
  --border-strong: #c8d4e5;
  --text: #1f2a37;
  --muted: #627186;
  --primary: #2f6fed;
  --primary-hover: #2559be;
  --success: #1f8f6a;
  --shadow-lg: 0 20px 50px rgba(20, 36, 64, 0.10);
  --shadow-md: 0 10px 25px rgba(20, 36, 64, 0.08);
  --shadow-sm: 0 4px 10px rgba(20, 36, 64, 0.06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 111, 237, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(31, 143, 106, 0.08), transparent 22%),
    linear-gradient(180deg, #f7f9fd 0%, #eef3f9 100%);
  padding: 40px 18px 80px;
}

body::before {
  content: "";
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.45), transparent 20%);
  z-index: -1;
}

h1 {
  max-width: 1180px;
  margin: 0 auto 28px;
  padding: 0 4px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #162235;
}

h1::after {
  content: "Organisez vos inspirations musicales avec une présentation claire et élégante.";
  display: block;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
}

#modules {
  max-width: 1180px;
  margin: 0 auto 24px;
  display: grid;
  gap: 20px;
}

.module {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
  padding: 24px;
  overflow: hidden;
}

.module::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), #6ea2ff, #7fd0b1);
}

.module:hover {
  transform: translateY(-2px);
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 24px 60px rgba(20, 36, 64, 0.13);
}

input[type="text"],
input:not([type]),
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.98rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input[type="text"]:focus,
input:not([type]):focus,
textarea:focus {
  border-color: rgba(47, 111, 237, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.12);
}

.module > input:first-child {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 14px;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
  margin-bottom: 18px;
}

.link {
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
}

.link input {
  margin: 0;
}

.preview {
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #eef4fb;
  box-shadow: var(--shadow-sm);
}

.preview img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease;
  box-shadow: var(--shadow-md);
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

body > button,
body > input[type="file"] {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
}

body > button {
  margin-top: 8px;
  margin-right: 10px;
  background: linear-gradient(135deg, var(--primary), #4d84f5);
  color: white;
}

body > button:hover {
  background: linear-gradient(135deg, var(--primary-hover), #3f74df);
}

.module button {
  margin-top: 16px;
  background: linear-gradient(135deg, #1f8f6a, #35b18a);
  color: white;
}

.module button:hover {
  background: linear-gradient(135deg, #187457, #2d9877);
}

input[type="file"] {
  padding: 12px 14px;
  background: rgba(255,255,255,0.75);
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 999px;
  background: #e8f0ff;
  color: #204a9b;
  padding: 10px 14px;
  font-weight: 700;
  margin-right: 12px;
  cursor: pointer;
}

@media (min-width: 760px) {
  body > button,
  body > input[type="file"] {
    margin-top: 0;
  }

  body {
    padding-top: 56px;
  }
}

@media (max-width: 759px) {
  body {
    padding: 24px 14px 60px;
  }

  .module {
    padding: 18px;
    border-radius: 20px;
  }

  h1::after {
    font-size: 0.95rem;
  }

  .preview img {
    max-width: 100%;
  }

  body > button,
  body > input[type="file"] {
    width: 100%;
    margin: 8px auto 0;
    justify-content: center;
  }
}
