/* ============================================
   ArtiWeb — Site vitrine agence
   ============================================ */

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

:root {
  --primary: #0f172a;
  --accent: #f59e0b;
  --dark: #1a202c;
  --gray: #64748b;
  --light: #f8fafc;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

.container { max-width: none; margin: 0 auto; padding: 0 clamp(22px, 5vw, 80px); }

h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }

.section { padding: 70px 0; }
.section-alt { background: var(--light); }
.section-sub { color: var(--gray); margin-bottom: 36px; max-width: 640px; }

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-dark { background: var(--primary); color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--dark); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-sub { font-size: 1.18rem; opacity: 0.9; max-width: 640px; margin: 22px auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ===== Portfolio démos ===== */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 01/10 : auto-fill, sinon 1 ou 2 cartes s étiraient sur toute la largeur */
  gap: 28px;
}
.demo-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.demo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.03em;
}
.demo-badge-gold { background: linear-gradient(135deg, #b8860b, #daa520); }
.demo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.demo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--light);
  border-bottom: 1px solid #e2e8f0;
}
.demo-frame iframe {
  width: 400%;
  height: 400%;
  transform: scale(0.25);
  transform-origin: 0 0;
  border: 0;
  pointer-events: none;
}
.demo-meta { padding: 18px 20px; }
.demo-meta h3 { font-size: 1.1rem; margin-bottom: 2px; }
.demo-sub { color: var(--gray); font-size: 0.85rem; margin-bottom: 8px; }

/* Chips de filtre métier */
.metier-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.chip {
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: var(--dark);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.demo-meta a { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.demo-note { text-align: center; margin-top: 28px; color: var(--gray); }

/* ===== Process ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 36px;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--gray); font-size: 0.95rem; }

/* ===== Tarifs ===== */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.price-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 32px 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.price-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
  position: relative;
}
.price-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 16px;
  border-radius: 50px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.2rem; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.price span { font-size: 1rem; color: var(--gray); font-weight: 500; }
.price-card ul { list-style: none; margin: 14px 0 20px; }
.price-card li { padding: 5px 0; font-size: 0.95rem; color: #334155; }
.tier-job { font-size: 0.92rem; font-style: italic; color: var(--gray); margin: 2px 0 6px; }
.price-prestige .tier-job { color: #b8860b; font-weight: 600; font-style: normal; }
.li-grp { margin-top: 10px; font-size: 0.72rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; padding-bottom: 2px !important; }
.li-note { color: var(--gray); font-size: 0.86em; }
.price-note { font-size: 0.82rem; color: var(--gray); }
.pricing-signature {
  text-align: center;
  margin-top: 32px;
  color: var(--gray);
  font-size: 0.95rem;
  background: var(--light);
  border-radius: 50px;
  padding: 12px 24px;
}
.pricing-signature a { color: var(--accent); font-weight: 600; }

/* ===== Vérificateur domaine ===== */
.domain-box { text-align: center; }
.domain-box .section-sub { margin-left: auto; margin-right: auto; }
.domain-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 560px;
  margin: 0 auto;
}
.domain-form input, .domain-form select {
  padding: 13px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
}
.domain-form input { flex: 1; min-width: 200px; }
.domain-form input:focus { border-color: var(--accent); }
.domain-result { margin-top: 20px; font-size: 1.05rem; min-height: 1.6em; }
.domain-ok { color: #15803d; font-weight: 600; }
.domain-ko { color: #b91c1c; }
.domain-result a { color: var(--accent); }

/* ===== Formulaire maquette ===== */
.maquette { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; text-align: center; }
.maquette .section-sub { color: #cbd5e1; margin-left: auto; margin-right: auto; }
.lead-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row input { flex: 1; min-width: 200px; }
.lead-form input {
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  width: 100%;
}
.form-note { font-size: 0.82rem; color: #94a3b8; }

/* Section optionnelle du formulaire maquette */
.lead-more { text-align: left; background: rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 14px 18px; }
.lead-more summary { cursor: pointer; font-weight: 600; color: #fbbf24; font-size: 0.95rem; }
.lead-more summary span { color: #94a3b8; font-weight: 400; }
.lead-more-fields { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.lead-more select, .lead-more textarea {
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  color: var(--dark);
}
.lead-more select:invalid { color: #64748b; }
.lead-more-photos { font-size: 0.88rem; color: #cbd5e1; }
.lead-more-photos a { color: #fbbf24; font-weight: 700; }

/* ===== FAQ ===== */
.faq { max-width: 720px; }
.faq details {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 12px;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--gray); font-size: 0.95rem; }

/* ===== CTA final ===== */
.final-cta { background: var(--light); text-align: center; }
.final-cta p { color: var(--gray); margin-bottom: 26px; font-size: 1.1rem; }
.final-cta .btn-outline { border-color: var(--primary); color: var(--primary); }

/* ===== Footer ===== */
.footer { background: var(--primary); color: #cbd5e1; padding: 28px 0; font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; row-gap: 8px; }
  .nav { display: flex; order: 3; flex-basis: 100%; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: .9rem; border-top: 1px solid #eee; padding-top: 8px; margin-top: 2px; }
  .section { padding: 50px 0; }
  .hero { padding: 70px 0; }
}

/* Bouton "Voir plus" du portfolio */
.demo-more-btn { display: block; margin: 30px auto 0; cursor: pointer; background: #fff; border: 2px solid var(--primary); color: var(--primary); }
.demo-more-btn:hover { background: var(--primary); color: #fff; }

/* Carte Prestige + badges */
.price-prestige { border: 2px solid #daa520; position: relative; }
.tag-gold { background: linear-gradient(135deg, #b8860b, #daa520) !important; }
.abo-tag { font-size: 0.7rem; background: var(--light); color: var(--gray); padding: 2px 8px; border-radius: 50px; font-weight: 600; vertical-align: middle; }

.card-eg{display:inline-block;margin-top:14px;font-size:.92rem;font-weight:700;color:var(--accent);transition:opacity .2s}
.card-eg:hover{opacity:.7}

.demo-frame{display:block}
.demo-thumb{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}
.demo-tier{position:absolute;top:12px;left:12px;z-index:2;font-size:.72rem;font-weight:700;padding:4px 13px;border-radius:50px;letter-spacing:.03em;color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.tier-ess{background:#475569}
.tier-pro{background:var(--accent)}
.tier-prestige{background:linear-gradient(135deg,#b8860b,#daa520)}

/* ===== Catalogue modèles par forfait ===== */
.forfait-group{margin-bottom:40px}
.forfait-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:18px;padding-bottom:10px;border-bottom:2px solid #e2e8f0}
.forfait-head h3{font-size:1.4rem;margin:0}
.forfait-head .fp{font-weight:700;color:var(--accent)}
.forfait-head .fd{color:var(--gray);font-size:.9rem}
.model-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}
.model-card{border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;background:#fff;text-decoration:none;color:inherit;display:block;transition:transform .15s,box-shadow .15s}
.model-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.model-thumb{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top center;display:block;border-bottom:1px solid #e2e8f0}
.model-name{padding:11px 14px;font-weight:700;font-size:.98rem;display:flex;align-items:center;justify-content:space-between;gap:8px}
.model-name .go{color:var(--accent);font-size:.82rem;font-weight:600;white-space:nowrap}
/* Onglets forfait */
.forfait-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.ftab{border:1.5px solid #e2e8f0;background:#fff;color:var(--dark);padding:10px 18px;border-radius:50px;font-weight:700;cursor:pointer;transition:all .15s;font-size:.92rem}
.ftab small{font-weight:500;opacity:.7;margin-left:3px}
.ftab:hover{border-color:var(--accent)}
.ftab.on{background:var(--primary);border-color:var(--primary);color:#fff}
.ftab.on-pro.on{background:var(--accent);border-color:var(--accent)}
.ftab.on-prestige.on{background:linear-gradient(135deg,#b8860b,#daa520);border-color:#b8860b}
/* Nom du modèle sur la carte exemple */
.demo-modele{display:inline-block;font-size:.76rem;font-weight:700;color:var(--primary);background:#f1f5f9;border:1px solid #e2e8f0;padding:3px 11px;border-radius:50px;margin-bottom:8px}

/* 20/10/2026 — téléphone : l en-tête ne reste plus collé (il mangeait ~1/5 de l écran) et le menu tient sur UNE ligne qui défile */
@media (max-width: 768px) {
  .header { position: static; }
  .nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
}
