/* =============================================
   CALIZEN — CSS GLOBAL
   Thème : Organique / Force / Minimalisme Zen
   ============================================= */

/* --- RESET & VARIABLES --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0d0d0d;
  --white:   #f5f0e8;
  --cream:   #ede8dc;
  --accent:  #c8f04d;   /* vert citron zen */
  --accent2: #4d9f6e;   /* vert forêt */
  --gray:    #6b6b6b;
  --card-bg: #161616;
  --border:  rgba(255,255,255,0.08);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --radius: 12px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- LOGO --- */
.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 3px;
  color: var(--white);
}
.logo span { color: var(--accent); }
.logo small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gray);
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- BOUTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  text-align: center;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent);
  color: var(--black);
}
.btn--primary:hover {
  background: #d4ff5a;
  box-shadow: 0 0 30px rgba(200,240,77,0.3);
  transform: translateY(-2px);
}

.btn--next, .btn--pay {
  background: var(--accent);
  color: var(--black);
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 16px;
}
.btn--next:hover, .btn--pay:hover {
  background: #d4ff5a;
  box-shadow: 0 0 20px rgba(200,240,77,0.25);
}

.btn--back {
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--border);
  padding: 14px 24px;
  border-radius: var(--radius);
}
.btn--back:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 50px;
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* --- LANGUE TOGGLE --- */
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 2px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: color var(--transition), border-color var(--transition);
}
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); }

.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__space {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid rgba(200,240,77,0.4);
  border-radius: 50px;
  transition: background var(--transition);
}
.nav__space:hover { background: rgba(200,240,77,0.1); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 30%, #1a2d1a 0%, #0d0d0d 60%);
}

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

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  position: relative;
  z-index: 10;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 48px 80px;
  max-width: 780px;
  position: relative;
  z-index: 10;
  animation: fadeUp 0.8s ease both;
}

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

.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 28px;
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(245,240,232,0.7);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gray);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  z-index: 10;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how {
  padding: 100px 48px;
  background: var(--cream);
  color: var(--black);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 60px;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  max-width: 500px;
  margin: -40px auto 48px;
  font-size: 1rem;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
}

.step__num {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent2);
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.step p { font-size: 0.9rem; color: #444; line-height: 1.7; }

.step__arrow {
  font-size: 2rem;
  color: var(--accent2);
  padding-top: 40px;
  flex-shrink: 0;
}

/* =============================================
   QUESTIONNAIRE
   ============================================= */
.questionnaire-section {
  padding: 100px 24px;
  background: var(--black);
}

.questionnaire-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.questionnaire-wrap .section-title { color: var(--white); }
.questionnaire-wrap .section-sub { color: var(--gray); }

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 12.5%;
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
  text-align: right;
  margin-bottom: 40px;
}

/* Form steps */
.form-step {
  display: none;
  animation: fadeUp 0.35s ease both;
}
.form-step.active { display: block; }

.step-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--white);
}

.step-hint {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 20px;
}

/* Form groups */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--white);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,240,77,0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ff5f5f;
}

.char-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray);
  display: block;
  text-align: right;
  margin-top: 4px;
}

/* Card options (radio) */
.card-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.card-options--row {
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}

.card-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.card-option {
  cursor: pointer;
}

.card-option__body {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.card-option input[type="radio"]:checked + .card-option__body {
  border-color: var(--accent);
  background: rgba(200,240,77,0.07);
  transform: scale(1.02);
}

.card-option__body:hover { border-color: rgba(200,240,77,0.4); }

.card-option__icon { font-size: 1.8rem; }
.card-option__label { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.card-option__desc { font-size: 0.75rem; color: var(--gray); }
.card-option__num { font-family: var(--font-display); font-size: 2rem; color: var(--accent); }

.card-option--small .card-option__body { padding: 14px 8px; }

/* Étapes Profil / Test de niveau */
.form-label { font-size: 0.9rem; font-weight: 600; margin: 22px 0 10px; color: var(--cream); }
.form-step > .step-hint + .form-label { margin-top: 0; }
.form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.form-row .form-group { margin-bottom: 0; }
.form-row input { width: 100%; }
.card-options--chips { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.card-options--chips .card-option__body { padding: 12px 8px; min-height: 52px; justify-content: center; }
.card-options--chips .card-option__label { font-size: 0.85rem; line-height: 1.3; text-align: center; }
.card-options--stack { grid-template-columns: 1fr; }
.card-options--stack .card-option__body { min-height: 0; padding: 12px 16px; align-items: flex-start; }
.card-options--stack .card-option__label { text-align: left; }

/* Checkbox options */
.checkbox-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  font-size: 0.95rem;
}

.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.checkbox-option:has(input:checked) { border-color: var(--accent); }
.checkbox-option:hover { border-color: rgba(200,240,77,0.4); }

/* Error messages */
.error-msg {
  display: block;
  color: #ff5f5f;
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 18px;
}

/* Step nav */
.step-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Recap */
.recap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.recap-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.recap-item:last-child { border-bottom: none; }
.recap-item__label { color: var(--gray); }
.recap-item__value { color: var(--white); font-weight: 600; }

/* Price box */
.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(200,240,77,0.07);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 1rem;
}
.price-box strong {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.payment-note {
  font-size: 0.8rem;
  color: var(--gray);
  text-align: center;
  margin-bottom: 4px;
}

/* Loader */
.loader {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
  color: var(--gray);
  font-size: 0.9rem;
}
.loader.active { display: flex; }

.loader__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(200,240,77,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   SUCCESS PAGE
   ============================================= */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at center, #0f1f0f 0%, #0d0d0d 70%);
}

.success-wrap {
  text-align: center;
  max-width: 500px;
  padding: 48px 24px;
  animation: fadeUp 0.6s ease both;
}

.success-icon {
  font-size: 4rem;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 24px;
  display: block;
}

.success-wrap h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 2px;
  margin: 16px 0;
}

.success-wrap p { color: rgba(245,240,232,0.7); margin-bottom: 32px; line-height: 1.8; }

.success-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
  text-align: left;
}

.success-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--gray);
}
.success-step span {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.success-step.done { color: var(--white); border-color: var(--accent2); }
.success-step.done span { color: var(--accent); }
.success-step.pending { border-color: var(--accent); color: var(--white); }

.spin { display: inline-block; animation: spin 1s linear infinite; }
.success-step.error { border-color: #ff5f5f; color: var(--white); }
.success-step.error span { color: #ff5f5f; }
.success-icon.spin { display: inline-block; animation: spin 1.4s linear infinite; }
.success-icon--error { color: #ff5f5f; }

/* =============================================
   ADMIN PAGE
   ============================================= */
.admin-page { background: #0a0a0a; min-height: 100vh; }

.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.admin-login__box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 360px;
  width: 100%;
  animation: fadeUp 0.5s ease both;
}

.admin-login__box h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 16px 0 24px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 32px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-card__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  letter-spacing: 1px;
}
.stat-card__label { font-size: 0.85rem; color: var(--gray); }

.admin-filters {
  display: flex;
  gap: 12px;
  padding: 0 32px 20px;
  flex-wrap: wrap;
}

.admin-search, .admin-select {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: var(--white);
  font-size: 0.9rem;
}
.admin-search { flex: 1; min-width: 200px; }
.admin-search:focus, .admin-select:focus { outline: none; border-color: var(--accent); }

.admin-table-wrap { padding: 0 32px 48px; overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--gray);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--white);
}

.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.table-loading { text-align: center; color: var(--gray); padding: 32px !important; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge--paid { background: rgba(77,159,110,0.2); color: #6ddb99; }
.badge--pending { background: rgba(200,240,77,0.15); color: var(--accent); }
.badge--failed { background: rgba(255,95,95,0.15); color: #ff5f5f; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--gray);
  font-size: 0.85rem;
}
.footer a { color: var(--accent); }
.footer a:hover { text-decoration: underline; }

/* =============================================
   PHOTOS UPLOAD
   ============================================= */
.photo-optional-badge {
  display: inline-block;
  background: rgba(200,240,77,0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.photo-privacy-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(77,159,110,0.08);
  border: 1px solid rgba(77,159,110,0.3);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(245,240,232,0.7);
  line-height: 1.6;
}
.photo-privacy-box span { font-size: 1.2rem; flex-shrink: 0; }

.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  margin-bottom: 16px;
}
.photo-upload-area:hover,
.photo-upload-area.drag-over {
  border-color: var(--accent);
  background: rgba(200,240,77,0.04);
}
.photo-upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.photo-upload-area p { color: var(--white); font-size: 0.95rem; margin-bottom: 4px; }
.photo-upload-hint  { color: var(--gray) !important; font-size: 0.8rem !important; }

.photo-previews {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.photo-preview {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--accent);
}
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-preview__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.photo-preview__remove:hover { background: #ff5f5f; }

.photo-preview__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.65rem;
  text-align: center;
  padding: 3px;
  font-family: var(--font-mono);
}

/* =============================================
   FIN PHOTOS UPLOAD
   ============================================= */

/* =============================================
   AFFILIATION — bandeau, espace créateur, admin créateurs
   ============================================= */
.ref-banner {
  display: inline-block;
  background: rgba(200,240,77,0.1);
  border: 1px solid rgba(200,240,77,0.35);
  color: var(--white);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.ref-banner strong { color: var(--accent); }

.admin-section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 1px;
  padding: 8px 32px 16px;
}
.admin-section-title small { font-family: var(--font-body); font-size: 0.85rem; color: var(--gray); letter-spacing: 0; }

.creator-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 0 32px 20px;
  align-items: end;
}
.creator-form input { width: 100%; }

.btn--small { padding: 6px 12px; font-size: 0.75rem; }
.badge { white-space: nowrap; }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

.notice {
  margin: 0 32px 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(200,240,77,0.35);
  background: rgba(200,240,77,0.08);
  font-size: 0.9rem;
  word-break: break-all;
}
.notice--error { border-color: rgba(255,95,95,0.4); background: rgba(255,95,95,0.08); }

.link-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 0 32px 24px;
}
.link-box input {
  flex: 1;
  min-width: 0;
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.tier {
  margin: 0 32px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.tier p { font-size: 0.9rem; color: rgba(245,240,232,0.8); margin-bottom: 12px; }
.tier strong { color: var(--accent); }
.tier__bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.tier__renew { margin: 12px 0 0 !important; font-size: 0.85rem !important; }
.tier__fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.6s ease; }

.auth-links { margin-top: 16px; font-size: 0.85rem; color: var(--gray); text-align: center; }
.auth-links a { color: var(--accent); cursor: pointer; }
.admin-login__box .btn { width: 100%; }
.admin-login__box p.auth-intro { color: rgba(245,240,232,0.7); font-size: 0.9rem; margin-bottom: 20px; }

/* =============================================
   ESPACE CLIENT (app.html)
   ============================================= */
.cz-app { background: var(--black); min-height: 100vh; }
.cz-center {
  min-height: 100vh; display: flex; flex-direction: column; gap: 16px;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.cz-muted { color: var(--gray); font-size: 0.9rem; }
.cz-code-input { font-family: var(--font-mono); font-size: 1.6rem !important; letter-spacing: 10px; text-align: center; }

.cz-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(13,13,13,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.cz-streak {
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 1px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 999px; padding: 2px 14px;
}
.cz-offline { background: rgba(200,240,77,0.12); color: var(--accent); font-size: 0.8rem; text-align: center; padding: 6px 16px; }

.cz-main { max-width: 640px; margin: 0 auto; padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }

.cz-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(22,22,22,0.97); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.cz-nav__btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; color: var(--gray); }
.cz-nav__btn span { font-size: 1.25rem; filter: grayscale(1); opacity: 0.7; }
.cz-nav__btn small { font-size: 0.7rem; }
.cz-nav__btn.active { color: var(--accent); }
.cz-nav__btn.active span { filter: none; opacity: 1; }

.cz-hello { font-size: 1.1rem; margin-bottom: 12px; }
.cz-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.cz-summary__day { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--accent); letter-spacing: 1px; }
.cz-summary__stat { text-align: right; }
.cz-summary__stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.cz-summary__stat small { color: var(--gray); font-size: 0.75rem; }
.cz-main > section > .tier__bar { margin-bottom: 20px; }
.cz-notice {
  background: rgba(200,240,77,0.08); border: 1px solid rgba(200,240,77,0.3);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-size: 0.9rem;
}

.cz-day { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.cz-day__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cz-day__title { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 0.5px; line-height: 1.1; margin-bottom: 6px; }
.cz-pill { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.cz-pill--training { background: rgba(200,240,77,0.15); color: var(--accent); }
.cz-pill--active_rest { background: rgba(77,159,110,0.2); color: #6ddb99; }
.cz-pill--rest { background: rgba(255,255,255,0.08); color: var(--cream); }
.cz-quote { border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; margin: 14px 0; color: rgba(245,240,232,0.85); font-style: italic; }
.cz-h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin: 20px 0 10px; }
.cz-h4 { font-size: 0.85rem; margin: 14px 0 6px; color: var(--cream); }
.cz-list { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; }
.cz-list li::marker { color: var(--accent); }

.cz-ex { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; background: rgba(255,255,255,0.02); }
.cz-ex__top { display: flex; align-items: center; gap: 10px; }
.cz-ex__num {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--black);
  font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
}
.cz-ex__name { font-size: 1.02rem; }
.cz-ex__meta { display: flex; gap: 14px; align-items: baseline; margin: 8px 0 4px 36px; }
.cz-ex__reps { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); letter-spacing: 1px; }
.cz-ex__details { margin-left: 36px; font-size: 0.9rem; }
.cz-ex__details summary { cursor: pointer; color: var(--gray); font-size: 0.85rem; padding: 4px 0; }
.cz-ex__details p { margin: 6px 0; }
.cz-ex__tuto { display: inline-block; margin: 6px 0 0 36px; color: var(--accent); font-size: 0.85rem; font-weight: 600; }

.cz-done-btn {
  width: 100%; margin-top: 20px; padding: 16px; font-size: 1rem; font-weight: 600;
  background: var(--accent); color: var(--black); border-radius: var(--radius);
}
.cz-done-btn.is-done { background: rgba(77,159,110,0.25); color: #6ddb99; }
.cz-link { color: var(--gray); font-size: 0.85rem; text-decoration: underline; padding: 10px 0; display: block; margin: 0 auto; }
.cz-back { margin: 0 0 12px; text-decoration: none; color: var(--accent); }

.cz-weektabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; }
.cz-weektab {
  flex: 1 0 auto; padding: 10px 14px; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
  background: var(--card-bg); border: 1px solid var(--border); color: var(--cream); white-space: nowrap;
}
.cz-weektab.active { background: var(--accent); color: var(--black); border-color: var(--accent); }
.cz-weektab.has-data:not(.active)::after { content: ' ✓'; color: var(--accent); }
.cz-weekinfo { margin-bottom: 16px; font-size: 0.92rem; display: flex; flex-direction: column; gap: 6px; }

.cz-dayrow {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 8px; color: var(--white);
}
.cz-dayrow__icon { font-size: 1.2rem; }
.cz-dayrow__txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cz-dayrow__txt strong { font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-dayrow__st { font-size: 0.72rem; color: var(--gray); white-space: nowrap; }
.cz-dayrow--today { border-color: var(--accent); }
.cz-dayrow--today .cz-dayrow__st { color: var(--accent); }
.cz-dayrow--done .cz-dayrow__st { color: #6ddb99; }
.cz-dayrow--missed .cz-dayrow__st { color: #ff8a8a; }

.cz-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 20px; }
.cz-stat { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.cz-stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--accent); line-height: 1.1; }
.cz-stat small { color: var(--gray); font-size: 0.8rem; }

.cz-chart { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 14px 6px; margin-bottom: 12px; }
.cz-chart__label { font-size: 0.8rem; color: var(--gray); margin-bottom: 6px; }
.cz-chart__svg { width: 100%; height: auto; display: block; }
.cz-chart__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cz-chart__dot { fill: var(--black); stroke: var(--accent); stroke-width: 2; }
.cz-chart__val { fill: var(--white); font-size: 10px; text-anchor: middle; font-family: var(--font-body); }
.cz-chart__axis { fill: var(--gray); font-size: 9px; text-anchor: middle; font-family: var(--font-body); }

.cz-measures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.cz-measures .form-group input { width: 100%; }
.cz-measures .btn { grid-column: 1 / -1; }

.cz-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; font-size: 0.95rem; }
.cz-card .cz-h3 { margin-top: 0; }
.cz-card p + p { margin-top: 8px; }
.cz-card--accent { border-color: rgba(200,240,77,0.4); }
.cz-card .btn { width: 100%; }
.cz-logout { width: 100%; margin-top: 8px; }

/* Navigation à 5 onglets */
.cz-nav { grid-template-columns: repeat(5, 1fr); }
.cz-nav__btn small { font-size: 0.66rem; }

/* Séance guidée (plein écran) */
.cz-noscroll { overflow: hidden; }
.cz-guided-btn { width: 100%; margin: 6px 0 4px; }
.cz-guided {
  position: fixed; inset: 0; z-index: 50; background: var(--black);
  display: flex; flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
}
.cz-guided__top { display: flex; align-items: center; gap: 14px; }
.cz-guided__bar { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.cz-guided__fill { height: 100%; width: 0; background: var(--accent); transition: width 0.4s ease; }
.cz-guided__close { color: var(--gray); font-size: 1.3rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); }
.cz-guided__body {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; max-width: 480px; width: 100%; margin: 0 auto; overflow-y: auto;
}
.cz-guided__kicker { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); }
.cz-guided__title { font-family: var(--font-display); font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.05; letter-spacing: 0.5px; }
.cz-guided__text { color: rgba(245,240,232,0.8); font-size: 1rem; line-height: 1.6; }
.cz-guided__hint { color: var(--gray); font-size: 0.85rem; }
.cz-guided__badge { background: rgba(255,95,95,0.15); color: #ff8a8a; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; }
.cz-guided__reps { font-family: var(--font-display); font-size: 6.5rem; line-height: 1; color: var(--accent); }
.cz-guided__unit { color: var(--gray); margin-top: -10px; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; }
.cz-guided__list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 1.1rem; }
.cz-guided__list li { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.cz-guided__main { width: 100%; padding: 18px; font-size: 1.1rem; margin-top: 8px; }
.cz-guided__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.cz-guided__trophy { font-size: 5rem; }
.cz-guided__ring {
  --p: 0;
  width: 220px; height: 220px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(closest-side, var(--black) 86%, transparent 87%),
    conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,0.08) 0);
}
.cz-guided__ring--rest { --accent: #6ddb99; }
.cz-guided__num { font-family: var(--font-display); font-size: 5rem; color: var(--white); }

/* Nutrition */
.cz-food-target { font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.cz-food-focus { margin: -4px 0 12px; }
.cz-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.cz-seg__btn { padding: 10px; border-radius: 8px; color: var(--gray); font-weight: 600; font-size: 0.9rem; }
.cz-seg__btn.active { background: rgba(200,240,77,0.15); color: var(--accent); }
.cz-meals { display: flex; flex-direction: column; gap: 12px; }
.cz-meal { display: flex; gap: 12px; align-items: flex-start; }
.cz-meal__icon { font-size: 1.3rem; width: 28px; text-align: center; }
.cz-meal__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cz-meal__txt small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }
.cz-meal__details { font-size: 0.85rem; color: rgba(245,240,232,0.7); }
.cz-meal__tip { font-size: 0.85rem; color: rgba(245,240,232,0.8); border-top: 1px solid var(--border); padding-top: 10px; }
.cz-food-today { margin-top: 12px; }
.cz-shop { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.cz-shop input { width: 20px; height: 20px; accent-color: var(--accent); flex: 0 0 auto; }
.cz-shop__txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cz-shop__price { font-size: 0.85rem; color: var(--cream); white-space: nowrap; }
.cz-shop.is-checked .cz-shop__txt strong { text-decoration: line-through; color: var(--gray); }
.cz-shop__total { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; }
.cz-shop__total strong { color: var(--accent); font-size: 1.1rem; }
.cz-shop__note { font-size: 0.75rem; margin-top: 6px; }
.cz-food-more summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.cz-cal-time input { width: 100%; background: var(--black); border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: var(--white); font-size: 1rem; }

/* Paiement manuel (pay.html) */
.pay-wrap { max-width: 480px; margin: 0 auto; padding: 28px 16px 48px; display: flex; flex-direction: column; gap: 16px; }
.pay-kicker { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-top: 8px; }
.pay-title { font-family: var(--font-display); font-size: 2.4rem; line-height: 1.05; }
.pay-amount { font-family: var(--font-display); font-size: 3.4rem; color: var(--accent); line-height: 1; }
.pay-methods { margin: 4px 0 0; }
.pay-step .cz-h3 { margin-top: 0; }
.pay-number { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 12px; }
.pay-number span { font-family: var(--font-mono); font-size: 1.4rem; letter-spacing: 0.5px; color: var(--white); white-space: nowrap; }
.pay-number .btn { flex: 0 0 auto; width: auto; }
.pay-name { font-size: 0.95rem; }
.pay-name strong { color: var(--accent); }
.pay-hint { font-size: 0.8rem; margin-top: 6px; }
.pay-step input { width: 100%; }
#txnId { font-family: var(--font-mono); letter-spacing: 1px; }
.pay-submit { width: 100%; padding: 16px; font-size: 1.05rem; }
.pay-optional { margin: 4px 0 16px; }
.pay-optional summary { cursor: pointer; color: var(--gray); font-size: 0.85rem; padding: 6px 0; }
.pay-optional[open] summary { margin-bottom: 10px; }
.pay-hours { font-size: 0.8rem; margin-top: 12px; text-align: center; }

/* Admin : paiements à vérifier */
.manual-count { display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: #ff5f5f; color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-align: center; vertical-align: middle; }
.manual-count.is-zero { background: rgba(255,255,255,0.1); color: var(--gray); }
.mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.5px; }

/* Étape 4 : partage, badges, classement */
.cz-share { display: flex; flex-direction: column; gap: 10px; }
.cz-share .btn { width: 100%; }
.cz-share .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cz-share__hint { font-size: 0.8rem; }
.cz-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.cz-badge {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; gap: 4px; opacity: 0.4; filter: grayscale(1);
}
.cz-badge.is-earned { opacity: 1; filter: none; border-color: rgba(200,240,77,0.45); }
.cz-badge__icon { font-size: 1.8rem; }
.cz-badge strong { font-size: 0.9rem; }
.cz-badge small { font-size: 0.75rem; color: var(--gray); }
.cz-community { margin-bottom: 20px; }
.cz-community__period { font-size: 0.8rem; margin: -4px 0 12px; }
.cz-community__you { font-weight: 600; color: var(--accent); margin: 12px 0; }
.cz-community .btn { width: 100%; }
.cz-community input { width: 100%; }
.cz-lb { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cz-lb__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); }
.cz-lb__row.is-me { background: rgba(200,240,77,0.12); border: 1px solid rgba(200,240,77,0.4); }
.cz-lb__rank { width: 28px; text-align: center; font-weight: 700; }
.cz-lb__name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-lb__score { font-size: 0.85rem; color: var(--gray); white-space: nowrap; }

.cz-month { margin-left: 8px; vertical-align: middle; }
.cz-renew { margin-bottom: 16px; }
.cz-renew p + .btn, .cz-renew p + p { margin-top: 12px; }
.cz-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cz-chip {
  padding: 12px 6px; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--cream);
}
.cz-chip.active { background: var(--accent); color: var(--black); border-color: var(--accent); }
.cz-bilan textarea {
  width: 100%; background: var(--black); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; color: var(--white); font-family: inherit; font-size: 0.95rem; resize: vertical;
}
.cz-pay { width: 100%; margin-top: 8px; }

.cz-toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  background: var(--white); color: var(--black); font-weight: 600; font-size: 0.9rem;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); max-width: 90vw; text-align: center;
}

/* =============================================
   UTILITIES
   ============================================= */
.hidden { display: none !important; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .hero__content { padding: 32px 24px 60px; }
  .how { padding: 60px 24px; }
  .step__arrow { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .questionnaire-section { padding: 60px 20px; }
  .admin-stats { padding: 20px; }
  .admin-filters { padding: 0 20px 16px; }
  .admin-table-wrap { padding: 0 20px 40px; }
  .admin-header { padding: 16px 20px; }
  .admin-section-title, .creator-form { padding-left: 20px; padding-right: 20px; }
  .notice, .link-box, .tier { margin-left: 20px; margin-right: 20px; }
  .link-box { flex-direction: column; }
  .admin-login__box { padding: 32px 24px; margin: 0 16px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card__num { font-size: 1.7rem; }
  .stat-card__label { font-size: 0.75rem; }
}