.top {
    position: fixed;
    z-index: 20;
    inset: 0 0 auto;
    background: rgba(6, 23, 37, .84);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .11);
    line-height: 1.5
}

.nav {
    position: relative;
    height: 74px;
    display: flex;
    align-items: center;
    gap: 34px;
    color: #fff
}

.nav .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    font: 700 16px var(--serif);
    white-space: nowrap
}

.nav .monogram2 {
    font-size: 20px;
    color: #fff
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: 14px
}

.navlinks a {
    opacity: .82
}

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

.nav .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap
}

.menu {
    display: none;
    border: 0;
    background: none;
    color: #fff;
    font-size: 25px;
    cursor: pointer
}

.nav .button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04)
}

@media(max-width:1100px) {
    .navlinks {
        display: none
    }

    .menu {
        display: block
    }

    .nav .button {
        display: none
    }

    .nav .button.nav-cv {
        display: inline-flex;
        padding: 10px 14px;
        font-size: 12px
    }

    .nav.open {
        height: auto;
        flex-wrap: wrap;
        padding-bottom: 16px
    }

    .nav.open .navlinks {
        display: flex;
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, .12)
    }
}

@media(max-width:600px) {
    .nav {
        height: 58px;
        gap: 8px;
        flex-wrap: nowrap
    }

    .nav .brand {
        gap: 6px;
        min-width: 0;
        white-space: nowrap
    }

    .nav .monogram2:first-child {
        font-size: 0
    }

    .nav .monogram2:first-child:before {
        content: "FJ";
        color: var(--gold);
        font-size: 20px
    }

    .nav .monogram2:last-child {
        font-size: 12px
    }

    .nav a.nav-cv {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: auto;
        min-width: 64px;
        max-width: none;
        height: 36px;
        padding: 0 10px;
        gap: 5px;
        border-radius: 999px;
        font-size: 10px
    }

    .nav a.nav-cv:after {
        content: none
    }

    .menu {
        display: block;
        flex: none;
        padding: 2px 4px
    }

    .nav.open {
        height: auto;
        flex-wrap: wrap;
        padding-bottom: 14px
    }

    .nav.open .navlinks {
        display: grid;
        order: 4;
        gap: 10px;
        padding: 12px
    }
}

.closing {
    padding: 0;
    background: #061725;
    color: #fff;
    overflow: hidden
}

.closing-grid {
    min-height: 310px;
    display: grid;
    grid-template-columns: .8fr 1.3fr .7fr;
    align-items: center;
    gap: 35px
}

.closing-portrait,
.closing-img {
    height: 310px;
    min-height: 310px;
    position: relative;
    overflow: hidden
}

.closing-content,
.closing-copy {
    min-width: 0
}

.closing .eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    line-height: 1.5;
    text-transform: uppercase
}

.closing .accent {
    color: var(--gold)
}

.closing h2 {
    margin: 8px 0;
    font: 600 45px/1.02 var(--serif)
}

.closing p {
    margin: 14px 0;
    color: #c3ced4;
    font-size: 14px;
    line-height: 1.5
}

.closing .actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px
}

.closing .actions .button {
    min-height: 41px;
    gap: 10px;
    padding: 13px 22px;
    font-size: 16px;
    line-height: 1.5
}

.closing .button-icon {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 19px;
    height: 19px
}

.closing .button-icon svg {
    width: 19px;
    height: 19px
}

.closing-quote {
    margin: 0;
    border-left: 3px solid var(--gold);
    padding: 15px 0 15px 20px;
    color: #e3e9ec;
    font: italic 18px/1.4 var(--serif)
}

.closing-quote small {
    display: block;
    margin-top: 9px;
    color: var(--gold);
    font: 700 8px var(--sans);
    letter-spacing: .15em
}

footer {
    padding: 22px 0;
    background: #04121d;
    color: #c4ced4;
    line-height: 1.5
}

.foot {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap
}

.foot .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    font: 700 16px var(--serif);
    white-space: nowrap
}

footer .monogram2 {
    color: #fff;
    font-size: 20px
}

.footer-role {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .2);
    color: #c8d2d8;
    font-size: 12px;
    white-space: nowrap
}

.socials,
.social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: auto
}

.social-link,
.social a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: #f7f8f8;
    color: #061725;
    font: 500 12px var(--sans);
    transition: transform .2s, background .2s
}

.social-link:hover,
.social a:hover {
    transform: translateY(-2px);
    background: var(--gold)
}

.social-link svg,
.social svg {
    width: 19px;
    height: 19px
}

.footer-email {
    margin-left: 4px;
    color: #d7dfe3;
    font-size: 12px
}

.copyright,
.foot .copyright {
    font-size: 11px;
    white-space: nowrap
}

/* Chiffres clés : accueil, services, parcours */
.stats {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: -42px;
    border: 1px solid rgba(246, 198, 91, .25);
    border-radius: 18px;
    background: linear-gradient(145deg, #071b2a, #0d2d40);
    box-shadow: 0 24px 40px rgba(1, 17, 27, .2);
    color: #fff;
    line-height: 1.55
}

.stat {
    position: relative;
    padding: 22px 26px 22px 88px;
    border-right: 1px solid rgba(255, 255, 255, .12)
}

.stat:last-child {
    border-right: 0
}

.stat-icon {
    position: absolute;
    top: 50%;
    left: 27px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: #ccd5da;
    transform: translateY(-50%)
}

.stat-icon svg {
    width: 22px;
    height: 22px
}

.stat strong {
    display: block;
    color: var(--gold);
    font: 700 27px var(--serif)
}

.stat-label {
    color: #ccd5da;
    font-size: 14px
}

@media(min-width:601px) and (max-width:900px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -48px
    }

    .stat {
        padding: 28px 30px 28px 88px
    }

    .stat:nth-child(2) {
        border-right: 0
    }

    .stat:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, .12)
    }

    .stat strong {
        font-size: 30px
    }
}

@media(max-width:600px) {
    .stats {
        width: calc(100% - 28px);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: -36px;
        border-radius: 13px
    }

    .stat {
        min-width: 0;
        padding: 12px 4px;
        text-align: center
    }

    .stat-icon {
        position: static;
        width: 28px;
        height: 28px;
        margin: 0 auto 6px;
        transform: none
    }

    .stat-icon svg {
        width: 15px;
        height: 15px
    }

    .stat strong {
        font-size: 16px;
        line-height: 1.15;
        overflow-wrap: anywhere
    }

    .stat:last-child strong {
        font-size: 10px;
        white-space: nowrap;
        overflow-wrap: normal
    }

    .stat-label {
        display: block;
        font-size: 9px;
        line-height: 1.25
    }
}

@media(max-width:1100px) {
    .foot {
        flex-wrap: wrap
    }

    .socials,
    .social {
        order: 3;
        width: 100%;
        margin: 8px 0
    }

    .copyright {
        margin-left: auto
    }
}

@media(max-width:900px) {
    .closing-grid {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 16px;
        padding: 24px 0
    }

    .closing-portrait,
    .closing-img {
        grid-row: span 2;
        min-height: 220px;
        height: 220px
    }

    .closing-quote {
        grid-column: 2
    }

    .foot {
        justify-content: center
    }

    .foot .brand {
        margin-right: 0
    }

    .socials,
    .social {
        order: 3;
        width: 100%
    }

    .copyright {
        width: auto
    }
}

@media(min-width:601px) and (max-width:1100px) {
    .closing-grid {
        grid-template-columns: minmax(190px, .78fr) minmax(0, 1.2fr) minmax(170px, .72fr);
        gap: 18px;
        min-height: 270px;
        padding: 20px 0
    }

    .closing-portrait,
    .closing-img {
        grid-row: auto;
        height: 230px;
        min-height: 230px
    }

    .closing-quote {
        grid-column: auto;
        padding-left: 14px;
        font-size: 15px
    }

    .closing h2 {
        font-size: 34px
    }

    .closing .actions {
        gap: 8px
    }

    .closing .actions .button {
        padding: 11px 13px;
        font-size: 12px
    }

    .foot {
        min-height: 76px;
        gap: 12px
    }

    .footer-role {
        font-size: 10px
    }

    .socials,
    .social {
        order: initial;
        width: auto;
        gap: 7px;
        margin: 0
    }

    .social-link,
    .social a {
        width: 31px;
        height: 31px
    }

    .footer-email {
        font-size: 10px
    }

    .copyright {
        width: auto;
        margin-left: 0;
        font-size: 10px
    }
}

@media(max-width:600px) {
    .closing-grid {
        position: relative;
        grid-template-columns: 1fr;
        grid-template-areas: "photo" "content";
        gap: 14px;
        padding: 32px 0 20px
    }

    .closing-portrait,
    .closing-img {
        grid-area: photo;
        grid-row: auto;
        display: block;
        height: 200px;
        min-height: 200px;
        border-radius: 10px
    }

    .closing-content,
    .closing-copy {
        grid-area: content
    }

    .closing-quote {
        position: absolute;
        z-index: 3;
        top: 112px;
        right: 12px;
        width: min(56%, 220px);
        grid-column: auto;
        margin: 0;
        padding: 10px 11px;
        border-left: 2px solid var(--gold);
        border-radius: 9px;
        background: rgba(4, 20, 32, .88);
        font-size: 10px;
        line-height: 1.35
    }

    .closing .actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%
    }

    .closing .actions .button {
        flex: 1 1 0;
        min-width: 0;
        gap: 6px;
        padding: 10px 7px;
        font-size: 11px;
        white-space: nowrap
    }

    .closing h2 {
        font-size: 30px
    }

    .foot {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "brand role" "socials socials" "copyright copyright";
        align-items: center;
        justify-content: initial;
        gap: 12px 10px;
        padding: 16px 0
    }

    .foot .brand {
        grid-area: brand;
        min-width: 0;
        margin: 0;
        gap: 6px
    }

    .footer-role {
        grid-area: role;
        min-width: 0;
        padding: 0;
        border: 0;
        font-size: 10px;
        line-height: 1.35;
        text-align: right;
        white-space: normal
    }

    .socials,
    .social {
        grid-area: socials;
        order: initial;
        width: auto;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        margin: 0
    }

    .social-link,
    .social a {
        width: 29px;
        height: 29px
    }

    .footer-email {
        min-width: 0;
        margin-left: 2px;
        font-size: 11px;
        overflow-wrap: anywhere
    }

    .copyright {
        grid-area: copyright;
        width: auto;
        margin: 0;
        font-size: 10px;
        line-height: 1.3;
        white-space: normal
    }
}

@media(min-width:1600px) {
    .wrap {
        width: min(1500px, calc(100% - 96px))
    }

    .closing-grid {
        min-height: 360px;
        gap: 42px
    }

    .closing-portrait,
    .closing-img {
        height: 360px;
        min-height: 360px
    }

    .closing h2 {
        font-size: 50px
    }

    .hero-quote {
        right: max(48px, calc((100vw - 1500px)/2))
    }
}