/* TogoLink — site vitrine. Design system aligné sur les vraies apps mobiles
   (couleurs) et sur la maquette Claude Design "TogoLink redesign"
   (typographie, mise en page). Polices via Google Fonts (preconnect+swap). */

:root {
  --navy: #113674;
  --navy-dark: #0c2652;
  --green: #0a8604;
  --green-dark: #076b03;
  --green-light: #eaf6ec;
  --blue: #009add;
  --blue-light: #eaf0fa;
  --ink: #14181f;
  --ink-soft: #5b6472;
  --muted: #9aa3b2;
  --paper: #ffffff;
  --bg: #f7f8fa;
  --border: #e4e7ec;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 48px rgba(17, 54, 116, 0.14);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.7s ease both; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green); }

.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 1340px; margin: 0 auto; padding: 0 24px; }
.container-mid { max-width: 1340px; margin: 0 auto; padding: 0 24px; }

/* ---------- Logo ---------- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 42px; width: auto; }
.brand-logo-footer {
  height: 36px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.main-nav a.active, .main-nav a:hover { color: var(--navy); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--navy); }
.mobile-nav {
  display: none;
  padding: 8px 24px 24px;
  flex-direction: column;
  gap: 16px;
  font-size: 1rem;
  font-weight: 600;
  border-top: 1px solid var(--border);
  background: var(--paper);
}
.mobile-nav a { color: var(--ink-soft); }
.mobile-nav a.active { color: var(--navy); }
.mobile-nav.open { display: flex; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: 'Inter', sans-serif;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(10, 134, 4, 0.3); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { color: #fff; box-shadow: 0 8px 20px rgba(17, 54, 116, 0.3); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }

@media (max-width: 860px) {
  .main-nav, .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
}

/* ---------- Bandeau de page (sous-pages) ---------- */
.page-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.06) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  color: #fff;
  text-align: center;
  padding: clamp(56px, 8vw, 92px) 24px 76px;
}
.page-band .container-narrow { position: relative; }
.page-band h1 { color: #fff; margin: 0 0 18px; font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; }
.page-band p { color: #c4cedd; font-size: 1.05rem; line-height: 1.6; margin: 0; }
.band-overlap { position: relative; margin-top: -48px; z-index: 2; }
.band-overlap .card, .band-overlap .plan-card, .band-overlap .api-window,
.band-overlap .contact-form-card, .band-overlap .contact-info-card, .band-overlap .faq-item:first-child {
  box-shadow: 0 20px 44px rgba(17, 54, 116, 0.16);
}

/* ---------- Badge pill ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.badge-on-dark { background: rgba(255, 255, 255, 0.1); color: #fff; }
.badge-on-dark .dot { background: var(--green); }
.badge-green { background: var(--green-light); color: #237a2e; }
.badge-green .dot { background: var(--green); }
.badge-blue { background: var(--blue-light); color: var(--navy); }
.badge-blue .dot { background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.06) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  color: #fff;
}
.hero-container {
  max-width: 1340px;
  padding: clamp(72px, 11vw, 140px) 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.badge-below-title { margin-bottom: 22px; }
.hero p.lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #c4cedd;
  max-width: 520px;
  margin: 0 0 34px;
}
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--navy);
  padding: 12px 22px 12px 12px;
  border-radius: 999px;
}
.store-btn:hover { color: var(--navy); transform: translateY(-2px); }
.store-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.store-icon.play { background: var(--green); }
.store-icon.apple { background: var(--navy); }
.store-eyebrow { font-size: 0.7rem; color: var(--muted); line-height: 1.2; }
.store-label { font-size: 0.95rem; font-weight: 700; line-height: 1.2; }

/* ---------- Hero visual ---------- */
.hero-visual { position: relative; }
.hero-card { background: #fff; border-radius: 24px; box-shadow: 0 24px 60px rgba(0,0,0,0.28); padding: 20px; }
.hero-mockup-img { width: 100%; height: auto; display: block; border-radius: 20px; filter: drop-shadow(0 24px 48px rgba(0,0,0,0.35)); }
.hero-chip-label { font-size: 10px; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; }
.hero-chip-code { font-family: 'IBM Plex Mono', monospace; color: #fff; font-weight: 600; font-size: 17px; letter-spacing: 0.02em; }

/* ---------- Hero — ville avec codes TogoLink ---------- */
.hero-city {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  line-height: 0;
  border: 3px solid var(--green);
  box-shadow: 0 24px 60px rgba(10, 134, 4, 0.25), 0 0 0 8px rgba(10, 134, 4, 0.08);
}
.hero-city-img { width: 100%; height: auto; display: block; }
.hero-city::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,38,82,0.05) 0%, rgba(12,38,82,0.15) 60%, rgba(12,38,82,0.4) 100%);
  pointer-events: none;
}
.chip-tag {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #fff;
  color: var(--navy);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 5px 9px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  white-space: nowrap;
}
.chip-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50% 50% 50% 0;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(10, 134, 4, 0.3);
  animation: pinPulse 2.2s ease-in-out infinite;
}
.chip-tag.alt::after { background: var(--blue); box-shadow: 0 0 0 4px rgba(0, 154, 221, 0.3); animation-delay: 0.4s; }
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(10, 134, 4, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(10, 134, 4, 0.12); }
}

/* ---------- Sections ---------- */
section.block { padding: clamp(56px, 8vw, 96px) 0; }
section.block.alt { background: var(--paper); }
section.block.navy { background: var(--navy); color: #fff; }
.section-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  color: var(--navy);
  text-align: center;
  margin: 0 0 14px;
}
.section-title.on-navy { color: #fff; }
.section-lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-lead.on-navy { color: #c4cedd; }

/* ---------- Grilles de cartes ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 16px rgba(17, 54, 116, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon.pin { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.card-icon.pin .icon-dot { transform: rotate(45deg); }
.card-icon-green { background: var(--green-light); }
.card-icon-blue { background: var(--blue-light); }
.card-icon-navy { background: rgba(17, 54, 116, 0.08); }
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.15rem; font-weight: 700; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; }
.card-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.card-list li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; }
.card-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.card-step-label { font-weight: 800; font-size: 0.85rem; color: var(--green); margin-bottom: 20px; letter-spacing: 0.03em; }

/* Cartes colorées "pour tous / simplicité" */
.feature-card { border-radius: var(--radius); padding: 40px; }
.feature-card.green-tint { background: var(--green-light); }
.feature-card.blue-tint { background: var(--blue-light); }
.feature-card h3 { font-weight: 800; font-size: 1.4rem; color: var(--navy); margin: 0 0 12px; }
.feature-card p { color: #3a4150; font-size: 0.97rem; line-height: 1.7; margin: 0; }
.feature-icon-mark { width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--green); margin-bottom: 22px; }
.feature-icon-ring { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--navy); margin-bottom: 22px; display: flex; align-items: center; justify-content: center; }

/* ---------- Recalibrage / avant-après ---------- */
.split-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--paper); }
.split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px; align-items: center; }
.directory-card { background: #fff; border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); }
.directory-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--navy);
}
.directory-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avant-apres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.avant-card, .apres-card { border-radius: 18px; padding: 28px; }
.avant-card { background: var(--bg); }
.apres-card { background: var(--navy); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.avant-apres-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.avant-card .avant-apres-label { color: var(--muted); }
.apres-card .avant-apres-label { color: #7fbf8a; }
.avant-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; margin: 0; font-style: italic; }
.apres-code { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 1.6rem; color: #fff; background: rgba(255,255,255,0.08); padding: 12px 22px; border-radius: 12px; }

/* ---------- Standard vs personnalisé ---------- */
.plan-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; position: relative; }
.plan-card.highlight { border: 2px solid var(--green); }
.plan-badge { position: absolute; top: -14px; right: 28px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.plan-code { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 1.35rem; color: var(--navy); background: var(--bg); display: inline-block; padding: 8px 16px; border-radius: 10px; margin-bottom: 20px; }
.plan-card.highlight .plan-code { background: var(--green-light); }
.plan-note { font-size: 13px; font-weight: 700; color: var(--muted); }
.plan-note.accent { color: var(--green); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green); font-size: 20px; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; }

/* ---------- Legal pages ---------- */
.legal-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(17, 54, 116, 0.12);
  padding: clamp(28px, 5vw, 56px);
  max-width: 860px;
  margin: 0 auto;
}
.legal-content { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.8; }
.legal-content h1, .legal-content h2, .legal-content h3 { color: var(--navy); font-family: 'Plus Jakarta Sans', sans-serif; }
.legal-content h3 { font-size: 1.35rem; margin: 36px 0 14px; }
.legal-content h3:first-child { margin-top: 0; }
.legal-content h5 { color: var(--navy); margin-top: 28px; font-size: 1.02rem; }
.legal-content p { margin: 0 0 16px; }
.legal-content ul { padding-left: 22px; margin: 0 0 16px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { text-decoration: underline; }

/* ---------- CTA finale ---------- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); color: var(--navy); margin: 0 0 16px; }
.final-cta p { color: var(--ink-soft); margin: 0 0 28px; }
.final-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- API mockup (Développeurs) ---------- */
.api-window { background: var(--navy); border-radius: var(--radius); padding: 32px; box-shadow: 0 20px 48px rgba(17,54,116,0.18); }
.api-dots { display: flex; gap: 8px; margin-bottom: 20px; }
.api-dots span { width: 10px; height: 10px; border-radius: 50%; }
.api-code { font-family: 'IBM Plex Mono', monospace; font-size: 14px; line-height: 1.9; color: #b7c3d6; overflow-x: auto; }
.api-caption { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Formulaire de contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.contact-form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
}
.form-field textarea { resize: vertical; }
.contact-info-card { border-radius: var(--radius); padding: 32px; }
.contact-info-card.navy { background: var(--navy); color: #fff; }
.contact-info-card.paper { background: #fff; border: 1px solid var(--border); }
.contact-info-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.contact-info-card.navy .contact-info-label { color: #8fa0bb; }
.contact-info-card.paper .contact-info-label { color: var(--muted); }
.contact-info-value { font-size: 17px; font-weight: 700; }
.contact-info-card.navy .contact-info-value { color: #fff; }
.contact-info-card.paper .contact-info-value { color: var(--navy); }
.admin-success { background: var(--green-light); color: #237a2e; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); padding: 64px 0 32px; font-size: 0.9rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid p { color: #8fa0bb; font-size: 0.9rem; line-height: 1.6; margin: 0; }
.footer-heading { color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-links a, .footer-bottom-links a { color: #b7c3d6; }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: #7688a3;
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .split-grid, .hero-container { grid-template-columns: 1fr; }
}
