/* ============ ATLAS RÉSIDENCES — démo promoteur immobilier ============ */
:root {
  --ink: #171a1f;
  --ink-soft: #3d434c;
  --paper: #faf8f4;
  --sand: #f1ece2;
  --gold: #b9924c;
  --gold-dark: #9a7639;
  --white: #ffffff;
  --line: rgba(23, 26, 31, 0.1);
  --shadow: 0 20px 50px -20px rgba(23, 26, 31, 0.25);
  --radius: 14px;
  --font-display: "Marcellus", serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 12px 30px -10px rgba(185, 146, 76, 0.55);
}
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-full { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 18px 0;
}
.nav.is-scrolled {
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s ease;
}
.nav.is-scrolled .logo { color: var(--ink); }
.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  border-radius: 8px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.logo-text em { font-style: normal; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--white); }
.nav.is-scrolled .nav-links a { color: var(--ink-soft); }
.nav.is-scrolled .nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
}
.nav-links .nav-cta:hover { background: var(--gold-dark); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
}
.nav.is-scrolled .burger span, .nav.is-open .burger span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  animation: hero-zoom 6.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.55) 0%, rgba(15, 17, 21, 0.35) 45%, rgba(15, 17, 21, 0.72) 100%);
}

/* --- Entrée cinématique : voile qui se lève + zoom lent + titre dévoilé --- */
.hero-veil {
  position: absolute;
  inset: 0;
  background: #0f1115;
  z-index: 1;
  pointer-events: none;
  animation: veil-lift 1.3s ease 0.15s forwards;
}
@keyframes veil-lift { to { opacity: 0; } }
@keyframes hero-zoom { to { transform: scale(1); } }

.hero-kicker { animation: kicker-in 1s ease 0.35s both; }
@keyframes kicker-in {
  from { opacity: 0; letter-spacing: 0.55em; }
  to { opacity: 1; letter-spacing: 0.32em; }
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(115%);
  animation: line-up 0.9s cubic-bezier(0.19, 0.7, 0.22, 1) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.5s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.65s; }
@keyframes line-up { to { transform: translateY(0); } }

.hero-sub { animation: fade-up 0.8s ease 1s both; }
.hero-actions { animation: fade-up 0.8s ease 1.2s both; }
.hero-scroll { animation: fade-up 0.8s ease 1.6s both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-content { position: relative; z-index: 2; padding: 120px 24px 80px; max-width: 820px; }
.hero-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  margin-bottom: 24px;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 38px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
}
.hero-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 4px;
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Chiffres ---------- */
.stats { background: var(--ink); color: var(--white); padding: 64px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num, .stat-plus {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--gold);
}
.stat p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

/* ---------- Sections génériques ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 18px; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }

.section-dark { background: var(--ink); color: var(--white); }
.section-dark .section-sub { color: rgba(255, 255, 255, 0.7); }
.section-sand { background: var(--sand); }

/* ---------- Projets ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px -12px rgba(23, 26, 31, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project:hover .project-img img { transform: scale(1.06); }
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
}
.badge-live { background: var(--gold); }
.badge-done { background: #3d7a4f; }
.badge-soon { background: #4a5568; }
.project-body { padding: 26px; }
.project-body h3 { font-size: 1.45rem; margin-bottom: 4px; }
.project-loc {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.project-body > p:not(.project-loc) { color: var(--ink-soft); font-size: 0.95rem; }
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.project-meta strong { color: var(--ink); }
.link-arrow {
  color: var(--gold-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow:hover { color: var(--ink); }

/* ---------- Plans ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.plan {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.plan:hover { transform: translateY(-5px); border-color: var(--gold); }
.plan-img { aspect-ratio: 4 / 3; overflow: hidden; }
.plan-img img { width: 100%; height: 100%; object-fit: cover; }
.plan-body { padding: 20px; }
.plan-body h3 { font-size: 1.3rem; color: var(--white); }
.plan-size { color: rgba(255, 255, 255, 0.65); font-size: 0.88rem; margin: 6px 0 10px; }
.plan-price { color: var(--gold); font-weight: 800; font-size: 0.95rem; }
.plans-note {
  text-align: center;
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

/* ---------- Engagements ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.value {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--gold-dark);
  font-size: 1.5rem;
  border-radius: 12px;
  margin-bottom: 18px;
}
.value h3 { font-size: 1.2rem; margin-bottom: 8px; }
.value p { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Témoignages ---------- */
.testimonials { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial {
  display: none;
  animation: fadein 0.5s ease;
}
.testimonial.is-active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 26px;
}
.testimonial-author { font-weight: 800; }
.testimonial-author span { font-weight: 500; color: var(--ink-soft); }
.testimonial-dots { display: flex; gap: 10px; justify-content: center; margin-top: 34px; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(23, 26, 31, 0.2);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.dot.is-active { background: var(--gold); transform: scale(1.25); }

/* ---------- Contact ---------- */
.section-contact { background: var(--ink); color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 18px; }
.contact-info .section-sub { color: rgba(255, 255, 255, 0.7); margin-bottom: 34px; }
.contact-list { list-style: none; }
.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 18px;
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.85);
}
.contact-list strong {
  min-width: 96px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding-top: 3px;
}
.contact-list a { color: var(--white); text-decoration: none; }
.contact-list a:hover { color: var(--gold); }

.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.5rem; margin-bottom: 24px; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 7px;
}
.optional { color: var(--ink-soft); font-weight: 500; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-success {
  margin-top: 16px;
  color: #3d7a4f;
  font-weight: 700;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer { background: #101317; color: rgba(255, 255, 255, 0.7); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 54px;
}
.logo-footer { color: var(--white); margin-bottom: 16px; }
.footer p { font-size: 0.92rem; }
.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 5px 0;
  font-size: 0.93rem;
}
.footer-grid a:hover { color: var(--gold); }
.footer-grid .logo-footer { display: flex; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  text-align: center;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- WhatsApp flottant ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ---------- Animations d'apparition ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-bg img, .hero-veil, .hero-kicker, .hero-title .line > span,
  .hero-sub, .hero-actions, .hero-scroll {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-veil { opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 76px 0; }
  .projects-grid, .plans-grid, .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 30px 22px; }

  .burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px 34px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
  }
  .nav.is-open .nav-links { transform: translateX(0); }
  .nav-links a { color: var(--ink) !important; font-size: 1.1rem; }
  .nav.is-open .logo { color: var(--ink); }
}
