/* ==========================================================================
   Innadvise — raccords WordPress
   Les composants de la charte (base, components, blocks, home) sont repris tels quels.
   Ce fichier ajuste seulement ce que WordPress ajoute autour : conteneurs des blocs,
   marges par défaut, barre d'administration. Uniquement des alias de tokens.css.
   ========================================================================== */

/* ---------- Structure de page ---------- */
.wp-site-blocks { padding: 0; }
.innadvise-entete { display: contents; } /* l'en-tête reste « collant » sur toute la page */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
.admin-bar { scroll-padding-top: calc(var(--header-height) + var(--wp-admin--admin-bar--height, 0px) + 16px); }
:where(.wp-site-blocks) > * { margin-block: 0; }
:where(.wp-block-post-content, main) > * { margin-block: 0; }

/* Les figures WordPress (images, tableaux) n'ont pas de marge propre dans la charte */
.wp-block-image, .wp-block-table { margin: 0; }

/* ---------- Pied de page ---------- */
.site-footer__address { display: grid; gap: 9px; font-style: normal; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; }
.site-footer__simple .site-footer__legal { justify-content: flex-end; }

/* ---------- Échangez avec Sam ---------- */
.sam__photo .wp-block-image { height: 100%; }
.sam__photo .wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.sam__caption { text-align: center; font-size: var(--fs-small); color: var(--color-muted); }
.sam__caption b, .sam__caption strong { color: var(--color-primary); font-weight: var(--font-weight-strong); }
.form__notice { grid-column: 1 / -1; padding: 12px 16px; border-radius: var(--radius-md); font-size: var(--fs-small); }
.form__notice--ok { background: var(--color-success-soft); color: var(--color-success); }
.form__notice--erreur { background: var(--color-accent-soft); color: var(--color-primary-deep); }
.form__piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
	.sam__caption { text-align: left; font-size: var(--fs-base); }
}

/* ---------- FAQ (bloc « Détails ») : la question tient sans <span> ---------- */
.wp-block-details.qa summary { list-style: none; }

/* ---------- Pages légales ---------- */
/* Les listes WordPress portent une classe : on rétablit puces et numéros du texte courant */
.legal ul.wp-block-list { list-style: disc; }
.legal ol.wp-block-list { list-style: decimal; }
.legal__table table, .legal__ids table { border-collapse: collapse; }
.legal__table th, .legal__table td { border-width: 0 0 1px; border-style: solid; border-color: var(--color-line); }
.legal__table thead { border-bottom: 0; }
.legal__table tbody tr:last-child > * { border-bottom: 0; }
figure.legal__ids { display: block; }
.legal__ids table { width: 100%; table-layout: auto; }
.legal__ids th, .legal__ids td { border: 0; padding: 4px 24px 4px 0; text-align: left; vertical-align: top; }
.legal__ids th { font-weight: var(--font-weight-strong); color: var(--color-primary); font-size: var(--fs-small); white-space: nowrap; width: 1%; padding-top: 6px; }
@media (max-width: 640px) {
	.legal__ids th, .legal__ids td { display: block; padding: 0; white-space: normal; width: auto; }
	.legal__ids tr + tr th { padding-top: 12px; }
}
