@charset "UTF-8";
/* =================================================================
   PORTE MON DOCUMENT : formats complementaires
   « Avant de choisir », procedures, rangement de bureau en vitrine,
   duree de conservation des documents. Memes partis pris que style.css :
   papier, fiches blanches a filet haut vert et onglet de dossier,
   references en mono capitales, folios ambre, ouverture sombre voilee.
   Jetons : ceux de :root dans style.css. Valeurs ajoutees :
   --pmd-fx-barre  = hauteur de la rangee d'onglets des formats (desktop)
   --pmd-fx-haut   = hauteur reelle de l'en-tete collante, sous laquelle
                     se calent sommaires et onglets de fiche.
   ================================================================= */

:root {
    --pmd-fx-barre: 40px;
    --pmd-fx-haut: calc(var(--hh) + 1px);
}
body:has(.pmd-entete--formats) { --pmd-fx-haut: calc(var(--hh) + var(--pmd-fx-barre) + 2px); }

.screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── En-tete : rangee d'onglets de classeur sous la barre ────────── */
.pmd-fx-barre { border-top: 1px solid var(--line-2); background: var(--paper); }
.pmd-fx-barre-row {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 30px;
    height: var(--pmd-fx-barre);
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.pmd-fx-barre-t { align-self: center; margin-right: 10px; color: var(--amber); }
.pmd-fx-barre-lien {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 20px 0 13px;
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
    transition: background .18s ease, color .18s ease;
    white-space: nowrap;
}
.pmd-fx-barre-lien:hover { background: var(--surface); color: var(--ink); }
.pmd-fx-barre-lien.is-courant { background: var(--pin); border-color: var(--pin); color: #fff; }
.pmd-fx-barre-lien--outil.is-courant { background: var(--amber); border-color: var(--amber); }
.pmd-nav .pmd-nav-fx { display: none; }

/* ── Elements communs ─────────────────────────────────────────── */
.pmd-fx-section { padding: 52px 0 70px; }
.pmd-fx-coiffe .pmd-phero-in { max-width: 860px; }
.pmd-fx-coiffe h1 { text-wrap: balance; }

.pmd-fx-sous {
    margin: 1.6em 0 0.7em;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mute);
}
.pmd-fx-note { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); max-width: 72ch; }
.pmd-fx-vide { padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.pmd-fx-vide h2 { font-size: 1.5rem; margin-bottom: 10px; }

/* Puces : le petit carre vert des listes du magazine */
.pmd-fx-puces { display: grid; gap: 10px; }
.pmd-fx-puces li, .pmd-fx-liste li { position: relative; padding-left: 26px; }
.pmd-fx-puces li::before, .pmd-fx-liste li::before {
    content: "";
    position: absolute;
    left: 3px; top: 0.5em;
    width: 11px; height: 11px;
    border-radius: 3px;
    background: var(--pin-tint);
    border: 1.5px solid var(--pin);
}
.pmd-fx-liste { display: grid; gap: 10px; margin: 0 0 1.2em; }
.pmd-fx-liste a { color: var(--pin); text-decoration: underline; text-underline-offset: 3px; }
.pmd-fx-liste a:hover { color: var(--amber); }
.pmd-fx-liste--sources a { overflow-wrap: anywhere; }

/* Dossier blanc a onglet (memes valeurs que .pmd-fiche-card / .pmd-plan-cat) */
.pmd-fx-dossier {
    position: relative;
    margin-top: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--pin);
    border-radius: 4px 8px 8px 8px;
    padding: 30px 30px 24px;
}
.pmd-fx-dossier-onglet { position: absolute; top: -13px; left: 26px; }
.pmd-fx-dossier h2 { font-size: 1.45rem; margin-bottom: 16px; }

.pmd-fx-signature {
    margin: 48px 0 0;
    padding-top: 18px;
    border-top: 2px solid var(--ink);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mute);
}

.pmd-fx-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: var(--ink);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 5px;
}

.pmd-fx-attention {
    margin: 0 0 1em;
    padding: 14px 18px;
    background: var(--amber-tint);
    border-left: 3px solid var(--amber);
    border-radius: 0 6px 6px 0;
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--ink);
}
.pmd-fx-attention strong { font-weight: 700; }
[hidden] { display: none !important; }

/* Tableaux : le defilement horizontal reste dans le cadre, jamais sur la page. */
.pmd-fx-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--pin);
    border-radius: 4px 8px 8px 8px;
}
.pmd-fx-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 0.94rem; line-height: 1.5; }
.pmd-fx-table caption {
    text-align: left;
    padding: 12px 16px;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mute);
    border-bottom: 1px solid var(--line);
}
.pmd-fx-table th, .pmd-fx-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line-2);
    color: var(--ink-soft);
}
.pmd-fx-table td + td, .pmd-fx-table th + td, .pmd-fx-table th + th { border-left: 1px solid var(--line-2); }
.pmd-fx-table thead th {
    background: var(--surface-2);
    color: var(--ink);
    font-family: var(--slab);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    border-bottom: 2px solid var(--ink);
}
.pmd-fx-table thead a { color: var(--pin); text-decoration: underline; text-underline-offset: 3px; }
.pmd-fx-table tbody th { font-weight: 700; color: var(--ink); background: var(--surface); position: sticky; left: 0; }
.pmd-fx-table tbody tr:last-child th, .pmd-fx-table tbody tr:last-child td { border-bottom: 0; }
.pmd-fx-table--fiche { min-width: 0; }
.pmd-fx-table--fiche th { width: 34%; position: static; }
.pmd-fx-table--texte tbody th { position: static; }

/* ── Sommaire collant + colonne de lecture (comparatifs et procedures) ── */
.pmd-fx-gd { padding: 56px 0 80px; }
.pmd-fx-gd-grille {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: clamp(32px, 5vw, 70px);
    align-items: start;
}
.pmd-fx-gd-nav {
    position: sticky;
    top: calc(var(--pmd-fx-haut) + 20px);
    max-height: calc(100vh - var(--pmd-fx-haut) - 40px);
    overflow-y: auto;
    padding: 16px 18px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--pin);
    border-radius: 4px 8px 8px 8px;
}
.pmd-fx-gd-nav-t { display: block; padding-bottom: 8px; color: var(--amber); }
.pmd-fx-gd-nav a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
    padding: 9px 0;
    border-top: 1px solid var(--line-2);
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.35;
    transition: color .18s ease;
}
.pmd-fx-gd-nav a:hover { color: var(--pin); }
.pmd-fx-gd-nav-n { font-family: var(--mono); font-size: 0.72rem; color: var(--amber); padding-top: 2px; }

.pmd-fx-gd-corps { min-width: 0; max-width: 780px; }
.pmd-fx-gd-corps > section { scroll-margin-top: calc(var(--pmd-fx-haut) + 24px); }
.pmd-fx-gd-bref { margin-bottom: 52px; }
.pmd-fx-gd-bref li { color: var(--ink); line-height: 1.6; }

.pmd-fx-gd-sec { margin-bottom: 52px; }
.pmd-fx-gd-sec h2 {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-size: clamp(1.5rem, 2.6vw, 1.95rem);
    margin-bottom: 0.7em;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ink);
}
.pmd-fx-num { flex: none; font-family: var(--mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; color: var(--amber); }
.pmd-fx-gd-sec > p { margin: 0 0 1.1em; font-size: 1.04rem; line-height: 1.75; color: var(--ink-soft); max-width: 70ch; }
.pmd-fx-gd-sec .pmd-fx-table-wrap { margin-bottom: 14px; }

.pmd-fx-gd-cas { margin: 0; }
.pmd-fx-gd-cas-ligne {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 1.5fr;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.pmd-fx-gd-cas dt { font-family: var(--slab); font-weight: 600; font-size: 1.08rem; line-height: 1.35; color: var(--ink); }
.pmd-fx-gd-cas dd { margin: 0; color: var(--ink-soft); }

/* ── Fiches du rangement de bureau (cartes) ─────────────────────── */
.pmd-fx-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 24px; }
.pmd-fx-grille--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pmd-fx-grille--serree { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; margin-top: 26px; }
.pmd-fx-carte {
    position: relative;
    min-width: 0;
    margin-top: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--pin);
    border-radius: 4px 6px 6px 6px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pmd-fx-carte:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -26px rgba(32,34,30,.45); }
.pmd-fx-carte-onglet { position: absolute; top: -13px; left: 14px; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmd-fx-carte-lien { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; color: var(--ink); }
.pmd-fx-carte-visuel {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    margin-bottom: 10px;
    border-radius: 4px;
}
.pmd-fx-carte-visuel svg { width: 46px; height: 46px; }
.pmd-fx-carte-visuel--photo { background: #fff !important; padding: 10px; }
.pmd-fx-carte-visuel--photo img { width: 100%; height: 100%; object-fit: contain; }
.pmd-fx-carte-marque { overflow-wrap: anywhere; }
.pmd-fx-carte-nom { font-size: 1.12rem; line-height: 1.22; transition: color .18s ease; overflow-wrap: anywhere; }
.pmd-fx-carte-lien:hover .pmd-fx-carte-nom { color: var(--pin); }
.pmd-fx-carte-type { flex: 1; font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); }
.pmd-fx-carte-stock {
    align-self: flex-start;
    margin-top: 8px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mute);
}

/* ── Procedure : releve, etapes a folio ambre ────────────────────── */
.pmd-fx-tu-releve { margin: 0 0 44px; }
.pmd-fx-tu-releve > div { margin: 0; }
.pmd-fx-tu-releve dt { margin: 0 0 6px; }
.pmd-fx-tu-releve-v { margin: 0; font-family: var(--slab); font-size: 1.2rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.pmd-fx-tu-materiel { margin-bottom: 52px; }
.pmd-fx-tu-etapes { margin: 0 0 40px; }
.pmd-fx-tu-etape {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 36px;
    scroll-margin-top: calc(var(--pmd-fx-haut) + 24px);
}
.pmd-fx-tu-etape::before {
    content: "";
    position: absolute;
    left: 21px; top: 50px; bottom: 10px;
    width: 1px;
    background: var(--line);
}
.pmd-fx-tu-etape:last-child::before { display: none; }
.pmd-fx-tu-n {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    font-family: var(--mono);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--amber);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--amber);
    border-radius: 4px 6px 6px 6px;
}
.pmd-fx-tu-etape-titre { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin: 6px 0 0.5em; }
.pmd-fx-tu-etape-corps p { margin: 0 0 0.9em; color: var(--ink-soft); line-height: 1.72; }
.pmd-fx-tu-etape-corps .pmd-fx-attention { color: var(--ink); }
.pmd-fx-tu-controle { margin: 14px 0 52px; border-top-color: var(--amber); }
.pmd-fx-tu-controle p { color: var(--ink-soft); margin: 0; }
.pmd-fx-tu-bloc { margin-bottom: 46px; }
.pmd-fx-tu-bloc > h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 0.6em; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.pmd-fx-tu-bloc .pmd-fx-grille--serree { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── Index des comparatifs : dossiers pleine largeur ─────────────── */
.pmd-fx-ix-liste { display: grid; gap: 32px; }
.pmd-fx-ix-ligne {
    position: relative;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 150px;
    gap: clamp(18px, 3vw, 40px);
    align-items: start;
    margin-top: 14px;
    padding: 32px 30px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--pin);
    border-radius: 4px 8px 8px 8px;
    transition: box-shadow .2s ease;
}
.pmd-fx-ix-ligne:hover { box-shadow: 0 18px 40px -26px rgba(32,34,30,.45); }
.pmd-fx-ix-onglet { position: absolute; top: -13px; left: 26px; }
.pmd-fx-ix-num { font-family: var(--mono); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.06em; color: var(--amber); padding-top: 6px; }
.pmd-fx-ix-corps { min-width: 0; }
.pmd-fx-ix-titre { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.18; margin: 0 0 12px; }
.pmd-fx-ix-titre a { transition: color .18s ease; }
.pmd-fx-ix-ligne:hover .pmd-fx-ix-titre a { color: var(--pin); }
.pmd-fx-ix-accroche { margin: 0; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; max-width: 74ch; }
.pmd-fx-ix-compte { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.pmd-fx-ix-compte-n { font-family: var(--slab); font-size: 1.8rem; font-weight: 700; line-height: 1; color: var(--ink); }
.pmd-fx-ix-compte-l { margin-top: 6px; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }

/* ── Index des procedures ───────────────────────────────────────── */
.pmd-fx-tx-fiche .pmd-doc-ref { margin-top: 6px; }

/* ── Rangement de bureau : rayons en onglets ─────────────────────── */
.pmd-fx-bt-rayons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pmd-fx-bt-rayons a {
    --pmd-fx-t: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--pmd-fx-t);
    border-radius: 4px 6px 6px 6px;
    transition: color .18s ease, background .18s ease;
}
.pmd-fx-bt-rayons a:hover { color: var(--ink); background: var(--surface-2); }
.pmd-fx-bt-rayons a[aria-current="page"] { background: var(--pmd-fx-t); border-color: var(--pmd-fx-t); color: #fff; }
.pmd-fx-bt-rayon-n { color: var(--amber); }
.pmd-fx-bt-rayons a[aria-current="page"] .pmd-fx-bt-rayon-n { color: rgba(255,255,255,.8); }
.pmd-fx-bt-note { margin-bottom: 40px; }

/* ── Outil : duree de conservation ───────────────────────────────── */
.pmd-fx-sm-foi {
    max-width: 900px;
    margin-bottom: 40px;
    padding: 18px 22px;
    background: var(--amber-tint);
    border-left: 3px solid var(--amber);
    border-radius: 0 8px 8px 0;
}
.pmd-fx-sm-foi .pmd-ref { color: var(--amber); }
.pmd-fx-sm-foi p { margin: 6px 0 0; color: var(--ink); }
.pmd-fx-sm-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.pmd-fx-sm-resultat { border-top-color: var(--amber); }
.pmd-fx-sm-titre { font-size: 1.45rem; margin-bottom: 20px; }
.pmd-fx-sm-champ { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.pmd-fx-sm-champ > label,
.pmd-fx-sm-champ legend {
    padding: 0;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.pmd-fx-sm-champ legend { margin-bottom: 8px; }
.pmd-fx-sm-champ input[type=date],
.pmd-fx-sm-champ select {
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
}
.pmd-fx-sm-champ input:focus,
.pmd-fx-sm-champ select:focus { outline: none; border-color: var(--pin); box-shadow: 0 0 0 3px rgba(31,110,79,.13); }
.pmd-fx-sm-choix { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.pmd-fx-sm-choix legend { width: 100%; }
.pmd-fx-sm-choix label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}
.pmd-fx-sm-choix label:has(input:checked) { background: var(--pin-tint); border-color: var(--pin); }
.pmd-fx-sm-choix input { width: 17px; height: 17px; margin: 0; accent-color: var(--pin); }
.pmd-fx-sm-aide { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--mute); }

.pmd-fx-sm-chiffres { margin: 0; border-top: 1px solid var(--line); }
.pmd-fx-sm-chiffres > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.pmd-fx-sm-chiffres dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.pmd-fx-sm-chiffres dd { margin: 0; font-family: var(--slab); font-size: 1.1rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.pmd-fx-sm-total dd { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.1; color: var(--pin); }
.pmd-fx-sm-impact { margin: 18px 0 14px; color: var(--ink); line-height: 1.6; }
.pmd-fx-sm-source { margin: 14px 0 0; font-size: 0.88rem; color: var(--mute); }
.pmd-fx-sm-source a { color: var(--pin); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.pmd-fx-sm-ref { padding-top: 10px; }
.pmd-fx-sm-ref-t { margin: 34px 0 14px; font-size: 1.3rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.pmd-fx-sm-ref-t a { font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pin); text-decoration: underline; text-underline-offset: 3px; }
.pmd-fx-sm-ref .pmd-fx-table td:last-child { font-size: 0.88rem; }

.pmd-fx-sm-methode { padding-top: 10px; }
.pmd-fx-sm-colonne { max-width: 760px; margin-inline: auto; }
.pmd-fx-sm-colonne h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 1.6em 0 0.6em; padding-left: 16px; border-left: 4px solid var(--amber); }
.pmd-fx-sm-colonne > h2:first-child { margin-top: 0; }
.pmd-fx-sm-colonne > p { color: var(--ink-soft); line-height: 1.78; max-width: 72ch; }

/* ── Fiche du rangement de bureau ───────────────────────────────── */
.pmd-fx-fp { padding: 0 0 70px; }
.pmd-fx-fp-fil {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 9px;
    padding: 28px 0 36px;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
}
.pmd-fx-fp-fil a { color: var(--pin); }
.pmd-fx-fp-fil a:hover { color: var(--amber); }
.pmd-fx-fp-fil .sep { color: var(--line); }
.pmd-fx-fp-fil .cur { color: var(--ink-soft); }
.pmd-fx-fp-haut {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(26px, 4.5vw, 60px);
    align-items: start;
    padding: 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--pin);
    border-radius: 4px 8px 8px 8px;
}
.pmd-fx-fp-onglet { position: absolute; top: -13px; left: 30px; }
.pmd-fx-fp-visuel {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
}
.pmd-fx-fp-visuel > svg { width: 28%; height: 28%; }
.pmd-fx-fp-visuel--photo { background: #fff !important; padding: 8%; border: 1px solid var(--line); }
.pmd-fx-fp-visuel--photo > img { width: 100%; height: 100%; object-fit: contain; }
.pmd-fx-badge--visuel { position: absolute; top: 14px; left: 14px; }
.pmd-fx-fp-marque { margin: 0 0 12px; color: var(--amber); }
.pmd-fx-fp-titre { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; text-wrap: balance; overflow-wrap: anywhere; }
.pmd-fx-fp-type { margin: 12px 0 0; color: var(--ink-soft); font-size: 1.04rem; }
.pmd-fx-fp-resume { margin: 22px 0 0; }
.pmd-fx-fp-resume li { font-size: 0.96rem; line-height: 1.55; color: var(--ink-soft); }
.pmd-fx-fp-prix {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 26px 0 14px;
    padding: 14px 0;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--line);
}
.pmd-fx-fp-prix-val { font-family: var(--slab); font-size: 1.35rem; font-weight: 700; color: var(--mute); }
.pmd-fx-fp-achat { display: flex; gap: 10px; }
.pmd-fx-fp-achat input {
    width: 76px;
    min-height: 50px;
    padding: 8px 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--mute);
    font: inherit;
    text-align: center;
}
.pmd-fx-fp-cta {
    flex: 1;
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 6px;
    background: var(--pin);
    color: #fff;
    opacity: 0.4;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: not-allowed;
}
.pmd-fx-fp-dispo { margin: 12px 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }
.pmd-fx-fp-meta { margin: 22px 0 0; font-size: 0.94rem; }
.pmd-fx-fp-meta > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.pmd-fx-fp-meta dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.pmd-fx-fp-meta dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.pmd-fx-fp-meta a { color: var(--pin); text-decoration: underline; text-underline-offset: 3px; }
.pmd-fx-fp-onglets {
    position: sticky;
    top: var(--pmd-fx-haut);
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
    margin: 52px 0 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
}
.pmd-fx-fp-onglets a {
    position: relative;
    padding: 15px 0 13px;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.pmd-fx-fp-onglets a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 3px;
    background: var(--pin);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.pmd-fx-fp-onglets a:hover { color: var(--ink); }
.pmd-fx-fp-onglets a:hover::after { transform: scaleX(1); }
.pmd-fx-fp-corps { max-width: 780px; padding-top: 40px; }
.pmd-fx-fp-section { margin-bottom: 48px; scroll-margin-top: calc(var(--pmd-fx-haut) + 70px); }
.pmd-fx-fp-section h2 { font-size: clamp(1.45rem, 2.5vw, 1.8rem); margin-bottom: 0.7em; padding-left: 16px; border-left: 4px solid var(--amber); }
.pmd-fx-fp-section h3 { font-size: 1.2rem; margin: 1.4em 0 0.5em; }
.pmd-fx-fp-section > p { color: var(--ink-soft); line-height: 1.75; max-width: 70ch; }
.pmd-fx-faits li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line-2); max-width: 70ch; color: var(--ink-soft); line-height: 1.6; }
.pmd-fx-faits li::before {
    content: "";
    position: absolute;
    left: 3px; top: 1.1em;
    width: 11px; height: 11px;
    border-radius: 3px;
    background: var(--pin-tint);
    border: 1.5px solid var(--pin);
}
.pmd-fx-vigilance .pmd-fx-faits li::before { background: var(--amber-tint); border-color: var(--amber); }

/* ── Accueil : acces aux formats, dans la section des intercalaires ── */
.pmd-fx-acces-tete { margin-top: 70px; }
.pmd-fx-acces-item { display: flex; }
.pmd-fx-acces-item > a { flex: 1; }
.pmd-fx-acces-n { display: block; margin-bottom: 10px; color: var(--amber); }
.pmd-fx-acces-item h3.pmd-intercalaire-nom { margin-bottom: 10px; }

/* ── Plan du site ─────────────────────────────────────────────────── */
.pmd-fx-plan-rayon { margin: 18px 0 10px; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.pmd-fx-plan-rayon a:hover { color: var(--pin); }
.pmd-fx-plan-desc { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ── Bloc « Pour aller plus loin » sous un article ────────────────── */
.pmd-fx-suite {
    position: relative;
    margin-top: 46px;
    padding: 28px 28px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--pin);
    border-radius: 4px 8px 8px 8px;
}
.pmd-fx-suite-onglet { position: absolute; top: -13px; left: 24px; }
.pmd-fx-suite-titre { font-size: 1.4rem; margin: 4px 0 14px; }
.pmd-fx-suite ul { margin: 0; }
.pmd-fx-suite li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.pmd-fx-suite-type { flex: none; color: var(--amber); }
.pmd-fx-suite a { color: var(--pin); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pmd-fx-suite a:hover { color: var(--amber); }

/* =================================================================
   RESPONSIVE (memes paliers que style.css : 1024, 860, 768)
   ================================================================= */
@media (max-width: 1100px) {
    .pmd-fx-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .pmd-fx-gd-grille, .pmd-fx-sm-grille, .pmd-fx-fp-haut { grid-template-columns: minmax(0, 1fr); }
    .pmd-fx-gd-nav { position: static; max-height: none; }
    .pmd-fx-grille, .pmd-fx-grille--trois, .pmd-fx-grille--serree, .pmd-fx-tu-bloc .pmd-fx-grille--serree { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pmd-fx-fp-visuel { aspect-ratio: 16 / 9; }
    .pmd-fx-fp-visuel > svg { width: 16%; height: 16%; }
    .pmd-fx-barre-row { gap: 4px; }
    .pmd-fx-barre-t { display: none; }
}

@media (max-width: 860px) {
    .pmd-fx-fp-onglets { position: static; }
}

@media (max-width: 768px) {
    .pmd-fx-barre { display: none; }
    body:has(.pmd-entete--formats) { --pmd-fx-haut: calc(var(--hh) + 1px); }
    .pmd-nav .pmd-nav-fx { display: block; }
    .pmd-fx-barre-row { padding: 0 18px; }
    .pmd-fx-section { padding: 36px 0 56px; }
    .pmd-fx-gd { padding: 36px 0 60px; }
    .pmd-fx-dossier, .pmd-fx-suite { padding: 26px 18px 18px; }
    .pmd-fx-dossier-onglet, .pmd-fx-suite-onglet { left: 16px; }
    .pmd-fx-gd-cas-ligne { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .pmd-fx-tu-etape { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
    .pmd-fx-tu-n { width: 36px; height: 36px; font-size: 0.76rem; }
    .pmd-fx-tu-etape::before { left: 17px; top: 42px; }
    .pmd-fx-tu-releve { width: 100%; }
    .pmd-fx-tu-releve .pmd-stat { flex: 1; padding: 12px 12px; }
    .pmd-fx-tu-releve-v { font-size: 1rem; }
    .pmd-fx-ix-ligne { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 28px 18px 22px; }
    .pmd-fx-ix-onglet { left: 16px; }
    .pmd-fx-ix-compte { flex-direction: row; align-items: baseline; gap: 10px; justify-self: start; }
    .pmd-fx-ix-compte-n { font-size: 1.3rem; }
    .pmd-fx-fp-fil { padding: 22px 0 28px; }
    .pmd-fx-fp-haut { padding: 26px 18px 22px; }
    .pmd-fx-fp-onglet { left: 16px; }
    .pmd-fx-fp-onglets { gap: 0 18px; }
    .pmd-fx-fp-meta > div { grid-template-columns: 92px minmax(0, 1fr); }
    .pmd-fx-fp-achat { flex-wrap: wrap; }
    .pmd-fx-sm-foi { padding: 16px 18px; }
    .pmd-fx-acces-tete { margin-top: 56px; }
}

@media (max-width: 560px) {
    .pmd-fx-grille, .pmd-fx-grille--trois, .pmd-fx-grille--serree, .pmd-fx-tu-bloc .pmd-fx-grille--serree { grid-template-columns: minmax(0, 1fr); }
}

/* Listes ordonnees des formats : la numerotation est portee par les folios, pas par le navigateur. */
.pmd-fx-gd-nav ol, .pmd-fx-tu-etapes, .pmd-fx-ix-liste { list-style: none; margin-left: 0; padding-left: 0; }
.pmd-fx-gd-sec h2 .pmd-fx-num:only-of-type { font-size: 0.82rem; }
.pmd-fx-sm-choix > label { font-family: var(--sans); font-size: 0.96rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
@media (min-width: 1025px) { .pmd-fx-acces { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; } }
