/* =========================
   NAVIGATION
========================= */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 1728px;
    min-height: 141px;
    padding: 18px 26px;
    background: #FFFFFF;
    box-sizing: border-box;
    z-index: 1000;
    --mobile-nav-left-edge: 0px;
    --mobile-nav-right-edge: 0px;
}


/* Tous les boutons de navigation */

.nav-icon {
    position: relative;
    top: 0;
    left: auto;
    display: block;
    text-decoration: none;
    flex: 0 0 auto;
}

.nav-languages {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}


/* =========================
   HOME
   Figma : x 26 / y 18
   carré : 99 × 99
========================= */

/* HOME — 26 px depuis la gauche */

.nav-home {
    width: 89.1px;
    height: 89.1px;
}
/* =========================
   DE
   Figma : x 162 / y 18
   carré : 100 × 100
========================= */
.nav-de {
    width: 90px;
    height: 90px;
    margin-left: 0px;
    margin-top: 0px;
    transform: translateY(0);
}

/* =========================
   FR
   Figma : x 277 / y 18
   carré : 104 × 104
========================= */

.nav-fr {
    width: 90px;
    height: 90px;
}


/* =========================
   ON
   Figma : x 1301 / y 18
   carré : 102 × 102
========================= */

.nav-on {
    width: 91.8px;
    height: 91.8px;
    margin-left: auto;
}

/* =========================
   CONTACT
   Figma : x 1464 / y 18
   carré : 102 × 102
========================= */

.nav-contact {
    width: 91.8px;
    height: 91.8px;
}


/* =========================
   ABOUT
   Figma : x 1605 / y 18
   carré : 103 × 103
========================= */


.nav-about {
    width: 92.7px;
    height: 92.7px;
}

/* =========================
   SVG
========================= */

.nav-icon svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    max-width: none;
}

.nav-icon svg g {
    filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.25));
}

@media screen and (min-width: 768px) {
    .site-nav .nav-icon svg {
        filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
    }

    .site-nav .nav-icon svg g {
        filter: none;
    }
}


/* =========================
   HOMEPAGE CONTENT
========================= */

/* =========================
   POLICE
========================== */
@font-face {
    font-family: "Suisse Int'l";
    src: url("../fonts/SuisseIntl-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
}

/* =========================
   HOMEPAGE
========================== */
.bar {
    position: absolute;
    top: 141px;
    left: 0;
    width: 100%;
    height: 80px;
    background: #F09;                          /* rgba(255, 0, 153, 1) */
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    overflow: hidden;                              /* coupe le texte qui dépasse */
}

.bar-large,
.bar-large-white,
.bar-large-pink-bottom,
.bar-large-white-2,
.bar-large-pink-2,
.bar-large-white-3,
.bar-large-pink-3 {
    position: absolute;
    left: 34px;
    width: calc(100% - 68px);
}

.bar-large {
    top: 165px;
    height: 117px;
    background: #F09;
}

.mini-tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 114px;
    height: 19px;
    background: #D9D9D9;
    z-index: 2;
}

.mini-tag-edition {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8px;
    box-sizing: border-box;
    color: rgba(0, 0, 0, 1);
    font-family: "Suisse Int'l", Arial, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-align: left;
}

.bar-large-white {
    top: 282px;
    height: 117px;
    background: #FFFFFF;
}

.bar-large-pink-bottom {
    position: absolute;
    top: 399px;
    left: 34px;
    width: calc(100% - 68px);
    height: 117px;
    background: #F09;
}

.bar-large-white-2 {
    position: absolute;
    top: 516px;
    left: 34px;
    width: calc(100% - 68px);
    height: 117px;
    background: #FFFFFF;
}

.bar-large-pink-2 {
    position: absolute;
    top: 633px;
    left: 34px;
    width: calc(100% - 68px);
    height: 117px;
    background: #F09;
}

.bar-large-pink-2 .mini-tag {
    left: 0px;
    top: 0;
}

.bar-large-white-3 {
    position: absolute;
    top: 750px;
    left: 34px;
    width: calc(100% - 68px);
    height: 117px;
    background: #FFFFFF;
}

.bar-large-pink-3 {
    position: absolute;
    top: 867px;
    left: 34px;
    width: calc(100% - 68px);
    height: 117px;
    background: #F09;
}

.bar-bottom {
    position: absolute;
    top: 750px;
    left: 0;
    width: 100%;
    height: 80px;
    background: #F09;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Fenêtre du texte, centrée dans la barre */
.marquee {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    height: 100%;
    align-items: center;
    animation: scroll-left 18s linear infinite;
}

.marquee-group {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 19px;
    flex-shrink: 0;
    min-width: max-content;
    height: 100%;
    padding-right: 19px;
}

.marquee-group span {
    color: #FFF;                                   /* rgba(255, 0, 153, 1) */
    font-family: "Suisse Int'l", "Helvetica Neue", Arial, sans-serif;
    font-size: 70px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    white-space: nowrap;
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Respecte les utilisateurs qui désactivent les animations */
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}
@font-face {
    font-family: "Suisse Int'l";
    src: url("../fonts/SuisseIntl-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
}

.homepage {
    padding: 28px 26px 48px;
}

/* Curseurs emoji (FR / DE) sur tout le site, souris uniquement */
@media (hover: hover) and (pointer: fine) {
    html[data-language="fr"],
    html[data-language="fr"] * {
        cursor: url("../assets/cursor/NEUCHATEL_40.png") 20 20, auto !important;
        cursor: image-set(url("../assets/cursor/NEUCHATEL_40.png") 1x, url("../assets/cursor/NEUCHATEL_80.png") 2x) 20 20, auto !important;
    }

    html[data-language="de"],
    html[data-language="de"] * {
        cursor: url("../assets/cursor/ZURICH_40.png") 20 20, auto !important;
        cursor: image-set(url("../assets/cursor/ZURICH_40.png") 1x, url("../assets/cursor/ZURICH_80.png") 2x) 20 20, auto !important;
    }
}

.hero {
    position: relative;
}

/* Ligne minimaliste entre les boutons de navigation et la barre rose du haut */
.home-meta {
    position: fixed;
    top: 118px;
    left: 34px;
    right: 34px;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.home-meta span {
    color: #000;
    font-family: "Suisse Int'l", sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    white-space: nowrap;
}

.home-meta .home-meta-language {
    margin-left: auto;
    margin-right: clamp(40px, 10vw, 180px);
}

@media screen and (max-width: 767px) {
    .home-meta {
        display: none;
    }
}

:root {
    --bar-rect-gap: 0px;
    --rect-gap: 6px;
}

@media screen and (min-width: 768px) {
    /* Fond gris sous la ligne Zürich HB / DE, de bord à bord comme les barres roses */
    .hero::before,
    .hero::after {
        content: "";
        position: absolute;
        left: -34px;
        z-index: -1;
        width: 1728px;
        max-width: calc(100% + 68px);
        height: 261px;
        background: #F5F5F5;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
        pointer-events: none;
    }

    .hero::before {
        top: calc(185px + var(--bar-rect-gap));
    }

    /* Même rectangle que Zürich HB / DE, séparé par un fin espace (--rect-gap) */
    /* Au-dessus de la barre du bas pour que son ombre reste visible ; les textes sont à z-index 2 */
    .hero::after {
        top: calc(446px + var(--rect-gap) + var(--bar-rect-gap));
        z-index: 1;
    }

    /* Sous le 2e rectangle (bas = 743px + espaces) */
    .bar-bottom {
        top: calc(743px + var(--rect-gap) + 2 * var(--bar-rect-gap));
    }
}

.about-section h2 {
    margin: 0 0 12px;
}

.about-section {
    position: relative;
    width: min(886px, calc(100vw - 52px));
    height: 447px;
    margin: 234px auto 0;
    padding: 40px;
    box-sizing: border-box;
    background: rgba(217, 217, 217, 1);
    border-radius: 29px;
    line-height: 1.6;
}

.about-qr {
    position: absolute;
    left: 90px;
    bottom: 45px;
    width: 258px;
    height: 258px;
    object-fit: contain;
}

.about-label {
    position: absolute;
    top: 45px;
    left: 90px;
    width: 135px;
    height: 19px;
    color: #000;
    font-family: "Suisse Int'l", sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    white-space: pre;
}

.about-date {
    position: absolute;
    top: 70px;
    left: 90px;
    width: 135px;
    height: 19px;
    color: #000;
    font-family: "Suisse Int'l", sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.about-lena {
    position: absolute;
    right: 90px;
    bottom: 45px;
    height: 357px;
    width: auto;
    max-width: calc(100% - 180px);
    object-fit: contain;
}

/* Les deux titres : même style */
.title-hb,
.title-de {
    margin: 0;
    color: #000;                 /* rgba(0, 0, 0, 1) */
    font-family: "Suisse Int'l", "Helvetica Neue", Arial, sans-serif;
    font-size: 266px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    height: 345px;               /* H fixed */
    white-space: nowrap;
    flex-shrink: 0;
}

.title-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.title-link:hover,
.title-link:focus,
.title-link:visited {
    color: #000;
    text-decoration: none;
}

.title-mobile {
    display: none;
}

.title-sound {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.title-sound:focus-visible {
    outline: 3px solid #FF0099;
    outline-offset: 6px;
}

.title-hb {
    position: absolute;
    top: 150px;
    left: 0px;
    width: auto;
    font-size: 226px;
    margin: 0;
    transform: translateY(0);
}

.title-de {
    position: absolute;
    top: calc(411px + var(--rect-gap));
    left: 0;
    width: auto;
    font-size: 226px;
    margin: 0;
    transform: translateY(0);
}

.lang-de {
    position: absolute;
    top: 235px;
    right: 34px;
    display: inline-block;
    width: auto;
    margin: 0;
    color: #F09;
    font-family: "Suisse Int'l", "Helvetica Neue", Arial, sans-serif;
    font-size: 226px;
    font-style: normal;
    font-weight: 600;
    line-height: 0.9;
    white-space: nowrap;
    text-align: right;
}

.lang-fr {
    position: absolute;
    top: calc(494px + var(--rect-gap));
    right: 34px;
    display: inline-block;
    width: auto;
    margin: 0;
    color: #F09;
    font-family: "Suisse Int'l", "Helvetica Neue", Arial, sans-serif;
    font-size: 226px;
    font-style: normal;
    font-weight: 600;
    line-height: 0.9;
    white-space: nowrap;
    text-align: right;
}

/* Textes centrés verticalement dans leur rectangle gris (même hauteur que les rectangles) */
@media screen and (min-width: 768px) {
    .title-hb,
    .title-de,
    .lang-de,
    .lang-fr {
        display: flex;
        align-items: center;
        height: 261px;
        line-height: 1;
        z-index: 2;
    }

    .title-hb {
        top: calc(185px + var(--bar-rect-gap));
    }

    .title-de {
        top: calc(446px + var(--rect-gap) + var(--bar-rect-gap));
    }

    .lang-de {
        top: calc(221px + var(--bar-rect-gap));
    }

    .lang-fr {
        top: calc(482px + var(--rect-gap) + var(--bar-rect-gap));
    }
}

@media screen and (max-width: 767px) {
    .courvoisier-marquee {
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        direction: ltr;
        overscroll-behavior-x: contain;
    }

    .courvoisier-track {
        flex-direction: row;
        width: max-content;
        animation: none !important;
        animation-play-state: paused !important;
    }

    .project-image,
    .courvoisier-track img,
    .project-detail-inline img {
        height: auto;
        max-width: 100%;
        max-height: 1054px;
        object-fit: contain;
    }

    .courvoisier-track {
        align-items: flex-start;
    }

    .courvoisier-track img {
        height: min(675px, 70vh);
        width: auto;
        max-width: none;
        max-height: none;
        object-fit: cover;
    }

    .project-courvoisier-page .courvoisier-marquee {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

    .project-courvoisier-page .courvoisier-track {
        animation: none !important;
        animation-play-state: paused !important;
    }

    .project-courvoisier-page .info-text {
        font-size: 15px;
    }

    .about-section {
        width: calc(100vw - 48px);
        height: auto;
        min-height: 360px;
        margin-top: 120px;
        padding: 24px;
    }

    .about-qr {
        left: 24px;
        bottom: 24px;
        width: min(258px, calc(100% - 48px));
        height: auto;
    }

    .about-lena {
        right: 24px;
        bottom: 24px;
        height: min(240px, calc(100% - 48px));
        max-width: calc(100% - 48px);
    }

    .bar:not(.bar-bottom) {
        top: 106px;
    }

    .bar-bottom {
        top: 853px;
    }

    .bar,
    .bar-bottom {
        height: 30px;
        left: 0;
        width: 100%;
    }

    .divider {
        top: -94px;
        left: 30px;
        right: 30px;
    }

    .divider .category-label,
    .divider .year-label,
    .divider .canton-label,
    .divider .remarks-label {
        display: none;
    }

    .divider .project-label {
        left: 20px;
    }

    .info-panel {
        left: 64px;
        right: 64px;
        width: auto;
        max-width: none;
    }

    .courvoisier-rect {
        left: 64px;
    }

    .project-intro {
        padding-right: 64px;
        padding-left: 64px;
    }

    .project-list {
        width: 100%;
        margin-left: 0;
    }

    .project-list .mini-tag,
    .project-list .canton-tag,
    .project-list .award-tag,
    .project-list [class^="project-year-"] {
        display: none !important;
    }

    .project-list .project-row {
        flex-basis: 41px;
        width: 100%;
        height: 41px;
    }

    .project-list .project-title {
        left: 10px;
        right: auto;
        width: calc(100% - 10px);
        height: 41px;
        justify-content: flex-start;
        font-size: 33px;
        text-align: left;
    }

    .info-text {
        font-size: 15px !important;
        margin-bottom: 5px;
    }

    .info-panel.is-open {
        height: auto;
        max-height: 1000px;
        padding-bottom: 5px;
        box-sizing: border-box;
    }

    .info-panel-inner {
        height: auto;
    }

    .marquee-group {
        gap: 7.125px;
        padding-right: 7.125px;
    }

    .marquee-group span {
        font-size: 26.25px;
    }

    .title-desktop,
    .lang-de,
    .lang-fr {
        display: none;
    }

    .title-mobile {
        display: inline;
    }

    .site-nav {
        gap: 0;
        justify-content: space-between;
        padding: 18px 0;
        min-height: 106px;
    }

    .site-nav .nav-icon svg {
        filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
    }

    .site-nav .nav-icon svg g {
        filter: none;
    }

    .site-nav > .nav-icon,
    .nav-languages {
        min-width: 0;
        flex: 0 1 auto;
    }

    .nav-home {
        position: fixed;
        top: 18px;
        left: var(--mobile-nav-left-edge, 0px);
        width: min(66px, 15.34884vw);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .nav-contact,
    .nav-about {
        width: min(67px, 15.5814vw);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .nav-contact {
        position: fixed;
        top: 18px;
        right: calc(var(--mobile-nav-right-edge, 0px) + min(67px, 15.5814vw) + 5px);
        margin: 0;
    }

    .nav-about {
        position: fixed;
        top: 18px;
        right: var(--mobile-nav-right-edge, 0px);
    }

    .nav-on {
        width: min(70px, 16.27907vw);
        height: auto;
        margin-left: 0;
        aspect-ratio: 1 / 1;
    }

    .nav-fr,
    .nav-on {
        position: fixed;
        top: auto;
        bottom: env(safe-area-inset-bottom, 0px);
        z-index: 1001;
    }

    .nav-fr {
        left: calc(var(--mobile-nav-left-edge, 0px) + min(68.085px, 15.83372vw) + 5px);
    }

    .nav-on {
        left: auto;
        right: var(--mobile-nav-right-edge, 0px);
    }

    .nav-languages {
        display: contents;
    }

    .nav-languages .nav-icon {
        flex: 1 1 68.085px;
        min-width: 0;
        width: auto;
        height: 100%;
    }

    .site-nav .nav-languages .nav-fr {
        flex: none;
        width: min(68.085px, 15.83372vw);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .site-nav .nav-languages .nav-de {
        position: fixed;
        top: auto;
        bottom: env(safe-area-inset-bottom, 0px);
        left: var(--mobile-nav-left-edge, 0px);
        z-index: 1001;
        flex: none;
        width: min(68.085px, 15.83372vw);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .title-hb,
    .title-de {
        left: 50%;
        transform: translate(-50%, 0);
        color: #000;
        font-family: "Suisse Int'l", "Helvetica Neue", Arial, sans-serif;
        font-size: 280px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
    }

    .title-hb {
        top: 41px;
    }

    .title-de {
        top: 268px;
    }

    .homepage {
        overflow-x: clip;
    }
}


/* =========================
   HOVER
   rose ↔ blanc
========================= */

.nav-icon svg path {
    transition: fill 0.2s ease;
}

.nav-icon:hover svg path[fill="#FF0099"] {
    fill: #FFFFFF;
}

.nav-icon:hover svg path[fill="white"] {
    fill: #FF0099;
}

.nav-on.is-active svg path[fill="#FF0099"] {
    fill: #FFFFFF;
}

.nav-on.is-active svg path[fill="white"] {
    fill: #FF0099;
}

/* =========================
   GRILLES
========================= */
.divider {
    position: fixed;
    top: 140px;
    left: 30px;
    right: 30px;
    height: 21px;
    background: #000;
    z-index: 900;
}

.courvoisier-rect {
    position: fixed;
    top: 161px;
    left: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 145px;
    height: 17px;
    padding: 0 0 0 8px;
    border: none;
    background: rgba(217, 217, 217, 1);
    cursor: pointer;
    z-index: 901;
}

.courvoisier-rect span {
    color: #000;
    font-family: "Suisse Int'l", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-align: left;
}

.info-panel {
    position: fixed;
    top: 178px;
    left: 30px;
    width: 1679px;
    max-width: calc(100% - 60px);
    height: auto;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background: rgba(255, 0, 153, 1);
    transform-origin: top;
    transition: max-height 0.6s ease, opacity 0.35s ease;
    z-index: 900;
}

.info-panel.is-open {
    max-height: 1000px;
    height: auto;
    padding-bottom: 5px;
    box-sizing: border-box;
    opacity: 1;
}

.info-panel-inner {
    width: 100%;
    height: auto;
}

.project-page,
.project-detail-page {
    padding-top: 220px;
}

.project-intro {
    padding: 0 34px;
}

.project-list-page {
    margin: 0;
}

.project-scroll {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 0 30px;
    margin-top: 160px;
    height: calc(100vh - 160px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}

.project-scroll::-webkit-scrollbar {
    display: none;
}

/* Mobile : la liste reste fixe à l'écran et défile à l'intérieur de son conteneur */
@media screen and (max-width: 767px) {
    .project-list-page {
        overflow-x: hidden;
    }

    .project-scroll:not(.project-scroll--footer) {
        position: fixed;
        top: 130px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 800;
        width: auto;
        height: auto;
        margin-top: 0;
        overscroll-behavior: contain;
    }

    .project-list-page .project-scroll {
        padding-right: 0;
        padding-left: 0;
    }

    .project-list-page > .divider {
        left: 0;
        right: 0;
    }
}

.project-scroll.is-project-open ~ .divider {
    display: none;
}

.project-list {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    margin-left: 0;
}

.project-cycle {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: 100%;
}

.project-row {
    position: relative;
    flex: 0 0 117px;
    width: 100%;
    height: 117px;
    overflow: hidden;
    transform: translateY(var(--project-expansion-shift, 0px));
    transition: flex-basis 1.6s cubic-bezier(0.65, 0, 0.35, 1), height 1.6s cubic-bezier(0.65, 0, 0.35, 1), transform 1.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.project-scroll.is-scroll-closing .project-row {
    transition-duration: 1s;
}

.project-row.is-expanded {
    flex-basis: var(--project-detail-height);
    height: var(--project-detail-height);
    overflow: visible;
    background: #FFFFFF;
    z-index: 1;
}

.project-row.is-expanded.is-closing {
    overflow: hidden;
}

.project-row.is-expanded > .project-link,
.project-row.is-closing > .project-link {
    display: none;
}

.project-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.project-pink {
    background: #F09;
}

.project-white {
    background: #FFFFFF;
}

.project-row.is-inverted.project-pink {
    background: #FFFFFF;
}

.project-row.is-inverted.project-white {
    background: #F09;
}

.project-row.is-inverted.project-pink .project-title-courvoisier {
    color: #000;
}

.project-row.is-inverted.project-white .project-title-black {
    color: #FFF;
}

.project-row.project-pink [class^="project-year-"] {
    color: #FFF;
}

.project-row.project-white [class^="project-year-"] {
    color: #000;
}

.project-row.is-inverted.project-pink [class^="project-year-"] {
    color: #000;
}

.project-row.is-inverted.project-white [class^="project-year-"] {
    color: #FFF;
}

.project-row .mini-tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 114px;
    height: 19px;
    background: #D9D9D9;
    z-index: 2;
}

.project-row .canton-tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 31px;
    height: 17px;
    background: #D9D9D9;
    z-index: 2;
}

.project-row .canton-tag-code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 17px;
    box-sizing: border-box;
    color: rgba(0, 0, 0, 1);
    font-family: "Suisse Int'l", Arial, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-align: center;
}

.project-row .award-tag {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 19px;
    box-sizing: border-box;
    background: rgba(217, 217, 217, 1);
    color: rgba(0, 0, 0, 1);
    font-family: "Suisse Int'l", Arial, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-align: center;
    z-index: 2;
}

.project-title {
    position: absolute;
    left: auto;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 87px;
    color: #FFF;
    font-family: "Suisse Int'l", "Helvetica Neue", Arial, sans-serif;
    font-size: 90px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-align: right;
    white-space: nowrap;
    letter-spacing: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.project-title-courvoisier {
    left: 175px;
    right: auto;
    justify-content: flex-start;
    color: #FFF;
}

.project-hover-preview {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    width: min(30vw, 280px);
    height: auto;
    max-height: calc(100vh - 40px);
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 12px, 0) scale(0.96);
    transform-origin: top left;
    transition: opacity 220ms ease, transform 320ms cubic-bezier(0.2, 0.75, 0.25, 1);
    will-change: transform, opacity;
}

.project-hover-preview.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .project-hover-preview {
        transition: opacity 120ms ease;
        transform: none;
    }
}

@media screen and (max-width: 767px) {
    .project-hover-preview {
        display: none;
    }
}

.project-year-courvoisier,
.project-year-points,
.project-year-phone,
.project-year-maurice,
.project-year-neuch,
.project-year-paul,
.project-year-regatta {
    position: absolute;
    top: 50%;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 132px;
    height: 87px;
    transform: translateY(-50%);
    font-family: "Suisse Int'l", "Helvetica Neue", Arial, sans-serif;
    font-size: 90px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-align: left;
}

.project-year-courvoisier,
.project-year-phone,
.project-year-paul,
.project-year-regatta {
    color: #FFF;
}

.project-year-points,
.project-year-maurice,
.project-year-neuch {
    color: #000;
}

.project-title-black {
    left: 175px;
    right: auto;
    justify-content: flex-start;
    color: #000;
}

/* =========================
   DIVIDER ROW 

========================= */

.divider-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.divider-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 60px;
}

.text-content {
    color: #FFF;
    font-family: "Suisse Int'l", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.category-label {
    margin-left: -12px;
}

.project-label {
    position: absolute;
    left: 175px;
    margin-left: 0;
}

.year-label,
.canton-label,
.remarks-label {
    margin-left: 0;
}

.year-label {
    position: relative;
    left: -30px;
}

.canton-label {
    position: relative;
    left: 10px;
}
/* =========================
   TEXT COURVOISIER
========================= */
.info-text {
    margin: 0 0 5px;
  color: #FFF;
  font-family: "Suisse Int'l", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 25px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  max-width: 1670px;
}   /* <-- cette accolade manquait */

/* =========================
   IMAGE COURVOISIER
========================= */
.project-image {
  display: block;
  width: min(42vw, 682px);
  height: auto;
  max-width: calc(100vw - 68px);
  max-height: calc(100vh - 260px);
  object-fit: contain;
  margin: 200px 0 0 0;
  transition: width 0.4s ease, max-width 0.4s ease, margin-top 0.6s ease;
}

.courvoisier-marquee {
    width: 100vw;
    min-height: calc(100vh - 430px);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 180px 0 0 0;
    padding-left: 0;
    position: relative;
}

.courvoisier-track {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

@media screen and (min-width: 768px) {
    .courvoisier-marquee {
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
        touch-action: pan-y;
    }

    .courvoisier-marquee.is-dragging {
        cursor: grabbing;
    }
}

.courvoisier-track img {
    -webkit-user-drag: none;
    display: block;
    width: auto;
    height: 675px;
    max-width: none;
    max-height: none;
    flex-shrink: 0;
    object-fit: cover;
}

.project-detail-inline {
    flex: 0 0 auto;
    width: 100%;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.project-detail-inline.is-visible {
    opacity: 1;
}

.project-detail-inline.is-closing,
.project-detail-inline.is-closing .divider,
.project-detail-inline.is-closing .courvoisier-rect,
.project-detail-inline.is-closing .info-panel,
.project-detail-inline.is-closing .courvoisier-marquee {
    opacity: 0;
    pointer-events: none;
}

.project-scroll.is-scroll-closing .project-detail-inline,
.project-scroll.is-scroll-closing .project-detail-inline .divider,
.project-scroll.is-scroll-closing .project-detail-inline .courvoisier-rect,
.project-scroll.is-scroll-closing .project-detail-inline .info-panel,
.project-scroll.is-scroll-closing .project-detail-inline .courvoisier-marquee {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.project-detail-inline .divider {
    position: relative;
    top: auto;
    left: 0;
    right: auto;
    width: 100%;
    z-index: 900;
}

.project-detail-inline .courvoisier-rect {
    position: relative;
    top: auto;
    left: 0;
    z-index: 901;
}

.project-detail-inline .info-panel {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    height: 0;
    margin: 0;
    z-index: auto;
}

.project-detail-inline .info-panel.is-open {
    height: 242px;
    max-height: 242px;
    opacity: 1;
}

.project-detail-inline .courvoisier-marquee {
    margin-left: -30px;
}

.project-detail-inline .category-label {
    cursor: pointer;
}

@keyframes courvoisier-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Quand le panneau est déroulé */
.info-toggle[aria-expanded="true"] ~ .project-image {
  width: min(32vw, 509px);
  max-width: calc(100vw - 68px);
  margin-top: 440px;
}

/* Mobile : barre noire et son bouton / panneau, 30px au-dessus de leur position initiale */
@media screen and (max-width: 767px) {
    .divider {
        top: 110px;
    }

    .courvoisier-rect {
        top: 131px;
    }

    .info-panel {
        top: 148px;
    }
}

/* Mobile, pages de projet : barre titre/catégorie et image ajustée à l'espace libre */
@media screen and (max-width: 767px) {
    body:has(> .courvoisier-marquee) {
        margin: 0;
        --project-bar-bottom: 131px;
        --project-bottom-nav: calc(min(68.085px, 15.83372vw) + env(safe-area-inset-bottom, 0px));
    }

    body:has(> .courvoisier-marquee) > .divider .divider-row {
        padding: 0 10px;
    }

    body:has(> .courvoisier-marquee) > .divider .category-label,
    body:has(> .courvoisier-marquee) > .divider .remarks-label {
        display: block;
        margin-left: 0;
        color: #FFF;
        font-weight: 700;
    }

    body:has(> .courvoisier-marquee) > .info-toggle {
        display: none;
    }

    body:has(> .courvoisier-marquee) {
        --project-panel-h: 0px;
    }

    body:has(> .courvoisier-marquee) > .divider {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* Indication discrète : chevron qui pivote quand le panneau est ouvert */
    body:has(> .courvoisier-marquee) > .divider .category-label::after {
        content: "\25BE";
        display: inline-block;
        margin-left: 6px;
        transition: transform 0.3s ease;
    }

    body:has(> .info-panel.is-open) > .divider .category-label::after {
        transform: rotate(180deg);
    }

    body:has(> .courvoisier-marquee) > .info-panel {
        position: fixed;
        top: var(--project-bar-bottom);
        left: 30px;
        right: 30px;
        z-index: 850;
        box-sizing: border-box;
        width: auto;
        max-width: none;
        height: var(--project-panel-h);
        max-height: none;
        padding: 0 10px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        pointer-events: none;
        transition: height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease;
    }

    body:has(> .courvoisier-marquee) > .info-panel.is-open {
        height: var(--project-panel-h);
        max-height: none;
        padding: 8px 10px;
        opacity: 1;
        pointer-events: auto;
    }

    body:has(> .courvoisier-marquee) > .courvoisier-marquee {
        box-sizing: border-box;
        width: 100%;
        min-height: 0;
        height: calc(100dvh - var(--project-bar-bottom) - var(--project-panel-h) - var(--project-bottom-nav));
        margin: calc(var(--project-bar-bottom) + var(--project-panel-h)) 0 0;
        transition: height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), margin-top 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
        padding: 12px 0;
        overflow: hidden;
        touch-action: pan-y;
        user-select: none;
        -webkit-user-select: none;
    }

    body:has(> .courvoisier-marquee) > .courvoisier-marquee .courvoisier-track {
        align-items: center;
        gap: 0;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    body:has(> .courvoisier-marquee) > .courvoisier-marquee .courvoisier-track img {
        flex: 0 0 100vw;
        box-sizing: border-box;
        width: 100vw;
        height: 100%;
        max-width: none;
        max-height: 100%;
        padding: 0 30px;
        object-fit: contain;
    }

    body.phone-project-page > .courvoisier-marquee .courvoisier-track img {
        padding: 0 45px;
    }

    body:has(> .courvoisier-marquee) > .courvoisier-marquee .courvoisier-track img.is-duplicate {
        display: none;
    }
}