/* URLMR — raccourcisseur de liens (inspiré shrtlink) */

:root {
  --bg-deep: #0c1118;
  --bg-card: #141b24;
  --bg-input: #0e141c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf4;
  --text-muted: #8b9bb0;
  --accent: #3dd6c3;
  --accent-dim: rgba(61, 214, 195, 0.15);
  --accent-hover: #52e8d4;
  --danger: #f07178;
  --radius: 14px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: #1f2937;
  background: #f3f4f6;
}

a {
  color: #0d9488;
  text-decoration: none;
}

a:hover {
  color: #0f766e;
}

/* —— Header (style shrtlink : barre blanche, menu + langue) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #111827;
}

.logo-header:hover {
  color: #111827;
}

.logo-header .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-header .logo-mark svg {
  display: block;
}

.logo-text {
  color: #111827;
}

.nav-main {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li > a {
  color: #4b5563;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.nav-links > li > a:hover {
  color: #111827;
}

.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4b5563;
}

.nav-dropdown-trigger:hover {
  color: #111827;
}

.nav-caret {
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  z-index: 200;
}

.nav-dropdown[hidden] {
  display: none !important;
}

.nav-dropdown--right {
  left: auto;
  right: 0;
}

.nav-dropdown a,
.nav-dropdown-option {
  display: block;
  width: 100%;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  color: #374151;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.nav-dropdown a:hover,
.nav-dropdown-option:hover {
  background: #f9fafb;
  color: #111827;
}

.nav-dropdown-sep {
  height: 1px;
  margin: 0.4rem 0;
  background: #e5e7eb;
  list-style: none;
  padding: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-lang-trigger {
  gap: 0.45rem;
}

.nav-globe {
  flex-shrink: 0;
  opacity: 0.85;
}

.main-surface {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 2.25rem;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-brand-accent {
  color: #2563eb;
}

.hero-brand-rest {
  color: #111827;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  color: #111827;
}

.hero-tagline {
  margin: 0;
  color: #6b7280;
  font-size: 1.05rem;
  max-width: 36ch;
  margin-inline: auto;
}

.metrics-block {
  margin-top: 3rem;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.metrics-block h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: #111827;
}

.metrics-block p {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

.metrics-more-wrap {
  margin: 1rem 0 0;
}

.metrics-more-link {
  font-weight: 600;
  font-size: 0.95rem;
}

.subpage-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.75rem;
}

.subpage-lead {
  margin: 0 0 1.75rem;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.65;
}

.metrics-stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.metrics-stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: #0d9488;
  line-height: 1.1;
  margin: 0 0 0.35rem;
}

.metrics-stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.35rem;
}

.metrics-stat-hint {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
}

.tool-result-box {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  word-break: break-all;
  font-size: 0.95rem;
  color: #111827;
}

.tool-result-box a {
  color: #0d9488;
  font-weight: 500;
}

.qr-canvas-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.qr-canvas-wrap canvas {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.report-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-of-type {
  margin-bottom: 1.5rem;
}

.card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.input-wrap {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  background: #f9fafb;
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-size: 0.85rem;
  color: #6b7280;
  border-right: 1px solid #e5e7eb;
  white-space: nowrap;
}

input[type="url"],
input[type="text"] {
  flex: 1;
  width: 100%;
  border: none;
  background: transparent;
  color: #111827;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  outline: none;
}

.card textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  color: #111827;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  outline: none;
  resize: vertical;
  min-height: 88px;
}

.card textarea:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

input::placeholder {
  color: #9ca3af;
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.result-panel {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: none;
}

.result-panel.visible {
  display: block;
}

.result-panel h2 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0 0 1rem;
}

.short-url-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.short-url {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.95rem;
  word-break: break-all;
  padding: 0.65rem 0.9rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  color: #0d9488;
}

.btn-ghost {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-ghost:hover {
  background: #f3f4f6;
  border-color: #0d9488;
}

.msg {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.msg.visible {
  display: block;
}

.msg.error {
  background: rgba(240, 113, 120, 0.12);
  border: 1px solid rgba(240, 113, 120, 0.35);
  color: #ffb4b8;
}

.msg.success {
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.35);
  color: #0f766e;
}

.features {
  margin-top: 4rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: #111827;
}

.feature p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

/* —— Contact (style type landing « Get in touch ») —— */
.contact-section {
  background: #0b0e14;
  color: #f9fafb;
  padding: 4rem 1.5rem 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #fff;
}

.contact-lead {
  margin: 0 0 2rem;
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 40ch;
}

.contact-details {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-details li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.5;
}

.contact-details strong {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-details a {
  color: #a5b4fc;
}

.contact-details a:hover {
  color: #c7d2fe;
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #5850ec;
  color: #fff;
  display: grid;
  place-items: center;
}

.follow-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin: 0 0 0.75rem;
}

.social-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.social-btn:hover {
  background: rgba(88, 80, 236, 0.25);
  border-color: rgba(88, 80, 236, 0.5);
  color: #fff;
}

.contact-form-wrap {
  background: #242b3d;
  border-radius: 16px;
  padding: 1.75rem 1.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.contact-field {
  margin-bottom: 1.15rem;
}

.contact-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 0.45rem;
  text-transform: none;
  letter-spacing: 0;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(15, 18, 28, 0.65);
  color: #f3f4f6;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #6b7280;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(88, 80, 236, 0.55);
  box-shadow: 0 0 0 3px rgba(88, 80, 236, 0.15);
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-contact-send {
  width: 100%;
  margin-top: 0.25rem;
  border: none;
  border-radius: 10px;
  padding: 0.95rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: #5850ec;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-contact-send:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-contact-send:active {
  transform: translateY(0);
}

.contact-form-msg {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.contact-form-msg[hidden] {
  display: none !important;
}

.site-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: #07090d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copy {
  font-size: 0.85rem;
  color: #9ca3af;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-social-link {
  color: #6b7280;
  display: grid;
  place-items: center;
  transition: color 0.15s ease;
}

.footer-social-link:hover {
  color: #a5b4fc;
}

@media (max-width: 900px) {
  .nav-main {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 0.5rem 1rem;
  }

  .nav-links > li > a,
  .nav-dropdown-trigger {
    font-size: 0.85rem;
  }

  .input-wrap {
    flex-direction: column;
  }

  .input-prefix {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    justify-content: center;
    padding: 0.5rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
