/* MOYE IMMOBILIER SERVICES DYNAMIQUES : feuille de style du site.
   Couleurs et tailles principales en haut (variables), à modifier ici. */

:root {
  --ink: #0a1b4d;
  --ink-2: #3b4870;
  --muted: #5a668c;
  --blue: #1d3fc4;
  --blue-hover: #2f52db;
  --hero-blue: #1452a3;
  --soft: #f2f5fc;
  --line: #d5ddf0;
  --white: #ffffff;
  --whatsapp: #1f9d55;
  --error: #b42318;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 8px; color: var(--white); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); }

.container { max-width: 1320px; margin: 0 auto; }
.section { padding: clamp(72px, 10vw, 128px) var(--gutter); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: var(--white); }

.title-xl {
  font-weight: 500;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: balance;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 8px clamp(14px, 2vw, 26px);
  border-radius: 999px; border: 1px solid transparent;
  font: 600 clamp(14px, 1.4vw, 16px) var(--font);
  text-align: center; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-hover); color: var(--white); }
.btn--hero { background: var(--hero-blue); color: var(--white); flex: 1 1 auto; }
.btn--hero:hover { background: #1d63bf; color: var(--white); }
.btn--white { background: var(--white); color: #0f2a47; box-shadow: 0 10px 24px -12px rgba(10, 27, 77, .6); }
.btn--white:hover { background: #eef2fb; color: #0f2a47; }
.btn--outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e3e8f4;
}
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 52px; height: 52px; border-radius: 50%; background: var(--white);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(10, 27, 77, .08);
  font-weight: 700; color: var(--blue);
}
.brand-logo img { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.1; }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: .01em; text-transform: uppercase; }
.brand-tag { font-weight: 800; font-size: 22px; letter-spacing: .22em; margin-top: 4px; color: var(--hero-blue); }

.nav-desktop { display: none; align-items: center; gap: 36px; white-space: nowrap; }
.nav-desktop a { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.nav-desktop .btn { padding: 13px 20px; min-height: 0; font-family: var(--mono); font-size: 13px; font-weight: 400; }
.nav-desktop .btn:hover { color: var(--white); }

.header-mobile { display: flex; align-items: center; gap: 8px; }
.header-mobile .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.menu-toggle {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid #c9d3ec; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.menu-toggle span { width: 18px; height: 1.5px; background: var(--ink); }

.mobile-menu {
  display: none; flex-direction: column;
  padding: 4px var(--gutter) 20px; background: var(--white); border-top: 1px solid #e3e8f4;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: 16px 0; font-size: 15px; border-bottom: 1px solid #e3e8f4; display: flex; gap: 14px; }
.mobile-menu a span { color: var(--blue); }
.mobile-menu .btn { margin-top: 12px; border: 0; font-family: var(--font); text-transform: none; letter-spacing: 0; }

/* ---------- Hero ---------- */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  min-height: clamp(520px, 88svh, 820px);
}
.hero-text {
  display: flex; align-items: center;
  padding: clamp(108px, 14vw, 150px) clamp(16px, 5vw, 96px) clamp(40px, 6vw, 80px);
}
.hero-copy { display: flex; flex-direction: column; gap: clamp(18px, 3vw, 36px); max-width: 560px; }
.hero-copy h1 {
  font-weight: 700; font-size: clamp(24px, 5vw, 68px); line-height: 1.08;
  letter-spacing: -0.025em; color: #0f2a47; text-wrap: balance;
}
.hero-copy p { font-size: clamp(15px, 1.6vw, 20px); line-height: 1.55; color: #4a5578; max-width: 440px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-panel {
  position: relative; min-height: 100%;
  background: var(--hero-blue) url('assets/banniere-illustration.png') center / contain no-repeat;
  display: flex; align-items: flex-end; justify-content: center; padding: 0 16px 28px;
}

.toc {
  max-width: 1320px; margin: 0 auto; padding: 18px var(--gutter);
  display: flex; gap: clamp(20px, 4vw, 40px); justify-content: space-between;
  overflow-x: auto; white-space: nowrap; border-bottom: 1px solid var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.toc a { display: flex; gap: 10px; min-height: 28px; align-items: center; }
.toc span { color: var(--muted); }

/* ---------- Introduction ---------- */
.intro-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(40px, 6vw, 80px);
}
.intro-left { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.intro-right { display: flex; flex-direction: column; gap: 32px; }
.intro-right h2 {
  font-weight: 500; font-size: clamp(34px, 4.6vw, 60px); line-height: .95;
  letter-spacing: -0.04em; text-transform: uppercase; text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 560px; text-wrap: pretty; }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; color: var(--blue); }
.stat span { font-family: var(--mono); font-size: 12px; line-height: 1.4; text-transform: uppercase; color: var(--muted); }

.facts { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.fact { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--soft); border-radius: 4px; padding: 14px 16px; }
.fact dt { color: var(--muted); }
.fact dd { text-align: right; }

/* ---------- Emplacements photo ---------- */
.ph {
  aspect-ratio: 4 / 3; width: 100%; border-radius: 4px;
  background: repeating-linear-gradient(135deg, #dde3ef 0 14px, #e8edf6 14px 28px);
  display: flex; align-items: flex-end; padding: 12px;
}
.ph figcaption, .ph span {
  font-family: var(--mono); font-size: 11px; color: #334155;
  background: rgba(248, 250, 252, .92); padding: 5px 8px; border-radius: 4px;
}
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.ph--photo { padding: 0; background: none; }

/* ---------- Services ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.service-list { border-top: 1px solid var(--ink); }
.service {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px 32px; align-items: center;
  padding: clamp(22px, 3vw, 32px) 0; border-bottom: 1px solid #c9d3ec;
}
.service-title { display: flex; align-items: baseline; gap: 18px; }
.service-num { font-family: var(--mono); font-size: 13px; color: var(--blue); }
.service h3 { font-weight: 500; font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; }
.service p { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 460px; }
.service.is-placeholder p { font-family: var(--mono); color: var(--blue); }
.service .btn { justify-self: start; min-height: 44px; padding: 0 20px; font-size: 14px; }

/* ---------- Réalisations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #c9d3ec;
  background: var(--white); color: var(--ink); cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.filter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 2.5vw, 32px) 20px; margin-top: 40px; }
.project { display: flex; flex-direction: column; gap: 14px; }
.project[hidden] { display: none; }
.project-meta {
  display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.project-meta .kind { color: var(--blue); }
.project h3 { font-weight: 500; font-size: 22px; letter-spacing: -0.02em; text-transform: uppercase; }

/* ---------- Pourquoi nous ---------- */
.why-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.why-head .eyebrow { color: #9fb3ee; margin-bottom: 18px; }
.why-head p { font-size: 17px; line-height: 1.6; color: #c9d4f5; max-width: 480px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border-top: 1px solid #2c3f7e; }
.why-item { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid #2c3f7e; }
.why-item .num { font-family: var(--mono); font-size: 13px; color: #7f9bf0; }
.why-item h3 { font-weight: 500; font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; text-transform: uppercase; }
.why-item p { font-size: 15px; line-height: 1.55; color: #c9d4f5; }

/* ---------- Méthode ---------- */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px clamp(40px, 6vw, 80px); }
.method-grid .eyebrow { margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--blue); padding-top: 6px; }
.step h3 { font-weight: 500; font-size: 24px; letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 8px; }
.step p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Témoignages ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.quote { background: var(--white); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 28px; min-height: 260px; }
.quote blockquote { font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--blue); flex: 1; }
.quote figcaption {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
}
.quote figcaption span:last-child { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info .eyebrow { margin-bottom: 18px; }
.contact-info h2 { margin-bottom: 18px; }
.contact-info .lead { max-width: 460px; }
.contact-list { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 13px; letter-spacing: .03em; }
.contact-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--soft); border-radius: 4px; padding: 16px; min-height: 52px; }
a.contact-row:hover { background: #e3eafb; color: var(--ink); }
.contact-row dt { color: var(--muted); text-transform: uppercase; }
.contact-row dd { word-break: break-word; }

.form-card { border: 1px solid var(--ink); border-radius: 4px; padding: clamp(24px, 3.5vw, 40px); }
.form { display: flex; flex-direction: column; gap: 22px; }
.form h3 { font-weight: 500; font-size: 26px; letter-spacing: -0.02em; text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  min-height: 52px; padding: 0 16px; border-radius: 4px; border: 1px solid #c9d3ec;
  background: #f7f9fd; font: 16px var(--font); color: var(--ink);
}
.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); background: var(--white); outline: none; box-shadow: 0 0 0 3px rgba(29, 63, 196, .15);
}
.field [aria-invalid="true"] { border-color: #d92d20; }
.field-error { font-size: 14px; color: var(--error); }
.field-error[hidden] { display: none; }
.form-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form .btn { min-height: 56px; width: 100%; font-size: 16px; }

.form-done { display: flex; flex-direction: column; gap: 16px; padding: 12px 0; }
.form-done[hidden], .form[hidden] { display: none; }
.form-done .check { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; }
.form-done h3 { font-weight: 500; font-size: 26px; letter-spacing: -0.02em; text-transform: uppercase; }
.form-done p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.form-done .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form-done .btn { width: auto; min-height: 48px; font-size: 15px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--blue); color: var(--white); padding: clamp(56px, 8vw, 96px) var(--gutter) 40px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #c9d4f5; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 72px; height: 72px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; color: var(--blue); font-weight: 700; }
.footer-logo img { width: 66px; height: 66px; object-fit: contain; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .mail { text-transform: none; }
.footer-giant { font-weight: 500; font-size: clamp(40px, 10.5vw, 160px); line-height: .86; letter-spacing: -0.05em; text-transform: uppercase; margin: 48px 0; }
.footer-bottom { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 20px; }
.footer-bottom summary { cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; min-height: 32px; }
.footer-bottom details p { margin-top: 12px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #dce4fa; }
.copyright { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: #dce4fa; }

/* ---------- Barre d'appel mobile et bouton WhatsApp ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.call-bar .btn { min-height: 50px; font-size: 16px; }
.wa-float {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 70;
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; border-radius: 999px;
  background: var(--whatsapp); color: var(--white); font-weight: 600; font-size: 15px;
  box-shadow: 0 12px 28px -10px rgba(10, 27, 77, .55); transition: transform .2s;
}
.wa-float:hover { transform: translateY(-2px); color: var(--white); }
.wa-icon { width: 24px; height: 24px; border-radius: 50% 50% 50% 4px; border: 2.5px solid var(--white); }
.wa-label { display: none; }
.site-footer { padding-bottom: 120px; }

/* ---------- Animations d'apparition (actives seulement si le JavaScript tourne) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Grand écran ---------- */
@media (min-width: 1080px) {
  .nav-desktop { display: flex; }
  .header-mobile, .mobile-menu, .mobile-menu.is-open, .call-bar { display: none; }
  .wa-float { bottom: clamp(14px, 3vw, 28px); padding: 0 20px 0 16px; }
  .wa-label { display: inline; }
  .site-footer { padding-bottom: 40px; }
}

/* ---------- Tablette et mobile ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 340px; }
}
@media (max-width: 520px) {
  .brand-name { font-size: 11px; }
  .brand-tag { font-size: 18px; }
  .btn { white-space: normal; }
  .stats { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
