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

  .f-wrap {
    --a-text-muted: #8888AA;
    margin: 0 -4px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color-dark);
  }

  .f-page-wrap { max-width: 1140px; margin: 0 auto; padding: 0 2rem 5rem; }

  .f-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--text-color-main);
    opacity: .7; text-decoration: none; margin: 2.5rem 0 1.5rem;
    transition: opacity .15s;
  }
  .f-back:hover { opacity: 1; color: var(--theme-color); }

  /* Le thème de base impose `svg { fill: currentColor }` (assets/css/style.css),
     ce qui écrase l'attribut fill="none" de nos icônes en traits et les affiche
     comme des blobs pleins. On force fill:none ici (classe > sélecteur de type). */
  .f-ico { flex-shrink: 0; vertical-align: -2px; fill: none; }

  /* ===== HEAD ===== */
  .f-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 1.25rem; flex-wrap: wrap; }
  .f-logo {
    width: 112px; height: 112px; border-radius: var(--radius-16);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 700; flex-shrink: 0;
    transition: transform .25s ease;
  }
  .f-logo:hover { transform: scale(1.03); }
  .f-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-16); }
  .f-name { font-size: clamp(24px, 4vw, 34px); font-weight: 900; letter-spacing: -.02em; margin: 4px 0 6px; }
  .f-tagline { font-size: 14.5px; color: var(--text-color-main); margin: 0 0 12px; max-width: 520px; }

  .f-badges { display: flex; flex-wrap: wrap; gap: 8px; }

  .f-badge {
    display: inline-flex; align-items: center; gap: 5px;
    height: 26px; padding: 0 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: .01em;
    white-space: nowrap;
  }
  .f-badge-cat { background: var(--gradient-primary); color: #fff; }
  .f-badge-zone { background: var(--card-background-color); color: var(--text-color-main); border: 1px solid var(--border-color); }
  .f-badge-verified { background: #E8F5E9; color: #2E7D32; }
  [data-theme=dark] .f-badge-verified { background: rgba(46,125,50,.22); color: #6FCF7A; }

  /* ===== LAYOUT ===== */
  .f-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; margin-top: 2rem; }

  .f-msec { margin-bottom: 1.75rem; }
  .f-msec + .f-msec { border-top: 1px solid var(--border-color); padding-top: 1.75rem; }
  .f-msec:last-child { margin-bottom: 0; }
  .f-msec-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--a-text-muted); margin-bottom: 10px; }
  .f-msec p { font-size: 14.5px; color: var(--text-color-main); line-height: 1.75; margin: 0 0 .9rem; }
  .f-msec p:last-child { margin-bottom: 0; }
  .f-msec-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .f-msec-pills { display: flex; flex-wrap: wrap; gap: 10px; }

  .f-pill {
    display: inline-flex; align-items: center; gap: 7px;
    height: 36px; padding: 0 14px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--card-background-color);
    color: var(--text-color-main);
  }
  .f-pill-accent {
    border-color: rgba(var(--theme-color-rgb,68,97,215),.35);
    background: var(--tag-background-color);
    color: var(--theme-color);
  }
  .f-pill-more {
    background: var(--tag-background-color); color: var(--theme-color);
    font-family: inherit; cursor: pointer;
  }
  .f-pill-more:hover { opacity: .8; }
  /* Dropdown ouvert : "+N autres" retiré (voir wireMoreToggle), le bouton se
     réduit à un simple rond avec le chevron pour fermer. */
  .f-pill-more-open { width: 36px; padding: 0; justify-content: center; }
  .f-chevron { transition: transform .15s; flex-shrink: 0; }
  .f-chevron-up { transform: rotate(180deg); }
  .f-more-dropdown { margin-top: 10px; }
  /* Piège CSS déjà rencontré : une règle auteur sur une classe avec display
     (ici display:flex sur .f-msec-pills) bat toujours [hidden] du user-agent —
     sans cette ligne, le panneau resterait visible malgré l'attribut hidden. */
  .f-more-dropdown[hidden] { display: none; }

  .f-reason-block {
    background: var(--tag-background-color);
    border-radius: var(--radius-8); padding: 1.1rem 1.25rem;
    border-left: 3px solid var(--theme-color);
  }
  .f-reason-block p { font-size: 13.5px; font-style: italic; }

  /* ===== SIDEBAR ===== */
  .f-sidebar { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
  .f-card {
    background: var(--card-background-color);
    border: 1px solid var(--border-color); border-radius: var(--radius-16);
    padding: 1.5rem;
  }

  .a-btn-visit {
    width: 100%; height: 44px; padding: 0 20px;
    background: var(--gradient-primary); color: #fff;
    border: none; border-radius: 99px;
    font-size: 13px; font-weight: 700; font-family: inherit;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: opacity .15s; text-decoration: none;
  }
  .a-btn-visit:hover    { opacity: 0.85; color: #fff; }
  .a-btn-visit:disabled { opacity: .3; cursor: not-allowed; }

  .f-link-secondary {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; height: 40px; margin-top: 8px; padding: 0 14px;
    border: 1px solid var(--border-color); border-radius: 99px;
    font-size: 13px; font-weight: 600; color: var(--text-color-main);
    text-decoration: none; transition: all .15s;
  }
  .f-link-secondary-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .f-link-secondary:hover { border-color: var(--theme-color); color: var(--theme-color); }

  .f-info-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
    color: var(--a-text-muted); margin: 0 0 1rem;
  }
  .f-info-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--border-color);
  }
  .f-info-row:last-child { border-bottom: none; padding-bottom: 0; }
  .f-info-row:first-child { padding-top: 0; }
  .f-info-ico {
    width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--tag-background-color); color: var(--theme-color);
    margin-top: 1px;
  }
  .f-info-label { font-size: 11px; color: var(--a-text-muted); margin-bottom: 2px; }
  .f-info-val { font-size: 13.5px; font-weight: 600; color: var(--text-color-dark); line-height: 1.45; }
  .f-info-val.f-info-ok { color: #2E7D32; }

  .f-empty { text-align: center; padding: 5rem 1rem; color: var(--text-color-main); opacity: .6; }
  .f-empty p { font-size: 14px; margin: 0 0 1.25rem; }

  /* ===== RÉFÉRENCES CLIENTS ===== */
  /* Chip volontairement plus grande/distincte des autres pills — prévu pour
     accueillir un logo client à la place de l'icône bâtiment par défaut
     (système de liaison référence ↔ logo à venir). */
  .f-refs { display: flex; flex-wrap: wrap; gap: 12px; }
  .f-ref-card {
    display: inline-flex; align-items: center; gap: 11px;
    height: 58px; padding: 0 18px 0 9px; border-radius: var(--radius-8);
    border: 1px solid var(--border-color); background: var(--card-background-color);
    font-size: 15.5px; font-weight: 700; color: var(--text-color-dark);
  }
  .f-ref-ico {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--tag-background-color); color: var(--theme-color);
  }
  .f-ref-ico img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
  .f-ref-check { display: inline-flex; color: #2E7D32; margin-left: 2px; }
  /* Bouton "+N autres" au gabarit carte (voir wireMoreToggle / .f-pill-more-open,
     réutilisé ici — même mécanique de repli que pays/expertises). */
  .f-ref-more {
    background: var(--tag-background-color); color: var(--theme-color);
    font-family: inherit; cursor: pointer; gap: 8px;
  }
  .f-ref-more:hover { opacity: .8; }
  .f-ref-more.f-pill-more-open { width: 58px; }

  /* ===== CONTENUS ASSOCIÉS ===== */
  .f-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .f-article-card {
    display: flex; flex-direction: column; gap: 10px;
    border: 1px solid var(--border-color); border-radius: var(--radius-8);
    padding: 1rem; text-decoration: none; color: inherit;
    transition: border-color .15s, transform .15s;
  }
  .f-article-card:hover { border-color: var(--theme-color); transform: translateY(-1px); }
  /* Même piège CSS que .f-pill/.f-more-dropdown : display:flex ci-dessus bat [hidden] sans ceci. */
  .f-article-card[hidden] { display: none; }
  .f-articles-more {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
    background: none; border: none; padding: 0; cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 600; color: var(--theme-color);
  }
  .f-articles-more:hover { opacity: .8; }
  .f-article-thumb {
    width: 100%; height: 90px; border-radius: var(--radius-8);
    background: var(--tag-background-color); color: var(--theme-color);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .f-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .f-article-eyebrow { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--a-text-muted); }
  .f-article-title { font-size: 14px; font-weight: 700; color: var(--text-color-dark); line-height: 1.4; margin: 0; }
  .f-article-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--theme-color); }

  @media (max-width: 768px) {
    .f-page-wrap { padding: 0 1rem 3rem; }
    .f-layout { grid-template-columns: 1fr; }
    .f-msec-2col { grid-template-columns: 1fr; }
    .f-articles { grid-template-columns: 1fr; }
    .f-sidebar { position: static; }
  }
