/* ==========================================================================
   FOREST TERRE — Système de design « Relevé de terrain » · v1.0
   Feuille isolée : tout est préfixé .ftx / --ftx-* pour ne jamais toucher
   au thème Avada ni aux autres pages du site.
   Concept : la page se lit comme un relevé d'expert — traits fins, repères
   de coordonnées, courbes de niveau, alternance crème / vert forêt.
   ========================================================================== */

.ftx {
  /* Couleurs */
  --ftx-forest: #193D30;      /* vert forêt profond — fonds, titres */
  --ftx-forest-deep: #10291F; /* ombre du vert forêt — fonds sombres */
  --ftx-moss: #78866B;        /* vert mousse — territoires, accents doux */
  --ftx-leaf: #8DB255;        /* vert feuille, tiré du logo — usage ponctuel */
  --ftx-cream: #F4F1E8;       /* blanc crème — fond principal */
  --ftx-paper: #FBFAF6;       /* papier — cartes */
  --ftx-wood: #B49A76;        /* beige bois — filets, repères */
  --ftx-wood-dark: #8C7352;   /* bois foncé — texte d'accent sur crème (AA) */
  --ftx-ink: #222823;         /* anthracite — texte courant */
  --ftx-ink-soft: #4E564F;    /* texte secondaire */
  --ftx-line: rgba(34, 40, 35, .14);
  --ftx-line-light: rgba(244, 241, 232, .22);
  --ftx-todo: #9A4F2C;        /* information à compléter */

  /* Typographies */
  --ftx-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ftx-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ftx-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Échelle typographique (ratio ~1.25, fluide) */
  --ftx-fs-xs: .75rem;
  --ftx-fs-sm: .875rem;
  --ftx-fs-base: 1.0625rem;
  --ftx-fs-lg: 1.25rem;
  --ftx-fs-xl: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  --ftx-fs-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --ftx-fs-3xl: clamp(2.5rem, 1.5rem + 4.4vw, 5.25rem);

  /* Espacements (base 4px) */
  --ftx-s1: .25rem; --ftx-s2: .5rem; --ftx-s3: .75rem; --ftx-s4: 1rem;
  --ftx-s5: 1.5rem; --ftx-s6: 2rem; --ftx-s7: 3rem; --ftx-s8: 4.5rem; --ftx-s9: 7rem;
  --ftx-section: clamp(4rem, 3rem + 5vw, 8rem);
  --ftx-wrap: 1240px;
  --ftx-gutter: max(16px, env(safe-area-inset-left, 0px));
  --ftx-gutter-r: max(16px, env(safe-area-inset-right, 0px));

  /* Formes & mouvement */
  --ftx-radius: 2px;
  --ftx-radius-lg: 6px;
  --ftx-shadow: 0 1px 0 rgba(34,40,35,.06), 0 18px 40px -24px rgba(16,41,31,.35);
  --ftx-ease: cubic-bezier(.22, .61, .36, 1);
  --ftx-dur: .5s;

  color: var(--ftx-ink);
  background: var(--ftx-cream);
  font-family: var(--ftx-sans);
  font-size: var(--ftx-fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* --- Remise à zéro locale (neutralise les styles hérités d'Avada) ------- */
.ftx *, .ftx *::before, .ftx *::after { box-sizing: border-box; }
.ftx h1, .ftx h2, .ftx h3, .ftx h4, .ftx p, .ftx ul, .ftx ol, .ftx figure, .ftx dl, .ftx dd, .ftx blockquote {
  margin: 0; padding: 0;
}
.ftx h1, .ftx h2, .ftx h3, .ftx h4 {
  font-family: var(--ftx-serif); font-weight: 400; color: inherit;
  text-transform: none; letter-spacing: -.01em; line-height: 1.1; text-wrap: balance;
}
.ftx ul, .ftx ol { list-style: none; }
.ftx img { display: block; max-width: 100%; height: auto; border: 0; }
.ftx a { color: inherit; text-decoration: none; transition: color .2s; }
.ftx button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; margin: 0; }
.ftx input { font: inherit; margin: 0; }
.ftx :focus-visible { outline: 2px solid var(--ftx-leaf); outline-offset: 3px; }
.ftx [hidden] { display: none !important; }
.ftx .ftx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Structure ------------------------------------------------------------ */
.ftx .ftx-wrap {
  width: 100%; max-width: calc(var(--ftx-wrap) + 2 * 16px); margin-inline: auto;
  padding-left: var(--ftx-gutter); padding-right: var(--ftx-gutter-r);
}
.ftx .ftx-section { padding-block: var(--ftx-section); position: relative; }
.ftx .ftx-section--dark { background: var(--ftx-forest); color: var(--ftx-cream); }
.ftx .ftx-section--paper { background: var(--ftx-paper); }

/* En-tête de section : surtitre + titre + chapeau */
.ftx .ftx-head { display: grid; gap: var(--ftx-s4); max-width: 46rem; margin-bottom: var(--ftx-s7); }
.ftx .ftx-head--split { max-width: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: var(--ftx-s6); }
.ftx .ftx-eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-family: var(--ftx-mono); font-size: var(--ftx-fs-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ftx-wood-dark);
}
.ftx .ftx-eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .7; }
.ftx .ftx-section--dark .ftx-eyebrow, .ftx .ftx-hero .ftx-eyebrow { color: var(--ftx-wood); }
.ftx .ftx-h2 { font-size: var(--ftx-fs-2xl); color: var(--ftx-forest); }
.ftx .ftx-h2 em, .ftx .ftx-h1 em { font-style: italic; font-weight: 300; }
.ftx .ftx-section--dark .ftx-h2 { color: var(--ftx-cream); }
.ftx .ftx-lead { font-size: var(--ftx-fs-lg); line-height: 1.55; color: var(--ftx-ink-soft); max-width: 38rem; }
.ftx .ftx-section--dark .ftx-lead { color: rgba(244,241,232,.78); }

/* --- Boutons -------------------------------------------------------------- */
.ftx .ftx-btn {
  --b-bg: var(--ftx-forest); --b-fg: var(--ftx-cream); --b-bd: var(--ftx-forest);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.4em; border: 1px solid var(--b-bd); border-radius: var(--ftx-radius);
  background: var(--b-bg); color: var(--b-fg);
  font-family: var(--ftx-sans); font-size: var(--ftx-fs-sm); font-weight: 700; letter-spacing: .04em; line-height: 1.2;
  overflow: hidden; isolation: isolate; cursor: pointer; text-align: center;
  transition: color .35s var(--ftx-ease), border-color .35s var(--ftx-ease), transform .2s;
}
.ftx .ftx-btn::after { /* remplissage qui pousse depuis la gauche */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--b-hover, var(--ftx-forest-deep));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ftx-ease);
}
.ftx .ftx-btn:hover::after { transform: scaleX(1); }
.ftx .ftx-btn:active { transform: translateY(1px); }
.ftx .ftx-btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .35s var(--ftx-ease); }
.ftx .ftx-btn:hover svg { transform: translateX(3px); }
.ftx .ftx-btn--light { --b-bg: var(--ftx-cream); --b-fg: var(--ftx-forest); --b-bd: var(--ftx-cream); --b-hover: #fff; }
.ftx .ftx-btn--ghost { --b-bg: transparent; --b-fg: var(--ftx-forest); --b-bd: var(--ftx-forest); --b-hover: var(--ftx-forest); }
.ftx .ftx-btn--ghost:hover { color: var(--ftx-cream); }
.ftx .ftx-btn--ghost-light { --b-bg: transparent; --b-fg: var(--ftx-cream); --b-bd: rgba(244,241,232,.55); --b-hover: var(--ftx-cream); }
.ftx .ftx-btn--ghost-light:hover { color: var(--ftx-forest); border-color: var(--ftx-cream); }
.ftx .ftx-btn--sm { min-height: 40px; padding: .55em 1em; font-size: var(--ftx-fs-xs); }
.ftx .ftx-btns { display: flex; flex-wrap: wrap; gap: var(--ftx-s3); }

.ftx .ftx-link {
  display: inline-flex; align-items: center; gap: .45em; font-weight: 700; font-size: var(--ftx-fs-sm);
  color: var(--ftx-forest); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ftx-ease);
}
.ftx .ftx-link:hover { background-size: 100% 1px; }
.ftx .ftx-link svg { width: 1em; height: 1em; }

/* Chips / badges */
.ftx .ftx-chip {
  display: inline-flex; align-items: center; gap: .45em; padding: .3em .75em; border: 1px solid var(--ftx-line);
  border-radius: 999px; font-size: var(--ftx-fs-xs); font-weight: 600; letter-spacing: .02em; color: var(--ftx-ink-soft);
  background: transparent; line-height: 1.4;
}
.ftx .ftx-chip--solid { background: var(--ftx-forest); border-color: var(--ftx-forest); color: var(--ftx-cream); }
.ftx .ftx-chip--moss { background: rgba(120,134,107,.16); border-color: transparent; color: var(--ftx-forest); }
.ftx .ftx-todo {
  display: inline-flex; align-items: center; gap: .4em; padding: .2em .6em; border: 1px dashed var(--ftx-todo);
  border-radius: var(--ftx-radius); color: var(--ftx-todo); font-family: var(--ftx-mono); font-size: var(--ftx-fs-xs);
}
.ftx .ftx-coord { font-family: var(--ftx-mono); font-size: var(--ftx-fs-xs); letter-spacing: .06em; color: var(--ftx-wood-dark); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   1. BANNIÈRE
   ========================================================================== */
.ftx .ftx-hero {
  position: relative; min-height: clamp(580px, 88vh, 880px); display: flex; align-items: flex-end;
  color: var(--ftx-cream); background: var(--ftx-forest-deep); overflow: hidden; isolation: isolate;
}
.ftx .ftx-hero__media { position: absolute; inset: -6% 0 -6%; z-index: -2; will-change: transform; }
.ftx .ftx-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: ftx-kenburns 18s var(--ftx-ease) both; }
.ftx .ftx-hero::before { /* voile pour la lisibilité */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(16,41,31,.55) 0%, rgba(16,41,31,.15) 32%, rgba(16,41,31,.35) 58%, rgba(16,41,31,.92) 100%),
    linear-gradient(90deg, rgba(16,41,31,.55), rgba(16,41,31,0) 65%);
}
.ftx .ftx-hero__topo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .5; mix-blend-mode: soft-light; pointer-events: none; }
.ftx .ftx-hero__inner { width: 100%; padding-block: var(--ftx-s9) var(--ftx-s7); display: grid; gap: var(--ftx-s5); }
.ftx .ftx-h1 { font-size: var(--ftx-fs-3xl); line-height: 1.02; letter-spacing: -.025em; max-width: 15ch; font-weight: 400; }
.ftx .ftx-hero__sub { max-width: 40rem; font-size: var(--ftx-fs-lg); line-height: 1.55; color: rgba(244,241,232,.86); }
.ftx .ftx-hero .ftx-btns { margin-top: var(--ftx-s2); }
.ftx .ftx-hero__foot {
  margin-top: var(--ftx-s6); padding-top: var(--ftx-s4); border-top: 1px solid var(--ftx-line-light);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--ftx-s4);
}
.ftx .ftx-hero__facts { display: flex; flex-wrap: wrap; gap: var(--ftx-s2) var(--ftx-s6); font-size: var(--ftx-fs-sm); }
.ftx .ftx-hero__facts strong { font-family: var(--ftx-serif); font-size: 1.5rem; font-weight: 400; margin-right: .35em; color: #fff; }
.ftx .ftx-hero__facts span { color: rgba(244,241,232,.8); }
.ftx .ftx-scroll { display: inline-flex; align-items: center; gap: .75em; font-family: var(--ftx-mono); font-size: var(--ftx-fs-xs); letter-spacing: .14em; text-transform: uppercase; color: rgba(244,241,232,.8); }
.ftx .ftx-scroll__line { position: relative; width: 1px; height: 44px; background: var(--ftx-line-light); overflow: hidden; }
.ftx .ftx-scroll__line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ftx-cream); animation: ftx-scrollhint 2.2s var(--ftx-ease) infinite; }

/* Séquence d'arrivée */
.ftx .ftx-hero [data-ftx-in] { animation: ftx-rise .9s var(--ftx-ease) both; }
.ftx .ftx-hero [data-ftx-in="2"] { animation-delay: .12s; }
.ftx .ftx-hero [data-ftx-in="3"] { animation-delay: .24s; }
.ftx .ftx-hero [data-ftx-in="4"] { animation-delay: .36s; }
.ftx .ftx-hero [data-ftx-in="5"] { animation-delay: .5s; }

/* ==========================================================================
   2. CARTE INTERACTIVE
   ========================================================================== */
.ftx .ftx-map-section { background: var(--ftx-cream); }
.ftx .ftx-mapbox {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  border: 1px solid var(--ftx-line); background: var(--ftx-paper); box-shadow: var(--ftx-shadow); border-radius: var(--ftx-radius-lg);
  overflow: hidden;
}
.ftx .ftx-map-col { position: relative; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--ftx-line); }
.ftx .ftx-map-tools {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ftx-s3);
  padding: var(--ftx-s3) var(--ftx-s4); border-bottom: 1px solid var(--ftx-line);
}
.ftx .ftx-seg { display: inline-flex; border: 1px solid var(--ftx-line); border-radius: 999px; padding: 3px; gap: 2px; }
.ftx .ftx-seg button { padding: .35em .95em; border-radius: 999px; font-size: var(--ftx-fs-xs); font-weight: 700; letter-spacing: .03em; color: var(--ftx-ink-soft); transition: background .25s, color .25s; }
.ftx .ftx-seg button[aria-pressed="true"] { background: var(--ftx-forest); color: var(--ftx-cream); }
.ftx .ftx-seg button:hover:not([aria-pressed="true"]) { color: var(--ftx-forest); background: rgba(120,134,107,.14); }
.ftx .ftx-map {
  position: relative; flex: 1; min-height: 560px; background: var(--ftx-paper);
  background-image: radial-gradient(rgba(34,40,35,.10) 1px, transparent 1px); background-size: 18px 18px;
}
.ftx .ftx-map .leaflet-container, .ftx .ftx-map.leaflet-container { background: transparent; font-family: var(--ftx-sans); }
.ftx .ftx-map-touch {
  position: absolute; inset: 0; z-index: 500; display: none; place-items: end center; padding-bottom: var(--ftx-s5);
  background: linear-gradient(180deg, transparent 60%, rgba(25,61,48,.18));
}
.ftx .ftx-map-touch span { background: var(--ftx-forest); color: var(--ftx-cream); padding: .6em 1.1em; border-radius: 999px; font-size: var(--ftx-fs-sm); font-weight: 600; box-shadow: var(--ftx-shadow); }
.ftx .ftx-map.is-locked .ftx-map-touch { display: grid; }
.ftx .ftx-map-zoom { position: absolute; z-index: 450; right: var(--ftx-s3); top: var(--ftx-s3); display: grid; gap: 4px; }
.ftx .ftx-map-zoom button {
  width: 40px; height: 40px; display: grid; place-items: center; background: var(--ftx-paper); border: 1px solid var(--ftx-line);
  border-radius: var(--ftx-radius); color: var(--ftx-forest); transition: background .2s, color .2s;
}
.ftx .ftx-map-zoom button:hover { background: var(--ftx-forest); color: var(--ftx-cream); }
.ftx .ftx-map-zoom svg { width: 18px; height: 18px; }
.ftx .ftx-map-legend {
  display: flex; flex-wrap: wrap; gap: var(--ftx-s2) var(--ftx-s5); padding: var(--ftx-s3) var(--ftx-s4);
  border-top: 1px solid var(--ftx-line); font-size: var(--ftx-fs-xs); color: var(--ftx-ink-soft);
}
.ftx .ftx-map-legend li { display: inline-flex; align-items: center; gap: .5em; }
.ftx .ftx-sw { width: 14px; height: 14px; border-radius: 2px; flex: none; }
.ftx .ftx-sw--zone { background: var(--ftx-moss); }
.ftx .ftx-sw--out { background: #E4DFD1; }
.ftx .ftx-sw--pin { width: 14px; height: 14px; border-radius: 50%; background: var(--ftx-forest); box-shadow: 0 0 0 3px rgba(141,178,85,.55); }
.ftx .ftx-map-legend .ftx-legend-note { margin-left: auto; }
.ftx .ftx-map-fallback { padding: var(--ftx-s6); color: var(--ftx-ink-soft); }

/* Marqueurs */
.ftx .ftx-pin { position: relative; display: block; width: 22px; height: 22px; }
.ftx .ftx-pin__dot { position: absolute; inset: 4px; border-radius: 50%; background: var(--ftx-forest); border: 2px solid var(--ftx-paper); box-shadow: 0 2px 6px rgba(16,41,31,.4); transition: transform .3s var(--ftx-ease), background .3s; }
.ftx .ftx-pin__ring { position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--ftx-leaf); animation: ftx-pulse 2.6s var(--ftx-ease) infinite; }
.ftx .ftx-pin__label {
  position: absolute; left: 28px; top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none;
  font-family: var(--ftx-serif); font-size: 15px; color: var(--ftx-forest); line-height: 1;
  text-shadow: 0 0 3px var(--ftx-paper), 0 0 6px var(--ftx-paper), 0 0 10px var(--ftx-paper);
}
.ftx .ftx-pin-wrap:hover .ftx-pin__dot, .ftx .ftx-pin-wrap.is-active .ftx-pin__dot { transform: scale(1.3); background: var(--ftx-leaf); }
.ftx .ftx-pin-wrap.is-active .ftx-pin__ring { border-color: var(--ftx-forest); }
.ftx .ftx-pin-wrap { cursor: pointer; }
.ftx .ftx-pin-wrap:focus-visible { outline: none; }
.ftx .ftx-pin-wrap:focus-visible .ftx-pin__dot { outline: 2px solid var(--ftx-leaf); outline-offset: 3px; }

/* Infobulles Leaflet restylées */
.ftx .leaflet-tooltip.ftx-tip {
  background: var(--ftx-forest); color: var(--ftx-cream); border: 0; border-radius: var(--ftx-radius);
  padding: .5em .8em; font-family: var(--ftx-sans); font-size: 13px; line-height: 1.35; box-shadow: var(--ftx-shadow);
}
.ftx .leaflet-tooltip.ftx-tip::before { display: none; }
.ftx .ftx-tip b { display: block; font-family: var(--ftx-serif); font-weight: 400; font-size: 15px; }
.ftx .ftx-tip small { color: var(--ftx-wood); font-family: var(--ftx-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.ftx .leaflet-control-attribution { background: rgba(251,250,246,.86); font-size: 10.5px; color: var(--ftx-ink-soft); }
.ftx .leaflet-control-attribution a { color: var(--ftx-forest); text-decoration: underline; }

/* Panneau latéral */
.ftx .ftx-panel { position: relative; min-width: 0; display: flex; flex-direction: column; background: var(--ftx-paper); }
.ftx .ftx-panel__view { padding: var(--ftx-s5); display: grid; gap: var(--ftx-s4); align-content: start; animation: ftx-fade .45s var(--ftx-ease) both; }
.ftx .ftx-panel__view[hidden] { display: none; }
.ftx .ftx-panel__kicker { font-family: var(--ftx-mono); font-size: var(--ftx-fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ftx-wood-dark); }
.ftx .ftx-panel__title { font-size: var(--ftx-fs-xl); color: var(--ftx-forest); }
.ftx .ftx-panel__photo { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--ftx-radius); margin: calc(-1 * var(--ftx-s5)) calc(-1 * var(--ftx-s5)) 0; border-radius: 0; }
.ftx .ftx-panel__photo img { width: 100%; height: 100%; object-fit: cover; }
.ftx .ftx-panel__close { justify-self: start; display: inline-flex; align-items: center; gap: .4em; font-size: var(--ftx-fs-xs); font-weight: 700; color: var(--ftx-ink-soft); letter-spacing: .04em; }
.ftx .ftx-panel__close:hover { color: var(--ftx-forest); }
.ftx .ftx-panel__close svg { width: 14px; height: 14px; }
.ftx .ftx-dl { display: grid; gap: var(--ftx-s3); font-size: var(--ftx-fs-sm); }
.ftx .ftx-dl > div { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: var(--ftx-s2); align-items: start; }
.ftx .ftx-dl svg { width: 18px; height: 18px; color: var(--ftx-moss); margin-top: 2px; }
.ftx .ftx-dl dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ftx .ftx-dl dd { min-width: 0; overflow-wrap: anywhere; }
.ftx .ftx-dl a:hover { color: var(--ftx-forest); text-decoration: underline; }
.ftx .ftx-dl small { display: block; color: var(--ftx-ink-soft); font-size: var(--ftx-fs-xs); }
.ftx .ftx-panel .ftx-btns { padding-top: var(--ftx-s2); }
.ftx .ftx-panel .ftx-btn { flex: 1 1 140px; }
.ftx .ftx-panel-list { display: grid; gap: var(--ftx-s2); }
.ftx .ftx-panel-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--ftx-s3); align-items: center; text-align: left;
  width: 100%; padding: var(--ftx-s3) var(--ftx-s4); border: 1px solid var(--ftx-line); border-radius: var(--ftx-radius);
  transition: border-color .25s, background .25s, transform .25s var(--ftx-ease);
}
.ftx .ftx-panel-item:hover { border-color: var(--ftx-forest); background: rgba(120,134,107,.08); transform: translateX(3px); }
.ftx .ftx-panel-item b { display: block; font-family: var(--ftx-serif); font-weight: 400; font-size: 1.1rem; color: var(--ftx-forest); }
.ftx .ftx-panel-item span { font-size: var(--ftx-fs-xs); color: var(--ftx-ink-soft); }
.ftx .ftx-panel-item svg { width: 16px; height: 16px; color: var(--ftx-moss); }
.ftx .ftx-panel-item .ftx-sw--pin { margin: 0 4px; }
.ftx .ftx-panel__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--ftx-line); }
.ftx .ftx-panel__stats div { padding: var(--ftx-s3) 0; text-align: center; }
.ftx .ftx-panel__stats div + div { border-left: 1px solid var(--ftx-line); }
.ftx .ftx-panel__stats strong { display: block; font-family: var(--ftx-serif); font-weight: 400; font-size: 1.75rem; color: var(--ftx-forest); line-height: 1.1; }
.ftx .ftx-panel__stats span { font-size: var(--ftx-fs-xs); color: var(--ftx-ink-soft); }
.ftx .ftx-panel__note { font-size: var(--ftx-fs-xs); color: var(--ftx-ink-soft); line-height: 1.5; }
.ftx .ftx-panel__intl { display: flex; flex-wrap: wrap; gap: 6px; }

/* ==========================================================================
   3. FICHES IMPLANTATIONS
   ========================================================================== */
.ftx .ftx-offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: var(--ftx-s6); }
.ftx .ftx-office {
  position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--ftx-paper); border: 1px solid var(--ftx-line);
  border-radius: var(--ftx-radius-lg); overflow: hidden; transition: transform .5s var(--ftx-ease), box-shadow .5s var(--ftx-ease), border-color .3s;
}
.ftx .ftx-office:hover { transform: translateY(-4px); box-shadow: var(--ftx-shadow); }
.ftx .ftx-office.is-active { border-color: var(--ftx-forest); box-shadow: 0 0 0 1px var(--ftx-forest), var(--ftx-shadow); }
.ftx .ftx-office__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ftx-forest); }
.ftx .ftx-office__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ftx-ease); }
.ftx .ftx-office:hover .ftx-office__media img { transform: scale(1.045); }
.ftx .ftx-office__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(16,41,31,.65)); }
.ftx .ftx-office__badge { position: absolute; z-index: 1; left: var(--ftx-s4); bottom: var(--ftx-s4); display: flex; flex-wrap: wrap; gap: 6px; }
.ftx .ftx-office__badge .ftx-chip { background: rgba(244,241,232,.92); border-color: transparent; color: var(--ftx-forest); }
.ftx .ftx-office__coord { position: absolute; z-index: 1; right: var(--ftx-s4); bottom: var(--ftx-s4); color: rgba(244,241,232,.9); }
.ftx .ftx-office__body { padding: var(--ftx-s5) var(--ftx-s5) var(--ftx-s5); display: grid; gap: var(--ftx-s4); align-content: start; }
.ftx .ftx-office__title { font-size: var(--ftx-fs-xl); color: var(--ftx-forest); }
.ftx .ftx-office__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--ftx-s5); padding-top: var(--ftx-s4); border-top: 1px solid var(--ftx-line); }
.ftx .ftx-office h4 { font-family: var(--ftx-mono); font-size: var(--ftx-fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ftx-wood-dark); margin-bottom: var(--ftx-s2); font-weight: 500; }
.ftx .ftx-ticks { display: grid; gap: 6px; font-size: var(--ftx-fs-sm); }
.ftx .ftx-office__cols > div:only-child .ftx-ticks { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 6px var(--ftx-s5); }
.ftx .ftx-ticks li { position: relative; padding-left: 1.1rem; }
.ftx .ftx-ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: .55rem; height: 1px; background: var(--ftx-moss); }
.ftx .ftx-office .ftx-btns { padding-top: var(--ftx-s2); }
.ftx .ftx-office .ftx-btn { flex: 1 1 auto; }
.ftx .ftx-person { display: grid; gap: 2px; font-size: var(--ftx-fs-sm); }
.ftx .ftx-person b { font-weight: 700; }
.ftx .ftx-person small { color: var(--ftx-ink-soft); font-size: var(--ftx-fs-xs); line-height: 1.45; }

/* ==========================================================================
   4. TERRITOIRES
   ========================================================================== */
.ftx .ftx-terr { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ftx-s7); align-items: start; }
.ftx #ftx-territoires > .ftx-wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--ftx-s8); align-items: center; }
.ftx #ftx-territoires .ftx-head { margin-bottom: 0; }
.ftx .ftx-finder { position: relative; display: grid; gap: var(--ftx-s4); padding: var(--ftx-s5); background: var(--ftx-forest); color: var(--ftx-cream); border-radius: var(--ftx-radius-lg); }
.ftx .ftx-finder h3 { font-size: var(--ftx-fs-xl); }
.ftx .ftx-finder p { font-size: var(--ftx-fs-sm); color: rgba(244,241,232,.78); }
.ftx .ftx-field { position: relative; }
.ftx .ftx-field svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ftx-moss); pointer-events: none; }
.ftx .ftx-field input {
  width: 100%; min-height: 52px; padding: .8em 1em .8em 2.8em; border: 1px solid rgba(244,241,232,.3); border-radius: var(--ftx-radius);
  background: rgba(244,241,232,.06); color: var(--ftx-cream); font-size: 1rem;
  transition: border-color .25s, background .25s;
}
.ftx .ftx-field input::placeholder { color: rgba(244,241,232,.55); }
.ftx .ftx-field input:focus { outline: none; border-color: var(--ftx-leaf); background: rgba(244,241,232,.1); }
.ftx .ftx-suggest { display: grid; gap: 2px; max-height: 260px; overflow: auto; }
.ftx .ftx-suggest button {
  display: flex; justify-content: space-between; gap: var(--ftx-s3); width: 100%; padding: .6em .8em; text-align: left; border-radius: var(--ftx-radius);
  font-size: var(--ftx-fs-sm); color: var(--ftx-cream); transition: background .2s;
}
.ftx .ftx-suggest button:hover, .ftx .ftx-suggest button:focus-visible { background: rgba(244,241,232,.1); }
.ftx .ftx-suggest small { color: var(--ftx-wood); font-family: var(--ftx-mono); font-size: 11px; }
.ftx .ftx-result { display: grid; gap: var(--ftx-s3); padding: var(--ftx-s4); background: var(--ftx-cream); color: var(--ftx-ink); border-radius: var(--ftx-radius); animation: ftx-fade .4s var(--ftx-ease) both; }
.ftx .ftx-result h4 { font-family: var(--ftx-serif); font-size: 1.35rem; color: var(--ftx-forest); }
.ftx .ftx-result p { color: var(--ftx-ink-soft); font-size: var(--ftx-fs-sm); }
.ftx .ftx-status { display: inline-flex; align-items: center; gap: .5em; font-size: var(--ftx-fs-sm); font-weight: 700; }
.ftx .ftx-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ftx-leaf); box-shadow: 0 0 0 3px rgba(141,178,85,.3); }
.ftx .ftx-status--out::before { background: var(--ftx-wood); box-shadow: 0 0 0 3px rgba(180,154,118,.3); }
.ftx .ftx-finder__hint { font-size: var(--ftx-fs-xs) !important; color: rgba(244,241,232,.6) !important; }

.ftx .ftx-regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ftx-line); border: 1px solid var(--ftx-line); border-radius: var(--ftx-radius-lg); overflow: hidden; }
.ftx .ftx-region { background: var(--ftx-paper); padding: var(--ftx-s5); display: grid; gap: var(--ftx-s2); align-content: start; text-align: left; transition: background .3s; position: relative; }
.ftx .ftx-region:hover { background: #fff; }
.ftx .ftx-region__n { font-family: var(--ftx-mono); font-size: var(--ftx-fs-xs); color: var(--ftx-wood-dark); letter-spacing: .08em; }
.ftx .ftx-region h3 { font-size: 1.4rem; color: var(--ftx-forest); }
.ftx .ftx-region__deps { display: flex; flex-wrap: wrap; gap: 4px; }
.ftx .ftx-region__deps span { font-family: var(--ftx-mono); font-size: 11px; padding: .15em .45em; border: 1px solid var(--ftx-line); border-radius: 2px; color: var(--ftx-ink-soft); }
.ftx .ftx-region__go { position: absolute; top: var(--ftx-s5); right: var(--ftx-s5); width: 18px; height: 18px; color: var(--ftx-moss); transition: transform .35s var(--ftx-ease), color .3s; }
.ftx .ftx-region:hover .ftx-region__go { transform: translate(3px, -3px); color: var(--ftx-forest); }
.ftx .ftx-region--intl { grid-column: 1 / -1; background: var(--ftx-cream); }
.ftx .ftx-region--intl .ftx-region__deps span { font-family: var(--ftx-sans); font-size: var(--ftx-fs-xs); font-weight: 600; }

/* ==========================================================================
   5. EXPERTISES
   ========================================================================== */
.ftx .ftx-services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--ftx-s4); }
.ftx .ftx-service {
  grid-column: span 2; position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: var(--ftx-s4); min-height: 320px;
  padding: var(--ftx-s5); border: 1px solid var(--ftx-line-light); border-radius: var(--ftx-radius-lg); overflow: hidden; isolation: isolate;
  color: var(--ftx-cream); background: rgba(16,41,31,.35);
  transition: border-color .4s, transform .5s var(--ftx-ease);
}
.ftx .ftx-service:nth-child(1), .ftx .ftx-service:nth-child(2) { grid-column: span 3; }
.ftx .ftx-service__bg { position: absolute; inset: 0; z-index: -2; opacity: .0; transition: opacity .6s var(--ftx-ease), transform 1.2s var(--ftx-ease); transform: scale(1.06); }
.ftx .ftx-service__bg img { width: 100%; height: 100%; object-fit: cover; }
.ftx .ftx-service::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,41,31,.55), rgba(16,41,31,.92)); opacity: 0; transition: opacity .6s; }
.ftx .ftx-service:hover, .ftx .ftx-service:focus-visible { border-color: rgba(244,241,232,.55); transform: translateY(-4px); }
.ftx .ftx-service:hover .ftx-service__bg, .ftx .ftx-service:focus-visible .ftx-service__bg { opacity: 1; transform: scale(1); }
.ftx .ftx-service:hover::after, .ftx .ftx-service:focus-visible::after { opacity: 1; }
.ftx .ftx-service__icon { width: 52px; height: 52px; color: var(--ftx-wood); }
.ftx .ftx-service h3 { font-size: 1.6rem; }
.ftx .ftx-service p { font-size: var(--ftx-fs-sm); color: rgba(244,241,232,.78); max-width: 36ch; margin-top: var(--ftx-s3); }
.ftx .ftx-service__more { display: inline-flex; align-items: center; gap: .5em; font-size: var(--ftx-fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ftx-wood); }
.ftx .ftx-service__more svg { width: 16px; height: 16px; transition: transform .35s var(--ftx-ease); }
.ftx .ftx-service:hover .ftx-service__more svg { transform: translateX(5px); }

/* ==========================================================================
   6. PROXIMITÉ
   ========================================================================== */
.ftx .ftx-prox { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ftx-s8); align-items: center; }
.ftx .ftx-prox__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--ftx-radius-lg); }
.ftx .ftx-prox__media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.ftx .ftx-prox__cap {
  position: absolute; left: var(--ftx-s4); right: var(--ftx-s4); bottom: var(--ftx-s4); padding: var(--ftx-s3) var(--ftx-s4);
  background: rgba(251,250,246,.94); border-radius: var(--ftx-radius); font-size: var(--ftx-fs-xs); color: var(--ftx-ink-soft); line-height: 1.45;
}
.ftx .ftx-prox__cap b { color: var(--ftx-forest); }
.ftx .ftx-prox__text { display: grid; gap: var(--ftx-s5); }
.ftx .ftx-prox__text > .ftx-h2, .ftx .ftx-prox__text > .ftx-lead { max-width: 46rem; }
.ftx .ftx-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ftx-s5) var(--ftx-s6); margin-top: var(--ftx-s3); }
.ftx .ftx-value { display: grid; gap: 6px; padding-top: var(--ftx-s4); border-top: 1px solid var(--ftx-line); }
.ftx .ftx-value h3 { font-size: 1.2rem; color: var(--ftx-forest); }
.ftx .ftx-value p { font-size: var(--ftx-fs-sm); color: var(--ftx-ink-soft); }
.ftx .ftx-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--ftx-s8); border-block: 1px solid var(--ftx-line); }
.ftx .ftx-figure { padding: var(--ftx-s5) var(--ftx-s4); display: grid; gap: 4px; align-content: start; }
.ftx .ftx-figure + .ftx-figure { border-left: 1px solid var(--ftx-line); }
.ftx .ftx-figure__n { font-family: var(--ftx-serif); font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4rem); line-height: 1; color: var(--ftx-forest); font-variant-numeric: tabular-nums; font-weight: 300; }
.ftx .ftx-figure__l { font-size: var(--ftx-fs-sm); font-weight: 600; }
.ftx .ftx-figure__s { font-size: var(--ftx-fs-xs); color: var(--ftx-ink-soft); }
.ftx .ftx-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ftx-s5); margin-top: var(--ftx-s7); }
.ftx .ftx-member { display: grid; gap: 6px; padding: var(--ftx-s5); background: var(--ftx-paper); border: 1px solid var(--ftx-line); border-radius: var(--ftx-radius-lg); }
.ftx .ftx-member b { font-family: var(--ftx-serif); font-weight: 400; font-size: 1.35rem; color: var(--ftx-forest); }
.ftx .ftx-member p { font-size: var(--ftx-fs-sm); color: var(--ftx-ink-soft); }

/* ==========================================================================
   7. CONTACT
   ========================================================================== */
.ftx .ftx-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--ftx-forest-deep); color: var(--ftx-cream); }
.ftx .ftx-cta__bg { position: absolute; inset: 0; z-index: -2; opacity: .35; }
.ftx .ftx-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.ftx .ftx-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(16,41,31,.96) 0%, rgba(25,61,48,.9) 45%, rgba(25,61,48,.55) 100%); }
.ftx .ftx-cta__rings { position: absolute; right: -8%; top: 50%; z-index: -1; width: min(720px, 80vw); aspect-ratio: 1; transform: translateY(-50%); opacity: .35; pointer-events: none; }
.ftx .ftx-cta__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--ftx-s7); align-items: end; }
.ftx .ftx-cta .ftx-h2 { font-size: var(--ftx-fs-2xl); color: var(--ftx-cream); max-width: 18ch; }
.ftx .ftx-cta__text { display: grid; gap: var(--ftx-s5); }
.ftx .ftx-cta .ftx-lead { color: rgba(244,241,232,.84); }
.ftx .ftx-cta__card { display: grid; gap: var(--ftx-s4); padding: var(--ftx-s5); border: 1px solid var(--ftx-line-light); border-radius: var(--ftx-radius-lg); background: rgba(16,41,31,.45); backdrop-filter: blur(6px); }
.ftx .ftx-cta__row { display: grid; gap: 2px; padding-bottom: var(--ftx-s3); border-bottom: 1px solid var(--ftx-line-light); }
.ftx .ftx-cta__row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.ftx .ftx-cta__row small { font-family: var(--ftx-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ftx-wood); }
.ftx .ftx-cta__row a, .ftx .ftx-cta__row span { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ftx .ftx-cta__row a:hover { color: #fff; text-decoration: underline; }
.ftx .ftx-copy { margin-left: .5em; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ftx-wood); border-bottom: 1px dotted currentColor; }
.ftx .ftx-copy:hover { color: var(--ftx-cream); }

/* --- Apparition au défilement (état de repos toujours lisible) ---------- */
.ftx.ftx-js [data-ftx-reveal] { transition: opacity .8s var(--ftx-ease), transform .8s var(--ftx-ease); }
.ftx.ftx-js [data-ftx-reveal]:not(.is-in) { opacity: .25; transform: translateY(22px); }
.ftx.ftx-js [data-ftx-reveal="2"] { transition-delay: .08s; }
.ftx.ftx-js [data-ftx-reveal="3"] { transition-delay: .16s; }
.ftx.ftx-js [data-ftx-reveal="4"] { transition-delay: .24s; }

/* --- Images -------------------------------------------------------------- */
.ftx .ftx-media-fade { background: var(--ftx-moss); }

/* --- Animations ------------------------------------------------------------ */
@keyframes ftx-rise { from { opacity: .15; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes ftx-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ftx-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes ftx-pulse { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes ftx-scrollhint { 0% { top: -40%; } 60%, 100% { top: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .ftx *, .ftx *::before, .ftx *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ftx.ftx-js [data-ftx-reveal]:not(.is-in) { opacity: 1; transform: none; }
  .ftx .ftx-pin__ring { display: none; }
}

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .ftx .ftx-mapbox { grid-template-columns: minmax(0, 1fr); }
  .ftx .ftx-map-col { border-right: 0; border-bottom: 1px solid var(--ftx-line); }
  .ftx .ftx-map { min-height: 480px; }
  .ftx .ftx-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftx #ftx-territoires > .ftx-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--ftx-s6); }
  .ftx .ftx-cta__grid { grid-template-columns: minmax(0, 1fr); }
  .ftx .ftx-head--split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ftx .ftx-services { grid-template-columns: minmax(0, 1fr); }
  .ftx .ftx-service, .ftx .ftx-service:nth-child(1), .ftx .ftx-service:nth-child(2) { grid-column: auto; min-height: 0; }
  .ftx .ftx-service__bg { opacity: .35; transform: none; }
  .ftx .ftx-service::after { opacity: .8; }
  .ftx .ftx-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftx .ftx-figure:nth-child(3) { border-left: 0; }
  .ftx .ftx-figure:nth-child(n+3) { border-top: 1px solid var(--ftx-line); }
  .ftx .ftx-team { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .ftx { --ftx-fs-base: 1rem; }
  .ftx .ftx-map { min-height: 420px; }
  .ftx .ftx-office__cols { grid-template-columns: minmax(0, 1fr); }
  .ftx .ftx-office__coord { display: none; }
  .ftx .ftx-regions { grid-template-columns: minmax(0, 1fr); }
  .ftx .ftx-values { grid-template-columns: minmax(0, 1fr); }
  .ftx .ftx-hero__inner { padding-block: var(--ftx-s8) var(--ftx-s6); }
  .ftx .ftx-btns .ftx-btn { flex: 1 1 100%; }
  .ftx .ftx-map-legend .ftx-legend-note { margin-left: 0; }
  .ftx .ftx-panel__view { padding: var(--ftx-s4); }
  .ftx .ftx-panel__photo { margin: calc(-1 * var(--ftx-s4)) calc(-1 * var(--ftx-s4)) 0; }
}

/* Ancres : laisse la place à l'en-tête collant du thème */
.ftx .ftx-mapbox, .ftx .ftx-office, .ftx .ftx-section { scroll-margin-top: 100px; }

/* ==========================================================================
   PAGES JURIDIQUES — [forest_terre_legal] (mentions légales…)
   ========================================================================== */
.ftx.ftx-legal { background: var(--ftx-cream); }
.ftx .ftx-legal__hero { position: relative; overflow: hidden; background: var(--ftx-forest); color: var(--ftx-cream); padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.ftx .ftx-legal__hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 22px, rgba(180,154,118,.22) 22px 23px); opacity: .7; }
.ftx .ftx-legal__hero .ftx-wrap { position: relative; z-index: 1; display: grid; gap: var(--ftx-s4); }
.ftx .ftx-legal__hero .ftx-eyebrow { color: var(--ftx-wood); }
.ftx .ftx-legal__intro { max-width: 44rem; font-size: var(--ftx-fs-lg); line-height: 1.55; color: rgba(244,241,232,.84); }
.ftx .ftx-legal__maj { color: var(--ftx-wood); }
.ftx .ftx-legal__body { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: var(--ftx-s8); align-items: start; padding-block: var(--ftx-s8) var(--ftx-section); }
.ftx .ftx-legal-toc { position: sticky; top: 120px; display: grid; gap: var(--ftx-s3); padding: var(--ftx-s5); background: var(--ftx-paper); border: 1px solid var(--ftx-line); border-radius: var(--ftx-radius-lg); }
.ftx .ftx-legal-toc > p { margin: 0; font-family: var(--ftx-mono); font-size: var(--ftx-fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ftx-wood-dark); }
.ftx .ftx-legal-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.ftx .ftx-legal-toc li { counter-increment: toc; margin: 0; }
.ftx .ftx-legal-toc a { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 4px; padding: .4em .5em; border-radius: var(--ftx-radius); font-size: var(--ftx-fs-sm); line-height: 1.35; color: var(--ftx-ink); transition: background .2s, color .2s; }
.ftx .ftx-legal-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--ftx-mono); font-size: var(--ftx-fs-xs); color: var(--ftx-wood-dark); padding-top: .15em; }
.ftx .ftx-legal-toc a:hover { background: rgba(120,134,107,.14); color: var(--ftx-forest); }
.ftx .ftx-legal-content { display: grid; gap: var(--ftx-s7); counter-reset: sec; min-width: 0; }
.ftx .ftx-legal-content > section { counter-increment: sec; display: grid; gap: var(--ftx-s4); padding-top: var(--ftx-s6); border-top: 1px solid var(--ftx-line); scroll-margin-top: 120px; }
.ftx .ftx-legal-content > section:first-child { padding-top: 0; border-top: 0; }
.ftx .ftx-legal-content h2 { display: flex; align-items: baseline; gap: .7em; font-size: var(--ftx-fs-xl); color: var(--ftx-forest); }
.ftx .ftx-legal-content h2::before { content: counter(sec, decimal-leading-zero); font-family: var(--ftx-mono); font-size: var(--ftx-fs-sm); color: var(--ftx-wood-dark); letter-spacing: .06em; }
.ftx .ftx-legal-content h3 { font-family: var(--ftx-sans); font-weight: 700; font-size: 1rem; letter-spacing: 0; color: var(--ftx-ink); margin-top: var(--ftx-s2); }
.ftx .ftx-legal-content p, .ftx .ftx-legal-content li { max-width: 46rem; font-size: 1rem; line-height: 1.7; color: var(--ftx-ink); margin: 0; }
.ftx .ftx-legal-content ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ftx .ftx-legal-content ul li { position: relative; padding-left: 1.2rem; }
.ftx .ftx-legal-content ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: .6rem; height: 1px; background: var(--ftx-moss); }
.ftx .ftx-legal-content a { color: var(--ftx-forest); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ftx-wood); }
.ftx .ftx-legal-content a:hover { text-decoration-color: var(--ftx-forest); }
.ftx .ftx-legal-card { display: grid; margin: 0; padding: 0; background: var(--ftx-paper); border: 1px solid var(--ftx-line); border-radius: var(--ftx-radius-lg); max-width: 46rem; }
.ftx .ftx-legal-card > div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: var(--ftx-s4); padding: .85rem var(--ftx-s5); }
.ftx .ftx-legal-card > div + div { border-top: 1px solid var(--ftx-line); }
.ftx .ftx-legal-card dt { margin: 0; font-family: var(--ftx-mono); font-size: var(--ftx-fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ftx-wood-dark); padding-top: .2em; }
.ftx .ftx-legal-card dd { margin: 0; font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.ftx .ftx-legal-note { max-width: 46rem; padding: var(--ftx-s4) var(--ftx-s5); background: rgba(180,154,118,.14); border-left: 2px solid var(--ftx-wood); border-radius: var(--ftx-radius); }
.ftx .ftx-legal-content table { width: 100%; max-width: 46rem; border-collapse: collapse; font-size: var(--ftx-fs-sm); }
.ftx .ftx-legal-content th, .ftx .ftx-legal-content td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--ftx-line); }
.ftx .ftx-legal-content th { font-family: var(--ftx-mono); font-size: var(--ftx-fs-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ftx-wood-dark); }
.ftx .ftx-legal-scroll { overflow-x: auto; max-width: 46rem; }
.ftx .ftx-legal-content .cn-revoke-cookie { cursor: pointer; }
@media (max-width: 960px) {
  .ftx .ftx-legal__body { grid-template-columns: minmax(0, 1fr); gap: var(--ftx-s6); padding-top: var(--ftx-s6); }
  .ftx .ftx-legal-toc { position: relative; top: auto; }
}
@media (max-width: 620px) {
  .ftx .ftx-legal-card > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: .75rem var(--ftx-s4); }
}
/* Paragraphes vides ajoutés par WordPress autour du shortcode */
.ftx .ftx-legal__body > p, .ftx.ftx-legal > p:empty { display: none; }
