/* assets/common/css/backoffice/editor/tables/design-main.css */
@layer site.socle.general {
/* Version: 26-09-2026-16-33 */
/* ===================== TABLES — Source de vérité hub : dupliquer les mêmes fichiers vers auth / register / portfolios ===================== */

.table-design,
.table-list {
    /* Colonnes texte : plafond serré + width:0 sur les cellules (voir tbody) pour coller au contenu */
    --arkt-table-cell-max: min(11rem, 32vw);
    /* Colonnes volontairement plus larges (ex. identifiant long) : classe .arkt-table-col--wide sur th/td */
    --arkt-table-cell-wide-max: min(18rem, 52vw);
    /* Colonne actions / édition : largeur minimale pour boutons + grilles */
    --arkt-table-actions-min: 13.5rem;
    --arkt-table-img-max: 120px;
    --arkt-table-pad-x: 10px;
    --arkt-table-pad-y: 9px;
}

@media screen and (max-width: 768px) {
    .table-design,
    .table-list {
        --arkt-table-cell-max: min(9rem, 72vw);
        --arkt-table-cell-wide-max: min(15rem, 85vw);
        --arkt-table-actions-min: min(11.5rem, 88vw);
        --arkt-table-pad-x: 8px;
        --arkt-table-pad-y: 8px;
    }
}

/* Base Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 5vh;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/*
 * Cellules « texte » : plafond + coupure.
 * width: 0 (table-layout auto) pousse les colonnes vers la largeur minimale du contenu,
 * sans les étirer jusqu’au plafond quand le texte est court.
 */
.table-design .table tbody td,
.table-list .table tbody td {
    width: 0;
    max-width: var(--arkt-table-cell-max, min(11rem, 32vw));
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Cellules badge + bouton (état, etc.) : pas de width:0 / césure agressive */
.table-design .table tbody td.manage-td-inline,
.table-list .table tbody td.manage-td-inline {
    width: auto;
    max-width: none;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.table-design .table tbody td.manage-td-inline--start,
.table-list .table tbody td.manage-td-inline--start {
    white-space: normal;
}

/*
 * Listes : le tableau occupe toute la largeur de son cadre (.table-design),
 * sans marge propre. Avec « max-content » centré, les cellules en width: 0 le réduisaient
 * à la largeur minimale du contenu : texte replié mot à mot, tableau flottant au centre.
 * Si le tableau dépasse le bloc → scroll horizontal sur .table-design.
 */
.table-design .table,
.table-list .table {
    table-layout: auto;
    /* !important : au-dessus des largeurs inline éventuelles */
    width: 100% !important;
    max-width: none;
    margin: 0 !important;
}

.table-design .table th,
.table-design .table td,
.table-list .table th,
.table-list .table td {
    padding: var(--arkt-table-pad-y, 9px) var(--arkt-table-pad-x, 10px);
}

.table-design .table thead th,
.table-list .table thead th {
    white-space: normal;
    line-height: 1.25;
}

/* Titres : largeur pilotée par le contenu (cf. tbody td width:0) */
.table-design .table thead tr:first-child th,
.table-list .table thead tr:first-child th {
    width: 0;
    max-width: var(--arkt-table-cell-max, min(11rem, 32vw));
}

.table-design .table th.arkt-table-col--wide,
.table-design .table td.arkt-table-col--wide,
.table-list .table th.arkt-table-col--wide,
.table-list .table td.arkt-table-col--wide {
    width: auto;
    max-width: var(--arkt-table-cell-wide-max, min(18rem, 52vw));
}

/* Colonnes avec libellés (.label) : largeur au contenu des pastilles (évite chevauchement avec la colonne suivante). Détection par :has sur tbody ; colonnes 15+ : classe .arkt-table-col--labels sur th/td. */
.table-design .table:has(tbody td:nth-child(1) .label) thead tr:first-child th:nth-child(1),
.table-list .table:has(tbody td:nth-child(1) .label) thead tr:first-child th:nth-child(1),
.table-design .table:has(tbody td:nth-child(2) .label) thead tr:first-child th:nth-child(2),
.table-list .table:has(tbody td:nth-child(2) .label) thead tr:first-child th:nth-child(2),
.table-design .table:has(tbody td:nth-child(3) .label) thead tr:first-child th:nth-child(3),
.table-list .table:has(tbody td:nth-child(3) .label) thead tr:first-child th:nth-child(3),
.table-design .table:has(tbody td:nth-child(4) .label) thead tr:first-child th:nth-child(4),
.table-list .table:has(tbody td:nth-child(4) .label) thead tr:first-child th:nth-child(4),
.table-design .table:has(tbody td:nth-child(5) .label) thead tr:first-child th:nth-child(5),
.table-list .table:has(tbody td:nth-child(5) .label) thead tr:first-child th:nth-child(5),
.table-design .table:has(tbody td:nth-child(6) .label) thead tr:first-child th:nth-child(6),
.table-list .table:has(tbody td:nth-child(6) .label) thead tr:first-child th:nth-child(6),
.table-design .table:has(tbody td:nth-child(7) .label) thead tr:first-child th:nth-child(7),
.table-list .table:has(tbody td:nth-child(7) .label) thead tr:first-child th:nth-child(7),
.table-design .table:has(tbody td:nth-child(8) .label) thead tr:first-child th:nth-child(8),
.table-list .table:has(tbody td:nth-child(8) .label) thead tr:first-child th:nth-child(8),
.table-design .table:has(tbody td:nth-child(9) .label) thead tr:first-child th:nth-child(9),
.table-list .table:has(tbody td:nth-child(9) .label) thead tr:first-child th:nth-child(9),
.table-design .table:has(tbody td:nth-child(10) .label) thead tr:first-child th:nth-child(10),
.table-list .table:has(tbody td:nth-child(10) .label) thead tr:first-child th:nth-child(10),
.table-design .table:has(tbody td:nth-child(11) .label) thead tr:first-child th:nth-child(11),
.table-list .table:has(tbody td:nth-child(11) .label) thead tr:first-child th:nth-child(11),
.table-design .table:has(tbody td:nth-child(12) .label) thead tr:first-child th:nth-child(12),
.table-list .table:has(tbody td:nth-child(12) .label) thead tr:first-child th:nth-child(12),
.table-design .table:has(tbody td:nth-child(13) .label) thead tr:first-child th:nth-child(13),
.table-list .table:has(tbody td:nth-child(13) .label) thead tr:first-child th:nth-child(13),
.table-design .table:has(tbody td:nth-child(14) .label) thead tr:first-child th:nth-child(14),
.table-list .table:has(tbody td:nth-child(14) .label) thead tr:first-child th:nth-child(14),
.table-design .table tbody td:has(.label),
.table-list .table tbody td:has(.label) {
    width: auto;
    max-width: none;
    min-width: min-content;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
}

.table-design .table th.arkt-table-col--labels,
.table-design .table td.arkt-table-col--labels,
.table-list .table th.arkt-table-col--labels,
.table-list .table td.arkt-table-col--labels {
    width: auto;
    max-width: none;
    min-width: min-content;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
}

/* Colonne actions explicite (optionnel dans le HTML) : pas de plafond, largeur mini confortable */
.table-design .table th.arkt-table-col--actions,
.table-design .table td.arkt-table-col--actions,
.table-list .table th.arkt-table-col--actions,
.table-list .table td.arkt-table-col--actions {
    width: auto;
    max-width: none;
    min-width: var(--arkt-table-actions-min, 13.5rem);
}

.table-design .table td img,
.table-list .table td img {
    width: auto;
    max-width: min(100%, var(--arkt-table-img-max, 120px));
    height: auto;
}

/* —— Scrollport (une seule zone de défilement horizontal) —— */
/* Marges négatives Bootstrap sur .row : sinon largeur de scroll > contenu réel (bande blanche à droite) */
.table-design.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Cadre : .table-design, qui porte aussi le scroll horizontal. */
.table-design {
    z-index: 15;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/*
 * Mobile : pleine largeur d'écran, sans cadre (bordures + arrondi retirés).
 */
@media screen and (max-width: 768px) {
    .table-design {
        border: none;
        border-radius: 0;
    }
}

.table-design {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
}

.tab .table-design {
    border-color: transparent;
    box-shadow: none;
}

.table-list .col-sm-12,
.table-list .col-12,
.table-list.col-sm-12,
.table-list.col-12 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    /* Pas de second overflow-x ici : évite double barre / scroll étendu à vide */
}

/* Table Cells */
.table th,
.table td {
    vertical-align: middle;
    text-align: left;
}

/* Padding par défaut (formulaires, tableaux hors .table-design / .table-list) */
.table th {
    padding: 14px 22px;
    font-weight: bold;
}

.table td {
    padding: 16px 22px;
    transition: background 0.15s ease;
}

table tr td {
    padding: 16px 18px;
    transition: background 0.15s ease;
}

table tr th {
    padding: 14px 18px;
    text-align: left;
}

table td input {
    margin: 0;
}

table td img {
    width: 150px;
    max-width: 100%;
    border-radius: var(--pf-border-radius-m, 8px);
    object-fit: cover;
}

table tr td .picturecolor {
    width: 100%;
    height: 50px;
    border-radius: var(--pf-border-radius-m, 8px);
}

table ul {
    grid-gap: 5px;
}

table .search-input {
    border: 0px;
}

/* Border Radius */
.panel .table th:first-child {
    border-radius: var(--pf-border-radius-l, 12px) 0 0 var(--pf-border-radius-l, 12px);
}

.panel .table th:last-child {
    border-radius: 0 var(--pf-border-radius-l, 12px) var(--pf-border-radius-l, 12px) 0;
}

/* First/last row cells radius */
.panel tbody tr:last-child td:first-child {
    border-radius: 0 0 0 var(--pf-border-radius-l, 12px);
}
.panel tbody tr:last-child td:last-child {
    border-radius: 0 0 var(--pf-border-radius-l, 12px) 0;
}

/* Links in Tables */
table a {
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    color: var(--arktefakt-text-main);
    font-weight: bold;
    transition: border-color 0.18s ease, color 0.18s ease;
}

table a::after {
    content: "⤴";
    margin-left: 4px;
    font-size: 0.85em;
    opacity: 0.6;
}

table .arkt-btn::after,
table .btn::after {
    display: none;
}

#table-show {
  width: 100% !important;
}

.table .arkt-btn svg {
  fill: var(--arktefakt-text-inverse);
}

.table .arkt-btn:hover svg {
  fill: var(--arktefakt-text-inverse-hover);
}

.pagination .page-link {
  background: var(--ak-tile-bg);
  border: 0px;
  transition: 0.2s linear;
}

.pagination .page-item.active .page-link, .pagination .page-link:hover {
  background: var(--ak-state-hover);
}

/* Form Elements in Tables */
form table .input-selection label {
    padding: 20px;
}

form table .input-selection svg {
    margin-top: 0;
}

form table .input-selection li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
}

#table-show th:last-child,
#table-show td:last-child {
    white-space: nowrap;
    vertical-align: middle;
}

/* Dernière colonne (actions) : pas de plafond + largeur mini pour boutons / libellés */
.table-design #table-show th:last-child,
.table-list #table-show th:last-child,
.table-design #table-show td:last-child,
.table-list #table-show td:last-child {
    width: auto;
    max-width: none;
    white-space: normal;
    min-width: var(--arkt-table-actions-min, 13.5rem);
}

/* grid.css met overflow:hidden sur .arkt-btn / a : rogne les icônes dans cellules étroites */
.table td .arkt-btn,
table td .arkt-btn {
    overflow: visible;
    flex-shrink: 0;
}

/*
 * Grilles d’actions dans les cellules : colonnes au contenu (max-content), pas de 1fr / minmax(0,…)
 * qui écrasent les boutons quand la cellule est étroite.
 */
table td ul.cols-2 {
    grid-template-columns: repeat(2, max-content);
    width: max-content;
    max-width: none;
    box-sizing: border-box;
}

table td ul.cols-3 {
    grid-template-columns: repeat(3, max-content);
    width: max-content;
    max-width: none;
    box-sizing: border-box;
}

table td ul.cols-4 {
    grid-template-columns: repeat(4, max-content);
    width: max-content;
    max-width: none;
    box-sizing: border-box;
}

table td ul.grid-five {
    grid-template-columns: repeat(5, max-content);
    width: max-content;
    max-width: none;
    box-sizing: border-box;
}

/* Champs de recherche (barre de listing) */
.search-input,
.search input {
    flex: 1;
    padding: 2px 5px!important;
    background: transparent !important;
    border: none;
    outline: none;
    color: var(--arktefakt-text-main);
    font-family: inherit !important;
    font-size: var(--arktefakt-font-size-field);
    box-shadow: none;
    box-sizing: border-box;
    margin: 0 !important;
    min-width: 0;
    width: auto !important;
    display: block;
}

.search-input::placeholder,
.search input::placeholder {
    color: var(--arktefakt-text-main);
    opacity: 0.38;
}

/* Icons (SVG) styling */
.search svg {
    margin-right: 5px;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: var(--arktefakt-text-main);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.4;
    transition: opacity 0.2s linear;
}

.search:focus-within svg {
    opacity: 0.7;
}

/* ===================== BOOTSTRAP TABLE ===================== */

.fixed-table-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}

.bootstrap-table .fixed-table-toolbar .columns-right {
    display: none;
}

.bootstrap-table .fixed-table-toolbar .columns label {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    gap: 8px;
    cursor: pointer;
}

.bootstrap-table .fixed-table-pagination::after {
    margin-bottom: 5vh;
}

/* Dropdown */
.dropdown-item {
    cursor: pointer;
    padding: 10px 18px;
    border-radius: var(--pf-border-radius-m, 8px);
    transition: background 0.15s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--arktefakt-bg-cta-hover);
    color: var(--arktefakt-text-on-cta-hover);
}

.dropdown-toggle {
    padding: 10px 18px;
    border: var(--ak-border-soft);
    border-radius: var(--pf-border-radius-m, 10px);
    background: var(--ak-tile-bg);
    color: var(--arktefakt-text-main, #222);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border 0.18s ease, box-shadow 0.18s ease;
}

.dropdown-toggle:hover {
    background: var(--arktefakt-bg-cta-hover);
    color: var(--arktefakt-text-on-cta-hover);
}

.btn-group .dropdown-menu {
    display: none;
    transform: translate3d(0px, 51px, 0px);
    margin-top: 8px;
    border-radius: var(--pf-border-radius-l, 14px);
    border: var(--ak-border-soft);
    padding: 6px;
    background: var(--ak-float-bg);
}

.btn-group .show {
    display: block;
}

.page-list .dropdown-item {
    margin: 2px 0;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 400;
    border-radius: var(--pf-border-radius-m, 8px);
}

/* ===================== PAGINATION ===================== */

.pagination, .pagination-detail {
    display: flex;
    flex: 1;
    padding: 14px 18px;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--arktefakt-text-secondary, #888);
}

.pagination a {
    text-decoration: none;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    text-decoration: none;
    border-radius: var(--pf-border-radius-xl, 50px);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* ===================== THEME COLORS ===================== */

.pagination .page-link {
    background: var(--ak-tile-bg);
    border: var(--ak-border-soft);
    color: var(--arktefakt-text-main, #333);
    transition: background 0.18s ease, color 0.18s ease, border 0.18s ease;
}

.pagination .page-item.active .page-link {
    background: var(--arktefakt-color-primary, #c4adf5);
    border-color: var(--arktefakt-color-primary, #c4adf5);
    color: #fff;
}

.pagination .page-link:hover:not(.active) {
    background: var(--arktefakt-bg-cta-hover);
    color: var(--arktefakt-text-on-cta-hover);
}
/* ===================== TABLE ROWS ===================== */

/* Alternance des lignes — posées sur le fond du bloc (--ak-table-row-bg) ; les
   lignes paires s'en écartent de --arktefakt-row-stripe-mix (hub-tokens-base.css). */
tbody tr:nth-child(odd) > td {
    background: var(--ak-table-row-bg);
}
tbody tr:nth-child(even) > td {
    background: var(--ak-table-row-stripe);
}

/* Traits internes : le séparateur commun (--arktefakt-border-separator), entre les
   lignes seulement. Le cadre extérieur est celui du bloc (.table-design, core/layout.css) :
   ni trait au-dessus de l'en-tête, ni sous la dernière ligne, sinon ils se doublent. */
tbody tr > td {
    border-bottom: var(--arktefakt-border-separator);
}
tbody tr:last-child > td {
    border-bottom: none;
}

/* Hover sur les lignes */
tbody tr:hover > td {
    transition: background 0.18s ease;
}

/* ===================== TABLE HEADERS ===================== */

.table th, table tr th {
    color: var(--arktefakt-text-main);
    text-transform: uppercase;
    white-space: nowrap;
}

/* En-têtes sticky : ligne de titres. */
thead tr:first-child th {
    position: sticky;
    top: 0;
    z-index: 3;
}

thead tr:last-child th {
    border-bottom: var(--arktefakt-border-separator);
}

/* Densité « outil » : en-têtes discrets, survol de ligne */

.table-design .table thead th,
.table-list .table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--arktefakt-text-muted);
}

.table-design .table tbody tr,
.table-list .table tbody tr {
    transition: background-color 0.12s ease;
}

.table-design .table tbody tr:hover,
.table-list .table tbody tr:hover {
    background: var(--ak-tile-bg-hover);
}

}
/* assets/css/public/structure/legal/cookies.css */
/* @layer-wrap:site.socle */
@layer site.socle {
/* Version: 13-11-2026-boutons */
@layer general {
.pf-c-consent {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(760px, calc(100vw - 32px));
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    /* Fond page portfolio (opaque), pas de verre / transparent */
    color: var(--pf-theme-text-main, #222);
    background: var(--pf-theme-bg-main);
    border-radius: var(--pf-border-radius-m);
    border: 1px solid var(--pf-thumbnail-border-color, rgba(0,0,0,0.06));
    box-shadow: var(--pf-thumbnail-box-shadow, 0 6px 24px rgba(0,0,0,0.08));
    /* Empilement : structure/layout/zindex.css. */
}

.pf-c-consent::before {
  display: none;
}

.pf-c-consent-backdrop {
  position: fixed;
  inset: 0;
  display: block;
  background: transparent;
  pointer-events: none;
  z-index: 700;
  transition: background 360ms ease, opacity 360ms ease;
}

.pf-c-consent article:where(.pf-c-consent__panel) {
    padding: 0;
}

.pf-c-consent svg:where(.ark-loader-ring, .pf-c-icon, .pf-c-nav__submenu-svg, .pf-c-reading-tools__icon, .pf-c-viewer__icon) {
    width: 48px;
    margin-bottom: 18px;
    display: inline-block;
    vertical-align: middle;
}

.pf-c-consent .pf-c-consent__text {
    max-height: 150px;
    overflow-y: auto;
}

.pf-c-consent h3:where(.pf-c-consent__title), .pf-c-consent p:where(.pf-c-consent__paragraph) {
    padding-bottom: 0px;
    margin-bottom: 16px;
}

/* Actions : boutons thème portfolio (.pf-c-btn), pas arkt-promo */
.pf-c-consent .pf-c-consent__actions {
    margin-top: 8px;
}

/* Boutons à largeur de colonne : la base .pf-c-btn (couche elements, plus tardive) plafonne à max-content par
   --pf-button-max-width ; le bandeau lève ce plafond par la variable. « Accepter » et « Personnaliser » se partagent
   la ligne à parts égales, « Refuser » prend toute la largeur dessous. */
.pf-c-consent__actions {
    --pf-button-max-width: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.pf-c-consent__row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
}

.pf-c-consent__row > .pf-c-btn {
    flex: 1 1 14rem;
}
}

.pf-c-page .pf-c-consent .pf-c-consent__actions .pf-c-btn,
.pf-c-page .pf-c-consent .pf-c-consent__actions .pf-c-btn {
    -webkit-appearance: none;
    appearance: none;
    color: var(--pf-button-text-color, #fff);
    /* Fond + dégradé séparés : le dégradé vaut « none » quand il n'y en a pas, il ne doit pas effacer le fond. */
    background-color: var(--pf-button-background-color, #222);
    background-image: var(--pf-button-gradient, none);
    border-width: var(--pf-button-border-width, 0px);
    border-color: var(--pf-button-border-color, #222);
    border-radius: var(--pf-button-radius, 0px);
    box-shadow: var(--pf-button-box-shadow, none);
    text-decoration: none;
    list-style: none;
    border-style: var(--pf-button-border-type, solid);
    text-align: center;
    /* Même interligne pour les <button> et le lien « Personnaliser » : la couche typo donne aux liens l'interligne du
       texte courant (--pf-text-line-height), plus tardive que cette feuille ; on règle donc la variable qu'elle lit. */
    --pf-text-line-height: 1.3;
    line-height: var(--pf-text-line-height);
    box-sizing: border-box;
    font-family: var(--pf-button-font-family, inherit);
    font-size: var(--pf-button-font-size, 1rem);
    font-weight: var(--pf-button-font-weight, 500);
    letter-spacing: var(--pf-button-letter-spacing, normal);
    text-transform: var(--pf-button-text-transform, none);
    transition: box-shadow 0.2s, border 0.2s, background 0.2s, color 0.2s, filter 0.18s, transform 0.18s;
}

.pf-c-page .pf-c-consent .pf-c-consent__actions .pf-c-btn:hover,
.pf-c-page .pf-c-consent .pf-c-consent__actions .pf-c-btn:hover {
    color: var(--pf-button-hover-text-color, var(--pf-button-text-color, #fff));
    background: var(--pf-button-hover-background, var(--pf-button-background-color, #222));
    box-shadow: var(--pf-button-hover-box-shadow, var(--pf-button-box-shadow, none));
    transform: var(--pf-button-hover-transform, none);
    filter: var(--pf-button-hover-filter, brightness(100%));
}

.pf-c-page .pf-c-consent .pf-c-consent__actions .pf-c-btn:active,
.pf-c-page .pf-c-consent .pf-c-consent__actions .pf-c-btn:active {
    color: var(--pf-button-click-text-color, var(--pf-button-hover-text-color, #fff));
    background: var(--pf-button-click-background, var(--pf-button-hover-background, #333));
    box-shadow: var(--pf-button-click-effect, none);
    transform: var(--pf-button-click-transform, scale(0.95));
}

/* Secondaire : contour / fond discret, même famille de variables */
.pf-c-page .pf-c-consent .pf-c-consent__refuse.pf-c-btn,
.pf-c-page .pf-c-consent .pf-c-consent__refuse.pf-c-btn {
    color: var(--pf-theme-text-main, #222);
    background: transparent;
    border-width: var(--pf-button-border-width, 1px);
    border-style: var(--pf-button-border-type, solid);
    border-color: var(--pf-button-border-color, var(--pf-ui-border-color, rgba(0, 0, 0, 0.2)));
    box-shadow: none;
}

.pf-c-page .pf-c-consent .pf-c-consent__refuse.pf-c-btn:hover,
.pf-c-page .pf-c-consent .pf-c-consent__refuse.pf-c-btn:hover {
    color: var(--pf-button-text-color, #fff);
    background: var(--pf-button-gradient, var(--pf-button-background-color, #222));
    border-color: var(--pf-button-border-color, #222);
    filter: var(--pf-button-hover-filter, brightness(100%));
}

@layer general {
.pf-c-consent .pf-c-consent__actions .pf-c-consent__refuse {
    cursor: pointer;
    margin-top: 0;
}
}

@media screen and (max-width: 520px) {
    @layer general {
    .pf-c-consent__row {
        flex-direction: column;
        align-items: stretch;
    }

    /* En colonne, la base de 14rem deviendrait une hauteur. */
    .pf-c-consent__row > .pf-c-btn {
        flex: none;
    }
    }

    .pf-c-page .pf-c-consent .pf-c-consent__actions .pf-c-btn,
    .pf-c-page .pf-c-consent .pf-c-consent__actions .pf-c-btn {
        width: 100%;
    }
}

@layer general {
.pf-c-consent article span:where(.pf-c-consent__em) {
    display: inline-block;
}

/* Préférences cookies — interrupteurs (tokens portfolio : bouton, surfaces, bordures) */
.pf-c-consent-prefs {
    --cookie-toggle-w: 56px;
    --cookie-toggle-h: 32px;
    --cookie-toggle-thumb: 26px;
    --cookie-toggle-pad: 3px;
    --cookie-toggle-travel: calc(var(--cookie-toggle-w) - var(--cookie-toggle-thumb) - (2 * var(--cookie-toggle-pad)));
    --cookie-toggle-radius: calc(var(--cookie-toggle-h) / 2);
    --cookie-toggle-track-off: color-mix(in srgb, var(--pf-theme-text-main, #666) 12%, var(--pf-theme-bg-alt, #ececec) 100%);
    --cookie-toggle-track-on: var(--pf-button-background-color, var(--pf-heading-secondary-color, #222));
    --cookie-toggle-focus-ring: color-mix(in srgb, var(--pf-button-background-color, #666) 35%, transparent);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.pf-c-consent-prefs .pf-c-consent-prefs__action label.pf-c-switch {
    border: none;
}

.pf-c-consent-prefs .pf-c-consent-prefs__action input[type="checkbox"] + label.pf-c-switch:hover {
    border-color: color-mix(in srgb, var(--pf-thumbnail-border-color, rgba(0, 0, 0, 0.12)) 80%, var(--pf-theme-text-main, #666) 12%);
    background: var(--cookie-toggle-track-off);
    box-shadow: none;
    transform: none;
}

.pf-c-consent-prefs .pf-c-consent-prefs__action input[type="checkbox"]:checked + label.pf-c-switch {
    border: none;
    background: var(--cookie-toggle-track-on);
    border-color: color-mix(in srgb, var(--pf-button-background-color, #222) 25%, transparent);
    box-shadow: none;
    transform: none;
}

.pf-c-consent-prefs .pf-c-consent-prefs__action input[type="checkbox"]:checked + label.pf-c-switch:hover {
    border-color: color-mix(in srgb, var(--pf-button-background-color, #222) 35%, transparent);
    background: var(--cookie-toggle-track-on);
    box-shadow: none;
    transform: none;
}

.pf-c-consent-prefs .pf-c-consent-prefs__action input[type="checkbox"]:disabled + label.pf-c-switch:hover {
    opacity: 0.55;
    background: var(--pf-theme-bg-alt, #e8e8e8);
    border-color: var(--pf-thumbnail-border-color, #ccc);
    box-shadow: none;
    transform: none;
}

.pf-c-consent-prefs__group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.pf-c-consent-prefs__info {
    flex: 1;
    min-width: 0;
    padding-right: 4px;
}

.pf-c-consent-prefs__info h2:where(.pf-c-consent-prefs__title) {
    color: var(--pf-theme-fill, #0f0f0f);
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.pf-c-consent-prefs__info p:where(.pf-c-consent-prefs__text) {
    color: var(--pf-theme-text-main, #555);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.45;
    opacity: 0.95;
}

.pf-c-consent-prefs__action {
    flex-shrink: 0;
    position: relative;
    width: var(--cookie-toggle-w);
    height: var(--cookie-toggle-h);
    align-self: flex-start;
    margin-top: 2px;
}

.pf-c-consent-prefs__action input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    border: none;
}

.pf-c-consent-prefs__action input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.pf-c-consent-prefs__action input[type="checkbox"]:focus {
    outline: none;
}

.pf-c-consent-prefs__action input[type="checkbox"]:focus-visible + .pf-c-switch {
    outline: 2px solid var(--cookie-toggle-focus-ring);
    outline-offset: 2px;
    box-shadow: none;
}

.pf-c-consent-prefs__action input:checked:focus-visible + .pf-c-switch {
    outline: 2px solid var(--cookie-toggle-focus-ring);
    outline-offset: 2px;
    box-shadow: none;
}

.pf-c-consent-prefs__action .pf-c-switch {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: var(--cookie-toggle-w);
    height: var(--cookie-toggle-h);
    pointer-events: none;
    background: var(--cookie-toggle-track-off);
    border-radius: var(--cookie-toggle-radius);
    border: 1px solid color-mix(in srgb, var(--pf-thumbnail-border-color, rgba(0, 0, 0, 0.12)) 90%, var(--pf-theme-text-main, #666) 8%);
    box-sizing: border-box;
    box-shadow: none;
    transition:
        background 0.24s ease,
        border-color 0.24s ease,
        opacity 0.24s ease;
}

.pf-c-consent-prefs__action .pf-c-switch::after {
    content: "";
    position: absolute;
    top: var(--cookie-toggle-pad);
    left: var(--cookie-toggle-pad);
    width: var(--cookie-toggle-thumb);
    height: var(--cookie-toggle-thumb);
    border-radius: var(--pf-border-radius-full, 50%);
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--pf-thumbnail-border-color, rgba(0, 0, 0, 0.12)) 70%, rgba(0, 0, 0, 0.08));
    box-shadow: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pf-c-consent-prefs__action input:checked + .pf-c-switch {
    background: var(--cookie-toggle-track-on);
    border-color: color-mix(in srgb, var(--pf-button-background-color, #222) 25%, transparent);
    box-shadow: none;
}

.pf-c-consent-prefs__action input:checked + .pf-c-switch::after {
    transform: translateX(var(--cookie-toggle-travel));
    border-color: color-mix(in srgb, #ffffff 40%, var(--pf-theme-text-main, #666) 60%);
    box-shadow: none;
}

.pf-c-consent-prefs__action input:disabled + .pf-c-switch {
    opacity: 0.58;
    cursor: not-allowed;
    background: color-mix(in srgb, var(--pf-theme-bg-alt, #e8e8e8) 92%, var(--pf-theme-text-main, #999) 8%);
    border-color: var(--pf-thumbnail-border-color, #ccc);
    box-shadow: none;
}

.pf-c-consent-prefs__action input:disabled + .pf-c-switch::after {
    box-shadow: none;
}

.pf-c-consent-prefs__action input:disabled:checked + .pf-c-switch {
    background: var(--pf-theme-text-main, #888);
    border-color: var(--pf-thumbnail-border-color, #bbb);
    opacity: 0.88;
    box-shadow: none;
}

/* Cookies indispensables : toujours actifs, interrupteur verrouillé mais bien visible (piste ≥ 3:1 sur le fond de page).
   Variables d'accroche du composant : --pf-c-consent-locked-track, --pf-c-consent-locked-opacity. */
.pf-c-consent-prefs .pf-c-consent-prefs__action input[type="checkbox"]:disabled:checked + label.pf-c-switch {
    background: var(--pf-c-consent-locked-track, var(--cookie-toggle-track-on));
    opacity: var(--pf-c-consent-locked-opacity, 0.88);
}

.pf-c-consent-prefs__status {
    margin: 4px 0 0;
    font-size: var(--pf-font-size-small, 12px);
    font-weight: 600;
    color: var(--pf-theme-text-main);
}
}

@media screen and (max-width: 600px) {

    @layer general {
    .pf-c-consent-prefs {
        --cookie-toggle-w: 52px;
        --cookie-toggle-h: 30px;
        --cookie-toggle-thumb: 24px;
        --cookie-toggle-pad: 3px;
    }

    .pf-c-consent-prefs__group {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .pf-c-consent-prefs__info h2:where(.pf-c-consent-prefs__title) {
        font-size: 1rem;
    }

    .pf-c-consent-prefs__info p:where(.pf-c-consent-prefs__text) {
        font-size: 0.875rem;
    }

    .pf-c-consent-prefs__action {
        margin-top: 0;
    }
    }
}

@media (prefers-reduced-motion: reduce) {

    @layer general {
    .pf-c-consent-prefs__action .pf-c-switch,
    .pf-c-consent-prefs__action .pf-c-switch::after {
        transition: none;
    }
    }
}
}
/* Mots mis en avant du bandeau (pf-c-consent__em) : couleur 1 du portfolio, posée sur l'élément
   (--pf-c-consent-accent, footer.php) à la place d'un style="color" en ligne ; sans réglage, la couleur du texte.
   Couche des réglages : comme le style en ligne, ne cède à aucune règle du site. */
@layer site.reglages {
.pf-c-page :is(.pf-c-consent__em, .pf-c-consent-prefs__em) {
    color: var(--pf-c-consent-accent);
}
}

