/* ==========================================================================
   Arita Immobilier - Feuille de style principale
   Tokens : navy #1B3A5C · sky #D5E7FD · crème #F5F3EE · terracotta #B8896A
   Typo   : Playfair Display (titres) · Inter (corps)
   ========================================================================== */

/* Fonts loaded via <link> in HTML <head> for parallel loading (see each page) */

:root {
  --navy: #1B3A5C;
  --navy-light: #2c5580;
  --sky: #D5E7FD;
  --cream: #F5F3EE;
  --cream-warm: #EFEAE0;
  --terracotta: #B8896A;
  --terracotta-dark: #9c7057;
  --ink: #1B3A5C;
  --ink-soft: #3d5470;
  --white: #FFFFFF;
  --border: rgba(27, 58, 92, 0.14);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 24px;

  --container: 1180px;
  --shadow-soft: 0 12px 40px rgba(27, 58, 92, 0.08);
  --shadow-card: 0 4px 18px rgba(27, 58, 92, 0.07);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.4rem; }

p { color: var(--ink-soft); text-align: justify; text-justify: inter-word; }

/* Headings are never <p> tags, so they're naturally unaffected by justify;
   they simply inherit text-align from their container (left, center, etc.) */

/* Certain short/UI text should stay left-aligned, not justified */
.eyebrow, .btn, .property-price, .property-loc, .property-specs,
.testi-name, .testi-loc, .footer-bottom span, .form-hint, .article-meta,
.logo, .nav-links a, .hero-badge strong, .hero-badge span,
.tag-pill, .step-num { text-align: left; }

.section-head.center, .page-header, .result-box, .card, .social-card { text-align: center; }
.card p, .social-card p { text-align: center; }
.card .card-icon { margin-left: auto; margin-right: auto; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--terracotta-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--terracotta);
  display: inline-block;
}

/* Signature marker : le repère du chercheur de pépites */
.marker {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
}

/* Focus visibility (accessibilité) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(27, 58, 92, 0.22);
}
.btn-primary:hover { background: var(--navy-light); }

.btn-accent {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(184, 137, 106, 0.3);
}
.btn-accent:hover { background: var(--terracotta-dark); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 32px;
  max-width: 1320px;
  margin: 0 auto;
  gap: 0;
}

.nav-wrap nav {
  flex: 0 1 auto;
  min-width: 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: 14px;
}
.logo span { color: var(--terracotta); }
.logo img { height: 86px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); border-color: var(--terracotta); }

/* Dropdown "Plus" menu */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 500; font-size: 0.98rem;
  color: var(--ink-soft); padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-dropdown-trigger svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.open .nav-dropdown-trigger { color: var(--navy); border-color: var(--terracotta); }
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft); padding: 10px; margin-top: 14px;
  min-width: 210px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li a {
  display: block; padding: 10px 14px; border-radius: var(--radius-s);
  font-size: 0.95rem; color: var(--ink-soft); border-bottom: none; white-space: nowrap;
}
.nav-dropdown-menu li a:hover, .nav-dropdown-menu li a.active { background: var(--cream); color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; margin-left: auto; padding-left: 20px; }
.nav-cta .btn { padding: 12px 22px; min-height: 46px; font-size: 0.98rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 28px; height: 28px; color: var(--navy); }

@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn span.btn-text-full { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 32px 24px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 6px;
  font-weight: 500;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
@media (max-width: 700px) { section { padding: 56px 0; } }

.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.78); }
.section-sky { background: var(--sky); }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: 1.25rem; margin-bottom: 34px; max-width: 520px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-path-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 34px; }
@media (max-width: 560px) { .hero-path-cards { grid-template-columns: 1fr; gap: 36px; } }
.hero-path-card {
  display: block;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hero-path-card:hover { border-color: var(--terracotta); transform: translateY(-3px); }
.hero-path-card-photo { aspect-ratio: 16/10; overflow: hidden; }
.hero-path-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-path-card-body { padding: 18px 20px 20px; }
.hero-path-card h3 { font-size: 1.15rem; margin-bottom: 5px; }
.hero-path-card p { font-size: 0.88rem; margin-bottom: 10px; }
.hero-path-card-link { font-weight: 700; color: var(--terracotta-dark); font-size: 0.88rem; display: flex; align-items: center; gap: 6px; }
.hero-path-card-link svg { width: 15px; height: 15px; }

.hero-media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(150deg, var(--sky), var(--cream-warm));
  box-shadow: var(--shadow-soft);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
}
.hero-badge .marker { width: 26px; height: 26px; flex-shrink: 0; }
.hero-badge strong { display: block; font-size: 0.95rem; color: var(--navy); }
.hero-badge span { font-size: 0.85rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16/10; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  justify-content: center;
  padding: 34px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
}
.trust-item svg { width: 22px; height: 22px; color: var(--terracotta); flex-shrink: 0; }

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

.card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--sky);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; color: var(--navy); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; }

/* ---------- Property tiles ---------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .property-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .property-grid { grid-template-columns: 1fr; } }

.property-card {
  background: var(--white);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.property-media {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(150deg, var(--sky), var(--cream-warm));
}
.property-media img { width: 100%; height: 100%; object-fit: cover; }
.property-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.property-body { padding: 22px 22px 26px; }
.property-price { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.property-loc { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 14px; display:flex; align-items:center; gap:6px; }
.property-loc svg { width: 15px; height: 15px; color: var(--terracotta); }
.property-specs { display: flex; gap: 16px; font-size: 0.88rem; color: var(--ink-soft); border-top: 1px solid var(--border); padding-top: 14px; }
.property-specs span { display: flex; align-items: center; gap: 6px; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 30px 28px;
  border: 1px solid var(--border);
}
.testi-stars { color: var(--terracotta); font-size: 1.1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testi-quote { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; color: var(--navy); margin-bottom: 18px; }
.testi-name { font-weight: 600; font-size: 0.92rem; }
.testi-loc { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Map section ---------- */
.map-wrap {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--sky);
  aspect-ratio: 16/8;
  box-shadow: var(--shadow-soft);
}
.map-wrap svg { width: 100%; height: 100%; }
.map-pin-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  fill: var(--navy);
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--terracotta);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 44px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}
@media (max-width: 600px) { .form-card { padding: 28px 22px; } }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row label { font-weight: 400; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius-l);
  padding: 60px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.78); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: 14px; }
.footer-logo span { color: var(--sky); }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 0.96rem; color: rgba(255,255,255,0.78); transition: color 0.2s; }
.footer-col a:hover { color: var(--sky); }

.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--terracotta); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--sky); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 64px 0 50px;
  text-align: center;
}
.page-header .eyebrow { justify-content: center; }
.page-header p { max-width: 640px; margin: 18px auto 0; font-size: 1.12rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-top: 20px;
}
.breadcrumb a:hover { color: var(--navy); }

/* ---------- Utility ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.img-frame {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/5;
  background: linear-gradient(150deg, var(--sky), var(--cream-warm));
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sky);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
}

/* ---------- Fee tables (honoraires) ---------- */
.fee-table-wrap {
  background: var(--white);
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 24px 0 14px;
}
.fee-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.fee-table th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.fee-table td {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
}
.fee-table tr:nth-child(even) td { background: var(--cream); }
.fee-table td.fee-amount { font-weight: 700; color: var(--navy); text-align: right; }
.fee-note { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 8px; }
.fee-section { margin-bottom: 56px; }
.fee-section h2 { margin-bottom: 6px; }
.fee-section .fee-context { margin-bottom: 4px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.list-check { list-style: none; }
.list-check li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 1.02rem; color: var(--ink-soft); }
.list-check svg { width: 22px; height: 22px; color: var(--terracotta); flex-shrink: 0; margin-top: 2px; }

.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--terracotta);
  flex-shrink: 0;
  width: 50px;
}
