/* ============================================================
   Softopia : formats complémentaires (grilles de choix, tutoriels de gestion,
   équipement pro en vitrine, calculateur de marge).
   Même vocabulaire que la feuille principale : panneaux blancs arrondis sur papier,
   filets clairs, pastilles iris, Outfit pour les titres, ombres douces.
   Dépend de style.css (variables :root).
============================================================ */

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

/* ------------------------------------------------------------
   Navigation des formats : bandeau sous la barre flottante (desktop),
   seconde liste dans le panneau du menu (mobile)
------------------------------------------------------------ */
.sof-fx-strip { max-width: var(--maxw); margin: 12px auto 0; padding: 0 28px; }
.sof-fx-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sof-fx-strip a {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--display); font-size: 0.84rem; font-weight: 500;
    color: var(--ink-soft);
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-pill); padding: 7px 15px 7px 11px;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.sof-fx-strip a svg { width: 17px; height: 17px; color: var(--iris); }
.sof-fx-strip a:hover { color: var(--ink); border-color: var(--iris); }
.sof-fx-strip a[aria-current="page"] { background: var(--iris-tint); border-color: var(--iris-tint); color: var(--iris); }

.sof-bar-nav .sof-bar-formats { display: none; }

/* ------------------------------------------------------------
   Hero des formats (variante du hero interne)
------------------------------------------------------------ */
.sof-fx-crumb { flex-wrap: wrap; row-gap: 4px; }
.sof-fx-coiffe .sof-phero-in { max-width: 820px; }
.sof-fx-coiffe h1 { font-size: clamp(1.9rem, 4vw, 3rem); }

.sof-fx-kicker {
    display: inline-block;
    font-family: var(--display); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--iris); margin: 0 0 8px;
}
.sof-fx-note { font-size: 0.88rem; line-height: 1.6; color: var(--mute); margin: 14px 0 0; }
.sof-fx-vide {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 28px; color: var(--ink-soft); text-align: center;
}

/* ------------------------------------------------------------
   Index des grilles de choix : panneaux en liste numérotée
------------------------------------------------------------ */
.sof-fx-ix { padding: 44px 0 80px; }
.sof-fx-ix-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 980px; margin-inline: auto; }
.sof-fx-ix-ligne {
    position: relative;
    display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 22px; align-items: start;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 26px 28px; box-shadow: var(--sh-sm);
    transition: box-shadow .22s ease, border-color .22s ease;
}
.sof-fx-ix-ligne:hover { box-shadow: var(--sh-md); border-color: var(--iris-tint); }
.sof-fx-ix-num {
    width: 56px; height: 56px; border-radius: 17px;
    background: var(--iris-tint); color: var(--iris);
    font-family: var(--display); font-size: 1.25rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.sof-fx-ix-titre { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.2; }
.sof-fx-ix-titre a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sof-fx-ix-titre a:hover { color: var(--iris); }
.sof-fx-ix-accroche { margin: 10px 0 0; font-size: 0.97rem; line-height: 1.6; color: var(--ink-soft); }
.sof-fx-ix-compte { margin: 12px 0 0; font-size: 0.8rem; color: var(--mute); }
.sof-fx-ix-go {
    align-self: center; width: 40px; height: 40px; border-radius: var(--r-pill);
    border: 1.5px solid var(--line); color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.sof-fx-ix-go svg { width: 15px; height: 15px; }
.sof-fx-ix-ligne:hover .sof-fx-ix-go { background: var(--iris); border-color: var(--iris); color: #fff; }

/* ------------------------------------------------------------
   Index des tutoriels : planche de panneaux
------------------------------------------------------------ */
.sof-fx-tx { padding: 44px 0 80px; }
.sof-fx-tx-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sof-fx-tx-carte { display: flex; }
.sof-fx-tx-lien {
    display: flex; flex-direction: column; gap: 10px; width: 100%;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 26px; box-shadow: var(--sh-sm);
    transition: transform .22s ease, box-shadow .22s ease;
}
.sof-fx-tx-lien:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.sof-fx-tx-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sof-fx-tx-tete .sof-fx-kicker { margin: 0; }
.sof-fx-tx-num {
    width: 44px; height: 44px; border-radius: 14px;
    background: var(--iris-tint); color: var(--iris);
    font-family: var(--display); font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.sof-fx-tx-titre { font-size: 1.25rem; line-height: 1.22; }
.sof-fx-tx-lien:hover .sof-fx-tx-titre { color: var(--iris); }
.sof-fx-tx-accroche { font-size: 0.93rem; line-height: 1.58; color: var(--ink-soft); }
.sof-fx-tx-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--mute); }

/* ------------------------------------------------------------
   Vitrine : rayons et cartes
------------------------------------------------------------ */
.sof-fx-bt { padding: 40px 0 80px; }
.sof-fx-rayons { display: flex; flex-wrap: wrap; gap: 8px; }
.sof-fx-rayons a {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--display); font-size: 0.88rem; font-weight: 500; color: var(--ink-soft);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
    padding: 8px 16px; transition: color .18s, border-color .18s, background .18s;
}
.sof-fx-rayons a:hover { color: var(--ink); border-color: var(--iris); }
.sof-fx-rayons a[aria-current="page"] { background: var(--iris); border-color: var(--iris); color: #fff; }
.sof-fx-rayons-n { font-size: 0.74rem; color: var(--mute); }
.sof-fx-rayons a[aria-current="page"] .sof-fx-rayons-n { color: rgba(255,255,255,.75); }
.sof-fx-bt .sof-fx-note { margin: 18px 0 28px; max-width: 70ch; }

.sof-fx-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sof-fx-grille--serree { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.sof-fx-carte { display: flex; }
.sof-fx-carte-lien {
    display: flex; flex-direction: column; width: 100%;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; box-shadow: var(--sh-sm);
    transition: transform .22s ease, box-shadow .22s ease;
}
.sof-fx-carte-lien:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.sof-fx-carte-visuel {
    position: relative; aspect-ratio: 4 / 3;
    background: var(--surface-2); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
}
.sof-fx-carte-visuel--photo img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.sof-fx-visuel-ico {
    width: 74px; height: 74px; border-radius: 22px;
    background: var(--iris-tint); color: var(--iris);
    display: flex; align-items: center; justify-content: center;
    transition: transform .22s ease;
}
.sof-fx-carte-lien:hover .sof-fx-visuel-ico { transform: scale(1.06) rotate(-3deg); }
.sof-fx-picto { width: 36px; height: 36px; }
.sof-fx-carte-corps { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 22px; }
.sof-fx-carte-marque { font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--iris); }
.sof-fx-carte-nom { font-size: 1.06rem; line-height: 1.25; font-weight: 600; }
.sof-fx-carte-type { font-size: 0.84rem; color: var(--mute); line-height: 1.45; }
.sof-fx-badge {
    position: absolute; top: 12px; left: 12px;
    font-family: var(--display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
    background: var(--surface); color: var(--ink-soft);
    border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 10px;
}
.sof-fx-badge--ligne { position: static; display: inline-block; margin-right: 6px; background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------------------
   Page de contenu : sommaire collant + colonne
------------------------------------------------------------ */
.sof-fx-page { padding: 40px 0 80px; }
.sof-fx-cols { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.sof-fx-sommaire {
    position: sticky;
    /* barre flottante : top 16px + hauteur --hh (70px), plus un espace */
    top: calc(16px + var(--hh) + 18px);
    max-height: calc(100vh - 16px - var(--hh) - 36px);
    overflow-y: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 20px 16px; box-shadow: var(--sh-sm);
}
.sof-fx-sommaire-t { font-family: var(--display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); margin: 0 6px 10px; }
.sof-fx-sommaire ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sof-fx-sommaire a {
    display: flex; gap: 10px; align-items: baseline;
    font-size: 0.88rem; line-height: 1.4; color: var(--ink-soft);
    padding: 7px 8px; border-radius: var(--r-sm);
    transition: background .18s, color .18s;
}
.sof-fx-sommaire a:hover { background: var(--iris-tint); color: var(--ink); }
.sof-fx-sommaire-n { font-family: var(--display); font-weight: 600; font-size: 0.78rem; color: var(--iris); flex-shrink: 0; }

.sof-fx-corps, .sof-fx-lecture { max-width: 760px; min-width: 0; }
.sof-fx-lecture { margin-inline: auto; }
.sof-fx-corps p, .sof-fx-lecture p { color: var(--ink-soft); line-height: 1.75; }
.sof-fx-sec { scroll-margin-top: calc(16px + var(--hh) + 24px); margin-top: 46px; }
.sof-fx-sec:first-child { margin-top: 0; }
.sof-fx-h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.18; margin: 0 0 16px; display: flex; gap: 14px; align-items: baseline; }
.sof-fx-num { font-size: 0.95rem; color: var(--iris); font-weight: 700; flex-shrink: 0; }
.sof-fx-sous { font-size: 1.05rem; margin: 22px 0 10px; color: var(--ink); }

.sof-fx-bref {
    scroll-margin-top: calc(16px + var(--hh) + 24px);
    background: var(--iris-tint); border-radius: var(--r-lg); padding: 26px 28px;
}
.sof-fx-bref .sof-fx-h2 { font-size: 1.3rem; }
.sof-fx-puces { display: grid; gap: 9px; margin: 0; }
.sof-fx-puces li { position: relative; padding-left: 26px; line-height: 1.6; color: var(--ink); }
.sof-fx-puces li::before {
    content: ""; position: absolute; left: 4px; top: 0.6em;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--iris-tint); border: 2px solid var(--iris);
}
.sof-fx-bref .sof-fx-puces li::before { background: var(--surface); }

.sof-fx-table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    max-width: 100%;
}
.sof-fx-table-wrap:focus-visible { outline: 2px solid var(--iris); outline-offset: 2px; }
.sof-fx-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.92rem; }
.sof-fx-table caption { caption-side: top; text-align: left; padding: 14px 18px 4px; font-size: 0.8rem; color: var(--mute); }
.sof-fx-table th, .sof-fx-table td { padding: 12px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; }
.sof-fx-table thead th { font-family: var(--display); font-weight: 600; font-size: 0.84rem; color: var(--ink); background: var(--surface-2); }
.sof-fx-table thead th a { color: var(--iris); text-decoration: underline; text-underline-offset: 3px; }
.sof-fx-table tbody th { font-weight: 600; color: var(--ink); }
.sof-fx-table td { color: var(--ink-soft); }
.sof-fx-table tbody tr:last-child th, .sof-fx-table tbody tr:last-child td { border-bottom: 0; }
.sof-fx-table--fiche { min-width: 0; }
.sof-fx-table--fiche tbody th { width: 38%; }

.sof-fx-cas { margin: 0; display: grid; gap: 12px; }
.sof-fx-cas-ligne {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px;
}
.sof-fx-cas dt { font-family: var(--display); font-weight: 600; color: var(--ink); line-height: 1.4; }
.sof-fx-cas dd { margin: 0; color: var(--ink-soft); line-height: 1.6; }

.sof-fx-liens { display: grid; gap: 8px; margin: 0; }
.sof-fx-liens a {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 13px 18px; font-family: var(--display); font-weight: 500; color: var(--ink);
    transition: border-color .18s, color .18s;
}
.sof-fx-liens a svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--iris); transition: transform .2s ease; }
.sof-fx-liens a:hover { border-color: var(--iris); color: var(--iris); }
.sof-fx-liens a:hover svg { transform: translateX(3px); }

.sof-fx-sources { display: grid; gap: 8px; margin: 0; }
.sof-fx-sources li { position: relative; padding-left: 22px; font-size: 0.92rem; line-height: 1.55; }
.sof-fx-sources li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 10px; height: 2px; background: var(--iris); }
.sof-fx-sources a { color: var(--iris); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.sof-fx-signature {
    margin: 48px 0 0 !important; padding-top: 20px; border-top: 1px solid var(--line);
    font-family: var(--display); font-size: 0.9rem; color: var(--mute) !important;
}

/* Tutoriel : relevé, étapes */
.sof-fx-releve { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.sof-fx-releve div {
    display: inline-flex; align-items: baseline; gap: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
    padding: 9px 18px; box-shadow: var(--sh-sm);
}
.sof-fx-releve dt { font-size: 0.78rem; color: var(--mute); }
.sof-fx-releve dd { margin: 0; font-family: var(--display); font-weight: 600; color: var(--ink); }

.sof-fx-etapes { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 16px; }
.sof-fx-etape {
    scroll-margin-top: calc(16px + var(--hh) + 24px);
    display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 24px 26px; box-shadow: var(--sh-sm);
}
.sof-fx-etape-n {
    width: 48px; height: 48px; border-radius: 15px; background: var(--iris); color: #fff;
    font-family: var(--display); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.sof-fx-etape-titre { font-size: 1.2rem; line-height: 1.25; margin: 10px 0 10px; }
.sof-fx-etape-corps p { margin: 0 0 0.8em; }
.sof-fx-etape-corps p:last-child { margin-bottom: 0; }
.sof-fx-attention {
    background: #FBF1E2; border-radius: var(--r-sm); padding: 12px 16px;
    font-size: 0.92rem; color: #6A4A22 !important;
}
.sof-fx-attention strong { color: #8A5A1F; }
.sof-fx-controle {
    scroll-margin-top: calc(16px + var(--hh) + 24px);
    margin-top: 30px; background: var(--surface); border: 1px solid var(--line);
    border-left: 4px solid var(--iris); border-radius: var(--r-md); padding: 22px 24px;
}
.sof-fx-controle p { margin: 0; }

/* ------------------------------------------------------------
   Fiche produit (vitrine)
------------------------------------------------------------ */
.sof-fx-fp { padding: 26px 0 0; }
.sof-fx-fp-panneau {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 44px; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
    padding: 36px; box-shadow: var(--sh-md);
}
.sof-fx-fp-visuel {
    margin: 0; aspect-ratio: 1 / 1; border-radius: var(--r-lg);
    background: var(--surface-2); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sof-fx-fp-visuel .sof-fx-visuel-ico { width: 128px; height: 128px; border-radius: 34px; }
.sof-fx-fp-visuel .sof-fx-picto { width: 60px; height: 60px; }
.sof-fx-fp-visuel--photo img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.sof-fx-fil { display: flex; flex-wrap: wrap; gap: 6px 9px; font-size: 0.8rem; color: var(--mute); margin-bottom: 18px; }
.sof-fx-fil a:hover { color: var(--iris); }
.sof-fx-fil .sep { color: var(--line); }
.sof-fx-fil .cur { color: var(--ink-soft); }
.sof-fx-fp-titre { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 16px 0 8px; }
.sof-fx-fp-type { color: var(--mute); margin: 0 0 18px; }
.sof-fx-fp-resume { margin-bottom: 22px; }
.sof-fx-fp-dispo {
    font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft);
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 14px 16px; margin: 0 0 20px;
}
.sof-fx-fp-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; font-size: 0.86rem; }
.sof-fx-fp-meta div { display: flex; gap: 6px; }
.sof-fx-fp-meta dt { color: var(--mute); }
.sof-fx-fp-meta dd { margin: 0; color: var(--ink); font-weight: 500; }
.sof-fx-fp-meta a { color: var(--iris); }

.sof-fx-fp-suite { padding: 40px 0 70px; }
.sof-fx-onglets {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    max-width: 760px; margin: 0 auto 36px;
}
.sof-fx-onglets a {
    font-family: var(--display); font-size: 0.86rem; font-weight: 500; color: var(--ink-soft);
    border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill); padding: 8px 16px;
    transition: border-color .18s, color .18s;
}
.sof-fx-onglets a:hover { border-color: var(--iris); color: var(--iris); }
.sof-fx-voisins .sof-head { margin-bottom: 26px; }

/* ------------------------------------------------------------
   Accueil : accès aux formats, sous les tuiles des rubriques
------------------------------------------------------------ */
.sof-fx-acces {
    margin-top: 30px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
    padding: 26px 28px; box-shadow: var(--sh-sm);
    display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center;
}
.sof-fx-acces-titre { font-size: 1.35rem; }
.sof-fx-acces-note { margin: 6px 0 0; font-size: 0.86rem; color: var(--mute); }
.sof-fx-acces-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.sof-fx-acces-lien {
    display: flex; align-items: center; gap: 12px; height: 100%;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 12px 14px; transition: border-color .18s, background .18s;
}
.sof-fx-acces-lien > svg { width: 15px; height: 15px; margin-left: auto; flex-shrink: 0; color: var(--iris); transition: transform .2s ease; }
.sof-fx-acces-lien:hover { border-color: var(--iris); background: var(--surface); }
.sof-fx-acces-lien:hover > svg { transform: translateX(3px); }
.sof-fx-acces-ico {
    width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
    background: var(--iris-tint); color: var(--iris);
    display: flex; align-items: center; justify-content: center;
}
.sof-fx-acces-ico svg { width: 21px; height: 21px; }
.sof-fx-acces-txt { display: flex; flex-direction: column; min-width: 0; }
.sof-fx-acces-nom { font-family: var(--display); font-weight: 600; font-size: 0.95rem; line-height: 1.25; color: var(--ink); }
.sof-fx-acces-compte { font-size: 0.76rem; color: var(--mute); }

/* ------------------------------------------------------------
   Sous un article : « Pour aller plus loin »
------------------------------------------------------------ */
.sof-fx-suite {
    margin-top: 44px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-sm);
}
.sof-fx-suite-titre { font-size: 1.4rem; margin: 14px 0 16px; }
.sof-fx-suite ul { display: grid; gap: 8px; margin: 0; padding: 0; }
.sof-fx-suite li { padding: 0 !important; }
.sof-fx-suite li::before { display: none !important; }
.sof-fx-suite a {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "type go" "nom go"; column-gap: 14px; align-items: center;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px;
    text-decoration: none !important; transition: border-color .18s;
}
.sof-fx-suite a:hover { border-color: var(--iris); }
.sof-fx-suite-type { grid-area: type; font-family: var(--display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--iris); }
.sof-fx-suite-nom { grid-area: nom; font-family: var(--display); font-weight: 500; color: var(--ink); line-height: 1.35; }
.sof-fx-suite a > svg { grid-area: go; width: 15px; height: 15px; color: var(--iris); }

/* Plan du site : fiches de la vitrine par rayon */
.sof-fx-plan-rayon { font-size: 1.02rem; margin: 18px 0 10px; }
.sof-fx-plan-rayon:first-of-type { margin-top: 0; }
.sof-fx-plan-rayon a:hover { color: var(--iris); }
.sof-fx-plan-desc { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ------------------------------------------------------------
   Calculateur de marge et de taux de marque
------------------------------------------------------------ */
.sof-mtm-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 50px; }
.sof-mtm-panneau {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
    padding: 30px; box-shadow: var(--sh-md); min-width: 0;
}
.sof-mtm-titre { font-size: 1.45rem; margin: 14px 0 20px; }
.sof-mtm-champs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sof-mtm-champs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sof-mtm-champ { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sof-mtm-champ label { font-family: var(--display); font-size: 0.78rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.sof-mtm-champ input {
    width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
    padding: 12px 14px; background: var(--surface-2);
    border: 1px solid var(--line); border-radius: var(--r-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.sof-mtm-champ input:focus { outline: none; border-color: var(--iris); box-shadow: 0 0 0 3px rgba(75,69,217,.14); }
.sof-mtm-erreur { margin: 14px 0 0; color: #A23A3A; font-size: 0.88rem; }
.sof-mtm-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; }
.sof-mtm-champs--2 + .sof-mtm-erreur + .sof-mtm-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sof-mtm-chiffres div {
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 14px 16px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; min-width: 0;
}
.sof-mtm-chiffres dt { font-size: 0.74rem; color: var(--mute); line-height: 1.3; }
.sof-mtm-chiffres dd { margin: 0; font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1.1; overflow-wrap: anywhere; }
.sof-mtm-chiffres .sof-mtm-fort { background: var(--iris); border-color: var(--iris); }
.sof-mtm-chiffres .sof-mtm-fort dt { color: rgba(255,255,255,.8); }
.sof-mtm-chiffres .sof-mtm-fort dd { color: #fff; }
.sof-mtm-lecture { margin: 18px 0 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */
@media (max-width: 1024px) {
    .sof-fx-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sof-fx-tx-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sof-mtm-grille { grid-template-columns: 1fr; }
    .sof-fx-acces { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 960px) {
    .sof-fx-cols { grid-template-columns: 1fr; gap: 26px; }
    .sof-fx-sommaire { position: static; max-height: none; }
    .sof-fx-corps { max-width: none; }
    .sof-fx-fp-panneau { grid-template-columns: 1fr; gap: 26px; padding: 26px; }
    .sof-fx-fp-visuel { aspect-ratio: 16 / 10; }
}

@media (max-width: 768px) {
    .sof-fx-strip { display: none; }
    .sof-bar-nav .sof-bar-formats {
        display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
    }
    .sof-bar-nav .sof-bar-formats a { font-size: 1.05rem; font-weight: 500; color: var(--ink-soft); padding: 10px 8px; }

    .sof-fx-grille, .sof-fx-grille--serree { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sof-fx-tx-liste { grid-template-columns: 1fr; }
    .sof-fx-ix-ligne { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 20px; }
    .sof-fx-ix-num { width: 44px; height: 44px; border-radius: 14px; font-size: 1rem; }
    .sof-fx-ix-go { display: none; }
    .sof-fx-cas-ligne { grid-template-columns: 1fr; gap: 6px; }
    .sof-fx-etape { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
    .sof-fx-bref { padding: 22px 20px; }
    .sof-mtm-panneau { padding: 22px 18px; }
    .sof-mtm-champs, .sof-mtm-champs--2 { grid-template-columns: 1fr; }
    .sof-mtm-chiffres, .sof-mtm-champs--2 + .sof-mtm-erreur + .sof-mtm-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sof-fx-acces { padding: 22px 18px; }
    .sof-fx-acces-liste { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .sof-fx-grille, .sof-fx-grille--serree { grid-template-columns: 1fr; }
}
