/* Mzaka — site vitrine. Couleurs de l'app : ocre #D59344, bleu nuit #031735, anthracite #363636. */
:root {
  --ochre: #D59344;
  --ochre-dark: #A9691F;
  --ochre-soft: #F6E7D2;
  --navy: #031735;
  --navy-2: #0B2A52;
  --ink: #1F2430;
  --muted: #5B6170;
  --sand: #FBF7F1;
  --line: #ECE2D3;
  --white: #FFFFFF;
  --success: #1E8A5B;
  --danger: #C0392B;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(3, 23, 53, .08);
  --shadow-lg: 0 24px 60px rgba(3, 23, 53, .16);
  --font-head: "Quicksand", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ochre-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; color: var(--muted); }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
/* navy text on ochre: readable (white on ochre is not) */
.btn-primary { background: var(--ochre); color: var(--navy); box-shadow: 0 6px 18px rgba(213, 147, 68, .35); }
.btn-primary:hover { background: #DFA25A; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .12em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:not(.btn):hover { color: var(--ochre-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(1100px 500px at 90% -10%, var(--ochre-soft), transparent 60%),
    linear-gradient(180deg, var(--sand), #fff);
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--font-head); font-weight: 700; color: var(--ochre-dark); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; margin-bottom: 14px; }
.accent { color: var(--ochre-dark); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; }
.hero-proof li::before { content: "✓"; color: var(--success); font-weight: 700; margin-right: 8px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 290px; border-radius: 40px; padding: 12px; background: var(--navy);
  box-shadow: var(--shadow-lg); position: relative; transform: rotate(-2deg);
}
.phone-notch { width: 110px; height: 22px; background: var(--navy); border-radius: 0 0 14px 14px; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2; }
.phone-screen { background: #fff; border-radius: 30px; padding: 34px 16px 18px; min-height: 540px; font-size: .82rem; }
.app-bar { background: #363636; color: #fff; border-radius: 12px; padding: 10px 12px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.app-bar b { color: var(--ochre); }
.app-status { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; font-weight: 600; color: var(--navy); }
.app-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #2E86DE; box-shadow: 0 0 0 4px rgba(46, 134, 222, .18); }
.app-progress { height: 7px; background: #EEE7DC; border-radius: 99px; overflow: hidden; }
.app-progress div { height: 100%; background: var(--ochre); border-radius: 99px; }
.app-caption { color: var(--muted); font-size: .75rem; margin: 6px 0 10px; }
.app-steps { list-style: none; padding: 0; margin: 0 0 12px; }
.app-steps li { position: relative; padding: 5px 0 5px 24px; color: var(--muted); }
.app-steps li::before { content: ""; position: absolute; left: 0; top: 9px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #D5CCBE; background: #fff; }
.app-steps li.done { color: var(--ink); }
.app-steps li.done::before { background: var(--success); border-color: var(--success); }
.app-steps li.current { color: var(--navy); font-weight: 600; }
.app-steps li.current::before { border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(213, 147, 68, .25); }
.app-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.app-photos span { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, #C9B79C, #8C7A62); position: relative; overflow: hidden; }
.app-photos span:nth-child(2) { background: linear-gradient(135deg, #B8A387, #6F5E4A); }
.app-photos span:nth-child(3) { background: linear-gradient(135deg, #D7C6AA, #9C8466); }
.app-photos span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(0deg, rgba(3, 23, 53, .35), transparent); }
.app-chat p { margin: 0 0 6px; padding: 7px 10px; border-radius: 12px; max-width: 85%; font-size: .78rem; }
.from-team { background: #F1EEE9; }
.from-me { background: #DCF8C6; margin-left: auto !important; text-align: right; }
.float-card {
  position: absolute; display: flex; gap: 10px; align-items: center;
  background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-lg);
  font-size: .85rem; line-height: 1.3;
}
.float-card .icon { font-size: 1.3rem; }
.card-notif { right: 0; top: 70px; animation: float 4s ease-in-out infinite; }
/* wide screens: the phone moves left so that the card sits beside it, not over the screen */
@media (min-width: 901px) { .phone { margin-right: 150px; } .card-notif { top: 120px; } }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .card-notif { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .hero { padding: 44px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
  .card-notif { right: 4%; }
}
@media (max-width: 420px) {
  .phone { width: 250px; }
  .phone-screen { min-height: 480px; }
  .card-notif { display: none; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: 88px 0; }
.section-tint { background: var(--sand); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 700px) { .section { padding: 60px 0; } .section-head { margin-bottom: 32px; } }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card-icon, .feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--ochre-soft); margin-bottom: 16px;
}

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps li { background: #fff; border-radius: var(--radius); padding: 26px 22px; position: relative; border: 1px solid var(--line); }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }
.step-num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--ochre); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 16px;
}
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* features */
.feature { padding: 8px 6px; }
.feature p { color: var(--muted); margin: 0; }

/* project types */
.types { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.types li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.types b { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.25rem; margin-bottom: 4px; }
.types span { color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) { .types { grid-template-columns: 1fr 1fr; } }

/* split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > div > p { color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.expertise { display: grid; gap: 16px; }
.expertise article { border-left: 4px solid var(--ochre); background: var(--sand); padding: 20px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.expertise p { margin: 0; color: var(--muted); }

/* dark (constructors) */
.section-dark { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #DCE4EF; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--ochre); }
.section-dark .split > div > p, .section-dark .small { color: #B9C6D8; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; }
.checks li { padding: 6px 0 6px 30px; position: relative; color: #fff; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ochre); font-weight: 700; }

/* form */
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.form-card h3 { color: var(--navy); }
.form-card label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; color: var(--navy); }
.form-card input:not([type=checkbox]), .form-card textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; font-size: 1rem;
  padding: 11px 13px; border: 1.5px solid #D9CFC0; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(213, 147, 68, .25); }
.form-card [aria-invalid="true"] { border-color: var(--danger) !important; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-card details { margin-bottom: 14px; }
.form-card summary { cursor: pointer; color: var(--ochre-dark); font-weight: 600; margin-bottom: 12px; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted) !important; }
.consent input { margin-top: 5px; accent-color: var(--ochre); }
.form-message { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; }
.form-message.ok { color: var(--success); }
.form-message.error { color: var(--danger); }

/* download */
.download { background: var(--ochre-soft); }
.download-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.download-inner > div:nth-child(2) { flex: 1 1 260px; }
.download-inner h2 { margin-bottom: .2em; }
.download-inner p { margin: 0; color: var(--muted); }
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: flex; flex-direction: column; justify-content: center; min-width: 170px;
  background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 18px; text-decoration: none; line-height: 1.2;
}
.store:hover { background: var(--navy-2); }
.store-small { font-size: .72rem; opacity: .8; }
.store-big { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.store.soon { background: #fff; color: var(--muted); border: 1.5px dashed #CDBFAA; pointer-events: none; }

/* contact */
.contact-card a { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--ochre-dark); text-decoration: underline; }
.contact-card p + p { margin-top: 8px; }

/* footer */
.site-footer { background: #10161F; color: #A8B0BD; padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.brand-footer { color: #fff; font-size: 1.1rem; }
.brand-footer img { background: #fff; border-radius: 10px; padding: 3px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: #DDE2EA; text-decoration: none; }
.site-footer a:hover { color: var(--ochre); }
.site-footer .small { color: #8A93A3; margin: 0; }

/* legal page */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: #3B4150; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.legal th { background: var(--sand); color: var(--navy); }
.notice { background: var(--ochre-soft); border-left: 4px solid var(--ochre); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
@media (max-width: 620px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 4px 0; } .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; } }
