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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f6fa;
  color: #0f172a; /* bleu nuit doux */
  min-height: 100vh;
}

.container {
  max-width: 560px;
  margin: 60px auto;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.center {
  text-align: center;
}

.logo {
  width: 120px;
  margin-bottom: 24px;
}

h1, h2 {
  margin-bottom: 12px;
}

p {
  margin-bottom: 24px;
  color: #666;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: #f5a623; /* orange Certigo */
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.btn:hover {
  background: #d18a16;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: #0b1e36; /* bleu foncé Certigo */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f9fafb;
}

.nav-brand {
  font-weight: 700;
  font-size: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 32px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user {
  font-size: 14px;
}

.navbar .btn {
  background: #f5a623;
}

.navbar .btn:hover {
  background: #d18a16;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input[type="url"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
}

input[type="url"]:focus {
  outline: none;
  border-color: #0078d4;
}

.result {
  margin-top: 32px;
  text-align: center;
}

.result img {
  max-width: 300px;
  margin-bottom: 16px;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}

.link-preview {
  font-size: 12px;
  word-break: break-all;
  color: #888;
}

.error {
  margin-top: 16px;
  padding: 12px;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 6px;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .container {
    margin: 24px 12px;
    padding: 24px 16px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-left {
    width: 100%;
  }

  .nav-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .logo {
    width: 140px;
  }
}
