/*
Theme Name: AB Studio
Theme URI: https://audreybarousse.com
Author: Audrey Barousse
Description: Thème bloc sur mesure pour audreybarousse.com — SEO, GEO, projets web et photographie.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: abstudio
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--peche); color: var(--wp--preset--color--encre); }
:where(a) { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:where(a):hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--wp--preset--color--ardoise); outline-offset: 3px; }
img { height: auto; }
h1, h2, h3 { text-wrap: balance; font-variation-settings: "opsz" 48; }
p { text-wrap: pretty; }

/* Surlignage pêche (bouton « Surligner » de l'éditeur ou <mark>) */
mark, .has-inline-color.has-peche-background-color {
	background: linear-gradient(transparent 58%, var(--wp--preset--color--peche) 58%, var(--wp--preset--color--peche) 92%, transparent 92%);
	color: inherit; padding: 0 0.05em;
}

.ab-skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--wp--preset--color--encre); color: var(--wp--preset--color--papier); padding: 0.75rem 1rem; }
.ab-skip:focus { left: 1rem; }

/* ---------- En-tête ---------- */
.ab-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--wp--preset--color--papier) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--wp--preset--color--trait); }
.admin-bar .ab-header { top: 32px; }
.ab-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.ab-header p, .ab-header .wp-block-shortcode { margin: 0; }
.ab-logo { display: inline-flex; align-items: baseline; gap: 0.6rem; text-decoration: none; color: var(--wp--preset--color--encre); }
.ab-logo:hover { text-decoration: none; }
.ab-logo__marque { font-family: var(--wp--preset--font-family--texte); font-weight: 300; font-size: 1.55rem; letter-spacing: 0.02em; line-height: 1; color: var(--wp--preset--color--ardoise); }
.ab-logo__nom { font-family: var(--wp--preset--font-family--titre); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.ab-nav { display: flex; align-items: center; gap: 2rem; }
.ab-menu, .ab-langues { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.ab-menu a, .ab-langues a { text-decoration: none; font-size: var(--wp--preset--font-size--s); font-weight: 500; color: var(--wp--preset--color--encre); }
.ab-menu a:hover, .ab-menu .current-menu-item > a, .ab-menu .current_page_parent > a { text-decoration: underline; text-decoration-color: var(--wp--preset--color--peche); text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
.ab-langues { gap: 0.15rem; border-left: 1px solid var(--wp--preset--color--trait); padding-left: 1.5rem; }
.ab-langues a { padding: 0.2rem 0.4rem; color: var(--wp--preset--color--taupe); font-size: var(--wp--preset--font-size--xs); letter-spacing: 0.04em; }
.ab-langues a[aria-current] { color: var(--wp--preset--color--encre); }
.ab-burger { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--wp--preset--color--encre); font: 500 var(--wp--preset--font-size--s)/1 var(--wp--preset--font-family--texte); }

@media (max-width: 900px) {
	.ab-burger { display: inline-flex; }
	.ab-nav { position: fixed; inset: 4.25rem 0 auto 0; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem; background: var(--wp--preset--color--papier); border-bottom: 1px solid var(--wp--preset--color--trait); transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
	.admin-bar .ab-nav { top: calc(4.25rem + 46px); }
	.ab-nav.is-open { transform: none; visibility: visible; }
	.ab-menu { flex-direction: column; gap: 1rem; }
	.ab-menu a { font-family: var(--wp--preset--font-family--titre); font-size: 1.6rem; font-weight: 500; }
	.ab-langues { border: 0; padding: 0; }
}

/* ---------- Typo utilitaire ---------- */
.is-style-etiquette {
	font-family: var(--wp--preset--font-family--titre);
	font-size: var(--wp--preset--font-size--s) !important;
	font-weight: 500; color: var(--wp--preset--color--taupe);
	letter-spacing: 0; margin-bottom: 0.75rem !important;
}
.is-style-chapo { font-size: var(--wp--preset--font-size--l); line-height: 1.5; color: var(--wp--preset--color--ardoise); max-width: 38em; }
.has-encre-background-color .is-style-chapo, .has-ardoise-background-color .is-style-chapo { color: var(--wp--preset--color--trait); }
.has-encre-background-color .is-style-etiquette, .has-ardoise-background-color .is-style-etiquette { color: var(--wp--preset--color--peche); }
.has-encre-background-color :where(h1,h2,h3,h4), .has-ardoise-background-color :where(h1,h2,h3,h4) { color: var(--wp--preset--color--papier); }
.has-encre-background-color a:where(:not(.wp-element-button)), .has-ardoise-background-color a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--papier); }

.ab-affiche { font-size: var(--wp--preset--font-size--display) !important; line-height: 0.98 !important; letter-spacing: -0.035em !important; font-weight: 600; font-variation-settings: "opsz" 96; }
.ab-affiche em { font-style: normal; font-weight: 300; }

/* ---------- Héros ---------- */
.ab-hero { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.ab-hero .wp-block-columns { align-items: end; }
.ab-hero__photo { position: relative; }
.ab-hero__photo::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; background: var(--wp--preset--color--terracotta); opacity: .85; z-index: 0; }
.ab-hero__photo img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(0.9); }
.ab-hero__photo figcaption { position: relative; z-index: 1; margin-top: 1.75rem !important; font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--taupe); text-align: left; }
.is-style-portrait img { aspect-ratio: 4/5; object-fit: cover; }

/* ---------- Chiffres clés ---------- */
.ab-chiffres { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0 !important; border-top: 1px solid var(--wp--preset--color--encre); }
.ab-chiffres > * { padding: 1.25rem 1.25rem 0 0; margin: 0 !important; }
.ab-chiffres > * + * { padding-left: 1.25rem; border-left: 1px solid var(--wp--preset--color--trait); }
.ab-chiffres .ab-chiffre { font-family: var(--wp--preset--font-family--titre); font-size: var(--wp--preset--font-size--xl); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 0 0 0.4rem; }
.ab-chiffres p:not(.ab-chiffre) { font-size: var(--wp--preset--font-size--s); color: var(--wp--preset--color--ardoise); margin: 0; line-height: 1.4; }
@media (max-width: 781px) {
	.ab-chiffres { grid-template-columns: repeat(2, 1fr); }
	.ab-chiffres > * { padding: 1.25rem 0.75rem 1.25rem 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--wp--preset--color--trait); }
	.ab-chiffres > *:nth-child(even) { padding-left: 1rem !important; border-left: 1px solid var(--wp--preset--color--trait) !important; }
}

/* ---------- Lignes (expertises, projets, méthode) ---------- */
.ab-ligne { border-top: 1px solid var(--wp--preset--color--trait); padding-top: var(--wp--preset--spacing--30); padding-bottom: var(--wp--preset--spacing--30); margin-block-start: 0 !important; }
.ab-lignes > .ab-ligne:last-child { border-bottom: 1px solid var(--wp--preset--color--trait); }
.ab-ligne h3 { margin: 0; }
.ab-ligne .ab-num { font-family: var(--wp--preset--font-family--titre); color: var(--wp--preset--color--taupe); font-size: var(--wp--preset--font-size--s); font-weight: 500; margin: 0 0 0.4rem; font-variant-numeric: tabular-nums; }
.ab-ligne p { margin-top: 0; }
.ab-meta { font-size: var(--wp--preset--font-size--xs) !important; color: var(--wp--preset--color--taupe); letter-spacing: 0.02em; }
.has-encre-background-color .ab-ligne, .has-ardoise-background-color .ab-ligne { border-color: color-mix(in srgb, var(--wp--preset--color--papier) 22%, transparent); }

.is-style-trait-haut { border-top: 1px solid var(--wp--preset--color--encre); padding-top: var(--wp--preset--spacing--30); }

/* Listes */
.is-style-tirets { list-style: none; padding-left: 0; }
.is-style-tirets li { position: relative; padding-left: 1.4em; margin-bottom: 0.45em; }
.is-style-tirets li::before { content: "—"; position: absolute; left: 0; color: var(--wp--preset--color--taupe); }
.is-style-colonnes { columns: 2; column-gap: 2.5rem; list-style: none; padding-left: 0; }
.is-style-colonnes li { break-inside: avoid; padding: 0.55rem 0; border-bottom: 1px solid var(--wp--preset--color--trait); }
@media (max-width: 600px) { .is-style-colonnes { columns: 1; } }

/* Secteurs : liste « tags » discrète */
.ab-secteurs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; }
.ab-secteurs li { border: 1px solid var(--wp--preset--color--trait); padding: 0.35rem 0.85rem; font-size: var(--wp--preset--font-size--s); border-radius: 999px; background: var(--wp--preset--color--blanc); }
.ab-secteurs li:first-child { background: var(--wp--preset--color--encre); color: var(--wp--preset--color--papier); border-color: var(--wp--preset--color--encre); }

/* Citation / encadré */
.ab-encart { border-left: 3px solid var(--wp--preset--color--peche); padding-left: 1.5rem; }

/* Boutons secondaires */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--encre); border: 1px solid var(--wp--preset--color--encre); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--encre); color: var(--wp--preset--color--papier); }
.has-encre-background-color .wp-block-button .wp-block-button__link { background: var(--wp--preset--color--peche); color: var(--wp--preset--color--encre); }
.has-encre-background-color .wp-block-button .wp-block-button__link:hover { background: var(--wp--preset--color--papier); }
.ab-lien-fleche a, a.ab-lien-fleche { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ab-lien-fleche a::after, a.ab-lien-fleche::after { content: " →"; }

/* ---------- Projets (visuels) ---------- */
.ab-projet-visuel img { border: 1px solid var(--wp--preset--color--trait); background: var(--wp--preset--color--blanc); }

/* ---------- Photo ---------- */
.ab-bande-photo { display: grid !important; grid-template-columns: 2fr 1fr 1fr; gap: 0.75rem !important; }
.ab-bande-photo figure { margin: 0 !important; }
.ab-bande-photo img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ab-bande-photo figure:not(:first-child) img { aspect-ratio: 3/4; }
@media (max-width: 781px) { .ab-bande-photo { grid-template-columns: 1fr 1fr; } .ab-bande-photo figure:first-child { grid-column: 1 / -1; } }

.ab-galeries { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: var(--wp--preset--spacing--30) !important; }
.ab-galeries > * { margin: 0 !important; }
.ab-galeries img { aspect-ratio: 4/5; object-fit: cover; width: 100%; display: block; transition: opacity .2s; }
.ab-galeries a:hover img { opacity: 0.85; }
.ab-galeries h3 { margin: 0.9rem 0 0.2rem; font-size: var(--wp--preset--font-size--l); }
.ab-galeries h3 a { text-decoration: none; }
.ab-galeries p { margin: 0; font-size: var(--wp--preset--font-size--s); color: var(--wp--preset--color--taupe); }
@media (max-width: 781px) { .ab-galeries { grid-template-columns: 1fr; } }

/* Galerie « Mosaïque » : colonnes façon planche contact */
.wp-block-gallery.is-style-mosaique { display: block !important; columns: 3 280px; column-gap: 0.75rem; }
.wp-block-gallery.is-style-mosaique > figure.wp-block-image { width: 100% !important; margin: 0 0 0.75rem !important; break-inside: avoid; display: block; }
.wp-block-gallery.is-style-mosaique > figure.wp-block-image img { width: 100%; height: auto !important; object-fit: contain; display: block; }
.wp-block-gallery.is-style-mosaique figcaption { display: none; }

/* Gabarit galerie sombre */
.page-template-page-galerie, .page-template-page-galerie .ab-header, .page-template-page-galerie .ab-nav { background: #151C1E; color: var(--wp--preset--color--papier); border-color: #2c3638; }
.page-template-page-galerie :where(h1,h2,h3,.ab-logo,.ab-menu a,.ab-langues a[aria-current], a) { color: var(--wp--preset--color--papier); }
.page-template-page-galerie .is-style-chapo { color: #c9c2bc; }
.page-template-page-galerie .ab-footer { background: #101618; }

/* ---------- Pied de page ---------- */
.ab-footer { font-size: var(--wp--preset--font-size--s); }
.ab-footer a { color: inherit; }
.ab-footer .ab-menu { flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.ab-footer .ab-menu a { color: var(--wp--preset--color--trait); font-size: var(--wp--preset--font-size--s); }
.ab-footer__marque { font-family: var(--wp--preset--font-family--texte); font-weight: 300; font-size: 2.25rem; line-height: 1; letter-spacing: 0.02em; color: var(--wp--preset--color--peche); margin: 0 0 0.75rem; }
.ab-footer__accroche { color: #b7c1c3; max-width: 26em; }

/* ---------- Contact ---------- */
.ab-mail a { font-family: var(--wp--preset--font-family--titre); font-size: var(--wp--preset--font-size--xl); font-weight: 500; letter-spacing: -0.02em; text-decoration-color: var(--wp--preset--color--peche); text-decoration-thickness: 3px; }


/* Correctifs */
.ab-ligne h3, .ab-galeries h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: normal; }
.ab-hero__photo::before { inset: auto; top: 1.25rem; left: 1.25rem; width: 100%; aspect-ratio: 4/5; }
main > .wp-block-post-content > .alignfull:last-child { margin-bottom: 0; }
.wp-block-post-content > * + .alignfull { margin-block-start: 0; }
.is-layout-constrained > .is-style-chapo { margin-left: 0 !important; }
.page-template-page-galerie .ab-menu a, .page-template-page-galerie .ab-burger { color: var(--wp--preset--color--papier); }
.page-template-page-galerie .ab-langues a { color: #8d9a9c; }
.page-template-page-galerie .ab-langues a[aria-current] { color: var(--wp--preset--color--papier); }
.page-template-page-galerie .is-style-etiquette a { color: var(--wp--preset--color--peche); }
.ab-projet-visuel { max-width: 560px; }

/* ===== v2 : couleurs, tailles, visuels, photo ===== */
.is-style-chapo { font-size: 1.125rem; line-height: 1.65; }
.ab-hero .is-style-chapo { max-width: 34em; }
.ab-ligne h3 { font-size: 1.1875rem; }
.ab-footer .ab-menu { flex-direction: column; gap: 0.4rem; }
.ab-footer .ab-menu a { color: #c9d1d3; }
mark { background: linear-gradient(transparent 60%, var(--wp--preset--color--peche) 60%, var(--wp--preset--color--peche) 90%, transparent 90%); }
.is-style-etiquette { color: var(--wp--preset--color--terracotta); }
.ab-num { color: var(--wp--preset--color--terracotta) !important; }
.ab-lien-fleche a, a.ab-lien-fleche { color: var(--wp--preset--color--encre); border-bottom: 2px solid var(--wp--preset--color--terracotta); }
.wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--wp--preset--color--terracotta); color: #fff; }
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--wp--preset--color--encre); color: #fff; }

/* Bandeau chiffres sur fond ardoise */
.ab-bandeau-chiffres .ab-chiffres { border-top: 0; }
.ab-bandeau-chiffres .ab-chiffres > * + * { border-left-color: rgba(255,255,255,.18); }
.ab-bandeau-chiffres .ab-chiffre { color: var(--wp--preset--color--peche); font-size: 2.25rem; }
.ab-bandeau-chiffres .ab-chiffres p:not(.ab-chiffre) { color: #dbe2e3; }
@media (max-width: 781px) { .ab-bandeau-chiffres .ab-chiffres > * { border-color: rgba(255,255,255,.18) !important; } }

/* Fonds colorés */
.has-peche-clair-background-color .ab-ligne, .has-ardoise-clair-background-color .ab-ligne { border-color: rgba(13,27,38,.14); }
.has-ardoise-background-color .ab-ligne { border-color: rgba(255,255,255,.2); }
.has-ardoise-background-color .ab-num, .has-encre-background-color .ab-num { color: var(--wp--preset--color--peche) !important; }
.has-ardoise-background-color .is-style-etiquette, .has-encre-background-color .is-style-etiquette { color: var(--wp--preset--color--peche); }
.has-ardoise-background-color, .has-ardoise-background-color p { color: #eef2f2; }
.has-ardoise-background-color .ab-lien-fleche a, .has-encre-background-color .ab-lien-fleche a { color: #fff; border-color: var(--wp--preset--color--peche); }
.has-peche-background-color .ab-secteurs li, .has-peche-clair-background-color .ab-secteurs li { background: rgba(255,255,255,.6); border-color: transparent; }
.has-peche-clair-background-color .ab-secteurs li:first-child { background: var(--wp--preset--color--terracotta); color: #fff; }

/* Visuels de projets : petits, dans un cadre navigateur ou téléphone */
.ab-ecran, .ab-tel { margin: 0 !important; }
.ab-ecran img { display: block; width: 100%; height: auto; border-radius: 0 0 8px 8px; }
.ab-ecran { background: #fff; border-radius: 10px; padding-top: 22px; position: relative; box-shadow: 0 1px 0 rgba(13,27,38,.06), 0 14px 30px -18px rgba(13,27,38,.35); border: 1px solid var(--wp--preset--color--trait); max-width: 340px; margin-left: auto !important; }
.ab-ecran::before { content: ""; position: absolute; top: 8px; left: 10px; width: 6px; height: 6px; border-radius: 50%; background: #e7a08b; box-shadow: 11px 0 0 #e9cf8b, 22px 0 0 #a9c7a4; }
.ab-tel { max-width: 170px; margin-left: auto !important; background: var(--wp--preset--color--encre); border-radius: 26px; padding: 10px 7px; box-shadow: 0 16px 30px -18px rgba(13,27,38,.5); }
.ab-tel img { display: block; width: 100%; aspect-ratio: 9/18; object-fit: cover; object-position: top; border-radius: 18px; }
.ab-projet-visuel { max-width: none; }

/* ===== Pages photo : fond sombre ===== */
.page-template-page-galerie { background: #121a1d; }
.page-template-page-galerie main h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 500; }
.page-template-page-galerie .is-style-chapo { font-size: 1rem; color: #aeb7b9; max-width: 40em; }
.page-template-page-galerie main p { color: #c9cfd0; }
.page-template-page-galerie main a { color: #fff; }

/* Séries (accueil photo) */
.ab-series { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem !important; }
.ab-series > * { margin: 0 !important; }
.ab-series img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; transition: opacity .25s; }
.ab-series a:hover img { opacity: .82; }
.ab-series h2 { font-size: 1.375rem; margin: 1rem 0 0.25rem; }
.ab-series h2 a { text-decoration: none; }
.ab-series p { margin: 0; font-size: var(--wp--preset--font-size--s); }
@media (max-width: 781px) { .ab-series { grid-template-columns: 1fr; } }

/* Série : grandes images, en pleine largeur ou par deux */
.ab-serie > * + * { margin-top: 1.25rem !important; }
.ab-serie .wp-block-columns { gap: 1.25rem !important; margin: 0; }
.ab-serie figure { margin: 0 !important; }
.ab-serie img { display: block; width: 100%; height: auto; }
.ab-serie .wp-block-image.ab-large img { max-height: 88vh; width: auto; max-width: 100%; margin: 0 auto; }
.ab-serie .wp-block-image.ab-large { text-align: center; }

/* ===== v3 ===== */
/* Pas d'espace entre la dernière section et le pied de page */
.wp-site-blocks > footer, .wp-site-blocks > .wp-block-template-part:last-child, .wp-site-blocks > main + * { margin-block-start: 0 !important; }

/* Portrait d'accueil : forme organique, plus petit, ombre pêche/terracotta */
.ab-hero .ab-hero__photo { max-width: 300px; margin-left: auto !important; margin-right: auto !important; }
.ab-hero .ab-hero__photo img { aspect-ratio: 1 / 1.08; border-radius: 58% 42% 47% 53% / 46% 52% 48% 54%; }
.ab-hero .ab-hero__photo::before { inset: auto; top: 1.1rem; left: 1.1rem; width: 100%; aspect-ratio: 1 / 1.08; border-radius: 44% 56% 61% 39% / 55% 43% 57% 45%; transform: rotate(-6deg); }
@media (max-width: 781px) { .ab-hero .ab-hero__photo { max-width: 230px; } }

/* Galeries photo en rangées : plusieurs photos par ligne, formats mélangés */
.wp-block-gallery.is-style-rangees { display: flex !important; flex-wrap: wrap; gap: 0.6rem !important; }
.wp-block-gallery.is-style-rangees::after { content: ""; flex: 10 1 0; }
.wp-block-gallery.is-style-rangees > figure.wp-block-image { --r: 1.5; flex: var(--r) 1 calc(var(--r) * 185px) !important; width: auto !important; margin: 0 !important; max-width: none !important; }
.wp-block-gallery.is-style-rangees > figure.wp-block-image img { width: 100% !important; height: auto !important; aspect-ratio: var(--r); object-fit: cover !important; display: block; }
.wp-block-gallery.is-style-rangees > figure.ab-f-p { --r: 0.667; }
.wp-block-gallery.is-style-rangees > figure.ab-f-c { --r: 1; }
.wp-block-gallery.is-style-rangees > figure.ab-f-l { --r: 1.5; }
.wp-block-gallery.is-style-rangees > figure.ab-f-w { --r: 2; }
.wp-block-gallery.is-style-rangees figcaption { display: none; }
@media (max-width: 600px) { .wp-block-gallery.is-style-rangees > figure.wp-block-image { flex-basis: calc(var(--r) * 110px) !important; } }
/* Accueil : titre un peu moins gros, texte plus large */
.ab-hero .ab-affiche { font-size: clamp(2.75rem, 6.4vw, 5.25rem) !important; }
.ab-hero .is-style-chapo { max-width: 44em; }

/* Logos clients */
.ab-logos { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem 2.5rem; margin-top: 1.5rem !important; }
.ab-logos > figure { margin: 0 !important; }
.ab-logos img { height: 46px; width: auto; max-width: 190px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.ab-logos .ab-logo-rond img { height: 68px; }
.ab-logos figure:hover img { filter: none; opacity: 1; }
@media (max-width: 781px) { .ab-logos { justify-content: center; gap: 1.5rem 2rem; } .ab-logos img { height: 36px; } .ab-logos .ab-logo-rond img { height: 56px; } }

/* Page Projets : grands titres de section et sections contrastées */
.ab-titre-section { font-size: var(--wp--preset--font-size--xxl) !important; line-height: 1.05 !important; margin-bottom: var(--wp--preset--spacing--30) !important; }
.has-encre-background-color, .has-encre-background-color p, .has-encre-background-color li { color: #e9eeee; }
.has-encre-background-color .ab-meta { color: #a9b8bb; }
.has-encre-background-color .is-style-tirets li::before { color: var(--wp--preset--color--peche); }
.has-encre-background-color mark, .has-ardoise-background-color mark { color: inherit; background: linear-gradient(transparent 58%, rgba(243,192,175,.38) 58%, rgba(243,192,175,.38) 92%, transparent 92%); }
.has-encre-background-color .ab-ecran { border-color: transparent; }
.has-ardoise-background-color .ab-meta { color: #c6d1d2; }
.has-ardoise-background-color .is-style-tirets li::before { color: var(--wp--preset--color--peche); }
.has-ardoise-background-color li { color: #eef2f2; }
