/* ====== Base =============================================================== */
:root{
  --bg:#0b1220;        /* fond app */
  --panel:#0f172a;     /* carte/panel */
  --muted:#94a3b8;     /* texte secondaire */
  --text:#e5e7eb;      /* texte principal */
  --line:#334155;      /* bordures */
  --brand:#2563eb;     /* bouton principal */
  --brand-ghost:#3b82f6;
  --ok:#166534;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body.app{ margin:0; background:var(--bg); color:var(--text); font:16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial; }

.container{ max-width: 1100px; margin:0 auto; padding: 0 16px; }

/* ====== Topbar & Footer ==================================================== */
.topbar{ border-bottom:1px solid var(--line); position:sticky; top:0; background:rgba(11,18,32,0.85); backdrop-filter:saturate(120%) blur(6px); z-index:10; }
.row{ display:flex; justify-content:space-between; align-items:center; height:56px; }
.brand{ font-weight:700; letter-spacing:.2px; }
.nav .chip{ padding:8px 12px; border:1px solid var(--line); border-radius:999px; color:var(--text); text-decoration:none; }
.nav .chip.active{ background:var(--brand); border-color:var(--brand); color:#fff; }

.footer{ border-top:1px solid var(--line); margin-top:40px; padding:32px 0; }
.foot-grid{ display:grid; gap:16px; grid-template-columns: 2fr 1fr 1fr; }
.foot-title{ font-weight:600; margin-bottom:8px; }
.foot-list{ margin:0; padding-left:16px; }
.foot-bottom{ margin-top:14px; text-align:center; font-size:14px; }

/* ====== Typo & helpers ===================================================== */
.h1{ font-size: clamp(28px, 4vw, 40px); margin: 8px 0 6px; }
.lead{ color: var(--text); opacity: .95; }
.muted{ color: var(--muted); }
.page{ padding: 22px 0 32px; }
.divider{ border:0; border-top:1px solid var(--line); margin:22px 0; }

/* ====== Panels & cards ===================================================== */
.panel{ background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:16px; margin:18px 0; }
.badge{ display:inline-block; background:#0b1220; border:1px solid var(--line); padding:6px 10px; border-radius:999px; margin:6px 6px 0 0; color:var(--text); }

.spec-cards{ display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:12px; }
.spec-card{ background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px; }
.spec-title{ color:#fff; font-weight:600; margin-bottom:4px; }
.spec-meta{ color:#fff; opacity:.9; margin-bottom:6px; }

/* ====== Form ============================================================== */
.form .grid-2{ display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:12px; }
.field label{ display:block; margin-bottom:6px; color:#fff; }
input[type="file"], select{
  width:100%; display:block; background:#0b1220; color:#fff; border:1px solid var(--line);
  border-radius:10px; padding:10px 12px; outline:none;
}
.btn{ display:inline-block; background:var(--brand); color:#fff; border:none; padding:10px 16px;
  border-radius:10px; text-decoration:none; }
.btn:hover{ filter: brightness(1.05); }
.btn.lg{ padding:12px 18px; font-weight:600; }
.btn--ghost{ background: transparent; border:1px solid var(--line); color:#e2e8f0; }
.btn[aria-disabled="true"]{ background:#475569; cursor:not-allowed; }
.benefits{ margin-top:12px; }

/* ====== Steps / FAQ / checklist ========================================== */
.steps{ margin:0; padding-left:18px; }
.checklist{ margin:12px 0 0; padding-left:18px; color:#cbd5e1; }
.faq{ border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin:10px 0; }
.faq summary{ cursor:pointer; font-weight:600; }

/* ====== Result page (Avant/Après) ========================================= */
.result-wrap { max-width: 980px; margin: 0 auto; }
.result-head { margin-bottom: 12px; }
.preview-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.card-title { font-weight: 600; margin-bottom: 8px; }
.arrow { display:flex; align-items:center; justify-content:center; font-size: 24px; background: transparent; border: none; }
.photo-preview { width: 100%; max-width: 320px; height: auto; display: block; border-radius: 8px; border: 1px solid #1f2937; }
.processed-wrap { position: relative; display: inline-block; }
.watermark { position: absolute; inset: 0; display:flex; align-items:center; justify-content:center;
  font-weight:700; letter-spacing:2px; color: rgba(255,255,255,0.75);
  background: repeating-linear-gradient(45deg, rgba(0,0,0,0.10) 0 10px, rgba(0,0,0,0.20) 10px 20px);
  mix-blend-mode: lighten; border-radius: 8px; }
.cta-row { margin: 16px 0 8px; display:flex; gap:10px; flex-wrap: wrap; align-items:center; }
.pill { background:#334155; color:#e2e8f0; padding:6px 10px; border-radius:20px; font-size: 12px; }
.pill.success { background:var(--ok); color:#ecfdf5; }
.spec-box { margin-top: 16px; }
.spec-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:10px; }
.spec-grid > div { background:var(--panel); border:1px solid var(--line); border-radius: 10px; padding:10px; color:#e5e7eb; }

/* ====== Responsive ========================================================= */
@media (max-width: 900px) {
  .form .grid-2{ grid-template-columns: 1fr; }
  .spec-cards{ grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .arrow { display:none; }
  .photo-preview { max-width: 100%; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot-grid{ grid-template-columns: 1fr; }
}




.upload-box {
  background-color: rgba(255,255,255,0.03);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.text-gradient {
  background: linear-gradient(90deg, #5ac8fa, #007aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.example img {
  width: 100%;
  border-radius: 0.75rem;
}

.example.good img {
  border: 2px solid #28a745;
}

.example.bad img {
  border: 2px solid #dc3545;
}









/* === Lisibilité sur fonds clairs === */
.white-box, .info-card, .result-card, .highlight-section {
  background: #fff;
  color: #111 !important;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 1.2rem 1.5rem;
}

/* Texte principal sur fond clair */
.white-box h3, .info-card h3, .result-card h3 {
  color: #0a0a0a;
  font-weight: 600;
}
.white-box p, .info-card p, .result-card p {
  color: #333 !important;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Titres de section */
.section-title {
  color: #f5f5f5;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* === Boutons === */
.btn-primary {
  background: linear-gradient(90deg, #0066ff, #0099ff);
  color: #fff !important;
  border: none;
  font-weight: 600;
  transition: 0.3s ease;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #0052cc, #007acc);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.3);
  transition: 0.3s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

/* === Détails techniques === */
.tech-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.tech-details .item {
  flex: 1;
  min-width: 180px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: #fff;
  text-align: center;
  transition: 0.3s ease;
}
.tech-details .item:hover {
  background: rgba(255,255,255,0.15);
}
.tech-details .label {
  font-size: 0.9rem;
  opacity: 0.7;
}
.tech-details .value {
  font-weight: 600;
  font-size: 1.1rem;
}

/* === Zone “Partagez et gagnez” === */
.share-box {
  background: #fff8f0;
  color: #222 !important;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  border: 1px solid #ffe2b6;
}
.share-box h4 {
  color: #ff9800;
  font-weight: 600;
}
.share-box p {
  color: #444;
  margin-bottom: 1rem;
}
.share-box .btn-affiliate {
  background: #ffb74d;
  border: none;
  color: #fff;
  font-weight: 600;
}
.share-box .btn-affiliate:hover {
  background: #ff9800;
}
