/* =============================================
   MANUÏA REAL ESTATE — Styles principaux
   Version FR — Validation client

   Police : Elms_Sans
   Placer les fichiers .woff2/.woff dans /fonts/
   et adapter les noms de fichiers ci-dessous.
   ============================================= */

/* ── Elms_Sans @font-face ───────────────────── */
@font-face {
  font-family: 'Elms_Sans';
  src: url('../fonts/ElmsSans-Light.woff2') format('woff2'),
       url('../fonts/ElmsSans-Light.woff')  format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Elms_Sans';
  src: url('../fonts/ElmsSans-Regular.woff2') format('woff2'),
       url('../fonts/ElmsSans-Regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Elms_Sans';
  src: url('../fonts/ElmsSans-Medium.woff2') format('woff2'),
       url('../fonts/ElmsSans-Medium.woff')  format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Elms_Sans';
  src: url('../fonts/ElmsSans-SemiBold.woff2') format('woff2'),
       url('../fonts/ElmsSans-SemiBold.woff')  format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ──────────────────────────────── */
:root {
  --or:     #c09b6a;
  --marine: #1f3c4a;
  --beige:  #e6d8c3;
  --gris:   #7a7a7a;
  --creme:  #f7f4ef;
  --blanc:  #ffffff;
  --texte:  #1a1a1a;

  --font:   'Elms_Sans', system-ui, -apple-system, sans-serif;

  --nav-h:  80px;
  --max-w:  1240px;
  --px:     clamp(20px, 5vw, 80px);
  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--texte);
  background: var(--creme);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ── Container ──────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ── Typographie ────────────────────────────── */
h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 300; letter-spacing: -0.015em; line-height: 1.07; color: var(--marine); }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.12; color: var(--marine); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 500; line-height: 1.3; color: var(--marine); }
p  { font-size: clamp(0.93rem, 1.1vw, 1.05rem); color: var(--gris); line-height: 1.85; font-weight: 300; }

.eyebrow {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1rem;
}

.accent-line {
  width: 44px;
  height: 1px;
  background: var(--or);
  margin-bottom: 1.5rem;
}

.section-header { margin-bottom: clamp(40px, 6vw, 70px); }
.section-header.centered {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-header.centered .accent-line { margin: 0 auto 1.5rem; }
.section-header h2 { margin-bottom: 1rem; color: var(--marine); }

/* ── Boutons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start; /* jamais pleine largeur dans un container flex */
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 38px;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  text-decoration: none;
  font-family: var(--font);
}
.btn-primary       { background: var(--or); color: var(--blanc); }
.btn-primary:hover { background: var(--marine); }
.btn-outline       { background: transparent; color: var(--blanc); border: 1px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--blanc); }
.btn-dark          { background: var(--marine); color: var(--blanc); }
.btn-dark:hover    { background: #152c38; }
.btn-outline-dark  { background: transparent; color: var(--marine); border: 1px solid var(--marine); }
.btn-outline-dark:hover { background: var(--marine); color: var(--blanc); }

/* ── Navigation ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled,
.nav.solid {
  background: var(--blanc);
  box-shadow: 0 1px 24px rgba(0,0,0,0.07);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 38px; width: auto; }
.logo-color { display: none; }
.logo-white { display: block; }
.nav.scrolled .logo-white, .nav.solid .logo-white { display: none; }
.nav.scrolled .logo-color, .nav.solid .logo-color { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.lang-switch a {
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
  text-transform: uppercase;
}
.lang-switch a.active { color: var(--or); pointer-events: none; }
.lang-switch a:hover { color: var(--or); }
.lang-switch span { color: rgba(255,255,255,0.35); }
.nav.scrolled .lang-switch a,
.nav.solid .lang-switch a { color: rgba(31,60,74,0.55); }
.nav.scrolled .lang-switch a.active,
.nav.solid .lang-switch a.active,
.nav.scrolled .lang-switch a:hover,
.nav.solid .lang-switch a:hover { color: var(--or); }
.nav.scrolled .lang-switch span,
.nav.solid .lang-switch span { color: rgba(31,60,74,0.25); }
.nav-mobile .lang-switch {
  margin-top: 20px;
  font-size: 1rem;
}
.nav-mobile .lang-switch a { color: rgba(255,255,255,0.55); }
.nav-mobile .lang-switch a.active { color: var(--or); }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: var(--or);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--or); }
.nav.scrolled .nav-links a,
.nav.solid .nav-links a { color: var(--marine); }
.nav-links .btn-cta {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 24px;
  background: var(--or);
  color: var(--blanc) !important;
  transition: background 0.3s;
}
.nav-links .btn-cta:hover { background: var(--marine); }
.nav-links .btn-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 23px; height: 1.5px;
  background: var(--blanc);
  display: block; transition: all 0.3s;
}
.nav.scrolled .nav-toggle span,
.nav.solid .nav-toggle span { background: var(--marine); }

.nav-mobile {
  position: fixed; inset: 0;
  background: var(--marine);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  font-size: 2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
  letter-spacing: 0.04em;
}
.nav-mobile a:hover { color: var(--or); }
.nav-mobile-close {
  position: absolute;
  top: 28px; right: var(--px);
  background: none; border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 1.4rem;
  transition: color 0.3s;
}
.nav-mobile-close:hover { color: var(--blanc); }

/* ── Hero principal ─────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroZoom 6s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    140deg,
    rgba(31,60,74,0.78) 0%,
    rgba(31,60,74,0.50) 55%,
    rgba(0,0,0,0.22) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 100px;
  width: 100%;
}
.hero-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.2s forwards;
}
.hero-title {
  font-weight: 300;
  color: var(--blanc);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
  max-width: 820px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.45s forwards;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  margin-bottom: 0.8rem;
  max-width: 540px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.6s forwards;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.8s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 44px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.45);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.6s forwards;
}
.hero-scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Hero de page ────────────────────────────── */
.page-hero {
  background: var(--marine);
  padding: calc(var(--nav-h) + 80px) var(--px) 80px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { color: var(--blanc); font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 1.2rem; }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ── Sections ───────────────────────────────── */
.section { padding: clamp(70px, 10vw, 130px) 0; }
.bg-creme  { background: var(--creme); }
.bg-blanc  { background: var(--blanc); }
.bg-beige  { background: var(--beige); }
.bg-marine { background: var(--marine); }

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-text { display: flex; flex-direction: column; gap: 1.4rem; }
.split-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.split-image:hover img { transform: scale(1.04); }

/* Grille 3 colonnes */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

.card-pillar {
  padding: 44px 36px;
  background: var(--blanc);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.card-pillar:hover { border-color: var(--or); transform: translateY(-6px); }
.card-pillar img { width: 46px; height: 46px; object-fit: contain; margin-bottom: 1.5rem; }
.card-pillar h3 { color: var(--marine); margin-bottom: 0.75rem; }
.card-pillar p { font-size: 0.93rem; }

/* Valeurs (grille 5, sur 2 lignes) */
.grid-values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.card-value {
  padding: 36px 28px;
  background: var(--blanc);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.3s;
}
.card-value:hover { box-shadow: 0 8px 30px rgba(31,60,74,0.08); }
.card-value img { width: 72px; height: 72px; object-fit: contain; }
.card-value h3 { font-size: 1.05rem; color: var(--marine); }
.card-value p { font-size: 0.88rem; }

/* ── Citation ───────────────────────────────── */
.quote-section {
  background: var(--marine);
  padding: clamp(70px, 10vw, 130px) var(--px);
  text-align: center;
}
.quote-divider {
  width: 1px; height: 60px;
  background: rgba(192,155,106,0.4);
  margin: 0 auto 2.5rem;
}
.quote-fr {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  color: var(--blanc);
  line-height: 1.45;
  max-width: 860px;
  margin: 0 auto 1.5rem;
  font-weight: 300;
  font-style: italic;
}
.quote-poly {
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  color: var(--or);
  display: block;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.quote-source {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ── Investir avec Manuïa ───────────────────── */
.invest-list { display: flex; flex-direction: column; }
.invest-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--beige);
}
.invest-item:last-child { border-bottom: none; }
.invest-num {
  font-size: 2rem;
  color: var(--or);
  opacity: 0.3;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  width: 34px;
}
.invest-body h3 { font-size: 1.05rem; color: var(--marine); margin-bottom: 0.4rem; }
.invest-body p { font-size: 0.93rem; }

/* ── Modèle d'investissement (liste bullets) ── */
.model-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 1.5rem 0;
}
.model-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.model-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--or);
  flex-shrink: 0;
  margin-top: 0.5em;
}
.model-item p { font-size: 1rem; color: var(--marine); font-weight: 400; }

/* ── Projets à la une ───────────────────────── */
.projects-teaser { text-align: center; }
.projects-teaser > p { max-width: 560px; margin: 1rem auto 2.5rem; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 50px;
}
.project-card {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--marine);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card-label {
  font-size: 5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.06);
  user-select: none;
}

/* ── Partenaires ────────────────────────────── */
.partners-wrap { text-align: center; padding: 60px var(--px); }
.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.partner-ph {
  width: 110px; height: 44px;
  background: var(--beige);
  border-radius: 2px; opacity: 0.6;
}

/* ── Section contact ────────────────────────── */
.contact-section { padding: clamp(70px, 10vw, 130px) var(--px); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 7vw, 100px);
  align-items: center;
}
.contact-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-logo img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
}
.contact-info h2 { color: var(--marine); margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.5rem;
}
.contact-details p { color: var(--gris); line-height: 1.7; font-size: 1.05rem; }
.contact-details a { color: var(--marine); font-size: 1.05rem; transition: color 0.3s; }
.contact-details a:hover { color: var(--or); }
.contact-details a.btn { color: var(--blanc); }
.contact-details a.btn:hover { color: var(--blanc); }

.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--marine);
  font-family: var(--font);
}
.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 14px 16px;
  background: var(--blanc);
  border: 1px solid var(--beige);
  color: var(--texte);
  width: 100%;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--or); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success {
  display: none;
  padding: 16px 20px;
  background: rgba(192,155,106,0.12);
  border-left: 3px solid var(--or);
  color: var(--marine);
  font-size: 0.93rem;
}

/* ── Grille modèle d'investissement ─────────── */
.modele-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.modele-card {
  background: var(--blanc);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 2px solid transparent;
  transition: border-color 0.3s;
}
.modele-card:hover { border-color: var(--or); }
.modele-num {
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--or);
  opacity: 0.4;
  line-height: 1;
}
.modele-card p {
  font-size: 1.05rem;
  color: var(--marine);
  font-weight: 400;
  line-height: 1.5;
}

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

/* ── Bannière image ─────────────────────────── */
.banner {
  height: clamp(280px, 45vw, 500px);
  overflow: hidden;
}
.banner img { width: 100%; height: 100%; object-fit: cover; }

/* ── Footer ─────────────────────────────────── */
.footer {
  background: var(--marine);
  padding: clamp(50px, 7vw, 90px) var(--px) 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}
.footer-brand img { width: 220px; height: auto; margin-bottom: 1.5rem; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.42); line-height: 1.8; font-weight: 300; }
.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.88rem; color: rgba(255,255,255,0.45); transition: color 0.3s; font-weight: 300; }
.footer-col ul a:hover { color: var(--blanc); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.73rem; color: rgba(255,255,255,0.28); }

/* ── Animations ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }
.reveal-d4 { transition-delay: 0.40s; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1100px) {
  .grid-values { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-values { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-values { grid-template-columns: 1fr; }
}
