/* ==========================================================================
   Marvell Avocats child theme: footer
   Base rules and footer rules are copied from the prototype (main/assets/css/style.css).
   ========================================================================== */

/* Montserrat, local variable font (weights 300 to 700), served from the site: no request to Google */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/Montserrat-Variable-LatinExt.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/Montserrat-Variable-Latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Noto Sans ExtraCondensed Regular local font */
@font-face {
    font-family: 'Noto Sans ExtraCondensed';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/NotoSansExtraCondensed-Regular-LatinExt.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Noto Sans ExtraCondensed';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/NotoSansExtraCondensed-Regular-Latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Colours: change them in theme.json only (settings.color.palette).
       Everything below maps to those presets or is derived from them with
       color-mix(). After a palette change, run docs/tools/generate-icons.sh
       to rebuild the coloured icon PNGs. */
    --navy: var(--wp--preset--color--navy);
    --gold: var(--wp--preset--color--gold);
    --gold-deep: var(--wp--preset--color--gold-deep);
    --gold-ink: var(--wp--preset--color--gold-ink);
    /* Header and footer gradient: the brand gradient with a darker gold for legibility (prototype, 2026-11) */
    --bar-gradient: linear-gradient(135deg, var(--navy) 0%, var(--navy) 38%, var(--gold-ink) 100%);
    --ivory: var(--wp--preset--color--ivory);
    --paper: var(--wp--preset--color--paper);
    --white: var(--wp--preset--color--white);
    --ink: var(--wp--preset--color--ink);
    --muted: var(--wp--preset--color--muted);
    --muted-light: var(--wp--preset--color--muted-light);

    /* Derived colours */
    --navy-soft: color-mix(in srgb, var(--navy), white 9%);
    --navy-light: color-mix(in srgb, var(--navy), white 18%);
    --navy-deep: color-mix(in srgb, var(--navy), black 25%);
    --gold-light: color-mix(in srgb, var(--gold), white 25%);
    --brand-gradient: linear-gradient(135deg, var(--navy) 0%, var(--navy) 38%, var(--gold) 100%);
    --line: color-mix(in srgb, var(--navy) 14%, transparent);
    --line-strong: color-mix(in srgb, var(--navy) 28%, transparent);
    --line-light: color-mix(in srgb, var(--white) 15%, transparent);
    --shadow: 0 24px 60px -30px color-mix(in srgb, var(--navy) 40%, transparent);

    /* Status colours (form errors): the only literal hex values outside theme.json */
    --error: #b84848;
    --error-deep: #a53737;

    --serif: 'Noto Sans ExtraCondensed', sans-serif;
    --sans: "Montserrat", Arial, Helvetica, sans-serif;
    --wrap: 1280px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

/* Focus ring: keyboard only, as in the prototype.
   The parent theme (Twenty Twenty-Five) sets an outline on *:focus, so a
   square border appeared around links after a mouse click. */
:where(.wp-site-blocks) :is(a, button, input, select, textarea, [tabindex]):focus:not(:focus-visible) {
    outline: none;
}

:where(.wp-site-blocks) :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.08;
    color: var(--navy);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

address {
    font-style: normal;
}

.wrap {
    width: min(calc(100% - clamp(2rem, 7vw, 5.5rem)), var(--wrap));
    margin-inline: auto;
}

/* Room for the fixed header (5.6rem tall, 4.8rem on small screens).
   A page that starts with a banner (.page-hero), a breadcrumb strip (.page-crumbs), the home hero (.hero) or the contact section (.contact-first)
   already leaves that room inside itself, so only the other pages get padding. One empty paragraph before the banner
   (the editor adds one to new pages) is ignored. */
main > .wp-block-post-content:not(:has(> :is(.page-hero, .page-crumbs, .hero):first-child, > :is(p:empty, .intro):first-child + :is(.page-hero, .page-crumbs, .hero), > .contact-first)) {
    padding-top: 5.6rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    flex: none;
}

.brand img {
    width: auto;
    height: 2.6rem;
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease, height 0.4s var(--ease);
}

/* The parent theme balances text with text-wrap: pretty. The prototype uses normal wrapping. */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
    text-wrap: wrap;
}

.socials {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--line-light);
    border-radius: 50%;
    color: var(--white);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.socials a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.socials svg {
    width: 1rem;
    height: 1rem;
}

.site-footer {
    padding-top: clamp(3.5rem, 7vw, 6rem);
    background: var(--bar-gradient);
    color: var(--white);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.brand--light img {
    filter: brightness(0) invert(1);
    height: 2.6rem;
}

.footer-baseline {
    max-width: 30ch;
    margin: 1.3rem 0 1.7rem;
    color: var(--muted-light);
    font-size: 0.82rem;
    line-height: 1.8;
}

.footer-column h2 {
    margin-bottom: 1.3rem;
    color: var(--gold);
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-column ul {
    display: grid;
    gap: 0.65rem;
}

.footer-column a {
    color: color-mix(in srgb, var(--white) 72%, transparent);
    font-size: 0.82rem;
    transition: color 0.25s ease;
}

.footer-column a:hover {
    color: var(--gold);
}

.footer-column address {
    display: grid;
    gap: 0.9rem;
}

.footer-column address p {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: color-mix(in srgb, var(--white) 72%, transparent);
    font-size: 0.82rem;
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0 1.8rem;
    border-top: 1px solid var(--line-light);
    color: var(--white);
    font-size: 0.7rem;
}

.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ==========================================================================
   Footer block: bridges between WordPress block markup and the prototype
   ========================================================================== */

.site-footer .wp-block-image,
.site-footer .wp-block-social-links,
.site-footer .wp-block-navigation,
.site-footer .wp-block-group {
    margin-block: 0;
}

/* Baseline: same values as the prototype, with enough weight to also win inside the editor. */
.site-footer .footer-baseline {
    margin: 1.3rem 0 1.7rem;
}

/* Social links: core block, prototype look */
.socials.wp-block-social-links {
    gap: 0.7rem;
    font-size: 1rem;
}

.socials .wp-social-link {
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--white);
}

.socials .wp-block-social-link-anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--line-light);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.socials .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.socials .wp-block-social-link-anchor svg {
    display: none;
}

.socials .wp-block-social-link-anchor::before {
    content: "";
    display: block;
    width: 1rem;
    height: 1rem;
    background: center / contain no-repeat;
}

.socials .wp-social-link-linkedin .wp-block-social-link-anchor::before {
    background-image: url("../icons/png/white/linkedin.png");
}

.socials .wp-social-link-linkedin .wp-block-social-link-anchor:hover::before {
    background-image: url("../icons/png/navy/linkedin.png");
}

/* Navigation column: core Navigation block, prototype list look */
.footer-nav .wp-block-navigation__container {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
}

.footer-nav .wp-block-navigation-item {
    display: block;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.footer-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
    display: inline;
    padding: 0;
    color: color-mix(in srgb, var(--white) 72%, transparent);
    font-size: 0.82rem;
    transition: color 0.25s ease;
}

.footer-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
    color: var(--gold);
}

/* Contact lines: paragraphs with a prototype icon */
.footer-address {
    display: grid;
    gap: 0.9rem;
}

.footer-line {
    position: relative;
    padding-left: calc(0.95rem + 0.7rem);
    color: color-mix(in srgb, var(--white) 72%, transparent);
    font-size: 0.82rem;
    line-height: 1.7;
}

.footer-line::before {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 0;
    width: 0.95rem;
    height: 0.95rem;
    background: center / contain no-repeat;
}

.footer-line--pin::before {
    background-image: url("../icons/png/white/pin.png");
}

.footer-line--phone::before {
    background-image: url("../icons/png/white/phone.png");
}

.footer-line--mail::before {
    background-image: url("../icons/png/white/mail.png");
}

/* LinkedIn as a line of the Contact column, like the address, phone and email lines (prototype, 2026-11).
   Footer icons are white on the gradient, as in the prototype (.site-footer .footer-icon). */
/* Profile page: with neither email nor LinkedIn, the "Contact" label is empty (binding contact_label)
   and, on mobile, the whole box is hidden, as the prototype's .profile-contact--back-only. */
.profile-contact .aside-label:empty,
.profile-social:empty,
.profile-main > h2:empty {
    display: none;
}

@media (max-width: 720px) {
    .profile-contact:not(:has(.icon-link)) {
        display: none;
    }
}

.footer-line--linkedin::before {
    background-image: url("../icons/png/white/linkedin.png");
}

/* Legal links in the bottom bar */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-legal a:hover {
    color: var(--gold);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Header and mobile menu (copied from the prototype)
   ========================================================================== */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    color: var(--white);
    background: linear-gradient(to bottom, color-mix(in srgb, var(--navy) 95%, transparent), color-mix(in srgb, var(--navy) 95%, transparent));
    transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.site-header .wrap {
    width: min(calc(100% - clamp(2rem, 5vw, 4.5rem)), 1400px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 5.6rem;
    transition: min-height 0.4s var(--ease);
}

.site-header.is-scrolled {
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    color: var(--navy);
    box-shadow: 0 1px 0 var(--line), 0 18px 40px -34px color-mix(in srgb, var(--navy) 50%, transparent);
    backdrop-filter: blur(14px);
}

.site-header.is-scrolled .header-inner {
    min-height: 4.6rem;
}

.site-header.is-scrolled .brand img {
    filter: none;
}

.brand-tag {
    padding-left: 0.85rem;
    border-left: 1px solid currentColor;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    line-height: 1.4;
    text-transform: uppercase;
    opacity: 0.8;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2.5vw, 2.4rem);
    margin-left: auto;
}

.main-nav a {
    position: relative;
    padding: 0.4rem 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.9;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--gold);
    transition: right 0.35s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--gold);
    opacity: 1;
}

.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .main-nav a.is-active {
    color: var(--gold-ink);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    right: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: none;
}

.nav-toggle {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    align-items: center;
    justify-content: center;
}

.nav-toggle-close {
    display: none;
}

.menu-open .nav-toggle-open {
    display: none;
}

.menu-open .nav-toggle-close {
    display: inline-flex;
}

.scroll-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: transparent;
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--gold);
    transition: width 0.1s linear;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    visibility: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 38%),
        var(--navy);
    color: var(--white);
    opacity: 0;
    transform: translateY(-2rem);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}

.menu-open .mobile-menu {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.menu-open .site-header {
    background: transparent;
    color: var(--white);
    box-shadow: none;
    backdrop-filter: none;
}

.menu-open .site-header .brand img {
    filter: brightness(0) invert(1);
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    min-height: 100%;
    width: min(calc(100% - 3rem), 700px);
    margin-inline: auto;
    padding: 8rem 0 3rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line-light);
    font-family: var(--serif);
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    line-height: 1.2;
}

.mobile-nav a svg {
    width: 1.4rem;
    height: 1.4rem;
    color: var(--gold);
    transition: transform 0.3s var(--ease);
}

.mobile-nav a:hover {
    color: var(--gold);
}

.mobile-nav a:hover svg {
    transform: translate(3px, -3px);
}

.mobile-nav a.is-active {
    color: var(--gold);
}

.mobile-menu-meta {
    display: grid;
    gap: 0.7rem;
    color: var(--muted-light);
    font-size: 0.9rem;
}

.mobile-menu-meta > a {
    color: var(--white);
    font-size: 1.05rem;
}

.mobile-menu-label {
    margin-bottom: 0.3rem;
    color: var(--gold);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.mobile-menu-meta .socials {
    margin-top: 0.8rem;
}

.to-top {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--navy);
    box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--navy) 35%, transparent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    background: var(--navy);
    color: var(--white);
}

/* ==========================================================================
   Header and mobile menu: bridges between WordPress blocks and the prototype
   ========================================================================== */

body.menu-open {
    overflow: hidden;
}

.site-header .wp-block-group,
.site-header .wp-block-image,
.mobile-menu .wp-block-group,
.mobile-menu .wp-block-social-links {
    margin-block: 0;
}

/* Logo (header and footer): same size and colour as the prototype, strong enough to win in the editor */
.brand .wp-block-image img,
.wp-block-image.brand img {
    width: auto !important;
    height: 2.6rem !important;
    filter: brightness(0) invert(1);
}

.brand--light .wp-block-image img,
.wp-block-image.brand--light img {
    height: 2.6rem !important;
}

.site-header.is-scrolled .brand .wp-block-image img {
    filter: none;
}

.menu-open .site-header .brand .wp-block-image img {
    filter: brightness(0) invert(1);
}

.brand .wp-block-image a {
    display: block;
}

/* Desktop menu: core Navigation block, prototype look */
.main-nav.wp-block-navigation .wp-block-navigation__container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(1.2rem, 2.5vw, 2.4rem);
    margin: 0;
    padding: 0;
}

.main-nav.wp-block-navigation .wp-block-navigation-item {
    display: block;
    margin: 0;
}

.main-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
    position: relative;
    display: block;
    padding: 0.4rem 0;
    color: inherit;
    /* Twenty Twenty-Five underlines navigation links on hover; the prototype only draws the gold line (::after) */
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.9;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.main-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.main-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content.is-active {
    color: var(--gold);
    opacity: 1;
}

.site-header.is-scrolled .main-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.site-header.is-scrolled .main-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content.is-active {
    color: var(--gold-ink);
}

/* Menu button: icons come from assets/icons */
.nav-toggle-open::before,
.nav-toggle-close::before {
    content: "";
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    background: center / contain no-repeat;
}

.nav-toggle-open::before {
    background-image: url("../icons/png/white/menu.png");
}

.site-header.is-scrolled .nav-toggle-open::before {
    background-image: url("../icons/png/navy/menu.png");
}

.nav-toggle-close::before {
    background-image: url("../icons/png/white/close.png");
}

/* Mobile menu: core Navigation block, prototype look */
.mobile-nav.wp-block-navigation .wp-block-navigation__container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

.mobile-nav.wp-block-navigation .wp-block-navigation-item {
    display: block;
    margin: 0;
}

.mobile-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line-light);
    color: inherit;
    text-decoration: none;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    line-height: 1.2;
}

.mobile-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content::after {
    content: "";
    flex: none;
    width: 1.4rem;
    height: 1.4rem;
    background: url("../icons/png/gold/arrow-up-right.png") center / contain no-repeat;
    transition: transform 0.3s var(--ease);
}

.mobile-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.mobile-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content.is-active {
    color: var(--gold);
}

.mobile-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover::after {
    transform: translate(3px, -3px);
}

.mobile-menu-meta .mobile-menu-link {
    color: var(--white);
    font-size: 1.05rem;
}

.mobile-menu .mobile-menu-meta .socials {
    margin-top: 0.8rem;
}

/* Back-to-top button icon */
.to-top::before {
    content: "";
    width: 1.1rem;
    height: 1.1rem;
    background: url("../icons/png/navy/arrow-up.png") center / contain no-repeat;
}

.to-top:hover::before {
    background-image: url("../icons/png/white/arrow-up.png");
}

/* Editor only: the header is fixed and the mobile menu is hidden on the site.
   Show both in normal flow, on the dark background they have on the site, so they can be edited. */
.editor-styles-wrapper .site-header {
    position: relative;
    background: var(--navy);
}

.editor-styles-wrapper .mobile-menu {
    position: relative;
    inset: auto;
    visibility: visible;
    opacity: 1;
    transform: none;
}

.editor-styles-wrapper .mobile-menu-inner {
    padding-top: 3rem;
}

/* ==========================================================================
   Page banner (copied from the prototype)
   ========================================================================== */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    color: var(--gold-ink);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 2.2rem;
    height: 1px;
    flex: none;
    background: currentColor;
}

.eyebrow--light {
    color: var(--gold);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(8.5rem, 13vw, 11rem) 0 clamp(4rem, 7vw, 6rem);
    background:
        radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--gold) 15%, transparent), transparent 34%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 60%, var(--navy-deep) 100%);
    color: var(--white);
}

.page-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 7%;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--gold) 35%, transparent), transparent);
}

.page-hero .wrap {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    color: color-mix(in srgb, var(--white) 50%, transparent);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.breadcrumb a {
    color: color-mix(in srgb, var(--white) 72%, transparent);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.page-hero-grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.page-hero-copy {
    max-width: 850px;
}

.page-title {
    color: var(--white);
    font-size: clamp(2.9rem, 6.4vw, 5.7rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 0.98;
}

.page-intro {
    max-width: 61ch;
    margin-top: 1.5rem;
    color: color-mix(in srgb, var(--white) 66%, transparent);
    font-size: clamp(0.96rem, 1.2vw, 1.08rem);
    line-height: 1.8;
}

.page-intro:empty {
    display: none;
}

/* Banner: core Group, Breadcrumbs, Heading and Paragraph blocks, prototype look.
   The photo is optional: it is the Group block's own background image (set in the editor sidebar). */
.page-hero .wp-block-group {
    margin-block: 0;
}

.page-hero .wp-block-breadcrumbs.breadcrumb {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page-hero .wp-block-breadcrumbs.breadcrumb ol {
    gap: 0.55rem;
}

.page-hero .wp-block-breadcrumbs.breadcrumb li {
    gap: 0.55rem;
}

.page-hero .wp-block-breadcrumbs.breadcrumb li:not(:last-child)::after {
    margin: 0;
    color: var(--gold);
    opacity: 1;
}

.page-hero .eyebrow {
    margin-bottom: 1.2rem;
}

.page-hero .page-intro {
    margin-top: 1.5rem;
}

.page-hero[style*="background-image"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--navy) 97%, transparent), color-mix(in srgb, var(--navy) 70%, transparent) 55%, color-mix(in srgb, var(--navy) 35%, transparent));
}

/* ==========================================================================
   Team: profil cards, filter bar and grids (copied from the prototype)
   ========================================================================== */

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

.section {
    position: relative;
    padding: clamp(4.5rem, 9vw, 8.5rem) 0;
}

.person-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    scroll-snap-align: start;
    transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.person-card:hover {
    box-shadow: var(--shadow);
}

.person-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--ivory);
}

.person-media img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s var(--ease);
}

.person-card:hover .person-media img {
    transform: scale(1.035);
}

.person-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, color-mix(in srgb, var(--navy) 50%, transparent), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.person-card:hover .person-media::after {
    opacity: 1;
}

.person-media-arrow {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.person-card:hover .person-media-arrow {
    opacity: 1;
    transform: none;
}

.person-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.4rem 1.4rem 1.2rem;
}

.person-role {
    color: var(--gold-ink);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.person-name {
    margin-top: 0.5rem;
    font-size: clamp(1.3rem, 1.8vw, 1.55rem);
    line-height: 1.2;
}

.person-name a:hover {
    color: var(--gold-ink);
}

.person-specialty {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.76rem;
}

.person-bio {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 0.7rem;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.person-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 1.2rem;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--navy);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.icon-link:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.person-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    color: var(--gold-ink);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.person-card--compact .person-body {
    padding: 1.2rem 1.2rem 1rem;
}

.person-card--compact .person-name {
    font-size: 1.3rem;
}

.team-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    overflow: visible;
}

.team-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--line);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-btn {
    padding: 0.85rem 1.6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter-btn:hover {
    color: var(--navy);
    border-color: var(--line);
}

.filter-btn.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.team-count {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.team-grid {
    --team-card: 14rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: clamp(1.2rem, 2.4vw, 2rem);
}

/* Icons in the cards: per-colour PNG files from assets/icons/png/{gold,navy,white}.
   Each .mvl-icon--<name> class lists the three colour files; the context picks one
   by setting background-image to var(--ico-gold), var(--ico-navy) or var(--ico-white). */
.mvl-icon {
    display: block;
    flex: none;
    background: var(--ico-navy) center / contain no-repeat;
}

.mvl-icon--arrow-up-right {
    --ico-gold: url("../icons/png/gold/arrow-up-right.png");
    --ico-navy: url("../icons/png/navy/arrow-up-right.png");
    --ico-white: url("../icons/png/white/arrow-up-right.png");
}

.mvl-icon--arrow {
    --ico-gold: url("../icons/png/gold/arrow.png");
    --ico-navy: url("../icons/png/navy/arrow.png");
    --ico-white: url("../icons/png/white/arrow.png");
}

.mvl-icon--linkedin {
    --ico-gold: url("../icons/png/gold/linkedin.png");
    --ico-navy: url("../icons/png/navy/linkedin.png");
    --ico-white: url("../icons/png/white/linkedin.png");
}

.mvl-icon--mail {
    --ico-gold: url("../icons/png/gold/mail.png");
    --ico-navy: url("../icons/png/navy/mail.png");
    --ico-white: url("../icons/png/white/mail.png");
}

.person-media-arrow .mvl-icon {
    width: 1rem;
    height: 1rem;
}

.icon-link .mvl-icon {
    width: 0.9rem;
    height: 0.9rem;
    background-image: var(--ico-navy);
}

.icon-link:hover .mvl-icon {
    background-image: var(--ico-white);
}

.person-link .mvl-icon {
    width: 0.9rem;
    height: 0.9rem;
    background-image: var(--ico-gold);
    transition: transform 0.3s var(--ease);
}

.person-link:hover .mvl-icon {
    transform: translateX(3px);
}

/* Blocks: wrappers and WordPress overrides (they also win inside the editor) */
.marvell-carte-profil {
    max-width: 20rem;
}

.marvell-profils .person-name,
.marvell-carte-profil .person-name {
    margin-top: 0.5rem;
}

.marvell-profils .person-specialty,
.marvell-carte-profil .person-specialty {
    margin-top: 0.25rem;
}

.marvell-profils .person-bio,
.marvell-carte-profil .person-bio {
    margin-top: 0.7rem;
}

/* Empty filter on Notre Équipe: icon + message (prototype .team-empty) */
.team-empty {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold);
    background: var(--paper);
    text-align: center;
}

.team-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.team-empty-icon::before {
    content: "";
    width: 2.4rem;
    height: 2.4rem;
    background: url("../icons/png/gold/user-search.png") center / contain no-repeat;
}

.marvell-profils .team-empty-text {
    max-width: 30rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ==========================================================================
   Profil page (copied from the prototype)
   ========================================================================== */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.3rem;
}

.tag-list li,
.tag-list .profile-tag {
    padding: 0.42rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.66rem;
    line-height: 1.4;
}

.aside-label {
    margin-bottom: 0.8rem;
    color: var(--gold-ink);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.profile-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 6rem);
}

.profile-aside {
    position: sticky;
    top: 7rem;
}

.profile-portrait {
    overflow: hidden;
    background: var(--ivory);
}

.profile-portrait img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.profile-contact {
    padding: 1.7rem;
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold);
    background: var(--paper);
}

.profile-contact h2 {
    margin-bottom: 1.2rem;
    font-size: 1.45rem;
    line-height: 1.25;
}

.profile-social {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.2rem;
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.profile-social .icon-link {
    width: 2.2rem;
    height: 2.2rem;
}

.profile-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.7rem;
}

.profile-back:hover {
    color: var(--navy);
}

.profile-back a,
.profile-specialty a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
}

.profile-main {
    min-width: 0;
    padding-top: 0.4rem;
}

.profile-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
}

.profile-title-row .eyebrow {
    margin: 0;
}

.profile-specialty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    color: var(--gold-ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-main > h2 {
    margin: 2rem 0 0.8rem;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

.profile-main > p {
    max-width: 68ch;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.85;
}

.profile-main .profile-bio {
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.5;
}

.mvl-icon--chevron-left {
    --ico-gold: url("../icons/png/gold/chevron-left.png");
    --ico-navy: url("../icons/png/navy/chevron-left.png");
    --ico-white: url("../icons/png/white/chevron-left.png");
}

.profile-social .icon-link .mvl-icon {
    width: 0.95rem;
    height: 0.95rem;
}

.profile-back .mvl-icon {
    width: 0.9rem;
    height: 0.9rem;
    background-image: var(--ico-navy);
}

.profile-specialty .mvl-icon,
.profile-specialty-link .mvl-icon {
    width: 0.85rem;
    height: 0.85rem;
    background-image: var(--ico-gold);
}

/* Profil page: WordPress blocks, with enough weight to also win inside the editor */
.page-hero .wp-block-post-title.page-title {
    margin: 0;
}

/* Responsive footer rules (copied from the prototype) */
@media (max-width: 1100px) {
    .main-nav.wp-block-navigation .wp-block-navigation__container {
        gap: 1.3rem;
    }

    .main-nav.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
        font-size: 0.64rem;
    }

    .footer-top {
        grid-template-columns: 1.3fr 0.7fr 1fr;
    }

}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-aside {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
        align-items: start;
        gap: 1.4rem;
    }

    .profile-contact {
        margin-top: 0;
    }

    .team-grid {
        --team-card: calc(50% - 0.8rem);
    }

    .main-nav,
    .main-nav.wp-block-navigation {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (max-width: 720px) {
    .profile-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-portrait {
        max-width: none;
    }

    .team-track {
        grid-template-columns: minmax(0, 1fr);
    }

    main > .wp-block-post-content:not(:has(> :is(.page-hero, .page-crumbs, .hero):first-child, > :is(p:empty, .intro):first-child + :is(.page-hero, .page-crumbs, .hero), > .contact-first)) {
        padding-top: 4.8rem;
    }

    .page-hero {
        padding-top: 8rem;
    }

    .page-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .header-inner {
        min-height: 4.8rem;
    }

    .brand-tag {
        display: none;
    }

    .brand img {
        height: 2.2rem;
    }

    .brand .wp-block-image img,
    .wp-block-image.brand img {
        height: 2.2rem !important;
    }

    .footer-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-column:last-child {
        grid-column: auto;
        display: block;
    }

    .footer-column:last-child h2 {
        margin-bottom: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .team-grid {
        --team-card: 100%;
    }

    .team-toolbar {
        align-items: flex-start;
    }

    .footer-legal {
        gap: 1rem;
    }
}

/* Filter bar: links (page reload), styled as the prototype's buttons */
a.filter-btn {
    display: inline-block;
    text-decoration: none;
}

.profile-main .tag-list.profile-text {
    display: flex;
    flex-wrap: wrap;
}

/* ==========================================================================
   Home sections — copied from the prototype (main/assets/css/style.css)
   ========================================================================== */

/* Buttons and arrow links */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 3.2rem;
    padding: 0.95rem 1.65rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn svg {
    width: 1rem;
    height: 1rem;
    flex: none;
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    border-color: color-mix(in srgb, var(--white) 45%, transparent);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--navy);
}

.btn-outline-dark {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--navy);
}

.btn-outline-dark:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.btn-sm {
    min-height: 2.6rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.66rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--gold-ink);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: gap 0.3s var(--ease), color 0.3s ease;
}

.link-arrow::after {
    content: "";
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
    background: url("../icons/png/gold/arrow.png") center / contain no-repeat;
    transition: transform 0.3s var(--ease);
}

.link-arrow:hover {
    gap: 1rem;
    color: var(--navy);
}

.link-arrow:hover::after {
    background-image: url("../icons/png/navy/arrow.png");
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

/* Section headings */
.section--ivory {
    background: var(--ivory);
}

.display {
    font-size: clamp(2.4rem, 4.6vw, 4.4rem);
    letter-spacing: -0.02em;
}

.lead {
    max-width: 58ch;
    color: var(--muted);
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    line-height: 1.8;
}

.gradient-text {
    background: linear-gradient(115deg, var(--navy) 5%, var(--navy-soft) 42%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head > div:first-child {
    max-width: 680px;
}

.section-head .display {
    margin-top: 0.35rem;
}

.section-head-aside {
    max-width: 370px;
    padding-bottom: 0.35rem;
}

.section-head-aside p + .link-arrow {
    margin-top: 1.2rem;
}

/* The pattern stores the link in a paragraph so it stays editable; lay it out like the prototype's direct link. */
.section-head-aside .wp-block-paragraph + .wp-block-paragraph {
    display: flex;
    margin-top: 1.2rem;
}

.section-head-aside .wp-block-paragraph + .wp-block-paragraph .link-arrow {
    margin-top: 0;
}

/* Home expertise rows */
.expertise-list {
    border-top: 1px solid var(--line);
}

.expertise-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4.5rem;
    align-items: center;
    gap: 1.5rem;
    padding: 1.65rem 1.2rem;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease), padding 0.4s var(--ease);
}

.expertise-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--navy);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--ease);
    z-index: 0;
}

.expertise-row > * {
    position: relative;
    z-index: 1;
}

.expertise-row:hover {
    color: var(--white);
    padding-left: 1.7rem;
    padding-right: 1.7rem;
}

.expertise-row:hover::before {
    transform: scaleY(1);
}

.expertise-copy {
    display: flex;
    align-items: baseline;
    gap: 1.8rem;
    min-width: 0;
}

.expertise-title {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.expertise-desc {
    display: -webkit-box;
    max-width: 480px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.6;
    transition: color 0.3s ease;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.expertise-row:hover .expertise-desc {
    color: color-mix(in srgb, var(--white) 65%, transparent);
}

.expertise-icon {
    display: flex;
    justify-content: flex-end;
    color: var(--gold-ink);
    transition: color 0.3s ease;
}

.expertise-icon svg,
.expertise-icon img {
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
}

/* The uploaded PNGs are the gold hover colour; darken them to the prototype's gold-ink by default. */
.expertise-icon img {
    filter: brightness(0.58) saturate(1.35);
}

.expertise-row:hover .expertise-icon {
    color: var(--gold);
}

.expertise-row:hover .expertise-icon img {
    filter: none;
}

.expertise-empty {
    padding: 1.6rem 0;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Contact band */
.cta-band {
    position: relative;
    overflow: hidden;
    background: var(--ivory);
}

.cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
}

.cta-copy h2 {
    max-width: 13ch;
    margin-bottom: 1.3rem;
    font-size: clamp(2.8rem, 5.5vw, 5.2rem);
    line-height: 1;
}

.cta-copy p {
    max-width: 52ch;
    color: var(--muted);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.cta-panel {
    padding: clamp(1.8rem, 3.5vw, 2.8rem);
    background: var(--navy);
    color: var(--white);
    box-shadow: var(--shadow);
}

.cta-panel h3 {
    color: var(--white);
    font-size: 1.6rem;
}

.cta-panel > p {
    margin-top: 0.5rem;
    color: var(--muted-light);
    font-size: 0.82rem;
}

.cta-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line-light);
}

.cta-line {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin: 0;
    color: color-mix(in srgb, var(--white) 80%, transparent);
    font-size: 0.85rem;
}

.cta-line::before {
    content: "";
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
    margin-top: 0.18rem;
    background: url("../icons/png/gold/pin.png") center / contain no-repeat;
}

.cta-line--phone::before {
    background-image: url("../icons/png/gold/phone.png");
}

.cta-line--mail::before {
    background-image: url("../icons/png/gold/mail.png");
}

.cta-line a:hover {
    color: var(--gold);
}

/* Scroll reveals (prototype app.js) */
.js .reveal {
    opacity: 0;
    transform: translateY(1.6rem);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .section-head-aside {
        max-width: 100%;
    }

    .cta-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cta-panel {
        max-width: 560px;
    }
}

@media (max-width: 720px) {
    .expertise-row {
        grid-template-columns: minmax(0, 1fr) 2.2rem;
        gap: 0.9rem;
        padding: 1.3rem 0.4rem;
    }

    .expertise-row:hover {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .expertise-copy {
        display: block;
    }

    .expertise-desc {
        display: block;
        margin-top: 0.35rem;
        font-size: 0.72rem;
    }

    .expertise-icon {
        display: none;
    }

    .expertise-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 560px) {
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================================================
   Inner pages — shared sections and page-specific layouts
   Copied from the prototype (main/assets/css/style.css), adapted to the blocks.
   ========================================================================== */

/* Banner with the cabinet photo (Le Cabinet) */
/* Dark sections and centred call-to-action bands */
.section--dark {
    background: var(--navy);
    color: var(--white);
}

.section--dark .display,
.section--dark h2,
.section--dark h3 {
    color: var(--white);
}

.section--dark .lead {
    color: var(--muted-light);
}

/* --------------------------------------------------------------------------
   Home: Le Cabinet
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
}

/* --------------------------------------------------------------------------
   Home: team and logo band
   -------------------------------------------------------------------------- */

.team-section {
    overflow: hidden;
}

.flying-mark {
    position: absolute;
    top: 20%;
    right: -5%;
    z-index: 0;
    width: clamp(260px, 34vw, 520px);
    opacity: 0.05;
    pointer-events: none;
}

.flying-mark img {
    width: 100%;
    filter: brightness(0) invert(1);
}

.team-section .wrap {
    position: relative;
    z-index: 1;
}

.team-section-link {
    margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Le Cabinet: story, values, timeline, approach and image band
   -------------------------------------------------------------------------- */

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.value-card {
    margin: 0;
    padding: clamp(1.8rem, 3vw, 2.8rem);
    border-right: 1px solid var(--line);
}

.value-card:last-child {
    border-right: 0;
}

.value-card:nth-child(3n) {
    border-right: 0;
}

.value-card:nth-child(n + 4) {
    border-top: 1px solid var(--line);
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold-ink);
}

.value-icon::before {
    content: "";
    width: 1.4rem;
    height: 1.4rem;
    background: center / contain no-repeat;
}

.value-icon--integrite::before {
    background-image: url("../icons/png/gold/value-integrite.png");
}

.value-icon--excellence::before {
    background-image: url("../icons/png/gold/value-excellence.png");
}

.value-icon--proximite::before {
    background-image: url("../icons/png/gold/value-proximite.png");
}

.value-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.45rem;
}

.value-card p {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.75;
}

.timeline {
    position: relative;
    display: grid;
    gap: 0;
    margin-top: 1rem;
    border-top: 1px solid var(--line);
}

.timeline-item {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 2rem;
    margin: 0;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--line);
}

.timeline-item > .wp-block-group {
    margin: 0;
}

.timeline-year {
    margin: 0;
    color: var(--gold-ink);
    font-family: var(--serif);
    font-size: 1.7rem;
    line-height: 1.2;
}

.timeline-item h3 {
    margin-bottom: 0.4rem;
    font-size: 1.25rem;
}

.timeline-item p:not(.timeline-year) {
    color: var(--muted);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Nos expertises: intro and directory
   -------------------------------------------------------------------------- */

.expertises-intro {
    margin-bottom: clamp(3rem, 7vw, 6rem);
}

.expertises-list {
    border-top: 1px solid var(--line);
}

.expertise-block {
    display: grid;
    grid-template-columns: 3.6rem minmax(0, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    padding: clamp(2rem, 4vw, 3.2rem) 0;
    border-bottom: 1px solid var(--line);
}

.expertise-block-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
}

.expertise-block-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold-ink);
}

.expertise-block-icon svg {
    width: 1.7rem;
    height: 1.7rem;
}

.expertise-block-icon img {
    width: 1.9rem;
    height: auto;
    filter: brightness(0.58) saturate(1.35);
}

.expertise-block-body h2 {
    margin-bottom: 0.9rem;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.expertise-block-body h2 a:hover {
    color: var(--gold);
}

.expertise-block-text {
    max-width: 65ch;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.expertise-block-text p + p {
    margin-top: 0.8rem;
}

.expertise-block-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.6rem 2.2rem;
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.lawyer-inline {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.lawyer-inline img {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

.lawyer-inline span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.lawyer-inline small {
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lawyer-inline strong {
    color: var(--navy);
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 500;
}

.lawyer-inline:hover strong {
    color: var(--gold-ink);
}

/* --------------------------------------------------------------------------
   Expertise detail page
   -------------------------------------------------------------------------- */

.aside-label {
    margin-bottom: 0.8rem;
    color: var(--gold-ink);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 5.5rem);
}

.contact-form-panel {
    padding-top: 0.4rem;
}

.contact-form-panel .display {
    margin-bottom: 1.5rem;
}

/* Contact form (Contact Form 7 markup styled as the prototype) */
.contact-form-panel form.wpcf7-form {
    display: grid;
    gap: 1.35rem;
}

.contact-form-panel .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
}

.contact-form-panel .field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-form-panel .field > label {
    color: var(--navy);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.contact-form-panel .field .optional {
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
}

.contact-form-panel .field > .wpcf7-form-control-wrap {
    display: contents;
}

/* Reserve the same empty error line as the prototype, so the form keeps its rhythm
   before validation. The line disappears when CF7 inserts its message. */
.contact-form-panel .field::after {
    content: "";
    display: block;
    min-height: 1rem;
}

.contact-form-panel .field:has(.wpcf7-not-valid-tip)::after {
    display: none;
}

.contact-form-panel .field input.wpcf7-text,
.contact-form-panel .field input[type="text"],
.contact-form-panel .field input[type="email"],
.contact-form-panel .field input[type="tel"],
.contact-form-panel .field textarea.wpcf7-textarea,
.contact-form-panel .field textarea {
    width: 100%;
    padding: 0.85rem 0;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--navy);
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: inherit;
    transition: border-color 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
}

.contact-form-panel .field textarea.wpcf7-textarea {
    min-height: 8rem;
    resize: vertical;
    line-height: 1.7;
}

.contact-form-panel .field input:focus,
.contact-form-panel .field textarea:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: var(--gold-deep);
}

.contact-form-panel .field ::placeholder {
    color: var(--muted-light);
    opacity: 1;
}

.contact-form-panel .field input.wpcf7-not-valid,
.contact-form-panel .field textarea.wpcf7-not-valid {
    border-bottom-color: var(--error);
}

.contact-form-panel .field .wpcf7-not-valid-tip {
    margin-top: 0;
    color: var(--error-deep);
    font-size: 0.7rem;
    line-height: 1.4;
}

.contact-form-panel .field--check {
    display: block;
}

.contact-form-panel .field--check .wpcf7-acceptance {
    display: block;
}

.contact-form-panel .field--check .wpcf7-list-item {
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 1fr);
    align-items: start;
    column-gap: 0.8rem;
    margin: 0;
}

.contact-form-panel .field--check .wpcf7-list-item > label {
    display: contents;
}

.contact-form-panel .field--check input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.3rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    accent-color: var(--gold-deep);
}

.contact-form-panel .field--check input[type="checkbox"]:focus {
    outline: none;
    box-shadow: none;
}

.contact-form-panel .field--check .wpcf7-list-item-label {
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.6;
}

.contact-form-panel .field--check .wpcf7-list-item-label a {
    color: var(--gold-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-form-panel .field--check::after {
    margin-top: 0.35rem;
}

.contact-form-panel .field--check .wpcf7-not-valid-tip {
    margin-top: 0.35rem;
    padding-left: 1.95rem;
}

.contact-form-panel .form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin-top: 0.3rem;
}

.contact-form-panel .wpcf7-submit {
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 48%, var(--gold-deep) 100%);
    color: var(--navy);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.contact-form-panel .wpcf7-submit:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.contact-form-panel .form-note {
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.6;
}

.contact-form-panel .wpcf7-spinner {
    display: none;
}

.contact-form-panel form.submitting .wpcf7-submit {
    opacity: 0.7;
    pointer-events: none;
}

.contact-form-panel .wpcf7-response-output {
    margin: 0;
    padding: 0.9rem 1.1rem;
    border: 0;
    border-left: 2px solid var(--gold);
    background: var(--ivory);
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

/* Field errors are already shown under each field, as in the prototype. */
.contact-form-panel form.invalid .wpcf7-response-output,
.contact-form-panel form.unaccepted .wpcf7-response-output {
    display: none;
}

.contact-form-panel form.invalid .wpcf7-response-output,
.contact-form-panel form.failed .wpcf7-response-output,
.contact-form-panel form.aborted .wpcf7-response-output,
.contact-form-panel form.spam .wpcf7-response-output,
.contact-form-panel form.unaccepted .wpcf7-response-output {
    border-left-color: var(--error);
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold);
    background: var(--paper);
}

.form-success:not(.is-visible) {
    display: none;
}

/* In the block editor the panel is always shown, so its text can be edited */
.editor-styles-wrapper .form-success:not(.is-visible) {
    display: flex;
}

.form-success h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.form-success p {
    max-width: 52ch;
    color: var(--muted);
    font-size: 0.88rem;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold-ink);
}

.success-icon .mvl-icon {
    width: 1.45rem;
    height: 1.45rem;
    background-image: var(--ico-gold);
}

.contact-info-panel {
    position: sticky;
    top: 7rem;
    padding: clamp(1.8rem, 3.5vw, 2.6rem);
    background: var(--navy);
    color: var(--white);
}

.contact-info-panel .wp-block-group {
    margin-block: 0;
}

.contact-info-panel h2 {
    margin-bottom: 1.8rem;
    color: var(--white);
    font-size: 1.75rem;
}

.contact-info-block {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line-light);
}

.contact-info-block > .mvl-icon,
.contact-info-block > svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
    margin-top: 0.2rem;
    color: var(--gold);
}

.contact-info-block > .mvl-icon {
    background-image: var(--ico-gold);
}

.contact-info-block h3 {
    margin-bottom: 0.2rem;
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-info-block p,
.contact-info-block a {
    margin: 0;
    color: color-mix(in srgb, var(--white) 70%, transparent);
    font-size: 0.82rem;
    line-height: 1.7;
}

.contact-info-block a:hover {
    color: var(--gold);
}

.contact-info-panel .socials {
    margin-top: 1.4rem;
}

.contact-map-link {
    margin-top: 1.5rem;
}

.contact-map-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-map-link a::after {
    content: "";
    width: 0.95rem;
    height: 0.95rem;
    background: url("../icons/png/gold/arrow-up-right.png") center / contain no-repeat;
    transition: transform 0.3s var(--ease);
}

.contact-map-link a:hover::after {
    transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.prose {
    max-width: 760px;
}

.prose h2 {
    margin: 2.6rem 0 0.8rem;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin: 1.8rem 0 0.5rem;
    font-size: 1.25rem;
}

.prose p,
.prose li {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.85;
}

.prose p + p {
    margin-top: 0.8rem;
}

.prose ul {
    display: grid;
    gap: 0.5rem;
    margin: 0.8rem 0;
    padding-left: 1.2rem;
    list-style: disc;
}

.legal-prose h2 {
    margin: 1.8rem 0 0.5rem;
    font-size: 1.25rem;
}

.legal-prose h2:first-child {
    margin-top: 0;
}

.prose a {
    color: var(--gold-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-section {
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
    border-bottom: 0;
}

/* --------------------------------------------------------------------------
   Icons used by the inner pages
   -------------------------------------------------------------------------- */

.mvl-icon--check {
    --ico-gold: url("../icons/png/gold/check.png");
    --ico-navy: url("../icons/png/navy/check.png");
    --ico-white: url("../icons/png/white/check.png");
}

.mvl-icon--pin {
    --ico-gold: url("../icons/png/gold/pin.png");
    --ico-navy: url("../icons/png/navy/pin.png");
    --ico-white: url("../icons/png/white/pin.png");
}

.mvl-icon--phone {
    --ico-gold: url("../icons/png/gold/phone.png");
    --ico-navy: url("../icons/png/navy/phone.png");
    --ico-white: url("../icons/png/white/phone.png");
}

/* --------------------------------------------------------------------------
   Inner pages: responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .split,
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    
    .contact-info-panel {
        position: static;
    }

    .values-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .value-card {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .value-card:last-child {
        border-bottom: 0;
    }

}

@media (max-width: 720px) {

    .timeline-item {
        grid-template-columns: 4.5rem minmax(0, 1fr);
        gap: 1.2rem;
    }

    .expertise-block {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.2rem;
    }

    .expertise-block-head {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .expertise-block-icon {
        width: 2.8rem;
        height: 2.8rem;
    }

    .expertise-block-icon svg {
        width: 1.3rem;
        height: 1.3rem;
    }

    .contact-form-panel .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

}

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Prototype sync 2026-11 (chosen variants only)
   ========================================================================== */

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--navy);
}

/* The hero picture: drawn on the section itself, so there is no empty block for the editor to show.
   The night photo and its bottom veil are set further down ("Home hero, night photo"). */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
}

/* Two access links at the bottom of the hero ("bar" layout): editable paragraphs with a link */
.hero-links {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.hero-links .hero-link {
    display: flex;
    flex: 1 1 50%;
    margin: 0;
}

.hero-links .hero-link a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 1rem;
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--white) 25%, transparent);
    border-right: 1px solid color-mix(in srgb, var(--white) 15%, transparent);
    background: color-mix(in srgb, var(--navy) 55%, transparent);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, padding 0.4s var(--ease);
}

.hero-links .hero-link:last-child a {
    border-right: 0;
}

.hero-links .hero-link a:hover,
.hero-links .hero-link a:focus-visible {
    padding-left: 2.2rem;
    background: color-mix(in srgb, var(--gold) 22%, transparent);
    color: var(--gold);
}

@media (max-width: 760px) {
    .hero-links {
        flex-direction: column;
    }

    .hero-links .hero-link a {
        border-right: 0;
    }
}

/* About / cabinet */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 6rem);
}

.about-main .display {
    max-width: 14em;
    margin-top: 0.35rem;
}

.about-years {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin: clamp(2rem, 4vw, 3rem) 0;
    padding: 1.4rem 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.about-years-number {
    margin: 0;
    color: var(--gold-deep);
    font-family: var(--serif);
    font-size: clamp(4rem, 8vw, 6.5rem);
    font-weight: 500;
    line-height: 0.9;
}

.about-years-label {
    margin: 0;
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.7;
    text-transform: uppercase;
}

.about-text {
    columns: 1;
}

.about-text .lead {
    max-width: none;
    break-inside: avoid;
}

.about-text .lead + .lead {
    margin-top: 1rem;
}

.about-link {
    margin-top: 1.6rem;
    break-inside: avoid;
}

.about-photo {
    position: relative;
    margin: 0;
}

.about-photo img {
    position: relative;
    width: 100%;
    aspect-ratio: 450 / 360;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    filter: saturate(0.85);
}

.about-quote {
    margin: clamp(2rem, 4vw, 3rem) 0;
    padding: 1.6rem 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    line-height: 1.3;
}

/* About section on tablets and phones: one column from 900px, the photo across the full width (prototype, 2026-11) */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .about-photo {
        margin: 1rem 0 0;
    }
}

/* Classements */
.rank-section {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.3rem;
    border-right: 1px solid var(--line);
    text-align: center;
}

.rank:last-child {
    border-right: 0;
}

.rank-laurel {
    display: block;
    width: 3.6rem;
    height: 3.6rem;
    margin-bottom: 1rem;
    background: url("../icons/png/gold/laurel.png") center / contain no-repeat;
}

.rank-source {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rank-tier {
    margin-top: 0.5rem;
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    line-height: 1.15;
}

.rank-field {
    margin-top: 0.4rem;
    color: var(--gold-ink);
    font-size: 0.72rem;
    font-weight: 500;
}

@media (max-width: 900px) {
    .rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rank:nth-child(2) {
        border-right: 0;
    }
    .rank:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 480px) {
    .rank-grid {
        grid-template-columns: 1fr;
    }
    .rank {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .rank:last-child {
        border-bottom: 0;
    }
}

/* Values: six cards on two rows */
.values-grid .value-card:nth-child(3n) {
    border-right: 0;
}

.values-grid .value-card:nth-child(n + 4) {
    border-top: 1px solid var(--line);
}

/* Team: every profile visible, centred, no slider */
.team-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    overflow: visible;
}

.team-track > .person-card {
    flex: 0 1 280px;
}

/* Initials for profiles without a photo */
.person-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--gold);
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 4.5rem);
    letter-spacing: 0.08em;
}

/* Contact */
.contact-first {
    padding-top: calc(5.6rem + clamp(2.5rem, 6vw, 5rem));
}

@media (min-width: 901px) {
    .contact-layout {
        grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    }
    .contact-layout .contact-info-panel {
        order: -1;
    }
}

/* Intro overlay (home only, once per session) */
.intro {
    /* Durée de l'animation d'intro : modifier uniquement cette valeur */
    --intro-duration: 0.8s;
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
    pointer-events: none;
    animation: introOut 0.35s var(--ease) calc(var(--intro-duration) * 0.95) forwards;
}

.intro-cape {
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 46%;
    background: linear-gradient(100deg, transparent 0%, color-mix(in srgb, var(--gold) 10%, transparent) 25%, color-mix(in srgb, var(--gold) 55%, transparent) 50%, color-mix(in srgb, var(--gold) 6%, transparent) 75%, transparent 100%);
    transform: translateY(-50%) rotate(-8deg) scaleX(0.2);
    transform-origin: left center;
    filter: blur(8px);
    animation: capeFly var(--intro-duration) var(--ease) forwards;
}

.intro-logo {
    position: relative;
    z-index: 1;
    width: min(52vw, 380px);
    filter: brightness(0) invert(1);
    animation: logoFly var(--intro-duration) var(--ease) forwards;
}

.intro-caption {
    position: absolute;
    bottom: 12%;
    z-index: 1;
    color: color-mix(in srgb, var(--white) 45%, transparent);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

@keyframes logoFly {
    0% { transform: translate3d(0, 0, 0) rotate(-4deg) scale(1); opacity: 0; }
    14% { opacity: 1; }
    62% { transform: translate3d(0, 0, 0) rotate(-4deg) scale(1); opacity: 1; }
    100% { transform: translate3d(38vw, -42vh, 0) rotate(24deg) scale(0.45); opacity: 0; }
}

@keyframes capeFly {
    0% { transform: translateY(-50%) rotate(-8deg) scaleX(0.2); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(-120%) rotate(-22deg) scaleX(1.6); opacity: 0; }
}

@keyframes introOut {
    from { opacity: 1; visibility: visible; }
    to { opacity: 0; visibility: hidden; }
}

.intro-skip .intro,
.intro-skip .intro * {
    display: none !important;
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .intro {
        display: none;
    }
}

/* Page header: horizon, shared base (gold rule under the title, intro on the right) */
.page-hero.page-hero--ghost::after {
    display: none;
}

.page-hero.page-hero--ghost .page-hero-grid {
    align-items: end;
}

.page-hero.page-hero--ghost .page-hero-copy {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
    align-items: end;
    column-gap: clamp(2rem, 6vw, 6rem);
    max-width: none;
    padding-bottom: clamp(1.6rem, 3vw, 2.6rem);
    border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
}

.page-hero.page-hero--ghost .page-hero-copy::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: clamp(4rem, 8vw, 7rem);
    height: 5px;
    background: var(--gold);
}

.page-hero.page-hero--ghost .eyebrow {
    grid-column: 1 / -1;
}

.page-hero.page-hero--ghost .page-title {
    grid-column: 1;
    margin: 0;
}

.page-hero.page-hero--ghost .page-intro {
    grid-column: 2;
    margin-top: 0;
    padding-bottom: 0.3rem;
}

@media (max-width: 760px) {
    .page-hero.page-hero--ghost .page-hero-copy {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-hero.page-hero--ghost .page-intro {
        grid-column: 1;
        margin-top: 1.4rem;
    }

    .page-hero.page-hero--ghost::before {
        display: none;
    }
}

/* Page header: horizon + logo ghost */
.page-hero.page-hero--ghost {
    background: var(--navy);
}

.page-hero.page-hero--ghost::before {
    content: "";
    position: absolute;
    top: 10%;
    right: 19%;
    width: clamp(43rem, 28vw, 26rem);
    aspect-ratio: 162 / 88;
    background: var(--white);
    -webkit-mask: url("../img/logo.svg") center / contain no-repeat;
    mask: url("../img/logo.svg") center / contain no-repeat;
    opacity: 0.01;
    pointer-events: none;
}

/* New value icons */
.value-icon--analyse::before {
    background-image: url("../icons/png/gold/value-analyse.png");
}

.value-icon--solutions::before {
    background-image: url("../icons/png/gold/value-solutions.png");
}

.value-icon--reactivite::before {
    background-image: url("../icons/png/gold/value-reactivite.png");
}

@media (max-width: 720px) {
    .team-track > .person-card {
        flex-basis: 100%;
    }
}

/* --------------------------------------------------------------------------
   404 page (main/404.html)
   -------------------------------------------------------------------------- */

.page-number {
    flex: none;
    margin: 0;
    color: transparent;
    font-family: var(--serif);
    font-size: clamp(5rem, 12vw, 10rem);
    line-height: 0.8;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--gold) 38%, transparent);
}

.not-found {
    max-width: 760px;
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold);
    background: var(--paper);
}

.not-found-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.6rem;
}

@media (max-width: 900px) {
    .page-number {
        display: none;
    }
}

/* ==========================================================================
   Prototype sync 2026-12-02: rules added to the prototype since 2026-11-24
   (copied as they are; the home page is body.home in WordPress, body[data-page="home"] in the prototype)
   ========================================================================== */

.page-crumbs + .section,
.profile-detail-section {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

body:not(.home) .site-header,
body:not(.home) .site-header.is-scrolled {
    background: var(--bar-gradient);
}

body:not(.home) .site-header .main-nav a:hover,
body:not(.home) .site-header .main-nav a.is-active,
body:not(.home) .site-header.is-scrolled .main-nav a:hover,
body:not(.home) .site-header.is-scrolled .main-nav a.is-active {
    color: var(--white);
}

body:not(.home) .site-header .main-nav a::after {
    background: var(--white);
}

.site-footer .footer-column h2,
.site-footer .footer-icon {
    color: var(--white);
}

.site-footer .footer-column a,
.site-footer .footer-column address p,
.site-footer .footer-baseline {
    color: var(--white);
}

.site-footer .footer-column a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom a {
    color: var(--white);
    font-weight: 700;
}

.page-crumbs {
    padding: calc(5.6rem + 1.75rem) 0 1.25rem;
    background: var(--white);
    color: var(--navy);
}

.page-crumbs .breadcrumb {
    margin-bottom: 0;
    color: rgba(0, 0, 0, 0.5);
}

.page-crumbs .breadcrumb a {
    color: var(--navy);
}

.page-crumbs .breadcrumb a:hover {
    color: var(--gold);
}

.page-crumbs--name {
    padding-bottom: 2rem;
}

.page-crumbs--name .breadcrumb {
    margin-bottom: 1.5rem;
}

.page-crumbs--name .eyebrow,
.page-crumbs--name .page-intro {
    display: none;
}

.page-crumbs--name .page-hero-grid {
    display: block;
}

.page-crumbs--name .page-title {
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.team-grid > .person-card {
    flex: 0 0 var(--team-card);
    max-width: 100%;
}

.team-grid .person-body {
    padding: 1.1rem 1.1rem 1rem;
}

.team-grid .person-name {
    font-size: 1.15rem;
}

.team-grid .person-link {
    font-size: 0.56rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.expertise-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--navy);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.expertise-block > * {
    position: relative;
    z-index: 1;
}

.expertise-block:hover::before {
    opacity: 1;
}

.expertise-block-body h2,
.expertise-block-text,
.expertise-block-icon,
.tag-list li,
.expertise-block-foot,
.lawyer-inline small,
.lawyer-inline strong {
    transition: color 0.25s ease, border-color 0.25s ease;
}

.expertise-block:hover .expertise-block-body h2,
.expertise-block:hover .lawyer-inline strong {
    color: var(--white);
}

.expertise-block:hover .expertise-block-text,
.expertise-block:hover .lawyer-inline small {
    color: rgba(255, 255, 255, 0.65);
}

.expertise-block:hover .expertise-block-icon {
    border-color: var(--line-light);
    color: var(--gold);
}

.expertise-block:hover .tag-list li {
    border-color: var(--line-light);
    color: rgba(255, 255, 255, 0.75);
}

.expertise-block:hover .expertise-block-foot {
    border-top-color: var(--line-light);
}

.lawyer-inline:hover strong,
.expertise-block:hover .lawyer-inline:hover strong {
    color: var(--gold);
}

@media (max-width: 720px) {
    .profile-back {
            display: none;
        }

    .profile-contact--back-only {
            display: none;
        }
}

/* The profiles block sits in a group with WordPress's "constrained" layout, which caps its content at the
   content width (645px): the cards must use the section's full width, as in the prototype. */
.marvell-profils-group > .marvell-profils {
    max-width: none;
}

/* Expertise block: room for the hover background (prototype, second .expertise-block rule) */
.expertise-block {
    position: relative;
    padding-left: clamp(1rem, 2vw, 1.5rem);
    padding-right: clamp(1rem, 2vw, 1.5rem);
}

/* Home hero, night photo (prototype variant "p1"). WordPress draws the picture on .hero::before,
   so the bottom veil is a second background layer and the logo watermark is .hero::after.
   Position, size and opacity of the watermark: change the variables below. */
.hero {
    --watermark-opacity: 0.2;
    --watermark-top: 6rem;
    --watermark-bottom: 22%;
    --watermark-left: clamp(1.2rem, 5vw, 5rem);
    --watermark-width: min(68vw, 68rem);
}

.hero::before {
    background:
        linear-gradient(to top, color-mix(in srgb, var(--navy) 88%, transparent) 0%, transparent 55%),
        url('../img/home-banner-photo.webp') center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: var(--watermark-top);
    bottom: var(--watermark-bottom);
    left: var(--watermark-left);
    width: var(--watermark-width);
    background: url('../img/logo.svg') left center / contain no-repeat;
    filter: brightness(0) invert(1);
    opacity: var(--watermark-opacity);
    pointer-events: none;
}

/* Hero links: same style as the word "AVOCATS" next to the header logo (prototype, 2026-11) */
.hero-links .hero-link a {
    font-family: var(--sans);
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.26em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero-links .hero-link a:hover,
.hero-links .hero-link a:focus-visible {
    padding-left: 1rem;
}

@media (max-width: 760px) {
    .hero-links .hero-link a {
        text-align: center;
        letter-spacing: 0.18em;
        text-wrap: balance;
    }
}

@media (max-width: 720px) {
    .hero {
        --watermark-bottom: 50%;
        --watermark-width: calc(100% - 2.4rem);
    }
}

/* ==========================================================================
   Block editor bridge (selectors match only inside the editor canvas)
   ========================================================================== */

/* The editor squeezes top-level blocks into the parent theme's 645px content size. The site sections
   manage their own width (.wrap), so they must fill the canvas as on the site. */
.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > * {
    max-width: none;
}

/* The editor sets every block to position: relative; the hero's bottom bar is absolute. */
.editor-styles-wrapper .hero .hero-links {
    position: absolute;
}
