:root {
  --red-top: #f24b5a;
  --red-bottom: #ff8a8a;
  --linkedin-blue: #0a66c2;
  --card-width: 900px;
  --bg: #111827;
  --text-main: #111111;
  --text-muted: #333333;
  --panel-bg: #ffffff;
  --border-radius-card: 20px;
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2937, #020617);
  color: #e5e7eb;
}

.site-header {
  padding: 20px;
  text-align: center;
}

.logo-area {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.4rem;
}

.logo-dot {
  font-size: 1.6rem;
}

.logo-text {
  letter-spacing: 0.06em;
}

.tagline {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #9ca3af;
}

.main-layout {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 0 16px 40px;
}

.panel {
  background: var(--panel-bg);
  color: var(--text-main);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.panel-form h1 {
  margin-top: 0;
  font-size: 1.6rem;
}

.intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

form input[type="text"],
form textarea,
form input[type="file"],
select {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  font-family: inherit;
}

form textarea {
  resize: vertical;
  min-height: 48px;
}

small {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
}

.hint {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Étape 1 mise en avant */
.first-step strong {
  font-size: 1.02rem;
  color: var(--linkedin-blue);
}

.highlight-hint {
  color: #c0392b;
  font-weight: 600;
}

/* Boutons */

.btn-primary,
.btn-secondary,
.btn-outline {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--linkedin-blue);
  color: #fff;
}

.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-outline {
  border: 1px solid var(--linkedin-blue);
  color: var(--linkedin-blue);
  background: #fff;
  text-decoration: none;
}

.btn-primary:hover:enabled {
  background: #084c96;
}

.btn-outline:hover {
  background: #eff6ff;
}

.download-wrapper {
  margin-top: 12px;
  font-size: 0.9rem;
}

.download-wrapper a {
  color: var(--linkedin-blue);
  font-weight: 600;
}

.hidden {
  display: none;
}

.fun-stats {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #4b5563;
}

.panel-preview h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

/* CARD LINKEDIN STYLE */

.card {
  margin: 0 auto;
  width: 100%;
  max-width: var(--card-width);
  background: var(--red-bottom);
  border-radius: var(--border-radius-card);
  padding: 170px 40px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.card-top-wave {
  position: absolute;
  left: 50%;
  top: -220px;
  transform: translateX(-50%);
  width: 140%;
  height: 320px;
  background: var(--red-top);
  border-radius: 50%;
  pointer-events: none;
}

.card-avatar-zone {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.avatar-wrapper {
  position: relative;
  width: 190px;
  height: 190px;
  overflow: visible;
}

/* La photo seule, recadrée en rond */
.avatar-img {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

/* Le badge #NOTOPENTOWORK! par-dessus */
.badge-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  pointer-events: none;
}

.card-content {
  margin-top: 80px;
  text-align: center;
  color: #111111;
}

.card-content h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.card-content p {
  margin: 4px 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.card-punchline {
  margin-top: 8px;
}

.card-button-zone {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.fake-linkedin-button {
  border-radius: 999px;
  border: 2px solid var(--linkedin-blue);
  padding: 9px 24px;
  background: transparent;
  color: var(--linkedin-blue);
  font-size: 0.9rem;
  font-weight: 600;
}

.disclaimer {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
}

.badge-download {
  margin-top: 24px;
  font-size: 0.9rem;
}

.site-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
  padding: 16px;
}

/* Centrer le bouton "Inspire-moi une punchline" */
#btn-random-punchline {
  display: flex;
  margin: 20px auto 10px;
  justify-content: center;
  width: fit-content;
}

/* Responsive */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* Bloc support */
.support-block {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
  font-size: 0.9rem;
  color: #4b5563;
  text-align: center;
}

.support-block p {
  margin: 2px 0;
}

/* Générateur de badge profil */

.profile-badge-generator {
  margin-top: 40px;
  text-align: center;
}

.profile-badge-card {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge parfaitement centré, sans déformation */
.profile-badge-overlay {
  position: absolute;
  left: 49.7%;
  bottom: -15px;
  transform: translateX(-49.1%);
  width: 110%;
  height: auto;
  pointer-events: none;
}

/* Bouton flottant Buy Me a Coffee */

.floating-bmc {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #ffdd00;
  color: #000;
  padding: 10px 14px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform .2s ease, box-shadow .2s ease;
}

.floating-bmc img {
  width: 28px;
  height: 28px;
}

.floating-bmc:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.floating-bmc span {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .floating-bmc span {
    display: none;
  }
  .floating-bmc {
    padding: 12px;
    border-radius: 50%;
  }
}

/* Étape visuelle */
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 10px;
}

.step-number {
  background: var(--linkedin-blue);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

/* File input */
.step-upload input[type="file"] {
  margin-top: 8px;
}

/* Beau select moderne */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: #fff url("data:image/svg+xml;utf8,<svg fill='black' height='14' width='14' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,6 10,16 20,6'/></svg>") no-repeat right 12px center;
  background-size: 14px;

  padding: 10px 40px 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.92rem;
  cursor: pointer;
}

select:focus {
  border-color: var(--linkedin-blue);
  box-shadow: 0 0 0 2px rgba(10,102,194,0.25);
  outline: none;
}
/* Centrer le bouton "Génère automatiquement des métiers" */
#btn-random-jobs {
  display: flex;
  margin: 20px auto 10px;
  justify-content: center;
  width: fit-content;
}
/* Centrer le bouton de téléchargement */
#btn-generate {
  display: flex;
  margin: 25px auto 0;
  justify-content: center;
  width: fit-content;
}

.mobile-warning {
  display: none;
  background: #ffdddd;
  color: #a20000;
  padding: 12px 15px;
  margin-top: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-align: center;
}

/* Cache l'input natif */
.file-hidden {
  display: none;
}

/* Conteneur aligné */
.upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Beau bouton custom */
.btn-upload {
  display: inline-block;
  background: #0066c8;
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
  transition: background 0.2s ease-in-out;
}

.btn-upload:hover {
  background: #004f9e;
}

/* Texte sous le bouton */
.file-name {
  font-size: 0.85rem;
  color: #6b7280;
}

