/*
Theme Name: Cap Croissance
Description: Thème sur mesure de Cap Croissance Conseil : conseil en fusions-acquisitions et stratégie financière pour les PME et ETI.
Author: Cap Croissance Conseil
Version: 1.2.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cap-croissance
*/

/* Fonts (assets/fonts) are under the SIL Open Font License 1.1, see the OFL-*.txt files next to them. */

:root {
	--paper: #F4F6F5;
	--surface: #FFFFFF;
	--ink: #1D2A2A;
	--muted: #55625F;
	--line: #D6DDDB;
	--field: #BCC7C4;
	--petrole: #0F3D3E;
	--petrole-deep: #0B3132;
	--ocre: #B8862B;
	--on-dark: #EEF3F1;
	--on-dark-muted: #A9BDB9;
	--on-dark-line: rgba(238, 243, 241, .16);
	--knockout: #FFFFFF;
	--ease-out: cubic-bezier(.22, .61, .36, 1);
	--font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
	--font-display: "Cormorant Garamond", Garamond, Georgia, serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--col-gap: clamp(16px, 2.5vw, 32px);
	--section: clamp(72px, 9vw, 128px);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-feature-settings: "kern", "liga"; -webkit-font-smoothing: antialiased; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main, .wp-site-blocks > .ccc-main { flex: 1 0 auto; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { color: var(--petrole); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
/* theme.json fluid sizes shrink h3 too much on phones: fix it here */
.wp-site-blocks h3 { font-size: 1.3125rem; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
/* Links: the underline is a background, so that it can sweep in from the left on hover.
 * Layer 1 = the solid line that grows, layer 2 = the light line at rest (none in header, footer and frise). */
a {
	color: var(--petrole); text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
	background-image: linear-gradient(currentColor, currentColor), linear-gradient(color-mix(in srgb, currentColor 35%, transparent), color-mix(in srgb, currentColor 35%, transparent));
	background-repeat: no-repeat; background-position: left bottom, left bottom; background-origin: content-box;
	background-size: 0% 1px, 100% 1px;
	transition: color .2s ease, background-size .45s var(--ease-out);
}
a:hover { background-size: 100% 1px, 100% 1px; }
:is(.site-header, .site-footer, .route__step h3) a:not(:hover) { background-size: 0% 1px, 0% 1px; }
.wp-block-button__link, .brand { background-image: none; }
::selection { background: rgba(184, 134, 43, .28); }
:focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; border-radius: 1px; }
[id] { scroll-margin-top: 24px; }
.nw { white-space: normal; }
@media (min-width: 30em) { .nw { white-space: nowrap; } }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; width: 100%; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.grid > * { margin-block: 0; }

/* ---------- Buttons (core/button) ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-block-button .wp-block-button__link {
	border: 1px solid var(--petrole); text-decoration: none;
	transition: background-color .25s ease, background-size .45s var(--ease-out), color .25s ease, border-color .25s ease, box-shadow .3s ease, transform .3s var(--ease-out);
}
.wp-block-button:not(.is-style-ccc-ghost) .wp-block-button__link:hover { background-color: var(--petrole-deep); }
.wp-block-button:not(.is-style-ccc-ghost) .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -14px rgba(11, 49, 50, .6); }
.wp-block-button .wp-block-button__link:active { transform: translateY(0); box-shadow: none; transition-duration: .1s; }
/* arrow after the label: → for a page, ↓ for an anchor of the same page */
.wp-block-button__link::after { content: "\2192"; display: inline-block; margin-left: .6em; transition: transform .35s var(--ease-out); }
.wp-block-button__link[href^="#"]::after { content: "\2193"; }
.wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-button__link[href^="#"]:hover::after { transform: translateY(3px); }
/* outline button: the fill sweeps in from the left */
.wp-block-button.is-style-ccc-ghost .wp-block-button__link { color: var(--petrole); background: linear-gradient(var(--petrole), var(--petrole)) no-repeat left center / 0% 100%; }
.wp-block-button.is-style-ccc-ghost .wp-block-button__link:hover { background-size: 100% 100%; color: var(--knockout); }
.dark .wp-block-button.is-style-ccc-light .wp-block-button__link { background: var(--on-dark); border-color: var(--on-dark); color: #0F3D3E; }
.dark .wp-block-button.is-style-ccc-light .wp-block-button__link:hover { background: var(--surface); }

/* ---------- Brand (monogram + name) ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--petrole); text-decoration: none; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand__name { display: flex; flex-direction: column; gap: 3px; font-size: 1.125rem; letter-spacing: -0.012em; white-space: nowrap; }
.brand__name b { font-weight: 600; }
.brand__name span { font-weight: 400; }
.dark .brand { color: var(--on-dark); }

/* ---------- Header + navigation (core/navigation) ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.site-header .wp-block-navigation { font-size: 1rem; }
.site-header .wp-block-navigation .wp-block-navigation__container { gap: clamp(20px, 2.6vw, 32px); align-items: center; }
.site-header .wp-block-navigation-item__content { color: var(--ink); text-decoration: none; }
.site-header .wp-block-navigation-item__content:hover { color: var(--petrole); }
.site-header .nav-cta .wp-block-navigation-item__content {
	border: 1px solid var(--petrole); border-radius: 2px; padding: .7em 1.2em; color: var(--petrole); font-weight: 500;
	background: linear-gradient(var(--petrole), var(--petrole)) no-repeat left center / 0% 100%;
}
.site-header .nav-cta .wp-block-navigation-item__content:hover { background-size: 100% 100%; color: var(--surface); text-decoration: none; }
/* monogram: the arcs turn a little on hover */
.brand svg path { transform-box: view-box; transform-origin: 50% 50%; transition: transform .7s var(--ease-out); }
.brand:hover svg path:first-child { transform: rotate(14deg); }
.brand:hover svg path:last-child { transform: rotate(-50deg); }
.site-header .wp-block-navigation__responsive-container-open,
.site-header .wp-block-navigation__responsive-container-close { font: inherit; font-size: 1rem; font-weight: 500; color: var(--petrole); border: 1px solid var(--petrole); border-radius: 2px; padding: .55em 1em; }
.site-header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px var(--gutter); }
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; align-items: stretch; width: 100%; }
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { border-bottom: 1px solid var(--line); width: 100%; }
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; padding: 16px 0; font-size: 1.25rem; }
.site-header .wp-block-navigation__responsive-container.is-menu-open .nav-cta { border-bottom: 0; margin-top: 24px; }
.site-header .wp-block-navigation__responsive-container.is-menu-open .nav-cta .wp-block-navigation-item__content { display: inline-block; padding: .8em 1.35em; font-size: 1.0625rem; }

/* ---------- Page content (core/post-content): full-width sections ---------- */
.ccc-content > * { margin-block: 0; }
/* core pads groups that have a background colour; our sections pad themselves */
.ccc-content .wp-block-group.has-background { padding-inline: 0; }

/* Nautical-chart contours (assets/img/carte-*.svg), faded out under the text */
.hero-wrap, .contact-band-wrap { position: relative; overflow: hidden; isolation: isolate; }
.hero-wrap::before, .contact-band-wrap::before {
	content: ""; position: absolute; top: 0; bottom: 0; right: 0; z-index: -1; pointer-events: none;
	background-repeat: no-repeat; background-size: cover;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%);
}
.hero-wrap::before { width: min(66%, 1040px); background-image: url(assets/img/carte-hero.svg); background-position: left center; }
.contact-band-wrap { padding-block: 0; }
.contact-band-wrap::before { width: min(72%, 1300px); background-image: url(assets/img/carte-bande.svg); background-position: right center; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 128px) clamp(56px, 7vw, 96px); row-gap: 0; }
.hero h1 { grid-column: 1 / span 10; font-size: clamp(2.7rem, 1.4rem + 4.2vw, 4.9rem); line-height: 1.03; }
.hero .hero__lede { grid-column: 1 / span 7; margin-top: 32px; font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.55; color: var(--muted); }
.hero .wp-block-buttons { grid-column: 1 / span 8; margin-top: 40px; }

/* ---------- Key figures ---------- */
.figures-wrap { padding-block: clamp(48px, 6vw, 76px); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; }
.figure { position: relative; padding-top: 22px; border-top: 1px solid var(--on-dark-line); }
.figure::before { content: ""; position: absolute; top: -1px; left: 0; width: 36px; height: 2px; background: var(--ocre); }
.figures .figure__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.75rem, 1.9rem + 2.6vw, 4.25rem); line-height: 1; letter-spacing: -0.01em; color: var(--on-dark); font-variant-numeric: lining-nums; }
.figure__to { font-family: var(--font-sans); font-weight: 400; font-size: .36em; margin-inline: .3em; color: var(--on-dark-muted); }
.figures .figure__label { margin-top: 14px; font-size: .9375rem; line-height: 1.45; color: var(--on-dark-muted); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section h2 { font-size: clamp(2.1rem, 1.5rem + 1.9vw, 3.1rem); line-height: 1.1; }
.section__head { row-gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); align-items: end; }
.section__head h2 { grid-column: 1 / span 6; }
.section__head p { grid-column: 8 / -1; color: var(--muted); }

/* Service icons: block styles "Icône …" on a group (functions.php), drawn here */
.route__step::before, .chapter__head::before { content: none; display: block; width: 48px; height: 48px; background-repeat: no-repeat; background-position: center; background-size: contain; }
[class*="is-style-icone-"].route__step::before, [class*="is-style-icone-"].chapter__head::before { content: ""; }
.is-style-icone-viseur::before { background-image: url(assets/img/icone-viseur.svg); }
.is-style-icone-route::before { background-image: url(assets/img/icone-route.svg); }
.is-style-icone-synergies::before { background-image: url(assets/img/icone-synergies.svg); }
.is-style-icone-vigie::before { background-image: url(assets/img/icone-vigie.svg); }

/* Frise: the four missions along a deal, also the in-page table of contents */
.route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); }
.route > .route__step { position: relative; margin: 0; }
.route__step::before { margin-bottom: 26px; }
/* course line from one waypoint to the next */
.route__step:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: 64px; right: calc(16px - var(--col-gap)); height: 1px; background: var(--petrole); opacity: .28; }
.route__phase { font-size: .9375rem; color: var(--muted); margin-bottom: 10px; }
.route__step h3 { margin-bottom: 10px; }
.route__step h3 a { color: inherit; text-decoration: none; }
.route__step h3 a::after { content: "\2193"; margin-left: .35em; font-size: .85em; color: var(--ocre); }
.route__desc { font-size: 1rem; color: var(--muted); }

/* Chapters: one per mission */
.chapter__head { grid-column: 1 / span 8; margin-bottom: clamp(32px, 4vw, 48px); }
.chapter__head::before { width: 52px; height: 52px; margin-bottom: 22px; }
.chapter__phase { font-size: .9375rem; color: var(--muted); margin-bottom: 14px; }
.chapter .chapter__head h2 { font-size: clamp(1.95rem, 1.35rem + 1.7vw, 2.75rem); }
.chapter__body { grid-column: 1 / span 7; }
.chapter__body > * + * { margin-top: 1.1em; }
.wp-site-blocks .chapter__body h3 { font-size: 1.125rem; font-weight: 600; margin-top: 2em; }
.chapter__body h3 + * { margin-top: .8em; }
.chapter__sheet { grid-column: 9 / -1; align-self: start; position: sticky; top: 32px; }
.chapter__body .chapter__lede { font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.375rem); line-height: 1.5; }
.chapter__body .points { margin-top: 28px; }

.points { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.points li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--petrole); line-height: 1.45; }
.points li::before { content: ""; position: absolute; left: 0; top: 25px; width: 16px; height: 2px; background: var(--ocre); transition: width .35s var(--ease-out); }
.points li:hover::before { width: 24px; }

/* "Détail de …" fold (core/details): the full text stays in the page for search engines */
.chapter__body .more { margin-top: 26px; }
.more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; padding: 4px 0; font-weight: 500; color: var(--petrole); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before {
	--plus: var(--petrole);
	content: ""; flex: none; width: 26px; height: 26px; box-sizing: border-box; border: 1px solid var(--petrole); border-radius: 50%;
	background: linear-gradient(var(--plus), var(--plus)) center / 10px 2px no-repeat,
		linear-gradient(var(--plus), var(--plus)) center / 2px 10px no-repeat;
	transition: transform .4s var(--ease-out), background-color .25s ease;
}
.more > summary:hover::before { --plus: var(--knockout); background-color: var(--petrole); }
.more[open] > summary::before { transform: rotate(135deg); }
.more > summary + * { margin-top: 22px; }
.more > * + * { margin-top: 1.1em; }
.more { color: var(--ink); }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li + li { margin-top: .55em; }
.ticks li::before { content: "\2013"; position: absolute; left: 0; top: 0; color: var(--ocre); font-weight: 500; }

.sheet { border-top: 2px solid var(--petrole); }
.sheet > div { padding: 14px 0 15px; border-bottom: 1px solid var(--line); }
.sheet .sheet__term { font-size: .875rem; color: var(--muted); }
.sheet .sheet__value { margin-top: 3px; font-size: 1rem; font-weight: 500; line-height: 1.45; }

/* Audience */
.audience { row-gap: 40px; }
.audience > h2 { grid-column: 1 / span 5; }
.audience__cols { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); row-gap: 40px; }
.audience__cols h3 { margin-bottom: 12px; padding-top: 18px; border-top: 2px solid var(--petrole); }
.audience__cols p { font-size: 1rem; color: var(--muted); }

/* Team */
.team { row-gap: 32px; }
.team > h2 { grid-column: 1 / span 5; }
.team__body { grid-column: 7 / -1; display: grid; row-gap: 20px; }
.team__body p:first-child { font-size: 1.3125rem; line-height: 1.5; color: var(--petrole); }
.team__body p + p { color: var(--muted); }

/* FAQ (core/details) */
.faq { row-gap: 32px; }
.faq > h2 { grid-column: 1 / span 5; }
.faq__list { grid-column: 7 / -1; border-top: 1px solid var(--line); }
.faq .wp-block-details { border-bottom: 1px solid var(--line); margin: 0; }
.faq .wp-block-details summary { position: relative; list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 22px 0; font-size: 1.125rem; font-weight: 500; color: var(--petrole); line-height: 1.4; }
.faq .wp-block-details summary::before { content: ""; position: absolute; left: -18px; top: 24px; bottom: 24px; width: 2px; background: var(--ocre); transform: scaleY(0); transition: transform .35s var(--ease-out); }
.faq .wp-block-details summary:hover::before, .faq .wp-block-details[open] summary::before { transform: scaleY(1); }
.faq .wp-block-details summary::-webkit-details-marker { display: none; }
.faq .wp-block-details summary::after {
	content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px;
	background: linear-gradient(var(--petrole), var(--petrole)) center / 14px 2px no-repeat,
		linear-gradient(var(--petrole), var(--petrole)) center / 2px 14px no-repeat;
	transition: transform .4s var(--ease-out);
}
.faq .wp-block-details:not([open]) summary:hover::after { transform: rotate(90deg); }
.faq .wp-block-details[open] summary::after { transform: rotate(135deg); }
.faq .wp-block-details > p { padding: 0 40px 26px 0; color: var(--muted); font-size: 1rem; }

/* ---------- Dark sections ----------
 * .dark, or "Bleu pétrole" picked as a group background in the editor: the colour tokens flip,
 * so text, rules, lists, folds and icons all switch to their light version. */
.dark, .has-petrole-background-color, .has-petrole-fonce-background-color {
	--petrole: var(--on-dark); --ink: var(--on-dark); --muted: var(--on-dark-muted); --line: var(--on-dark-line); --knockout: #0F3D3E;
	color: var(--on-dark);
}
.dark { background: #0F3D3E; }
:is(.dark, .has-petrole-background-color, .has-petrole-fonce-background-color) :is(h1, h2, h3) { color: var(--on-dark); }
:is(.dark, .has-petrole-background-color, .has-petrole-fonce-background-color) a { color: var(--on-dark); }
:is(.dark, .has-petrole-background-color, .has-petrole-fonce-background-color) .is-style-icone-viseur::before { background-image: url(assets/img/icone-viseur-clair.svg); }
:is(.dark, .has-petrole-background-color, .has-petrole-fonce-background-color) .is-style-icone-route::before { background-image: url(assets/img/icone-route-clair.svg); }
:is(.dark, .has-petrole-background-color, .has-petrole-fonce-background-color) .is-style-icone-synergies::before { background-image: url(assets/img/icone-synergies-clair.svg); }
:is(.dark, .has-petrole-background-color, .has-petrole-fonce-background-color) .is-style-icone-vigie::before { background-image: url(assets/img/icone-vigie-clair.svg); }
/* default (filled) button on a dark section: light, like the contact band's */
:is(.dark, .has-petrole-background-color, .has-petrole-fonce-background-color) .wp-block-button:not(.is-style-ccc-ghost) .wp-block-button__link { background: var(--on-dark); border-color: var(--on-dark); color: #0F3D3E; }


/* ---------- Contact band + footer ---------- */
.contact-band { padding-block: var(--section); row-gap: 40px; align-items: end; }
.contact-band__text { grid-column: 1 / span 7; }
.contact-band__text h2 { font-size: clamp(2.1rem, 1.5rem + 1.9vw, 3.1rem); line-height: 1.1; }
.contact-band__text p { margin-top: 20px; color: var(--on-dark-muted); font-size: 1.1875rem; }
.contact-band__text .wp-block-buttons { margin-top: 36px; }
.contact-band__details { grid-column: 9 / -1; display: grid; row-gap: 22px; }
.contact-band__details .sheet__term { font-size: .9375rem; color: var(--on-dark-muted); }
.contact-band__details .sheet__value { margin-top: 2px; font-size: 1.1875rem; }
.contact-band__details a { text-decoration-color: rgba(238, 243, 241, .4); }
.site-footer { border-top: 1px solid var(--on-dark-line); padding-block: 40px 48px; font-size: .9375rem; color: var(--on-dark-muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 48px; }
.site-footer .brand svg { width: 32px; height: 32px; }
.site-footer .brand__name { font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer__legal { width: 100%; }

/* ---------- Pages (contact, generic) ---------- */
.page-intro { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); row-gap: 24px; }
.page-intro h1 { grid-column: 1 / span 8; font-size: clamp(2.5rem, 1.5rem + 3.2vw, 4rem); line-height: 1.05; }
.page-intro p { grid-column: 1 / span 7; font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); color: var(--muted); }
.rule-top { border-top: 1px solid var(--line); }
.contact-page { padding-block: clamp(48px, 6vw, 80px) var(--section); row-gap: 56px; }
.contact-page__form { grid-column: 1 / span 7; }
.contact-page__aside { grid-column: 9 / -1; align-self: start; }
.contact-page__aside .sheet__value { font-size: 1.0625rem; }
.contact-page__aside > p { margin-top: 28px; font-size: 1rem; color: var(--muted); }
.page-content { padding-block: clamp(40px, 6vw, 72px) var(--section); }
.page-content .wp-block-post-content > * + * { margin-top: 1.1em; }
.page-content .wp-block-post-content { max-width: 760px; }
/* plain pages (mentions légales…): section titles smaller than the home page's */
.page-content .wp-block-post-content h2 { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.85rem); line-height: 1.2; }
.page-content .wp-block-post-content * + h2 { margin-top: 1.8em; }
.page-content .wp-block-post-content h2 + * { margin-top: .6em; }

/* ---------- Contact Form 7 ---------- */
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--surface); border: 1px solid var(--field); border-radius: 2px; padding: 13px 14px;
	transition: border-color .15s ease;
}
.wpcf7-form textarea { min-height: 180px; height: auto; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--petrole); box-shadow: 0 0 0 1px var(--petrole); }
.wpcf7-form input[type="submit"] {
	font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2; cursor: pointer;
	padding: .8em 1.35em; border-radius: 2px; border: 1px solid var(--petrole);
	background: var(--petrole); color: var(--surface);
}
.wpcf7-form input[type="submit"] { transition: background-color .25s ease, box-shadow .3s ease, transform .3s var(--ease-out); }
.wpcf7-form input[type="submit"]:hover { background: var(--petrole-deep); transform: translateY(-1px); box-shadow: 0 12px 24px -14px rgba(11, 49, 50, .6); }
.wpcf7-form .wpcf7-spinner { vertical-align: middle; }
.wpcf7-not-valid-tip { font-size: .875rem; color: #9B2C1F; margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 12px 14px; border-width: 1px; font-size: .9375rem; }
/* New template (see README): labels wrap their fields inside .ccc-form */
.ccc-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 22px; }
.ccc-form p { margin: 0; }
.ccc-form .full { grid-column: 1 / -1; }
.ccc-form label { display: block; font-size: .9375rem; font-weight: 500; }
.ccc-form label .wpcf7-form-control-wrap { display: block; margin-top: 8px; font-weight: 400; }
.ccc-form .optional { font-weight: 400; color: var(--muted); }
.ccc-form .consent { font-size: .875rem; color: var(--muted); }
/* Original template: label text and field in separate paragraphs */
.wpcf7-form > p { margin: 0 0 8px; font-size: .9375rem; font-weight: 500; }
.wpcf7-form > p:has(.wpcf7-form-control-wrap), .wpcf7-form > p:has(input[type="submit"]) { margin-bottom: 22px; font-weight: 400; }

/* ---------- 404 ---------- */
.not-found { padding-block: var(--section); row-gap: 24px; }
.not-found > * { grid-column: 1 / span 8; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.route { grid-template-columns: 1fr 1fr; row-gap: 48px; }
	.route__step:not(:last-child)::after { display: none; }
	.figures { grid-template-columns: 1fr 1fr; }
	.audience > h2, .team > h2, .faq > h2, .audience__cols, .team__body, .faq__list,
	.chapter__head, .chapter__body, .chapter__sheet { grid-column: 1 / -1; }
	.chapter__sheet { position: static; margin-top: 40px; }
	.hero h1 { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	body { font-size: 1.0625rem; }
	.hero .hero__lede, .hero .wp-block-buttons, .section__head h2, .section__head p, .contact-band__text, .contact-band__details,
	.page-intro h1, .page-intro p, .contact-page__form, .contact-page__aside, .not-found > * { grid-column: 1 / -1; }
	.route { grid-template-columns: 1fr; row-gap: 0; }
	.route > .route__step { padding: 4px 0 40px 68px; }
	.route > .route__step:last-child { padding-bottom: 0; }
	.route__step::before { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: 0; }
	.route__step:not(:last-child)::after { display: block; top: 56px; bottom: 10px; left: 22px; right: auto; width: 1px; height: auto; }
	.hero-wrap::before { width: 100%; opacity: .75; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); mask-image: linear-gradient(to bottom, #000, transparent 75%); }
	.contact-band-wrap::before { width: 100%; opacity: .7; }
	.figures { column-gap: 20px; }
	.audience__cols, .ccc-form { grid-template-columns: 1fr; }
	.faq .wp-block-details > p { padding-right: 0; }
	.faq .wp-block-details summary::before { left: -12px; }
	.points li::before { top: 26px; }
	.brand svg { width: 34px; height: 34px; }
	.brand__name { font-size: 1rem; }
}

/* ---------- Motion ----------
 * Hover and focus transitions are above, next to each component. Here: opening of the folds, entrance of the
 * hero and reveal of the sections while scrolling. Entrance and reveal run on the front end only, not in the
 * editor (its <body> carries .editor-styles-wrapper), and everything stops with "reduce motion". */

/* Folds (FAQ, "Détail de …") open and close smoothly where the browser supports ::details-content */
:root { interpolate-size: allow-keywords; }
@supports selector(::details-content) {
	.wp-block-details::details-content {
		block-size: 0; overflow-y: clip; opacity: 0;
		transition: block-size .45s var(--ease-out), opacity .35s ease, content-visibility .45s allow-discrete;
	}
	.wp-block-details[open]::details-content { block-size: auto; opacity: 1; }
}

@keyframes ccc-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes ccc-fade { from { opacity: 0; } }
@keyframes ccc-pop { from { opacity: 0; transform: scale(.75); } }
@keyframes ccc-draw-x { from { transform: scaleX(0); } }
@keyframes ccc-draw-y { from { transform: scaleY(0); } }

/* Hero: title, text and buttons rise in turn, the chart fades in */
body:not(.editor-styles-wrapper) .hero > * { animation: ccc-rise .9s var(--ease-out) both; }
body:not(.editor-styles-wrapper) .hero > :nth-child(2) { animation-delay: .1s; }
body:not(.editor-styles-wrapper) .hero > :nth-child(3) { animation-delay: .2s; }
body:not(.editor-styles-wrapper) .hero-wrap::before { animation: ccc-fade 1.8s ease .15s both; }

/* Sections reveal while scrolling (scroll-driven animations; other browsers show everything at once).
 * Ranges are fixed distances from the moment an element's top edge enters the screen, never a share of its
 * height: a block that grows (an opened fold) must not fade back. */
@supports (animation-timeline: view()) {
	body:not(.editor-styles-wrapper) :is(.section__head, .route__step, .chapter__head, .chapter__body, .audience > h2, .audience__cols > *, .team > h2, .team__body, .faq > h2, .faq__list, .contact-band__text, .contact-band__details, .figure) {
		animation: ccc-rise var(--ease-out) both; animation-timeline: view(); animation-range: entry 0px entry 140px;
	}
	body:not(.editor-styles-wrapper) :is(.route__step:nth-child(2), .figure:nth-child(2), .audience__cols > :nth-child(2)) { animation-range: entry 20px entry 160px; }
	body:not(.editor-styles-wrapper) :is(.route__step:nth-child(3), .figure:nth-child(3)) { animation-range: entry 40px entry 180px; }
	body:not(.editor-styles-wrapper) :is(.route__step:nth-child(4), .figure:nth-child(4)) { animation-range: entry 60px entry 200px; }
	/* icons pop in, the ochre rules of the figures and the course line of the frise draw themselves */
	body:not(.editor-styles-wrapper) :is(.route__step, .chapter__head, .figure) { view-timeline-name: --ccc-item; }
	body:not(.editor-styles-wrapper) [class*="is-style-icone-"]:is(.route__step, .chapter__head)::before { animation: ccc-pop var(--ease-out) both; animation-timeline: --ccc-item; animation-range: entry 30px entry 170px; }
	body:not(.editor-styles-wrapper) .figure::before { transform-origin: left; animation: ccc-draw-x var(--ease-out) both; animation-timeline: --ccc-item; animation-range: entry 60px entry 220px; }
	body:not(.editor-styles-wrapper) .route__step:not(:last-child)::after { transform-origin: left; animation: ccc-draw-x linear both; animation-timeline: --ccc-item; animation-range: entry 80px entry 300px; }
	@media (max-width: 760px) {
		body:not(.editor-styles-wrapper) .route__step:not(:last-child)::after { transform-origin: top; animation-name: ccc-draw-y; }
	}
}

/* Hover on the frise: the waypoint lifts, the arrow points down */
/* `translate`, not `transform`: the reveal animation owns `transform` on the same pseudo-element */
.route__step::before { transition: translate .45s var(--ease-out); }
.route__step:hover::before { translate: 0 -4px; }
.route__step h3 a::after { display: inline-block; transition: transform .35s var(--ease-out); }
.route__step:hover h3 a::after { transform: translateY(3px); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
	.wp-block-details::details-content { transition: none !important; }
}
@media print {
	*, *::before, *::after { animation: none !important; }
}
