/* =========================================================================
   Thème Sciençage · adaptation des styles du site (site.css) aux blocs WordPress
   ========================================================================= */

.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > * { margin-block: 0; }
.cds-inline { display: contents; }               /* Paragraphe qui porte un surtitre, un lien fléché, une étiquette… */
.proto-note { display: none; }

/* ---------- Images ---------- */
figure.wp-block-image { margin: 0; }
.hero > .wp-block-image, .band > .wp-block-image { position: absolute; inset: 0; margin: 0; }
.hero > .wp-block-image img, .band > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.ph > .wp-block-image { height: 100%; }
.ph > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .wp-block-image { height: 100%; }
.panel > .wp-block-image, .pan > .wp-block-image { line-height: 0; }

/* ---------- Boutons (bloc Boutons) : charbon au repos, terre cuite au survol ---------- */
.wp-block-buttons.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.wp-block-buttons > .wp-block-button { margin: 0; }
.wp-block-button.btn-pill > .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; line-height: 1; border-radius: var(--r-pill); background: var(--charbon); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.wp-block-button.btn-pill > .wp-block-button__link:hover, .wp-block-button.btn-pill > .wp-block-button__link:focus-visible { background: var(--tc); color: var(--paper); box-shadow: none; }
.wp-block-button.btn-sm > .wp-block-button__link { height: 38px; padding: 0 16px; font-size: 14px; }
.wp-block-button.btn-line > .wp-block-button__link { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.wp-block-button.btn-line > .wp-block-button__link:hover { background: var(--tc); color: var(--paper); box-shadow: inset 0 0 0 1px var(--tc); }
.wp-block-button.btn-arrow > .wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; height: auto; padding: 0; background: none; border-radius: 0; color: var(--tc); font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.wp-block-button.btn-arrow > .wp-block-button__link::after { content: "→"; transition: transform .2s ease; }
.wp-block-button.btn-arrow > .wp-block-button__link:hover::after { transform: translateX(4px); }
:is(.dark, .iridium, .on-photo, .door, .panel.nuit, .panel.iridium, .panel.terre, .panel.charbon, .panel.tc) .wp-block-button.btn-arrow > .wp-block-button__link { color: var(--paper); }
:is(.dark, .iridium, .on-photo, .door, .panel.nuit, .panel.iridium, .panel.terre, .panel.charbon, .panel.tc) .wp-block-button.btn-pill:not(.btn-line) > .wp-block-button__link:not(:hover) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38); }
.panel .wp-block-buttons.actions { margin-top: auto; padding-top: 8px; }

/* ---------- Journal (boucle d'articles) ---------- */
.journal-query .cards { list-style: none; margin: 0; padding: 0; }
.wp-block-post-template.cards > li { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cards .wp-block-post-featured-image { margin: 0; border-radius: var(--r-card); overflow: hidden; background: var(--mist); aspect-ratio: 4 / 3; }
.cards .wp-block-post-featured-image a, .cards .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cards .wp-block-post-featured-image:hover img { transform: scale(1.03); }
.cards .wp-block-post-date { font-size: 13px; color: var(--pewter); }
.cards .wp-block-post-title { font-size: 23px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
.cards .wp-block-post-title a { text-decoration: none; }
.cards .wp-block-post-title a:hover { color: var(--tc); }
.cards .wp-block-post-excerpt { margin: 0; }
.cards .wp-block-post-excerpt__excerpt { font-size: 15px; color: var(--pewter); margin: 0; }
.wp-block-post-excerpt__more-text { display: none; }
.wp-block-query-pagination { margin-top: 48px; gap: 18px; font-weight: 600; }
.wp-block-query-pagination a { text-decoration: none; color: var(--tc); }

/* ---------- Article ---------- */
.article-body > * + * { margin-top: 24px; }
.article-body p { font-size: 19px; line-height: 1.65; color: #2c2f38; }
.article-body h2, .article-body h3 { margin-top: 48px; font-weight: 400; }
.article-body h2 { font-size: 32px; } .article-body h3 { font-size: 25px; }
.article-body blockquote, .article-body .wp-block-quote { margin: 40px 0; padding: 0 0 0 24px; border-left: 2px solid var(--tc); font-size: clamp(24px, 2.6vw, 32px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.25; }
.article-body blockquote p { font-size: inherit; color: inherit; }
.article-body img { border-radius: var(--r-card); height: auto; }
.article-body a { color: var(--tc); }
.hero .wp-block-post-featured-image { position: absolute; inset: 0; margin: 0; }
.hero .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.hero .wp-block-post-title { font-size: clamp(40px, 6vw, 78px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.05; max-width: 980px; }
.hero .wp-block-post-excerpt__excerpt { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, .82); max-width: 620px; margin: 0; }
.hero .wp-block-post-date, .hero .wp-block-post-terms { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.hero .wp-block-post-terms a { color: inherit; text-decoration: none; }

/* ---------- Fiches générées (projet, artiste) ---------- */
.fiche-text p { font-size: 18px; line-height: 1.65; color: #2c2f38; max-width: 600px; }
.fiche-text p + p { margin-top: 18px; }
.dark .fiche-text p { color: rgba(255, 255, 255, .84); }
.fallback { padding: 150px 0 80px; }
.fallback .wp-block-post-title { font-size: clamp(40px, 6vw, 78px); font-weight: 300; }

/* ---------- Recherche, 404 ---------- */
.wp-block-search__inside-wrapper { border-bottom: 1px solid var(--smoke); }
.wp-block-search__input { border: 0; font: inherit; font-size: 18px; padding: 10px 0; background: transparent; }
.wp-block-search__button { margin-left: 12px; }

/* ---------- Formulaires ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Barre d'administration ---------- */
.admin-bar .header { top: 32px; }
.admin-bar .menu-panel { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } .admin-bar .menu-panel { top: 46px; } }
.u-top { padding-top: 150px !important; }
