/* ==========================================================================
   Blocs de l'éditeur (pages éditables)
   ========================================================================== */
.page-blocks { --measure: 1320px; }
/* Largeur : chaque bloc de premier niveau est centré dans la grille, sauf les modules pleine largeur */
.page-blocks > :where(:not(.alignfull):not(section):not(aside):not(header)),
.page-blocks .alignfull > .wp-block-group__inner-container > :where(:not(.alignfull):not(section)) { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gut); padding-right: var(--gut); box-sizing: border-box; }
.page-blocks > :where(p, ul, ol, h2, h3, h4, .wp-block-table, .wp-block-details) { max-width: calc(76ch + 2 * var(--gut)); }
.page-blocks > p:first-child, .page-blocks > h2:first-child { margin-top: var(--sec); }
.page-blocks > :where(p, ul, ol, .wp-block-table):last-child { margin-bottom: var(--sec); }
.page-blocks .alignfull { width: 100%; }

/* Titres et textes */
.page-blocks h2.wp-block-heading { font: 900 clamp(1.9rem, 3.8vw, 3.3rem)/1.02 var(--display); letter-spacing: -.025em; margin: 1.4em auto .45em; text-wrap: balance; }
.page-blocks h2.wp-block-heading::after { content: ""; display: block; width: 64px; height: 8px; margin-top: .35em; border-radius: 8px; background: var(--yellow); }
.page-blocks h2.wp-block-heading.has-text-align-center::after { margin-left: auto; margin-right: auto; }
.page-blocks h3.wp-block-heading { font: 900 clamp(1.25rem, 2vw, 1.6rem)/1.1 var(--display); letter-spacing: -.02em; margin: 1.2em auto .4em; }
.page-blocks .is-style-pt-display { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; }
.page-blocks .is-style-pt-lead, .page-blocks .lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--grey); }
.page-blocks p a:not(.btn), .page-blocks li a { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Sections (groupes pleine largeur) */
.page-blocks .wp-block-group.is-style-pt-section, .page-blocks .wp-block-group.is-style-pt-creme, .page-blocks .wp-block-group.is-style-pt-sombre { padding: var(--sec) 0; }
.page-blocks .wp-block-group.is-style-pt-creme { background: #fbefd6; }
.page-blocks .wp-block-group.is-style-pt-sombre { background: var(--asphalt); color: var(--white); border-top: 10px solid var(--yellow); }
.page-blocks .is-style-pt-sombre p { color: rgba(255, 255, 255, .78); }
.page-blocks .wp-block-group__inner-container > h2:first-child { margin-top: 0; }
.page-blocks .wp-block-group.is-style-pt-carte { background: var(--concrete); border-radius: var(--r-card); padding: clamp(22px, 3vw, 36px); }
.page-blocks .is-style-pt-creme .wp-block-group.is-style-pt-carte { background: var(--white); }
.page-blocks .wp-block-group.is-style-pt-carte h3 { margin-top: 0; }
.page-blocks .wp-block-group.is-style-pt-carte .wp-block-image { margin: calc(-1 * clamp(22px, 3vw, 36px)) calc(-1 * clamp(22px, 3vw, 36px)) 20px; }
.page-blocks .wp-block-group.is-style-pt-carte .wp-block-image img { border-radius: var(--r-card) var(--r-card) 0 0; aspect-ratio: 16 / 10; object-fit: cover; }

/* Colonnes */
.page-blocks .wp-block-columns { display: flex; gap: clamp(20px, 3vw, 44px); margin-bottom: 0; }
.page-blocks .wp-block-columns.are-vertically-aligned-center { align-items: center; }
.page-blocks .wp-block-column { flex: 1 1 0; min-width: 0; }
.page-blocks .wp-block-column > :first-child { margin-top: 0; }
@media (max-width: 860px) { .page-blocks .wp-block-columns { flex-direction: column; } }

/* Images */
.page-blocks .wp-block-image { margin: 0 0 1.2em; }
.page-blocks .wp-block-image img { border-radius: var(--r-card); height: auto; }
.page-blocks .wp-block-image.is-style-pt-plain img, .page-blocks .wp-block-image.is-style-rounded img { border-radius: 0; }

/* Listes */
.page-blocks .is-style-pt-ticks { list-style: none; padding: 0; display: grid; gap: 10px; margin: 8px 0 24px; }
.page-blocks .is-style-pt-ticks li { position: relative; padding-left: 26px; font-weight: 500; }
.page-blocks .is-style-pt-ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 10px; border-left: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); transform: rotate(-45deg) scale(.8); transform-origin: left bottom; }
.page-blocks .is-style-pt-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; position: relative; padding: 88px 0 0; margin: 24px auto 0; }
.page-blocks .is-style-pt-steps::before { content: ""; position: absolute; left: var(--gut); right: var(--gut); top: 18px; height: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 34'%3E%3Cpath d='M0 26c15 0 15-18 30-18s15 18 30 18 15-18 30-18 15 18 30 18' fill='none' stroke='%23f0aa22' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 120px 34px; }
.page-blocks .is-style-pt-steps li { counter-increment: step; position: relative; color: var(--grey); font-size: 1rem; }
.page-blocks .is-style-pt-steps li::before { content: counter(step); position: absolute; top: -88px; left: 0; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--asphalt); font: 900 1.3rem/1 var(--display); }
.page-blocks .is-style-pt-steps li strong { display: block; color: var(--asphalt); font-size: 1.2rem; margin-bottom: .35em; }
@media (max-width: 960px) {
	.page-blocks .is-style-pt-steps { grid-template-columns: 1fr; padding-top: 0; }
	.page-blocks .is-style-pt-steps::before { display: none; }
	.page-blocks .is-style-pt-steps li { padding-left: 76px; }
	.page-blocks .is-style-pt-steps li::before { top: 0; }
}

/* Boutons */
.page-blocks .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.page-blocks .wp-block-button__link { display: inline-flex; align-items: center; gap: .55em; padding: .9em 1.5em; border-radius: var(--r-pill); border: 2px solid transparent; font: 600 1rem/1.2 var(--text); text-decoration: none; background: var(--yellow); color: var(--asphalt); transition: background-color .2s, color .2s; }
.page-blocks .is-style-pt-dark .wp-block-button__link { background: var(--asphalt); color: var(--white); }
.page-blocks .is-style-pt-ghost .wp-block-button__link { background: transparent; border-color: currentColor; color: inherit; }
.page-blocks .is-style-pt-primary .wp-block-button__link:hover { background: #ffbc3a; }
.page-blocks .is-style-pt-sombre .is-style-pt-ghost .wp-block-button__link { color: var(--white); }

/* Tableaux */
.page-blocks .wp-block-table table { width: 100%; border-collapse: collapse; }
.page-blocks .wp-block-table th, .page-blocks .wp-block-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.page-blocks .wp-block-table thead th { background: var(--asphalt); color: var(--white); }
.page-blocks .wp-block-table tbody td:first-child { font-weight: 600; }

/* FAQ : bloc Détails */
.page-blocks .wp-block-details { border-bottom: 1px solid var(--line); padding: 0; margin: 0; }
.page-blocks .wp-block-details summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.1875rem; line-height: 1.35; }
.page-blocks .wp-block-details summary::-webkit-details-marker { display: none; }
.page-blocks .wp-block-details summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fbefd6; font-size: 1.3rem; transition: transform .25s, background-color .25s; }
.page-blocks .wp-block-details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.page-blocks .wp-block-details > p { color: var(--grey); padding-bottom: 20px; margin: 0; max-width: 64ch; }

/* Cartes « pour qui » */
.page-blocks .is-style-pt-lieu { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--asphalt); color: var(--white); min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; }
.map-deps { columns: 3 260px; column-gap: 40px; } .map-deps > div { break-inside: avoid; margin-bottom: 18px; } .map-deps .map-page__dep { margin: 0 0 8px; }
