:root {
    --am-intro-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    --am-intro-gap: clamp(25px, 4vw, 54px);
    --am-intro-top: 62px;
    --am-intro-bottom: 42px;
}
@media (max-width: 767px) {
    :root { --am-intro-top: 37px; --am-intro-bottom: 27px; }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--am-rose); color: var(--am-nuit); font: var(--am-corps); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--am-accent); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--am-accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font: var(--am-h1); letter-spacing: -.04em; }
h2 { font: var(--am-h2); letter-spacing: -.04em; }
h3 { font: var(--am-h3); }
.wrap { width: min(1200px, calc(100% - 2 * var(--am-marge))); margin-inline: auto; }
.am-skip { position: absolute; left: 16px; top: 8px; z-index: 10; padding: 8px 14px; transform: translateY(-170%); background: white; }
.am-skip:focus { transform: none; }
#contenu { border-top: 1px solid #e9e1e2; }
#contenu:focus { outline: none; }
.header { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.header :is(.logo,.custom-logo) { width: 184px; }
.header .am-bouton { background: var(--am-profond); }
.header .am-bouton:hover { background: var(--am-nuit); }
.header .am-bouton[aria-current="page"] { box-shadow: 0 0 0 2px var(--am-rose), 0 0 0 4px var(--am-accent); }
:is(.header,.site-footer) .menu { display: flex; align-items: center; margin: 0; padding: 0; gap: 28px; list-style: none; }
:is(.header,.site-footer) .menu a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 800; text-decoration: none; }
:is(.header,.site-footer) .menu a:hover, :is(.header,.site-footer) .menu a[aria-current] { color: var(--am-accent); text-decoration: underline; }
.header .menu { font-size: 15px; }
.site-footer { padding: 33px 0 20px; }
.footrow, .legal { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footrow { padding-bottom: 17px; }
.footrow :is(.logo,.custom-logo) { width: 160px; }
.footrow .menu { font-size: 13px; gap: 22px; }
.legal { border-top: 1px solid var(--am-filet); padding-top: 8px; font-size: 12px; color: var(--am-texte-secondaire); }
.legal .menu { gap: 12px; }
.legal .menu a { font-weight: 700; text-decoration: underline; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { display: grid; place-items: center; list-style: none; min-height: 44px; min-width: 44px; border: 1px solid var(--am-filet); border-radius: 9px; cursor: pointer; font-size: 20px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; z-index: 4; right: 0; top: 50px; min-width: 172px; padding: 4px 14px; background: white; border: 1px solid var(--am-filet); border-radius: 10px; box-shadow: 0 8px 20px #091f4020; }
.mobile-menu .menu { display: block; }
.final { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 59px; border-radius: 24px; padding: 31px 40px; background: linear-gradient(110deg,#063e7d,#091f40); color: white; }
.final::before { content: ""; position: absolute; z-index: -1; width: 365px; height: 365px; border-radius: 50%; border: 33px solid #6c9cef30; right: 22%; top: -181px; }
.final h2 { font-size: 36px; }
.final p { margin-top: 6px; font-size: 16px; }
.am-layout :is(.wp-block-image:not(.wrap),.wp-block-details,.wp-block-table) { margin: 0; }
.am-layout .am-inline-link { display: contents; }
.am-layout .am-actions { display: inline-flex; }
.am-layout .am-action .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: 12px; background: var(--am-accent); color: white; font: var(--am-action); text-decoration: none; }
.am-layout .am-action .wp-block-button__link:hover { background: var(--am-profond); }
.am-layout .am-action.am-bouton--secondaire .wp-block-button__link { border-color: var(--am-texte-secondaire); background: white; color: var(--am-nuit); }
.am-layout .am-action.am-bouton--inverse .wp-block-button__link { background: var(--am-rose); color: var(--am-nuit); }
.am-layout .am-action:is(.am-bouton--secondaire,.am-bouton--inverse) .wp-block-button__link:hover { background: var(--am-brume); }
.am-layout .am-fond-sombre .wp-block-button__link:focus-visible { outline-color: white; }
.am-layout .screen-bar::before { content: ""; box-shadow: 11px 0 currentColor, 22px 0 currentColor; color: #b9c8e1; }
.am-layout .am-caption { color: var(--am-texte-secondaire); font-size: 12px; }
.am-layout .identity::before { display: none; }
.am-layout .identity img { width: 100%; height: 100%; object-fit: cover; }
.am-layout .portrait { padding: 0; overflow: hidden; }
.am-layout .portrait img { width: 100%; max-height: 238px; object-fit: cover; }
.am-layout .switcher a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 23px; border-radius: 999px; color: var(--am-nuit); font: var(--am-action); text-decoration: none; }
.am-layout .switcher a:is([aria-selected="true"],[aria-current]) { background: var(--am-accent); color: white; }
.am-layout .switcher a:hover:not([aria-selected="true"],[aria-current]) { background: var(--am-brume); }
.am-layout .switcher.am-tabs-enhanced { position: relative; isolation: isolate; }
.am-layout .switcher.am-tabs-enhanced::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto auto 0;
    width: var(--tab-width);
    height: var(--tab-height);
    transform: translate(var(--tab-x), var(--tab-y));
    border-radius: 999px;
    background: var(--am-accent);
    pointer-events: none;
}
.am-layout .switcher.am-tabs-enhanced a:is([aria-selected="true"], :hover) { background: transparent; }
.am-layout .feature + .feature { margin-top: 16px; }
.am-layout .project-placeholder { min-height: 125px; display: grid; place-content: center; text-align: center; color: var(--am-profond); }
.am-layout .fact-label { font-size: 12px; color: var(--am-profond); font-weight: 800; }
.am-layout .fact-value { margin-top: 3px; font-size: 15px; font-weight: 700; }
.am-layout .legal-body-no-toc { display: block; }
.am-layout .document :is(p,ul,ol) { margin-block: 0 1em; }
.am-layout .document h2 { margin-top: 1.2em; scroll-margin-top: 20px; }
.am-document { padding-block: 48px; }
.am-document :is(p,h2,h3) { margin-block: 1em; }
.am-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.am-layout .feedback:empty { display: none; }
.am-layout .feedback:not(:empty) { padding: 10px 12px; border-radius: 8px; background: var(--am-brume); }
.am-editor-dynamic { padding: 24px; border: 1px dashed var(--am-profond); border-radius: 12px; background: var(--am-brume); }
@media (max-width: 1000px) {
    .header .menu { gap: 14px; }
    .header { gap: 14px; }
}
@media (max-width: 840px) {
    .header { min-height: 72px; gap: 8px; }
    .header :is(.logo,.custom-logo) { width: 145px; }
    .header .desktop-menu { display: none; }
    .mobile-menu { display: block; margin-left: auto; }
    .header .am-bouton { min-height: 44px; padding-inline: 10px; font-size: 12px; }
}
@media (max-width: 767px) {
    .final, .footrow, .legal { flex-direction: column; align-items: flex-start; gap: 12px; }
    .final { margin-top: 30px; padding: 24px; }
    .final h2 { font-size: 28px; }
    .site-footer .menu { gap: 6px 13px; flex-wrap: wrap; }
    .am-layout .switcher a { padding-inline: 18px; }
    .am-layout .feature .am-bouton { justify-self: start; }
}
@media (max-width: 390px) {
    .header :is(.logo,.custom-logo) { width: 120px; }
    .header .am-bouton { font-size: 11px; padding-inline: 7px; }
}

.wp-block-image.is-style-cadre-brume,
.wp-block-group.is-style-encadre-brume,
.wp-block-group.is-style-apercu-ecran { padding: 16px; border-radius: 16px; background: var(--am-brume); }
.wp-block-image.is-style-cadre-brume img { border-radius: 12px; }
.wp-block-table.is-style-lignes-fines table :is(td,th) { border-color: var(--am-filet); }
.wp-block-table.is-style-lignes-fines thead { background: var(--am-brume); }
.wp-block-group.is-style-bandeau-profond { padding: 24px; border-radius: 24px; background: var(--am-profond); color: white; }
.wp-block-group.is-style-bandeau-profond a { color: white; }
.wp-block-group.is-style-bandeau-profond a:focus-visible { outline-color: white; }

/* These groups use grid or flex gaps for their spacing instead of the block flow margin. */
.am-layout :is(
    .trio, .outcome-grid, .facts, .media-row, .direction, .samples, .screen, .concept-head, .direction-mobile, .phone-screen,
    .steps, .step, .split, .hero, .hero-inner, .intro, .training-grid, .case-context, .project-title, .detail, .handoff,
    .contact-layout, .included, .final, .am-layout-services .faq > .wrap, .am-layout-services .work > .wrap,
    .am-layout-a-propos .about > .wrap
) > * + * {
    margin-block-start: 0;
}
.am-layout :is(.trio, .outcome-grid) > article h3 + p { margin-block-start: 8px; }
.am-layout .am-illustration { display: block; width: 100%; height: auto; }
