/* ============================================
   SCOPA-GROUP — Design tokens
   ============================================ */
:root {
  --navy: #14213D;
  --navy-light: #1F2F52;
  --green: #1F6F54;
  --green-light: #2C8A6B;
  --sand: #F6F1E7;
  --sand-dark: #ECE3CD;
  --terracotta: #C2542C;
  --terracotta-dark: #A3431F;
  --ink: #232220;
  --ink-soft: #5B5A55;
  --white: #FFFFFF;
  --line: rgba(20, 33, 61, 0.12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.10);
  --shadow-sm: 0 4px 14px rgba(20, 33, 61, 0.08);
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --max: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

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

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0; color: var(--ink-soft); }

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

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--terracotta);
  display: inline-block;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 100px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 13px 18px;
}
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}
.brand img { height: 34px; width: auto; }
.brand .sub { color: var(--green); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--terracotta);
}

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: var(--sand);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }
  .nav-links.open {
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 16px 24px 24px;
  }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary span.label { display: none; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 56px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 { margin: 14px 0 18px; }
.pole-ticker {
  position: relative;
  height: 22px;
  margin: 10px 0 0;
  overflow: hidden;
}
.pole-ticker-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.pole-ticker-item.active { opacity: 1; }
.pole-ticker-item svg { flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
  .pole-ticker { height: auto; }
  .pole-ticker-item {
    position: static;
    opacity: 1 !important;
    display: inline-flex;
    margin: 0 16px 6px 0;
    transition: none;
  }
}
.hero-copy p.lead { font-size: 1.08rem; max-width: 480px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.hero-trust span { display: flex; align-items: center; gap: 6px; }
.hero-trust strong { color: var(--navy); font-family: var(--font-display); }

.hero-visual {
  position: relative;
}
.hero-visual img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 460px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--terracotta);
}
.hero-badge .txt { font-size: 0.8rem; color: var(--ink-soft); max-width: 120px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual img { height: 320px; }
  .hero-badge { left: 0; bottom: -18px; }
}

/* ============================================
   Sections generic
   ============================================ */
section { padding: 64px 0; }
.section-head { margin-bottom: 36px; max-width: 620px; }
.section-head h2 { margin-top: 12px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-soft { background: var(--sand-dark); }
.bg-navy { background: var(--navy); color: var(--sand); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(246,241,231,0.75); }

/* ============================================
   Pôles d'activité (signature strip)
   ============================================ */
.poles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pole-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  border-top: 3px solid var(--navy);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.pole-card:hover { transform: translateY(-4px); }
.pole-card.flagship { border-top-color: var(--terracotta); }
.pole-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--sand-dark);
  color: var(--navy);
  margin-bottom: 16px;
}
.pole-card.flagship .pole-icon { background: rgba(194,84,44,0.12); color: var(--terracotta); }
.pole-card h3 { margin-bottom: 6px; }
.pole-card p { font-size: 0.9rem; }

@media (max-width: 980px) {
  .poles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .poles-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Apartment cards
   ============================================ */
.apt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.apt-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.apt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.apt-card .thumb { height: 190px; overflow: hidden; }
.apt-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.apt-card .body { padding: 18px 20px 22px; }
.apt-card .tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 6px;
  display: block;
}
.apt-card h3 { margin-bottom: 8px; }
.apt-card p { font-size: 0.88rem; margin-bottom: 14px; }

@media (max-width: 980px) {
  .apt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .apt-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Trust strip
   ============================================ */
.trust-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; }
.trust-item .ic {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.trust-item strong { display: block; font-family: var(--font-display); font-size: 0.95rem; color: var(--navy); }
.trust-item span { font-size: 0.82rem; color: var(--ink-soft); }

/* ============================================
   Apartment detail (appartements.html)
   ============================================ */
.apt-detail {
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}
.apt-detail:last-of-type { border-bottom: none; }
.apt-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.apt-features {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}
.apt-features span {
  font-size: 0.85rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.gallery img:hover { opacity: 0.92; }
.gallery .g-main { grid-row: span 2; height: 100%; min-height: 420px; }
.gallery .g-side { height: 200px; }

@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g-main { grid-column: span 2; min-height: 280px; }
  .gallery .g-side { height: 160px; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-main, .gallery .g-side { grid-column: span 1; height: 220px; min-height: unset; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 33, 61, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 22px; right: 28px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ============================================
   À propos — metric cards
   ============================================ */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.metric-card .label { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 6px; }
.metric-card .value { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--navy); }

@media (max-width: 760px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { margin-bottom: 14px; }
.profile-row { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ============================================
   Contact page
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-info-item .ic {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sand-dark);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 2px; }
.contact-info-item span { font-size: 0.9rem; color: var(--ink-soft); }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--sand);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

.map-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.map-card:hover { border-color: var(--green); transform: translateY(-2px); }
.map-card-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sand-dark);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.map-card-text { flex: 1; display: flex; flex-direction: column; }
.map-card-text strong { font-family: var(--font-display); font-size: 0.95rem; color: var(--navy); }
.map-card-text span { font-size: 0.85rem; color: var(--ink-soft); }
.map-card svg:last-child { color: var(--ink-soft); flex-shrink: 0; }

/* ============================================
   CTA band
   ============================================ */
.cta-band {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(246,241,231,0.75); max-width: 420px; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--navy);
  color: rgba(246,241,231,0.78);
  padding: 56px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 30px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.05rem; }
.site-footer h4 { color: var(--white); font-family: var(--font-display); font-size: 0.9rem; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; font-size: 0.9rem; }
.site-footer ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(246,241,231,0.14);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(246,241,231,0.55);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================
   Page hero (non-home pages)
   ============================================ */
.page-hero {
  padding: 50px 0 40px;
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { margin: 14px auto 0; }
.page-hero p.lead { max-width: 560px; margin: 16px auto 0; text-align: center; }

/* Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
