/* Bailleur, nouveau style « crème, bleu nuit et or »
   Socle commun de la page de vente et de l'app web (maquettes). */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../assets/fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("../assets/fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../assets/fonts/urbanist-latin.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../assets/fonts/urbanist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0; }

:root {
  /* fonds */
  --cream: #F7F4EE; --cream-2: #EFEAE1; --paper: #FFFFFF; --paper-2: #FCFAF6;
  /* encre bleu nuit */
  --ink: #141A2E; --ink-2: #2A3150; --muted: #5A6074; --faint: #767B8C;
  --navy: #1C2442; --navy-hover: #10162E; --navy-soft: rgba(28,36,66,.07);
  /* or */
  --gold: #A07F3F; --gold-text: #7D6128; --gold-light: #C9A96A; --gold-soft: rgba(160,127,63,.13); --gold-line: rgba(160,127,63,.32);
  /* états */
  --green: #6CC68D; --green-ink: #0B2415; --ok: #1F7A45; --ok-soft: rgba(108,198,141,.22);
  --amber: #EDC067; --amber-ink: #33230A; --warn: #85560A; --warn-soft: rgba(237,192,103,.28);
  --coral: #EE9C80; --coral-ink: #3B150A; --bad: #A93D24; --bad-soft: rgba(238,156,128,.24);
  /* traits et ombres */
  --line: rgba(20,26,46,.09); --line-2: rgba(20,26,46,.17); --well: rgba(20,26,46,.05);
  --edge: rgba(255,255,255,.85);
  --float: 0 1px 2px rgba(40,34,24,.06), 0 10px 26px -16px rgba(40,34,24,.3);
  --lift: 0 1px 2px rgba(40,34,24,.06), 0 24px 54px -30px rgba(40,34,24,.36);
  --window: 0 2px 6px rgba(40,34,24,.06), 0 50px 110px -44px rgba(40,34,24,.42);
  --press: 0 8px 18px -10px rgba(16,22,46,.55);
  --ease: cubic-bezier(.16,1,.3,1);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Urbanist", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: rgba(20,26,46,.25) transparent; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-weight: 450;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; caret-color: var(--gold); }
::selection { background: rgba(160,127,63,.22); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 12px; }
img { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: .22em; text-decoration-thickness: 1px; text-decoration-color: var(--gold-line); }
button { font: inherit; color: inherit; }

/* Titres : Fraunces léger, fin en italique doré */
.serif { font-family: var(--serif); font-optical-sizing: auto; font-weight: 360; letter-spacing: -.02em; }
.serif em, em.gold { font-style: italic; color: var(--gold-text); font-weight: 340; }

svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 24px;
  border-radius: 999px; border: 0; font-family: var(--sans); font-size: 16px; font-weight: 650; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background .25s var(--ease), box-shadow .25s var(--ease), transform .15s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--press); }
.btn-primary:hover { background: var(--navy-hover); }
.btn-primary svg.i { color: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--navy-soft); }
.btn-paper { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--float); }
.btn-paper:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--float); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }

/* Badges et pastilles d'état */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-gold { background: var(--gold-soft); color: var(--gold-text); }
.b-ink { background: var(--navy-soft); color: var(--ink-2); }

.tint { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.tint svg.i { width: 19px; height: 19px; }
.t-ok { background: var(--ok-soft); color: var(--ok); }
.t-warn { background: var(--warn-soft); color: var(--warn); }
.t-gold { background: var(--gold-soft); color: var(--gold-text); }
.t-ink { background: var(--navy-soft); color: var(--ink-2); }

/* Arches en traits fins : le motif de la porte de l'icône Bailleur */
.arches { position: absolute; pointer-events: none; color: var(--gold); }
.arches path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 1.1s var(--ease) both; }
  @keyframes rise { from { opacity: .001; transform: translateY(24px); filter: blur(8px); } }
}

/* ---------- Mouvements fluides (fluide.js) ---------- */
/* Survol glissant : un seul surlignage par liste, qui glisse d'un élément à l'autre */
.glide-on > *:not(.glide-hl):not(.tab-pill) { position: relative; z-index: 1; }
.glide-hl { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; opacity: 0; will-change: transform;
  border-radius: var(--glide-r, 14px); background: var(--glide-bg, rgba(20,26,46,.05));
  transition: transform .16s cubic-bezier(.2,.8,.2,1), width .16s cubic-bezier(.2,.8,.2,1), height .16s cubic-bezier(.2,.8,.2,1), opacity .1s ease; }
.glide-hl.snap, .tab-pill.snap { transition: opacity .1s ease !important; }

/* Onglets : la pastille bleu nuit coulisse sous l'onglet choisi */
.tab-pill { position: absolute; left: 0; top: 0; z-index: 0 !important; pointer-events: none; border-radius: 999px;
  background: var(--navy); box-shadow: var(--press); will-change: transform;
  transition: transform .42s cubic-bezier(.32,.72,0,1), width .42s cubic-bezier(.32,.72,0,1), height .42s cubic-bezier(.32,.72,0,1); }
.tabs-on [role="tab"] { position: relative; z-index: 1; background: transparent !important; box-shadow: none !important;
  transition: color .3s cubic-bezier(.2,.8,.2,1); }
.tabs-on [role="tab"][aria-selected="true"] { color: #fff; }

/* Carrousel : défilement aimanté, flèches, points qui suivent le doigt */
.car-track { display: flex; gap: var(--car-gap, 16px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--car-pad, 0px);
  padding-inline: var(--car-pad, 0px); overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { flex: none; scroll-snap-align: start; }
.car-drag .car-track { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.car-drag .car-track * { pointer-events: none; }
.car-nav { display: flex; align-items: center; gap: 8px; }
.car-btn { width: 40px; height: 40px; border-radius: 999px; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--float); transition: opacity .25s, transform .15s var(--ease), box-shadow .25s; }
.car-btn:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--float); }
.car-btn:active { transform: scale(.94); }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-btn svg.i { width: 18px; height: 18px; }
.car-btn[data-car="prev"] svg.i { transform: scaleX(-1); }
.car-dots { display: flex; justify-content: center; align-items: center; gap: 0; margin-top: 18px; }
.car-dot { --k: 0; width: calc(18px + 18px * var(--k)); height: 18px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.car-dot::before { content: ""; width: calc(6px + 18px * var(--k)); height: 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--navy) calc(22% + 78% * var(--k)), transparent); }
.car-static .car-dots, .car-static .car-nav { display: none; }
