/* ═══════════════════════════════════════════════════════════
   LES COURTIÈRES HUMAINES — extras.css
   Styles des sections ajoutées (équipe, différence, propriétés,
   appel à l'action, boutons). Uniquement les tokens du template :
   --bone / --white / --ink / --ash / --lime / --mono / --sans.
   ═══════════════════════════════════════════════════════════ */

/* ═══════════ BOUTONS ═══════════ */
.x-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.x-center { justify-content: center; }
.x-btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 18px 22px; border-radius: var(--radius);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), background .35s, color .35s, border-color .35s;
  will-change: transform;
}
.x-btn--primary { background: var(--lime); color: var(--lime-ink); }
.x-btn--primary::before {             /* reflet qui balaie le bouton : l'invitation à avancer */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: x-sheen 3.6s var(--ease-inout) infinite;
}
.x-btn--primary:hover { background: #fff; }
.x-btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-faint); }
.x-btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.x-btn--light { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.x-btn--light:hover { background: #fff; color: #1a1915; }
@keyframes x-sheen { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* flèche qui file vers l'avant au survol, et respire au repos */
.x-arrow { position: relative; display: inline-block; width: 1em; height: 1em; overflow: hidden; }
.x-arrow i { position: absolute; left: 0; top: 0; font-style: normal; line-height: 1; transition: transform .5s var(--ease-out); }
.x-arrow i:last-child { transform: translateX(-120%); }
.x-btn:hover .x-arrow i:first-child { transform: translateX(120%); }
.x-btn:hover .x-arrow i:last-child { transform: translateX(0); }
.x-btn--primary .x-arrow i:first-child { animation: x-nudge 2.4s var(--ease-inout) infinite; }
.x-btn--primary:hover .x-arrow i:first-child { animation: none; }
@keyframes x-nudge { 0%, 70%, 100% { translate: 0 0; } 82% { translate: 4px 0; } }
.x-ext { transition: transform .4s var(--ease-out); }
.x-btn:hover .x-ext { transform: translate(2px, -2px); }

/* ═══════════ COMMUN ═══════════ */
.x-section { position: relative; z-index: 2; padding: 16vh var(--gutter); }
.x-wrap { max-width: 1240px; margin: 0 auto; }
.x-h2 { font-size: var(--t-heading); letter-spacing: -0.02em; line-height: 1.08; margin-top: 16px; }
.x-h3 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.1; }
.x-sub { color: var(--ash); margin-top: 14px; }
.x-accent { color: var(--lime); }

/* ═══════════ WHO · ÉQUIPE ═══════════ */
.x-team { display: grid; gap: clamp(90px, 14vh, 160px); max-width: 1240px; margin: 0 auto; position: relative; z-index: 2; }
.x-member { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.x-member.is-flip { grid-template-columns: 7fr 5fr; }
.x-member.is-flip .x-member-photo { order: 2; }
.x-member-photo {
  position: sticky; top: 110px;
  background: var(--lime); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 900 / 1230;
}
/* portrait détouré sur fond blanc → posé sur le rose de la marque */
.x-member-photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 1.2s var(--ease-out); }
.x-member-photo:hover img { transform: scale(1.03); }
.x-member-name { font-size: clamp(40px, 5.2vw, 76px); letter-spacing: -0.03em; line-height: 1; margin: 14px 0 18px; }
.x-member-trait { color: var(--lime); font-size: clamp(19px, 1.6vw, 22px); margin-bottom: 34px; }
.x-member-lead { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 18px; }
.x-member-promise {
  font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4;
  padding-left: 20px; border-left: 2px solid var(--lime); margin: 26px 0 28px;
}
.x-member-bio { color: rgba(var(--ink-rgb), .72); font-size: 17px; line-height: 1.6; max-width: 62ch; }
.x-member-bio + .x-member-bio { margin-top: 14px; }
.x-duo { text-align: center; max-width: 980px; margin: 0 auto; }
.x-duo-text { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -0.015em; color: rgba(var(--ink-rgb), .72); }
.x-duo-punch { font-size: clamp(34px, 5vw, 72px); letter-spacing: -0.03em; line-height: 1.05; margin-top: 36px; }
.x-duo-punch em { font-style: normal; color: var(--lime); }

/* ═══════════ HOW · NOTRE DIFFÉRENCE ═══════════ */
.x-diff { background: var(--bone); }
.x-diff-head { max-width: 900px; }
.x-diff-text { font-size: clamp(21px, 2vw, 27px); line-height: 1.4; letter-spacing: -0.01em; max-width: 900px; margin-top: 34px; color: rgba(var(--ink-rgb), .82); }
.x-pillars { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 10vh; background: var(--ink-faint); border: 1px solid var(--ink-faint); }
.x-pillar { background: var(--bone); padding: 30px 22px 34px; min-height: 250px; display: flex; flex-direction: column; transition: background .45s; }
.x-pillar:hover { background: var(--white); }
.x-pillar-num { color: var(--lime); margin-bottom: auto; padding-bottom: 50px; }
.x-pillar h3 { font-size: 23px; letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 10px; }
.x-pillar p { color: var(--ash); font-size: 15px; line-height: 1.45; }
.x-diff .x-btns { margin-top: 8vh; }

/* ═══════════ WHAT · PROPRIÉTÉS ═══════════ */
.x-listings { background: var(--white); }
.x-list-head { text-align: center; margin-bottom: 8vh; }
.x-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 30px); }
.x-prop { display: block; }
.x-prop-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); }
.x-prop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.x-prop:hover .x-prop-img img { transform: scale(1.05); }
.x-prop-status { position: absolute; top: 12px; left: 12px; background: var(--lime); color: var(--lime-ink); padding: 6px 9px; font-size: 11px; border-radius: var(--radius); }
.x-prop-body { padding-top: 16px; display: grid; gap: 4px; }
.x-prop-price { font-size: 28px; letter-spacing: -0.02em; }
.x-prop-addr { font-size: 18px; }
.x-prop-link { margin-top: 10px; color: var(--lime); font-size: 12px; }
.x-empty {
  position: relative; min-height: 62vh; border-radius: var(--radius); overflow: hidden;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.x-empty::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,17,.05) 20%, rgba(20,19,17,.82) 100%); }
.x-empty-inner { position: relative; color: #fff; padding: clamp(26px, 5vw, 64px); max-width: 780px; }
.x-empty-inner p { color: rgba(255,255,255,.82); margin-top: 14px; line-height: 1.45; }

/* ═══════════ WHAT · APPEL À L'ACTION ═══════════ */
.x-cta { background: var(--bone); padding-bottom: 6vh; }
.x-cta-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.x-cta-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1176 / 1300; }
.x-cta-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.x-cta-photo.in-view img { transform: scale(1); }
.x-cta-title { font-size: clamp(40px, 5.4vw, 84px); letter-spacing: -0.03em; line-height: 1.02; margin: 18px 0 24px; }
.x-cta-text { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: rgba(var(--ink-rgb), .78); max-width: 52ch; }
.x-cta .x-btn { padding: 22px 26px; font-size: 14px; }
.x-cta-mail { margin-top: 22px; }

/* footer : ses boutons */
.x-footer-btns { justify-content: center; margin-top: 34px; }

/* ═══════════ BOUTON FLOTTANT ═══════════ */
.x-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 99;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--lime); color: var(--lime-ink);
  padding: 15px 18px; border-radius: var(--radius); font-size: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transform: translateY(140%); opacity: 0; pointer-events: none;
  transition: transform .7s var(--ease-out), opacity .4s;
}
.x-float.is-on { transform: translateY(0); opacity: 1; pointer-events: auto; }
.x-float i { font-style: normal; animation: x-nudge 2.4s var(--ease-inout) infinite; display: inline-block; }
.x-float::after {                        /* anneau qui pulse : « c'est par ici » */
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 var(--lime); animation: x-pulse 2.8s ease-out infinite;
}
@keyframes x-pulse { 0% { box-shadow: 0 0 0 0 rgba(244,205,212,.55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(244,205,212,0); } }

/* ═══════════ WHAT · SECTEURS DESSERVIS ═══════════ */
.x-areas { background: var(--bone); }
.x-areas-head { max-width: 860px; margin-bottom: 8vh; }
.x-regions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.x-region-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.x-mrc { border-bottom: 1px solid var(--ink-faint); }
.x-mrc summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto 22px; gap: 14px; align-items: center;
  padding: 17px 0; font-size: 19px; transition: color .3s;
}
.x-mrc summary::-webkit-details-marker { display: none; }
.x-mrc summary i { font-style: normal; color: var(--lime); font-size: 22px; line-height: 1; text-align: center; transition: transform .45s var(--ease-out); }
.x-mrc[open] summary i { transform: rotate(45deg); }
.x-mrc summary:hover { color: var(--lime); }
.x-mrc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 22px; }
.x-mrc li {
  font-size: 14px; padding: 7px 11px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ink-faint); color: rgba(var(--ink-rgb), .82);
}
.x-mrc[open] li { animation: x-chip .6s var(--ease-out) both; }
.x-mrc[open] li:nth-child(n) { animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes x-chip { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.x-center-text { text-align: center; margin-top: 18px; }

/* ═══════════ AGENCE (mention OACIQ) ═══════════ */
.x-agency { display: flex; justify-content: center; margin: 7vh 0 1vh; }
.x-agency-link { display: inline-flex; align-items: center; gap: 16px; text-align: left; padding: 12px 18px 12px 12px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--ink-faint); transition: box-shadow .3s; }
.x-agency-link:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.x-agency-link img { width: 58px; height: 58px; flex: none; }
.x-agency-link > span { display: grid; gap: 3px; }
.x-agency-link strong { font-weight: 500; font-size: 17px; }
.x-agency-link .mono { font-size: 11px; }
.x-agency--cta { justify-content: flex-start; margin: 30px 0 0; }

@media (max-width: 900px) {
  .x-regions { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .x-agency-link { padding-right: 12px; }
  .x-agency-link img { width: 48px; height: 48px; }
}

/* ═══════════ TÉLÉPHONES ═══════════ */
.x-phones { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 28px; }
.x-phone { display: grid; gap: 4px; }
.x-phone span:last-child { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; transition: color .3s; }
.x-phone:hover span:last-child { color: var(--lime); }
.x-footer-phones { margin-top: 18px; font-size: 13px; }
.x-footer-phones a:hover { color: var(--lime); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1100px) {
  .x-pillars { grid-template-columns: repeat(2, 1fr); }
  .x-pillar:last-child { grid-column: 1 / -1; }
  .x-pillar { min-height: 0; }
  .x-pillar-num { padding-bottom: 26px; }
}
@media (max-width: 900px) {
  .x-section { padding: 11vh 20px; }
  .x-member, .x-member.is-flip { grid-template-columns: 1fr; gap: 28px; }
  .x-member.is-flip .x-member-photo { order: 0; }
  .x-member-photo { position: relative; top: 0; max-width: 420px; }
  .x-props { grid-template-columns: 1fr 1fr; }
  .x-cta-grid { grid-template-columns: 1fr; }
  .x-cta-photo { max-width: 520px; }
}
@media (max-width: 560px) {
  .x-pillars { grid-template-columns: 1fr; }
  .x-props { grid-template-columns: 1fr; }
  .x-btns { flex-direction: column; align-items: stretch; }
  .x-btn { justify-content: space-between; }
  .x-empty { min-height: 78vh; }
  .x-float { left: 10px; right: 10px; bottom: 10px; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .x-btn--primary::before, .x-float::after, .x-float i, .x-arrow i { animation: none !important; }
}
