﻿/* ============================================================
   ELYSIUM-REAL-ESTATE.CSS — Page projet Elysium Real Estate
   Accent UI : vert lime Grafitiks (base.css).
   Palette de marque (navy / or / crème) réservée aux nuanciers
   Couleurs et au logo (SVG fournis). Bordures 2px (réf. Isela).
   ============================================================ */

:root {
  --navy:  #001d36;
  --gold:  #c99939;
  --cream: #f1ede2;
}

/* ── HERO ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: clamp(600px, 86vh, 780px);
  margin-top: 99px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  scale: 1;
  filter: brightness(1.22) saturate(1.05); /* image trop sombre -> éclaircie */
  transition: scale 9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: scale, translate;
}
#hero.loaded .hero-bg img { scale: 1.08; }
/* Dégradé uniquement à gauche (zone texte) ; la partie droite reste claire */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,13,12,0.92) 0%,
    rgba(13,13,12,0.74) 26%,
    rgba(13,13,12,0.32) 44%,
    rgba(13,13,12,0) 58%
  );
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(48px, 7vh, 84px) var(--content-pad) 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}
.hero-name { display: flex; flex-direction: column; line-height: 1.0; }
.hero-line1,
.hero-line2 { display: flex; align-items: center; gap: 12px; }
/* Étoile : une seule, à côté de REAL (desktop et mobile) */
.hero-name span,
.hero-line1 > span {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 67px);
  color: var(--white);
  letter-spacing: 0.01em;
  display: block;
  overflow: hidden;
}
.hero-name span em,
.hero-line1 > span em {
  display: block;
  font-style: normal;
  transform: translateY(110%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
#hero.loaded .hero-name span em,
#hero.loaded .hero-line1 > span em { transform: translateY(0); }
#hero.loaded .hero-name > *:nth-child(2) em { transition-delay: 0.1s; }
#hero.loaded .hero-name > *:nth-child(3) em { transition-delay: 0.2s; }
.hero-spark {
  color: var(--accent);
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0;
  opacity: 0;
  animation: sparkPulse 3s ease-in-out infinite;
  transition: opacity 0.6s var(--transition) 0.3s;
}
#hero.loaded .hero-spark { opacity: 0.95; }
/* Ne garder que l'étoile après REAL — placé après .hero-spark pour gagner la cascade */
.hero-spark--desktop { display: none; }
@keyframes sparkPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.35) rotate(15deg); }
}
.hero-desc {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.7;
  max-width: 366px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--transition) 0.45s, transform 0.7s var(--transition) 0.45s;
}
#hero.loaded .hero-desc { opacity: 1; transform: translateY(0); }
.hero-services {
  display: flex;
  gap: 30px;
  margin-top: 22px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--transition) 0.6s, transform 0.7s var(--transition) 0.6s;
}
#hero.loaded .hero-services { opacity: 1; transform: translateY(0); }
.hero-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  max-width: 96px;
}
.hero-service-icon { width: 30px; height: 30px; }
.hero-service-icon img { width: 100%; height: 100%; object-fit: contain; }
.hero-service-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   EN-TÊTE "titre à gauche / description à droite"
══════════════════════════════════════════════════════════ */
.row-header-line {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.row-header-line .section-title { margin-bottom: 0; flex-shrink: 0; }
.row-header-line .section-desc { flex: 1; min-width: 280px; max-width: none; }
/* Par section : max-width ajusté pour obtenir exactement 2 lignes */
#logo     .row-header-line .section-desc { max-width: none; }
#couleurs .row-header-line .section-desc { max-width: 500px; }

/* ── SECTION 01 — LOGO ──────────────────────────────────────── */
/* Surcharge [data-anim="fade"] : le lockup est toujours visible, on anime ses enfants */
.logo-lockup[data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
.logo-lockup {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  align-items: center;
  gap: 30px;
  margin: 56px 0 40px;
}
.logo-lockup-emblem { width: 100%; }
.logo-lockup-word { width: 100%; }
.logo-lockup img { width: 100%; height: auto; object-fit: contain; display: block; }

/* Emblème inline — tracé progressif */
.el-emblem { width: 100%; height: auto; display: block; overflow: visible; }
.el-grid > g { transform-box: fill-box; }
.el-gh { transform: scaleX(0); transform-origin: left center; }
.el-gv { transform: scaleY(0); transform-origin: center top; }
.el-emblem-path {
  fill: #fff; fill-opacity: 0;
  stroke: #fff; stroke-width: 1.1;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.logo-lockup-word { opacity: 0; transform: translateX(26px); }

.logo-lockup.is-visible .el-gh { animation: elGH 0.45s ease forwards; }
.logo-lockup.is-visible .el-gv { animation: elGV 0.45s ease forwards; }
.logo-lockup.is-visible .el-grid > g:nth-child(1) { animation-delay: 0.00s; }
.logo-lockup.is-visible .el-grid > g:nth-child(2) { animation-delay: 0.07s; }
.logo-lockup.is-visible .el-grid > g:nth-child(3) { animation-delay: 0.14s; }
.logo-lockup.is-visible .el-grid > g:nth-child(4) { animation-delay: 0.21s; }
.logo-lockup.is-visible .el-grid > g:nth-child(5) { animation-delay: 0.28s; }
.logo-lockup.is-visible .el-grid > g:nth-child(6) { animation-delay: 0.35s; }
.logo-lockup.is-visible .el-grid > g:nth-child(7) { animation-delay: 0.42s; }
.logo-lockup.is-visible .el-grid > g:nth-child(8) { animation-delay: 0.49s; }
.logo-lockup.is-visible .el-emblem-path {
  animation: elDraw 1.05s ease forwards 0.78s, elFill 0.55s ease forwards 1.72s;
}
.logo-lockup.is-visible .logo-lockup-word {
  animation: elWord 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.95s;
}
@keyframes elGH   { to { transform: scaleX(1); } }
@keyframes elGV   { to { transform: scaleY(1); } }
@keyframes elDraw { to { stroke-dashoffset: 0; } }
@keyframes elFill { to { fill-opacity: 1; } }
@keyframes elWord { to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .el-gh, .el-gv { transform: none; }
  .el-emblem-path { stroke-dashoffset: 0; fill-opacity: 1; }
  .logo-lockup-word { opacity: 1; transform: none; }
}

.logo-construction {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.logo-box {
  background: #191916;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: stretch;
  padding: 8px 6px;
}
.logo-box-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 16px 10px;
}
.logo-box--feat .logo-box-item:not(:last-child) { border-right: 2px solid var(--border); }
.logo-box-op {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gray);
  font-size: 15px;
  font-weight: 400;
  opacity: 0.65;
}
.logo-box-icon { height: 34px; display: flex; align-items: center; }
.logo-box-icon img { height: 34px; width: auto; object-fit: contain; }
.logo-box-label {
  font-size: 10.9px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
}

.logo-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.logo-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 256 / 384;
}
.logo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}
.logo-photo:hover img { transform: scale(1.05); }

/* ── SECTION 02 — COULEURS ──────────────────────────────────── */
.couleurs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 48px 0 44px;
}
.couleur-card {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 561.6 / 237.9;
}
.couleur-card img { width: 100%; height: 100%; object-fit: cover; }
.couleurs-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}
.couleur-seg-bar {
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.couleur-seg-info {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
}
.couleur-hex {
  font-size: 14.2px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.couleur-note { font-size: 12px; color: var(--gray); }

/* ── SECTION 03 — CARTE DE VISITE ───────────────────────────── */
.cdv-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 40px;
  align-items: start;
}
/* La colonne gauche prend toute la hauteur, pas de padding top supplémentaire */
.cdv-left { display: flex; flex-direction: column; }
.cdv-left .section-label { margin-bottom: 8px; }
.cdv-left .section-title { margin-bottom: 24px; }
.cdv-left .section-desc { max-width: 100%; margin-bottom: 40px; }
.cdv-features { display: flex; flex-direction: column; gap: 30px; }
.cdv-feature { display: flex; gap: 16px; align-items: flex-start; }
.cdv-feature-icon { width: 30px; height: 30px; flex-shrink: 0; }
.cdv-feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.cdv-feature-title {
  font-size: 14.2px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.cdv-feature-desc { font-size: 12px; color: var(--gray); line-height: 1.55; }
.cdv-photo { border-radius: var(--radius-md); overflow: hidden; margin-top: 22px; }
.cdv-photo img { width: 100%; height: auto; display: block; }

/* ── SECTION 04 — SITE INTERNET ─────────────────────────────── */
.site-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
}
.site-left { display: flex; flex-direction: column; }
.site-left .section-label { margin-bottom: 8px; }
.site-left .section-title { margin-bottom: 24px; }
.site-text .section-desc { margin-bottom: 30px; }
.site-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 13px 24px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.site-cta:hover {
  background: #e8ff40;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(216, 255, 0, 0.25);
}
.site-cta svg { width: 14px; height: 14px; flex-shrink: 0; }
.site-mockup {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-mockup-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(0,107,199,0.30) 0%, rgba(0,107,199,0) 65%);
  pointer-events: none;
  z-index: 0;
}
.site-mockup img { position: relative; z-index: 1; width: 100%; height: auto; }

.site-features-band {
  border: 2px solid var(--border);
  border-radius: 17px;
  background: #0d0d0c;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 0;
  overflow: hidden;
}
.site-feature-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 46px 22px;
  border-right: 2px solid var(--border);
  /* inclure opacity/transform : ne pas écraser la transition [data-anim] */
  transition: background var(--transition), opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.site-feature-col:last-child { border-right: none; }
.site-feature-col:hover { background: rgba(216, 255, 0, 0.04); }
.site-feature-col-icon { width: 46px; height: 46px; }
.site-feature-col-icon img { width: 100%; height: 100%; object-fit: contain; }
.site-feature-col-text { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.site-feature-col-title {
  font-size: 14.2px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}
.site-feature-col-desc { font-size: 12px; color: var(--gray); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLETTE (≤ 1024px)
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .logo-construction { grid-template-columns: 1fr; gap: 16px; }
  .logo-photos { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cdv-layout { grid-template-columns: 380px 1fr; gap: 36px; }
  .site-layout { grid-template-columns: 300px 1fr; gap: 36px; }
  .site-features-band { grid-template-columns: repeat(5, 1fr); }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #hero { height: auto; min-height: 78svh; margin-top: 72px; }
  .hero-content { padding: 56px var(--content-pad) 48px; }
  .hero-name span,
  .hero-line1 > span { font-size: clamp(34px, 12vw, 52px); }
  .hero-desc { font-size: 14px; max-width: 270px; }
  .hero-bg::after {
    background: linear-gradient(to right, rgba(13,13,12,0.88) 0%, rgba(13,13,12,0.55) 45%, transparent 75%);
  }
  .hero-services { display: none; }
  .hero-spark--desktop { display: none; }
  .hero-spark--mobile { display: inline-flex; }

  .row-header-line { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Logo : emblème animé + texte SVG côte à côte */
  .logo-lockup { display: flex; align-items: center; gap: 18px; margin: 40px 0; }
  .logo-lockup-emblem { width: 112px; flex-shrink: 0; }
  .logo-lockup-word { flex: 1; width: auto; max-width: none; opacity: 1; transform: none; }
  /* Dôme + Trou de serrure = Logo : tout sur une seule ligne */
  .logo-box { flex-wrap: nowrap; padding: 6px 4px; }
  .logo-box-item { flex: 1; border-right: none; padding: 14px 4px; gap: 10px; }
  .logo-box-icon, .logo-box-icon img { height: 28px; }
  .logo-box-label { font-size: 9.5px; }
  .logo-photos { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Couleurs */
  .couleurs-cards { grid-template-columns: 1fr; gap: 14px; margin: 32px 0; }
  .couleurs-bar { grid-template-columns: 1fr; gap: 22px; }

  /* Carte de visite : features en mode tableau (réf. my-vip / guy-testa) */
  .cdv-layout { grid-template-columns: 1fr; gap: 32px; }
  .cdv-left .section-desc { max-width: 100%; margin-bottom: 28px; }
  .cdv-features {
    gap: 0;
    background: #111110;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  .cdv-feature {
    align-items: center;
    padding: 16px 18px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
  }
  .cdv-feature:last-child { border-bottom: none; }
  .cdv-feature-icon { width: 32px; height: 32px; }
  .cdv-feature-title { margin-bottom: 4px; }

  /* Site internet : plus d'air autour du mockup + features en tableau */
  .site-layout { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .site-mockup { margin: 28px 0 36px; }
  .site-features-band {
    display: flex;
    flex-direction: column;
    background: #111110;
    border-radius: var(--radius-md);
  }
  .site-feature-col {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    padding: 16px 18px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .site-feature-col:last-child { border-bottom: none; }
  .site-feature-col-icon { width: 32px; height: 32px; flex-shrink: 0; }
  .site-feature-col-text { align-items: flex-start; gap: 4px; text-align: left; }
}

/* ── EL VIDEO (full-bleed) ───────────────────────────────── */
.el-video {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.el-video video {
  display: block;
  width: 100%;
  height: auto;
}
