/*
Theme Name: HDG Healthcare Assets
Description: Plateforme confidentielle de cession et d'acquisition de cliniques et terrains santé.
Version: 0.3.0
Text Domain: hdg
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
*/

/* ==========================================================================
   Jetons
   ========================================================================== */

:root {
  --bg: #07090d;
  --bg-2: #0b1017;
  --surface: #10171f;
  --surface-2: #162130;
  --line: rgba(247, 245, 240, 0.09);
  --line-strong: rgba(247, 245, 240, 0.2);
  --text: #f7f5f0;
  --muted: #a6b0ba;
  --faint: #737e8a;
  --navy: #12263f;
  --navy-deep: #0a1626;
  --sage: #7a9e8e;
  --sage-light: #a9c7b9;
  --sage-soft: rgba(122, 158, 142, 0.14);
  --amber: #c9a45c;
  --danger: #e0a194;
  --on-accent: #07090d;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1200px;
  --gutter: 16px;
  --header-h: 88px;
  --header-compact: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dir: 1;
  --start: left;
}

:root[dir="rtl"] {
  --serif: "Noto Kufi Arabic", "Cormorant Garamond", serif;
  --sans: "Noto Naskh Arabic", "Inter", system-ui, sans-serif;
  --dir: -1;
  --start: right;
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-compact) + 72px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--sage); color: var(--on-accent); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.narrow { max-width: 860px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h1.display { font-size: clamp(2.6rem, 6vw, 4.9rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.55rem; }

[dir="rtl"] h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.4; }
[dir="rtl"] h1.display { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
[dir="rtl"] h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.45; }
[dir="rtl"] h3 { font-size: 1.2rem; line-height: 1.5; }
[dir="rtl"] body { font-size: 17px; line-height: 1.9; }

p { margin: 0 0 1em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 44em; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1.2em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--text); }
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.92rem; }

.skip,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  width: auto;
  height: auto;
  clip: auto;
  z-index: 100;
  padding: 10px 16px;
  background: var(--sage);
  color: var(--on-accent);
}

/* ==========================================================================
   Icônes
   ========================================================================== */

.icon { width: 22px; height: 22px; flex: none; color: var(--sage); }
.icon--btn { width: 18px; height: 18px; color: currentColor; }
.icon--lg { width: 40px; height: 40px; }
.icon--xl { width: 64px; height: 64px; }

/* L'icône se dessine quand son bloc apparaît. */
.js [data-reveal] .icon--draw path,
.js [data-reveal].icon--draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease) 0.25s;
}
.js .is-in .icon--draw path { stroke-dashoffset: 0; }

/* L'icône se redessine au survol de sa carte. */
.icon--hover-draw path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.pillar:hover .icon--hover-draw path { animation: draw 0.9s var(--ease); }

@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Boutons et liens
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--sage);
  border-radius: 2px;
  background: var(--sage);
  color: var(--on-accent);
  font: 500 0.95rem/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--sage-light); border-color: var(--sage-light); color: var(--on-accent); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--sage-soft); border-color: var(--sage); color: var(--text); }
.btn--small { padding: 10px 18px; font-size: 0.86rem; }

.arr { display: inline-block; transition: transform 0.2s var(--ease); }
.btn:hover .arr,
.link:hover .arr { transform: translateX(calc(4px * var(--dir))); }

.link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 2px;
  white-space: nowrap;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }

/* ==========================================================================
   En-tête
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.75), rgba(7, 9, 13, 0));
  border-bottom: 1px solid transparent;
  transition: height 0.3s var(--ease), background-color 0.3s ease, border-color 0.3s ease;
}
/* Barre d'administration WordPress (éditeurs connectés). */
.admin-bar .site-header { top: 32px; }
.admin-bar .filters { top: calc(var(--header-compact) + 32px); }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .filters { top: calc(var(--header-compact) + 46px); }
}

.site-header.is-compact,
.site-header.is-open {
  height: var(--header-compact);
  background: var(--bg);
  border-bottom-color: var(--line);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  direction: ltr;
}
.brand__mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.brand__name {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand:hover { color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.main-nav,
.lang-switch { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.main-nav { gap: 30px; }
.main-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: var(--start);
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover,
.main-nav a[aria-current] { color: var(--text); }
.main-nav a:hover::after,
.main-nav a[aria-current]::after { transform: scaleX(1); }

.lang-switch { gap: 2px; padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.lang-switch a {
  display: block;
  padding: 6px 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-decoration: none;
}
.lang-switch a:hover,
.lang-switch a[aria-current] { color: var(--text); }
.lang-switch a[lang="ar"] { font-family: "Noto Kufi Arabic", sans-serif; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { content: ""; left: 0; top: -6px; }
.nav-toggle__bars::after { content: ""; left: 0; top: 6px; }
.is-open .nav-toggle__bars { background: transparent; }
.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .site-header { background: var(--bg); border-bottom-color: var(--line); }
  .js .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px var(--gutter) 32px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav { display: none; }
  .js .is-open .site-nav { display: flex; }
  .main-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .lang-switch { padding: 0; border: 0; }
  .site-nav .btn { width: 100%; }
}

/* ==========================================================================
   Apparitions au défilement
   ========================================================================== */

.js [data-reveal] {
  --rd: var(--delay, calc(var(--i, 0) * 120ms));
  opacity: 0;
  translate: 0 20px;
  transition:
    opacity 0.6s var(--ease) var(--rd),
    translate 0.6s var(--ease) var(--rd),
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ==========================================================================
   Héros
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--img) center / cover no-repeat;
  filter: saturate(0.85);
  animation: slow-zoom 20s ease-out forwards;
}
.hero__media--fixed { animation: none; }
@media (min-width: 1024px) and (hover: hover) {
  .hero__media--fixed { background-attachment: fixed; }
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 38, 63, 0.55) 0%, rgba(18, 38, 63, 0.55) 40%, rgba(7, 9, 13, 0.92) 100%);
}
.hero__inner { position: relative; }
.hero__inner > * { max-width: 900px; }

.hero--full {
  min-height: min(94vh, 880px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 72px) 0 104px;
}
.hero--band {
  min-height: calc(280px + var(--header-h));
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 56px) 0 56px;
}
.hero--band h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.hero--split { padding: calc(var(--header-h) + 64px) 0 96px; }
.hero--plain {
  padding: calc(var(--header-h) + 112px) 0 80px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 120% at 85% 0%, rgba(18, 38, 63, 0.55), transparent 60%);
}

/* Titre, puis sous-titre, puis boutons, à 150 ms d'intervalle. */
.hero__in {
  animation: fade-up 0.7s var(--ease) both;
  animation-delay: calc(150ms + var(--d, 0) * 150ms);
}
.hero__slide { animation: slide-in 1s var(--ease) 0.2s both; }

@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(calc(30px * var(--dir))); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Médias et fonds d'ambiance (tant que la photo n'est pas déposée)
   ========================================================================== */

.media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--img) center / cover no-repeat;
  border: 1px solid var(--line);
  filter: saturate(0.85);
}
.media--tall { aspect-ratio: 4 / 5; }

.media--ambient,
.hero__media.media--ambient {
  background-color: #0b1320;
  background-image:
    linear-gradient(rgba(122, 158, 142, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 158, 142, 0.07) 1px, transparent 1px),
    radial-gradient(70% 90% at 75% 15%, rgba(39, 72, 110, 0.55), transparent 65%),
    radial-gradient(60% 70% at 10% 100%, rgba(122, 158, 142, 0.12), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, #080c12 75%);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
  background-position: center;
}
.hero__media.media--ambient { opacity: 0.9; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 112px 0; position: relative; }
.section--tight { padding-top: 40px; }
.section--panel {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.section--navy { background: var(--navy-deep); }
.section--page { padding-top: calc(var(--header-h) + 72px); }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.section__head h2 { margin: 0; max-width: 18em; }
.section__head .lead { margin-top: 1em; }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center h2 { margin-inline: auto; }

.split {
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.split--hero { grid-template-columns: 1.1fr 0.9fr; }
.split--why { grid-template-columns: 5fr 7fr; align-items: stretch; }
.split--why .split__media { aspect-ratio: auto; min-height: 360px; }
.split--single { grid-template-columns: 7fr 5fr; align-items: start; }
.split--process { grid-template-columns: 4fr 8fr; align-items: start; }
.split--form { grid-template-columns: 5fr 7fr; align-items: start; }
.split--founder { grid-template-columns: 4fr 8fr; }
.split--contact { align-items: start; }
.split--prepare { grid-template-columns: 7fr 5fr; }

.section__head--sticky { position: sticky; top: calc(var(--header-compact) + 40px); }

@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .split,
  .split--hero,
  .split--why,
  .split--single,
  .split--process,
  .split--form,
  .split--founder,
  .split--prepare { grid-template-columns: 1fr; gap: 40px; }
  .section__head--sticky { position: static; }
  .section__head { margin-bottom: 36px; }
}

/* ==========================================================================
   Bandeau de confiance
   ========================================================================== */

.trust {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.trust__list {
  list-style: none;
  margin-block: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trust__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}
.trust__list li + li { border-inline-start: 1px solid var(--line); }
.trust__list li:first-child { padding-inline-start: 0; }
@media (max-width: 860px) {
  .trust__list { grid-template-columns: 1fr; }
  .trust__list li { padding: 18px 0; }
  .trust__list li + li { border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* ==========================================================================
   Cartes
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-top: 18px; }

.card:not(.card--form):hover,
.opp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.9);
  border-color: var(--line-strong);
}
.card--form { background: var(--surface); padding: 40px; }
.card--form h2,
.card--form h3 { margin-top: 0; }
@media (max-width: 640px) { .card--form { padding: 24px 20px; } }

.pillars { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.pillars--3 { grid-template-columns: repeat(3, 1fr); }
.pillar .icon { width: 34px; height: 34px; }
.pillar h3 { font-size: 1.4rem; }
@media (max-width: 860px) {
  .pillars,
  .pillars--3 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Opportunités
   ========================================================================== */

.opp-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
@media (max-width: 720px) {
  .opp-grid--scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 16px;
  }
  .opp-grid--scroll > * { flex: 0 0 86%; scroll-snap-align: start; }
  .opp-grid { grid-template-columns: 1fr; }
}

.opp-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.opp-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--img) center / cover no-repeat;
  filter: saturate(0.85);
}
.opp-card__media .tag,
.opp-card__media .status { position: absolute; top: 14px; }
.opp-card__media .tag { inset-inline-start: 14px; }
.opp-card__media .status { inset-inline-end: 14px; }
.opp-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  flex: 1;
}
.opp-card__body h3 { margin: 0; font-size: 1.5rem; }
.opp-card__body h3 a { color: var(--text); text-decoration: none; }
.opp-card__body .btn { align-self: flex-start; margin-top: auto; }
.ref {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--sage);
}
.opp-card__place,
.opp-card__figs { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 0.92rem; }
.opp-card__place .icon { width: 16px; height: 16px; }
.opp-card__price { margin: 0; display: grid; gap: 2px; font-size: 1rem; }
.opp-card__price span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

.tag,
.status {
  display: inline-block;
  padding: 5px 11px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong);
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(6px);
  color: var(--text);
}
.status--disponible { border-color: var(--sage); color: var(--sage-light); }
.status--sous_offre { border-color: var(--amber); color: var(--amber); }
.status--cede { border-color: var(--line-strong); color: var(--faint); }

/* Ligne verrouillée : au survol, un texte flouté apparaît derrière le cadenas. */
.locked {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 4px;
  padding: 11px 12px;
  border: 1px dashed var(--line-strong);
  font-size: 0.84rem;
  color: var(--muted);
  overflow: hidden;
}
.locked .icon { width: 18px; height: 18px; position: relative; z-index: 1; }
.locked__text { transition: opacity 0.3s ease; }
.locked__blur {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-inline-start: 40px;
  color: var(--text);
  white-space: nowrap;
  filter: blur(5px);
  opacity: 0;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.opp-card:hover .locked__text { opacity: 0; }
.opp-card:hover .locked__blur { opacity: 0.6; }
.locked--block { margin-top: 32px; padding: 18px 20px; font-size: 0.92rem; }

.results-count { color: var(--muted); font-size: 0.88rem; margin-bottom: 24px; }
#opp-results { transition: opacity 0.3s ease; }
#opp-results.is-loading { opacity: 0.35; }

/* Barre de filtres collée sous l'en-tête. */
.filters {
  position: sticky;
  top: var(--header-compact);
  z-index: 20;
  background: rgba(7, 9, 13, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.filters__inner {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding-block: 14px;
  overflow-x: auto;
}
.filters__field { display: grid; gap: 4px; flex: 1 0 150px; }
.filters__field span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
[dir="rtl"] .filters__field span { letter-spacing: 0; font-size: 0.8rem; }
.filters select {
  font: inherit;
  font-size: 0.9rem;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.filters .btn { flex: none; }

/* États vides */
.empty {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  background: var(--surface);
}
.empty h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 0.4em; }
.empty p { color: var(--muted); max-width: 40em; margin-inline: auto; }
.empty .btn { margin-top: 1em; }
.empty__note { font-size: 0.9rem; }
.empty__veil {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px;
  filter: blur(18px);
  opacity: 0.55;
}
.empty__veil span { background: linear-gradient(160deg, var(--navy), var(--bg-2)); }
.empty__body { position: relative; display: grid; justify-items: center; gap: 12px; }
.empty__body p { color: var(--text); font-size: 1.1rem; }

/* Fiche */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  margin: 0 0 40px;
}
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
[dir="rtl"] .facts dt { letter-spacing: 0; font-size: 0.85rem; }
.facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.35rem; }
.prose { color: var(--muted); max-width: 68ch; }
.prose h2, .prose h3 { margin-top: 1.4em; }

/* Bandeau NDA : le cadenas se ferme une fois. */
.nda__inner { display: flex; align-items: center; gap: 40px; max-width: 900px; }
.nda__inner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.nda__inner p { color: var(--muted); margin: 0; }
.nda__lock { flex: none; display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid var(--line-strong); border-radius: 50%; }
.js .nda__inner .shackle { transform: translateY(-3px); transition: transform 0.45s cubic-bezier(0.5, 0, 0.2, 1.4) 0.8s; }
.js .nda__inner.is-in .shackle { transform: none; }
@media (max-width: 640px) { .nda__inner { flex-direction: column; align-items: flex-start; gap: 24px; } }

/* ==========================================================================
   Frises (méthode, processus)
   ========================================================================== */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; --p: 0; }
.timeline__track { position: absolute; background: var(--line-strong); }
.timeline__fill {
  position: absolute;
  inset: 0;
  background: var(--sage);
}
.timeline__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-variant-numeric: lining-nums;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.timeline__step.is-lit .timeline__num {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--on-accent);
  box-shadow: 0 0 0 7px var(--sage-soft);
}
.timeline__step h3 { margin: 22px 0 8px; font-size: 1.45rem; }
.timeline__step p { color: var(--muted); margin: 0; }

.timeline--h { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.timeline--h .timeline__track { top: 23px; height: 1px; inset-inline: 16.66%; }
.timeline--h .timeline__fill { transform: scaleX(var(--p)); transform-origin: var(--start); }
.timeline--h .timeline__step { text-align: center; display: grid; justify-items: center; align-content: start; }
.timeline--h .timeline__step p { max-width: 28ch; }

.timeline--v .timeline__track { top: 23px; bottom: 23px; inset-inline-start: 23px; width: 1px; }
.timeline--v .timeline__fill { transform: scaleY(var(--p)); transform-origin: top; }
.timeline--v .timeline__step { display: grid; grid-template-columns: 46px 1fr; gap: 24px; padding-bottom: 44px; }
.timeline--v .timeline__step:last-child { padding-bottom: 0; }
.timeline--v .timeline__step h3 { margin: 8px 0 6px; }

@media (max-width: 860px) {
  .timeline--h { grid-template-columns: 1fr; gap: 0; }
  .timeline--h .timeline__track { top: 23px; bottom: 23px; inset-inline: 23px auto; width: 1px; height: auto; }
  .timeline--h .timeline__fill { transform: scaleY(var(--p)); transform-origin: top; }
  .timeline--h .timeline__step { grid-template-columns: 46px 1fr; text-align: start; justify-items: start; column-gap: 24px; padding-bottom: 36px; }
  .timeline--h .timeline__step h3,
  .timeline--h .timeline__step p { grid-column: 2; }
  .timeline--h .timeline__step h3 { margin-top: 8px; }
}

/* ==========================================================================
   Céder : préoccupations, liste, FAQ
   ========================================================================== */

.concerns { width: 100%; border-collapse: collapse; }
.concerns thead th {
  text-align: start;
  font: 500 0.72rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 24px 18px 0;
  border-bottom: 1px solid var(--line-strong);
}
[dir="rtl"] .concerns thead th { padding: 0 0 18px 24px; letter-spacing: 0; font-size: 0.85rem; }
.concerns tbody th,
.concerns td { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: start; }
[dir="rtl"] .concerns tbody th,
[dir="rtl"] .concerns td { padding: 28px 0 28px 24px; }
.concerns tbody th { width: 42%; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.concerns td { color: var(--muted); }
.concerns td .icon { display: inline-block; vertical-align: -5px; margin-inline-end: 10px; }
.js .concerns tr[data-reveal] td { opacity: 0; translate: calc(14px * var(--dir)) 0; transition: opacity 0.6s var(--ease) 0.2s, translate 0.6s var(--ease) 0.2s; }
.js .concerns tr.is-in td { opacity: 1; translate: 0 0; }
@media (max-width: 720px) {
  .concerns thead { display: none; }
  .concerns tr { display: block; padding: 22px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); }
  .concerns tbody th,
  .concerns td,
  [dir="rtl"] .concerns tbody th,
  [dir="rtl"] .concerns td { display: block; width: auto; padding: 0; border: 0; }
  .concerns td { margin-top: 12px; }
}

.icon-list,
.commit-list,
.check-list { list-style: none; margin: 0; padding: 0; }
.icon-list li,
.commit-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.icon-list .icon { width: 30px; height: 30px; }
.commit-list li { align-items: flex-start; }
.commit-list .icon { width: 24px; height: 24px; margin-top: 3px; }
.check-list li { display: flex; gap: 12px; padding: 8px 0; }
.check-list .icon { width: 18px; height: 18px; margin-top: 5px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: 1.4rem;
}
[dir="rtl"] .faq summary { font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--sage-light); }
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.faq__icon::before,
.faq__icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: var(--sage); }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon { transform: rotate(45deg); }
.faq details p { color: var(--muted); max-width: 62ch; margin: 0; padding: 0 0 26px; }
.faq details[open] p { animation: fade-up 0.4s var(--ease); }

/* ==========================================================================
   Acquérir : profils, carte
   ========================================================================== */

.profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tabs { display: none; grid-column: 1 / -1; }
.profile {
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.profile:hover { border-color: var(--sage); box-shadow: inset 0 0 0 1px var(--sage); }
.profile__media { aspect-ratio: 16 / 9; border: 0; }
.profile__body { padding: 32px; }
.profile__body h3 { font-size: 1.9rem; margin-bottom: 0.3em; }
@media (max-width: 860px) {
  .profiles { grid-template-columns: 1fr; }
  .js .tabs { display: flex; border-bottom: 1px solid var(--line); }
  .tabs button {
    flex: 1;
    padding: 14px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font: 500 0.95rem var(--sans);
    cursor: pointer;
  }
  .tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--sage); }
  .js .profiles[data-active="operators"] [data-panel="investors"],
  .js .profiles[data-active="investors"] [data-panel="operators"] { display: none; }
}

.note { display: flex; align-items: center; gap: 12px; color: var(--text); margin-top: 1.5em; }

.map-card {
  margin: 0;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.map-card figcaption {
  margin-top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.map-card--city { margin-top: 32px; padding: 0; overflow: hidden; }

.art { width: 100%; height: auto; display: block; direction: ltr; overflow: visible; }
.art text { fill: var(--text); font: 500 13px var(--sans); }
.art__line { fill: none; stroke: var(--sage); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.art__line--accent { stroke-width: 2; }
.art__dash { fill: none; stroke: rgba(247, 245, 240, 0.25); stroke-dasharray: 3 6; }
.art__dot { fill: var(--sage); }
.art__halo { fill: var(--sage-soft); }
.art__sea { fill: var(--navy-deep); }
.art__streets path { fill: none; stroke: rgba(247, 245, 240, 0.12); stroke-width: 1; }
.art--search { width: 220px; margin: 0 auto 8px; }
.art--search .art__streets .art__line { stroke: rgba(247, 245, 240, 0.28); }

.js [data-reveal] .art__line { stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease) 0.3s; }
.js [data-reveal].is-in .art__line { stroke-dashoffset: 0; }
.js [data-reveal] .art__city { opacity: 0; transition: opacity 0.6s ease calc(900ms + var(--i, 0) * 250ms); }
.js [data-reveal].is-in .art__city { opacity: 1; }

/* ==========================================================================
   À propos
   ========================================================================== */

.portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.6s ease; }
.portrait:hover img { filter: grayscale(0); }
.portrait__mono {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: "Cormorant Garamond", serif;
  font-size: 6rem;
  letter-spacing: 0.06em;
  color: var(--sage-light);
  background:
    linear-gradient(rgba(122, 158, 142, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(122, 158, 142, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(160deg, var(--navy), var(--bg) 80%);
}

.quote {
  margin: 2em 0 0;
  padding-inline-start: 28px;
  border-inline-start: 2px solid var(--sage);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  color: var(--text);
}
[dir="rtl"] .quote { font-size: 1.3rem; line-height: 1.8; }
.quote p { margin: 0; }

.contact-list { list-style: none; margin: 32px 0; padding: 0; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li > span:last-child { display: grid; }
.contact-list small {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
[dir="rtl"] .contact-list small { letter-spacing: 0; font-size: 0.8rem; }
.contact-list a { color: var(--text); text-decoration: none; font-size: 1.05rem; }
.contact-list a:hover { color: var(--sage-light); }
.contact-list__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
/* Téléphone et WhatsApp vibrent une seule fois à l'apparition. */
.js .is-in .contact-list__icon--ring .icon { animation: ring 0.7s ease 0.5s 1; }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(5deg); }
}

.contact-inline { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 1.5em; }
.contact-inline a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.contact-inline a:hover { color: var(--sage-light); }

/* ==========================================================================
   Appel final
   ========================================================================== */

.cta-final { overflow: hidden; isolation: isolate; }
.cta-final__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--img) center / cover no-repeat;
  opacity: 0.16;
  filter: grayscale(1);
}
.cta-final__media.media--ambient { opacity: 0.5; filter: none; }
.cta-final .lead { color: #c7cfd8; }

/* ==========================================================================
   Formulaires
   ========================================================================== */

.form { display: grid; gap: 22px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fields { display: grid; gap: 18px 20px; grid-template-columns: repeat(2, 1fr); }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field > span,
.field > legend { font-size: 0.82rem; color: var(--muted); padding: 0; margin-bottom: 0; }
.field > legend { margin-bottom: 10px; }
.field i { font-style: normal; color: var(--sage); }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }

.form input:not([type="checkbox"]):not([type="radio"]),
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  padding: 13px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: border-color 0.2s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.form textarea { resize: vertical; min-height: 110px; }
.form select { cursor: pointer; }

.step__title { font-family: var(--serif); font-size: 1.6rem; color: var(--text); margin-bottom: 18px; padding: 0; }
[dir="rtl"] .step__title { font-size: 1.2rem; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pill:hover span { border-color: var(--sage); color: var(--text); }
.pill input:checked + span { background: var(--sage-soft); border-color: var(--sage); color: var(--sage-light); }
.pill input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 0.82rem; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--sage); flex: none; }

.form__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form__secure { font-size: 0.78rem; color: var(--faint); }

.progress { display: none; }
.js .progress { display: block; }
.progress__track { height: 2px; background: var(--line); overflow: hidden; }
.progress__bar {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: var(--sage);
  transition: width 0.45s var(--ease);
}
.progress__label { margin: 10px 0 0; font-size: 0.8rem; color: var(--muted); }
.progress__label b { color: var(--text); font-weight: 500; }

.trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--sage);
  background: var(--sage-soft);
}
.notice p { margin: 0; }
.notice--error { border-color: var(--danger); background: rgba(224, 161, 148, 0.1); }

/* ==========================================================================
   Pied de page et WhatsApp
   ========================================================================== */

.site-footer {
  background: #040508;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 48px;
  padding: 80px 0 48px;
}
.site-footer__brand p { max-width: 38ch; margin-top: 18px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--faint);
}
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
}

.wa-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--on-accent);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  animation: wa-in 0.5s ease 3s forwards;
  transition: background-color 0.2s ease;
}
.wa-float .icon { width: 28px; height: 28px; color: currentColor; }
.wa-float:hover { background: var(--sage-light); color: var(--on-accent); }
@keyframes wa-in {
  from { opacity: 0; transform: translateY(8px); pointer-events: none; }
  to { opacity: 1; transform: none; pointer-events: auto; }
}

/* ==========================================================================
   Mouvement réduit : aucune animation, tout est visible.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .hero__media { animation: none; }
  .wa-float { opacity: 1; pointer-events: auto; animation: none; }
}
