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

:root {
  --bg: #0a0a0d;
  --bg-card: #12121a;
  --bg-elevated: #1a1a24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f2;
  --text-muted: #8a8a96;
  --accent: #00d4aa;
  --accent-dim: #00a884;
  --accent-glow: rgba(0, 212, 170, 0.25);
  --radius: 12px;
  --font: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bracketPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 20px 2px var(--accent-glow); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.6s ease-out;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-bracket {
  color: var(--accent);
  animation: bracketPulse 2s ease-in-out infinite;
}

.logo-bracket:last-of-type {
  animation-delay: 0.5s;
}

.logo-text {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links,
.nav-auth {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-sep {
  width: 1px;
  height: 1.25rem;
  background: var(--border);
  flex-shrink: 0;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s, transform 0.2s;
}

.nav a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.nav-discord-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-discord-link:hover {
  color: #5865F2;
}

.nav-discord-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-username {
  font-weight: 500;
  color: var(--text);
}

.nav-tickets-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-bell {
  display: inline-flex;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-tickets-link:hover .nav-bell {
  color: var(--accent);
}

.nav-bell-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: var(--bg);
  background: var(--accent);
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--bg-elevated);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  max-width: 48rem;
  margin: 0 auto;
}

.welcome-title {
  text-align: center;
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 auto 0;
  padding: 5rem 2rem 0;
  max-width: 64rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 64rem;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  min-height: 100vh;
}

.hero-split-left {
  min-width: 0;
}

.hero-split-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-split-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero-split-role {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero-split-desc {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.hero-split-desc strong {
  color: var(--accent);
}

.hero-split-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.code-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.1), 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s;
}

.code-window:hover {
  box-shadow: 0 0 24px rgba(0, 212, 170, 0.15), 0 8px 40px rgba(0, 0, 0, 0.35);
}

.code-window-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.code-window-dots {
  display: flex;
  gap: 0.35rem;
}

.code-window-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-window-dots .dot.red { background: #ff5f56; }
.code-window-dots .dot.yellow { background: #ffbd2e; }
.code-window-dots .dot.green { background: #27c93f; }

.code-window-filename {
  flex: 1;
}

.code-window-icon {
  color: var(--accent);
  opacity: 0.8;
  font-size: 1rem;
}

.code-window-body {
  margin: 0;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: auto;
  color: var(--text);
}

.code-window-body code { background: none; padding: 0; }

.code-keyword { color: #c678dd; }
.code-operator { color: #56b6c2; }
.code-string { color: #98c379; }
.code-bracket { color: var(--text-muted); }
.code-bool { color: #d19a66; }
.code-comment { color: #5c6370; font-style: italic; }

.code-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.code-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.code-badge:nth-child(1) { border-color: rgba(198, 120, 221, 0.4); color: #c678dd; }
.code-badge:nth-child(2) { border-color: rgba(0, 212, 170, 0.4); color: var(--accent); }
.code-badge:nth-child(3) { border-color: rgba(247, 202, 24, 0.4); color: #f7ca18; }

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 5rem 1.5rem 3rem;
  }

  .hero-split-right {
    order: -1;
  }

  .code-window-body { font-size: 0.8rem; padding: 1rem; }
}

.hero-label {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-label .tag {
  animation: fadeUp 0.6s ease-out backwards;
}

.hero-label .tag:nth-child(1) { animation-delay: 0.1s; }
.hero-label .tag:nth-child(2) { animation-delay: 0.2s; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.6s ease-out backwards;
}

.hero-title-accent {
  color: var(--accent);
  display: block;
  animation: fadeUp 0.6s ease-out 0.35s backwards;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease-out 0.45s backwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-cta .btn {
  animation: fadeUp 0.6s ease-out backwards;
}

.hero-cta .btn-primary { animation-delay: 0.55s; }
.hero-cta .btn-ghost { animation-delay: 0.65s; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: fit-content;
  animation: fadeUp 0.6s ease-out 0.75s backwards;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-code:hover {
  border-color: rgba(0, 212, 170, 0.4);
  box-shadow: 0 0 16px rgba(0, 212, 170, 0.1);
}

.hero-code code {
  color: var(--accent);
}

.section {
  padding: 5rem 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-card);
}

.section-partners {
  padding: 4rem 2rem;
}

.section-title-large {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.section-desc-large {
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.partner-block {
  max-width: 56rem;
  margin: 0 auto;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.partner-card:hover {
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.partner-logo {
  flex-shrink: 0;
}

.partner-logo img {
  display: block;
  max-width: 280px;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-name {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.partner-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}

.partner-cta:hover {
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .partner-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .partner-logo img {
    max-width: 220px;
    max-height: 120px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cards .card:nth-child(1).reveal.is-visible { transition-delay: 0.1s; }
.cards .card:nth-child(2).reveal.is-visible { transition-delay: 0.2s; }
.cards .card:nth-child(3).reveal.is-visible { transition-delay: 0.3s; }
.scripts-grid .script-card:nth-child(1).reveal.is-visible { transition-delay: 0.1s; }
.scripts-grid .script-card:nth-child(2).reveal.is-visible { transition-delay: 0.2s; }
.scripts-grid .script-card:nth-child(3).reveal.is-visible { transition-delay: 0.3s; }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.script-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
}
.script-card:hover {
  color: inherit;
  border-color: rgba(0, 212, 170, 0.25);
  transform: translateY(-3px);
}

.section-alt .script-card {
  background: var(--bg-elevated);
}

.script-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.script-card-thumb {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}
.script-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.script-cat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.script-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.script-card .script-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.script-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin: 0;
}

.script-card-links {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.script-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.script-link:hover {
  text-decoration: underline;
}

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-section .section-title,
.contact-section .section-desc {
  max-width: 32rem;
}

.contact-section .section-desc {
  margin-bottom: 1.5rem;
}

.contact-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  text-align: left;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-box:hover {
  border-color: rgba(0, 212, 170, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.contact-login-required {
  text-align: center;
  padding: 2rem;
}

.contact-login-msg {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-form .required {
  color: var(--accent);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8a96' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-feedback {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.contact-feedback.success {
  color: var(--accent);
}

.contact-feedback.error {
  color: #e57373;
}

.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-credit {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tablette et petit desktop */
@media (max-width: 900px) {
  .nav-links,
  .nav-auth {
    gap: 1.25rem;
  }

  .nav {
    gap: 1.25rem;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .contact-box {
    padding: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .header {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0;
  }

  .logo {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .nav {
    width: 100%;
    order: 2;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    justify-content: flex-start;
  }

  .nav-sep {
    display: none;
  }

  .nav-links,
  .nav-auth {
    gap: 0.6rem;
  }

  .nav a {
    font-size: 0.875rem;
    padding: 0.4rem 0.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav a:hover {
    transform: none;
  }

  .nav-user {
    font-size: 0.85rem;
    min-height: 44px;
    padding: 0.25rem 0;
  }

  .nav-username {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    padding: 5.5rem 1rem 2.5rem;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-code {
    width: 100%;
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-code code {
    word-break: break-all;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-desc {
    margin-bottom: 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1.25rem;
  }

  .scripts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .script-card {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .script-card-thumb {
    width: 72px;
    height: 72px;
  }

  .contact-section .section-desc {
    margin-bottom: 1rem;
  }

  .contact-box {
    padding: 1.25rem;
    margin-left: 0;
    margin-right: 0;
    border-radius: 10px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px; /* évite le zoom sur iOS */
    padding: 0.7rem 0.85rem;
  }

  .footer {
    padding: 1.25rem 1rem;
  }

  .footer p {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

/* Très petit écran */
@media (max-width: 380px) {
  .header {
    padding: 0.6rem 0.75rem;
  }

  .nav a {
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }
}

/* Pages secondaires (login, mes-tickets, admin) — mobile */
@media (max-width: 640px) {
  .login-page {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 3rem;
  }

  .login-box {
    padding: 1.25rem;
    max-width: none;
  }

  .login-box h1 {
    font-size: 1.1rem;
  }

  .login-error {
    font-size: 0.85rem;
    word-break: break-word;
  }

  .login-box input {
    font-size: 16px;
  }

  .page-wrap {
    padding: 1rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .page-header h1 {
    font-size: 1.25rem;
  }

  .page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .page-links a {
    margin-right: 0;
  }

  .ticket-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.85rem;
  }

  .ticket-id {
    min-width: 0;
  }

  .ticket-meta {
    padding: 0.85rem;
    font-size: 0.85rem;
  }

  .msg {
    padding: 0.85rem;
  }

  .msg .msg-head {
    flex-wrap: wrap;
  }

  .reply-form textarea {
    min-height: 100px;
    font-size: 16px;
  }

  .admin-wrap {
    padding: 1rem;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header h1 {
    font-size: 1.25rem;
  }

  .search-form input {
    max-width: none;
    width: 100%;
    font-size: 16px;
  }

  .ticket-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .ticket-card {
    padding: 1rem;
  }

  .ticket-card-head {
    flex-wrap: wrap;
  }
}
