/* Hader — site public (page d'accueil marketing) */
:root {
  --navy: #0B2545;
  --navy2: #13315C;
  --teal: #1C7293;
  --gold: #D4A017;
  --light-bg: #F4F6F9;
  --ink: #0B2545;
  --muted: #6B7280;
  --card: #FFFFFF;
  --border: #E3E7EE;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(212, 160, 23, 0.35);
}
.btn-gold:hover { background: #e3ac1c; }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy2); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 37, 69, 0.96);
  backdrop-filter: blur(6px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-brand .dot { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy2) 55%, var(--teal) 130%);
  color: #fff;
  padding: 84px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.18) 0%, rgba(212,160,23,0) 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.7rem;
  line-height: 1.18;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero h1 span { color: var(--gold); }
.hero p.lead {
  font-size: 1.14rem;
  color: rgba(255,255,255,0.86);
  margin: 0 auto 34px;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 0;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
}
.stat-item .label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- Section shell ---------- */
section { padding: 76px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: 2rem;
  margin: 0 0 12px;
  color: var(--navy);
  font-weight: 800;
}
.section-head p {
  color: var(--muted);
  font-size: 1.03rem;
  margin: 0;
}
.section-alt { background: var(--light-bg); }

/* ---------- Features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(11, 37, 69, 0.09);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon img { width: 26px; height: 26px; }
.feature-icon.navy { background: var(--navy); }
.feature-icon.teal { background: var(--teal); }
.feature-icon.gold { background: var(--gold); }
.feature-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--navy);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Screenshots showcase ---------- */
.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 46px 0;
  border-bottom: 1px solid var(--border);
}
.showcase-item:last-child { border-bottom: none; }
.showcase-item.reverse .showcase-text { order: 2; }
.showcase-item.reverse .showcase-img { order: 1; }
.showcase-img {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(11, 37, 69, 0.16);
  border: 1px solid var(--border);
}
.showcase-text .eyebrow { margin-bottom: 12px; }
.showcase-text h3 {
  font-size: 1.55rem;
  color: var(--navy);
  margin: 0 0 14px;
  font-weight: 800;
}
.showcase-text p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 18px;
}
.showcase-text ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.showcase-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.94rem;
  color: var(--ink);
}
.showcase-text ul li img { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }

/* ---------- Trust / security ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-card {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 28px 24px;
}
.trust-card .feature-icon { background: rgba(255,255,255,0.12); }
.trust-card h3 { color: #fff; font-size: 1.05rem; margin: 0 0 8px; }
.trust-card p { color: rgba(255,255,255,0.72); font-size: 0.9rem; margin: 0; }

/* ---------- Pricing / tarifs ---------- */
.pricing-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 46px 44px;
  text-align: center;
}
.pricing-card h3 {
  font-size: 1.5rem;
  margin: 0 0 10px;
}
.pricing-card p {
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin: 0 auto 26px;
}
.pricing-points {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.pricing-points span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-points img { width: 16px; height: 16px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.contact-info h2 {
  font-size: 1.9rem;
  color: var(--navy);
  margin: 0 0 14px;
  font-weight: 800;
}
.contact-info p { color: var(--muted); margin: 0 0 26px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.94rem;
}
.contact-detail .icon-dot {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail .icon-dot img { width: 17px; height: 17px; }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 18px 40px rgba(11, 37, 69, 0.08);
}
.contact-form .field { margin-bottom: 16px; }
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--light-bg);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { width: 100%; text-align: center; padding: 13px; }

.flash-list { list-style: none; margin: 0 0 18px; padding: 0; }
.flash {
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.flash-success { background: #E4F5E9; color: #1E7A3C; border: 1px solid #BEE6CB; }
.flash-danger { background: #FBE7E7; color: #B42323; border: 1px solid #F2C4C4; }
.flash-info { background: #E8F0FC; color: #1C4E9F; border: 1px solid #C8DAF6; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 46px 0 26px;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand span { color: var(--gold); }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ---------- Legal pages (CGU / confidentialité) ---------- */
.legal-hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy2) 60%, var(--teal) 130%);
  color: #fff;
  padding: 56px 0 46px;
  text-align: center;
}
.legal-hero h1 { font-size: 2rem; margin: 0 0 8px; font-weight: 800; }
.legal-hero p { color: rgba(255,255,255,0.75); margin: 0; }

.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.legal-meta {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}
.legal-disclaimer {
  background: #FFF7ED;
  border: 1px solid #FDE7C7;
  color: #92400E;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 40px;
}
.legal-content h2 {
  color: var(--navy);
  font-size: 1.35rem;
  margin: 42px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  color: var(--navy);
  font-size: 1.08rem;
  margin: 26px 0 10px;
}
.legal-content p {
  color: #374151;
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 14px;
}
.legal-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: #374151;
}
.legal-content ul li { margin-bottom: 8px; font-size: 0.98rem; line-height: 1.6; }

/* ---------- Language switch : floating corner button ---------- */
.lang-fab {
  position: fixed;
  top: 18px;
  inset-inline-end: 20px;
  z-index: 200;
}
.lang-fab-details { position: relative; }
.lang-fab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(11, 37, 69, 0.28);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border: 1px solid var(--border);
}
.lang-fab-btn::-webkit-details-marker { display: none; }
.lang-fab-btn::marker { content: ""; display: none; }
.lang-fab-btn:hover { box-shadow: 0 8px 24px rgba(11, 37, 69, 0.36); }
.lang-fab-icon { font-size: 1rem; line-height: 1; }
.lang-fab-code { letter-spacing: 0.03em; }
.lang-fab-chevron { color: var(--muted); font-size: 0.75rem; transition: transform 0.15s ease; }
.lang-fab-details[open] .lang-fab-chevron { transform: rotate(180deg); }
.lang-fab-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(11, 37, 69, 0.22);
  padding: 6px;
  min-width: 132px;
}
.lang-fab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.lang-fab-item:hover { background: var(--light-bg); }
.lang-fab-item.active { color: var(--teal); background: rgba(28, 114, 147, 0.08); }
@media (max-width: 520px) {
  .lang-fab { top: 12px; inset-inline-end: 12px; }
  .lang-fab-btn { padding: 7px 11px; font-size: 0.8rem; }
}

/* ---------- RTL (arabe) ---------- */
html[dir="rtl"] body {
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .showcase-text ul li,
html[dir="rtl"] .pricing-points span,
html[dir="rtl"] .contact-detail,
html[dir="rtl"] .footer-col a {
  text-align: right;
}
html[dir="rtl"] .contact-form label { text-align: right; }
html[dir="rtl"] .legal-content,
html[dir="rtl"] .legal-content * {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .showcase-item, .showcase-item.reverse { grid-template-columns: 1fr; }
  .showcase-item.reverse .showcase-text,
  .showcase-item.reverse .showcase-img { order: initial; }
  .contact-grid { grid-template-columns: 1fr; }
  .pricing-points { gap: 16px; }
}
@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 0 60px; }
  .hero h1 { font-size: 1.7rem; }
  section { padding: 54px 0; }
  .pricing-card { padding: 34px 22px; }
  .contact-form { padding: 22px; }
}
