/* Importation des polices */
        @import url('https://fonts.googleapis.com/css2?family=Anton&family=Cinzel:wght@400;600&family=Montserrat:wght@300;400&display=swap');

       html, body, * {
  cursor: url('../../media/general/hand_cursor.png') 4 8, auto !important;
}
        :root {

            --text-light: #F7F5F0;
            --gold: #b4893f;

            --gold-soft: #e2c896;

            --navy: #0E1B32;
            --ink: #0E1B32;
            --cream: #F7F5F0;
            --stone: rgba(247, 245, 240, .7);
            --stone-dim: rgba(247, 245, 240, .42);
            --line: rgba(180, 145, 91, .25);
            --gold-dim: rgba(180, 145, 91, .5);
            --radius: 14px;

        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background: #EDE4CE;
            color: #241F16;
            overflow-x: hidden;
 -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none; /* iOS : pas de menu "Copier" au appui long */
        }

input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

img {
    -webkit-user-drag: none;
}

        ::selection {
            background: #B4915B;
            color: #0E1B32;
        }

        .eyebrow {
            font-family: 'Jost', sans-serif;
            letter-spacing: .26em;
            text-transform: uppercase;
            font-size: .68rem;
        }

        .eyebrow::before {
            content: "";
            width: 26px;
            height: 1px;
            background: var(--gold);
        }

        .coord {
            font-family: 'Space Mono', monospace;
            font-size: .62rem;
            letter-spacing: .02em;
        }

        /* ---- scroll progress ---- */
        #progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            background: linear-gradient(90deg, #B4915B, #3E6FA6);
            z-index: 70;
            width: 0%;
        }

        /* ---- blueprint grid overlay ---- */
        .blueprint-bg {
            background-image: linear-gradient(rgba(180, 145, 91, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(180, 145, 91, .07) 1px, transparent 1px);
            background-size: 64px 64px;
        }

        .blueprint-bg-dark {
            background-image: linear-gradient(rgba(220, 196, 148, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 196, 148, .07) 1px, transparent 1px);
            background-size: 64px 64px;
        }

        /* ---- corner brackets ---- */
        .brackets {
            position: relative;
        }

        .brackets::before,
        .brackets::after,
        .brackets .bl::before,
        .brackets .br::before {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            border-color: #B4915B;
            opacity: .7;
        }

        .brackets::before {
            top: -1px;
            left: -1px;
            border-top: 1px solid;
            border-left: 1px solid;
        }

        .brackets::after {
            top: -1px;
            right: -1px;
            border-top: 1px solid;
            border-right: 1px solid;
        }

        .brackets .bl::before {
            bottom: -1px;
            left: -1px;
            border-bottom: 1px solid;
            border-left: 1px solid;
        }

        .brackets .br::before {
            bottom: -1px;
            right: -1px;
            border-bottom: 1px solid;
            border-right: 1px solid;
        }

        /* ---- reveal ---- */
        .cell {
            opacity: 0;
            transform: translateY(22px) scale(.985);
            transition: opacity 1.6s cubic-bezier(.22, .61, .36, 1), transform 1.6s cubic-bezier(.22, .61, .36, 1);
        }

        .cell.in {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        /* ---- granular text reveal (per line / per paragraph, on scroll) ---- */
        .rv {
            opacity: 0;
            transform: translateY(28px);
            transition: opacity 1.8s cubic-bezier(.22, .61, .36, 1), transform 1.8s cubic-bezier(.22, .61, .36, 1);
            transition-delay: var(--rv-delay, 0s);
            will-change: transform, opacity;
        }

        .rv.in {
            opacity: 1;
            transform: translateY(0);
        }

        .rv-heading {
            opacity: 0;
            transform: translateY(34px);
            transition: opacity 1.9s cubic-bezier(.22, .61, .36, 1), transform 1.9s cubic-bezier(.22, .61, .36, 1);
            transition-delay: var(--rv-delay, 0s);
        }

        .rv-heading.in {
            opacity: 1;
            transform: translateY(0);
        }

        /* ---- image reveal: gentle rise + unblur/scale as it enters the screen ---- */
        .rv-img {
            opacity: 0;
            transform: translateY(46px) scale(1.045);
            filter: blur(6px);
            transition: opacity 3.2s cubic-bezier(.22, .61, .36, 1), transform 3.2s cubic-bezier(.22, .61, .36, 1), filter 2.2s cubic-bezier(.22, .61, .36, 1);
        }

        .rv-img.in {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0);
        }

        /* ---- image reveal that must not disturb layout-critical transforms (fade only) ---- */
        .rv-fade {
            opacity: 0;
            transition: opacity 1.8s cubic-bezier(.22, .61, .36, 1);
        }

        .rv-fade.in {
            opacity: 1;
        }

        /* ---- fade in left, slow entrance (used only for the two intro cards) ---- */
        .fadeInLeftSlow {
            opacity: 0;
            transform: translateX(-70px);
            transition: opacity 2.4s cubic-bezier(.22, .61, .36, 1), transform 2.4s cubic-bezier(.22, .61, .36, 1);
        }

        .fadeInLeftSlow.in {
            opacity: 1;
            transform: translateX(0);
        }

        /* ---- continuous parallax drift applied via transform on scroll (JS-driven) ---- */
        .pxy {
            will-change: transform;
        }

        @media (prefers-reduced-motion: reduce) {

            .rv,
            .rv-heading,
            .rv-img,
            .rv-fade,
            .fadeInLeftSlow {
                opacity: 1 !important;
                transform: none !important;
                filter: none !important;
                transition: none !important;
            }

            .pxy {
                transform: none !important;
            }
        }

        /* ---- floating nav ---- */
        #floatnav {
            transition: box-shadow .4s ease, background-color .4s ease, transform .4s ease;
        }

        .nav-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: rgba(180, 145, 91, .4);
            transition: background-color .35s ease, transform .35s ease;
        }

        .nav-dot.active {
            background: #B4915B;
            transform: scale(1.6);
        }

        .nav-link {
            position: relative;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: -3px;
            height: 1px;
            background: var(--gold);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform .35s cubic-bezier(.22, .61, .36, 1);
        }

        .nav-link:hover::after,
        .nav-link.active::after {
            transform: scaleX(1);
        }

        /* ---- hero ---- */
        #hero {
            background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(62, 111, 166, .20), transparent 60%), linear-gradient(160deg, #0A1428 0%, #0E1B32 55%, #132248 100%);
        }

        .hero-word {
            display: inline-block;
            opacity: 0;
            transform: translateY(26px);
            animation: riseIn .85s cubic-bezier(.22, .61, .36, 1) forwards;
        }

        @keyframes riseIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .grain {
            position: absolute;
            inset: 0;
            pointer-events: none;
            opacity: .045;
            mix-blend-mode: overlay;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        }

        .tile {
            position: relative;
            transition: background-color .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease;
        }

        .tile:hover {
            border-color: #DCC494;
            background-color: rgba(220, 196, 148, .08);
            box-shadow: inset 0 0 0 1px #DCC494;
            transform: translateY(-3px);
            z-index: 1;
        }

        /* ---- marquee ---- */
        .marquee-track {
            display: flex;
            width: max-content;
            animation: marquee 26s linear infinite;
        }

        @keyframes marquee {
            from {
                transform: translateX(0);
            }

            to {
                transform: translateX(-50%);
            }
        }

        /* ---- module base ---- */
        .module {
            position: relative;
        }

        .ghost-num {
            position: absolute;
            font-family: 'Fraunces', serif;
            font-weight: 600;
            font-size: 9rem;
            line-height: 1;
            color: rgba(180, 145, 91, .08);
            pointer-events: none;
            user-select: none;
        }

        /* ---- magnetic buttons ---- */
        .magnetic {
            transition: transform .25s cubic-bezier(.22, .61, .36, 1);
            will-change: transform;
        }

        .btn-gold {
            position: relative;
            overflow: hidden;
        }

        .btn-gold::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
            transform: translateX(-120%);
            transition: transform .7s ease;
        }

        .btn-gold:hover::before {
            transform: translateX(120%);
        }

        /* ---- destination grid tiles ---- */
        .city-tile {
            cursor: pointer;
            transition: background-color .3s ease, transform .3s ease, border-color .3s ease;
        }

        .city-tile:hover {
            transform: translateY(-4px);
            border-color: #DCC494 !important;
        }

        .city-tile .arrow {
            transition: transform .3s ease;
        }

        .city-tile:hover .arrow {
            transform: translate(3px, -3px);
        }

        /* ---- map pins ---- */
        .pin {
            cursor: pointer;
        }

        .pin-dot {
            animation: pulse 2.6s ease-in-out infinite;
            transform-origin: center;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: .55;
            }

            50% {
                opacity: 1;
            }
        }

        .pin-ring {
            animation: ringpulse 2.6s ease-out infinite;
            transform-origin: center;
        }

        @keyframes ringpulse {
            0% {
                transform: scale(.6);
                opacity: .6;
            }

            100% {
                transform: scale(2.6);
                opacity: 0;
            }
        }

        .pin.active .pin-dot {
            fill: #3E6FA6;
        }

        /* ---- drawer ---- */
        #drawer-backdrop {
            opacity: 0;
            pointer-events: none;
            transition: opacity .4s ease;
        }

        #drawer-backdrop.open {
            opacity: 1;
            pointer-events: auto;
        }

        #drawer {
            transform: translateX(100%);
            transition: transform .55s cubic-bezier(.22, .61, .36, 1);
        }

        #drawer.open {
            transform: translateX(0);
        }

        /* ---- accordion ---- */
        .acc-body {
            max-height: 0;
            overflow: hidden;
            transition: max-height .55s cubic-bezier(.22, .61, .36, 1), opacity .4s ease;
            opacity: 0;
        }

        .acc-row.open .acc-body {
            opacity: 1;
        }

        .acc-icon {
            transition: transform .4s ease;
        }

        .acc-row.open .acc-icon {
            transform: rotate(45deg);
        }

        .acc-row {
            cursor: pointer;
        }

        /* ---- world map draw ---- */
        .draw-path {
            stroke-dasharray: 1400;
            stroke-dashoffset: 1400;
            transition: stroke-dashoffset 2.2s cubic-bezier(.22, .61, .36, 1);
        }

        .draw-path.in {
            stroke-dashoffset: 0;
        }

        /* ---- form ---- */
        .field {
            transition: border-color .3s ease;
        }

        input:focus,
        textarea:focus,
        button:focus-visible,
        a:focus-visible {
            outline: 2px solid #3E6FA6;
            outline-offset: 3px;
        }

        @media (prefers-reduced-motion: reduce) {
            * {
                animation: none !important;
                transition: none !important;
            }

            .cell {
                opacity: 1;
                transform: none;
            }
        }


        /* ---------- bottom nav strip ---------- */
        .citynav {
            display: flex;
            justify-content: center;
            gap: clamp(10px, 2vw, 30px);
            padding: 26px clamp(20px, 5vw, 64px) 40px;
            border-top: 1px solid var(--line);
            margin-top: 10px;
            flex-wrap: wrap;
            max-width: 1520px;
            margin-left: auto;
            margin-right: auto;
        }

        .navitem {
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            color: rgba(36, 31, 22, .35);
            padding: 4px 2px 10px;
            border-bottom: 2px solid transparent;
            transition: color .25s ease, border-color .25s ease;
            min-width: 64px;
        }

        .navitem svg {
            width: 22px;
            height: 22px;
            opacity: .7;
            transition: opacity .25s ease;
        }

        .navitem span {
            font-size: 10px;
            letter-spacing: .12em;
        }

        .navitem:hover {
            color: rgba(36, 31, 22, .65);
        }

        .navitem:hover svg {
            opacity: 1;
        }

        .navitem.active {
            color: var(--gold);
            border-color: var(--gold);
        }

        .navitem.active svg {
            opacity: 1;
        }

        .navitem:focus-visible {
            outline: 2px solid var(--gold-soft);
            outline-offset: 3px;
        }

        .fade-in {
            animation: fadeIn .4s ease both;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(4px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ---------- right column: map ---------- */
        .map-wrap {
            position: relative;
            border: 1px solid var(--line);
            background:
                radial-gradient(60% 50% at 75% 15%, rgba(201, 161, 93, 0.06), transparent 60%),
                linear-gradient(160deg, #0c1c30 0%, #081422 65%, #060f1a 100%);
            min-height: 480px;
            display: flex;
            animation: rise .9s .1s ease both;
        }

        .compass {
            position: absolute;
            top: 20px;
            right: 22px;
            width: 46px;
            height: 46px;
            opacity: .5;
        }

        .map-svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        .morocco-shape {
            fill: rgba(201, 161, 93, 0.05);
            stroke: rgba(201, 161, 93, 0.35);
            stroke-width: 1.2;
        }

        .mountain-line {
            stroke: rgba(201, 161, 93, 0.3);
            stroke-width: 1;
            fill: none;
        }

        .coast-tick {
            stroke: rgba(147, 162, 184, 0.4);
            stroke-width: 1;
        }

        .dune-dot {
            fill: rgba(201, 161, 93, 0.28);
        }

        .sail {
            opacity: .35;
        }

        .grid-dash {
            stroke: rgba(147, 162, 184, 0.08);
            stroke-width: 1;
            stroke-dasharray: 2 5;
        }

        .pin-group {
            cursor: pointer;
        }

        .pin-halo {
            fill: rgba(201, 161, 93, 0.16);
            transform-origin: center;
            transition: r .3s ease, opacity .3s ease;
        }

        .pin-group.active .pin-halo {
            animation: pulse 2.6s ease-in-out infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: .55;
            }

            50% {
                opacity: .15;
            }
        }

        .pin-dot {
            fill: rgba(36, 31, 22, .65);
            stroke: var(--ink);
            stroke-width: 1.4;
            transition: fill .25s ease, r .25s ease;
        }

        .pin-group:hover .pin-dot,
        .pin-group.active .pin-dot {
            fill: var(--gold-soft);
        }

        .pin-group.active .pin-dot {
            r: 5.5;
        }

        .pin-label {
            font-family: 'Jost', sans-serif;
            font-size: 11px;
            letter-spacing: .14em;
            fill: rgba(36, 31, 22, .65);
            transition: fill .25s ease, font-weight .2s ease;
            pointer-events: none;
        }

        .pin-group:hover .pin-label,
        .pin-group.active .pin-label {
            fill: var(--ink);
        }

        .pin-group:focus-visible {
            outline: none;
        }

        .pin-group:focus-visible .pin-dot {
            stroke: var(--gold-soft);
            stroke-width: 2.5;
        }

        /* pagination */
        .pager {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-top: 26px;
        }

        .pager button {
            width: 34px;
            height: 34px;
            border: 1px solid var(--line);
            background: transparent;
            color: var(--gold);
            cursor: pointer;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all .2s ease;
        }

        .pager button:hover {
            border-color: var(--gold);
            background: rgba(201, 161, 93, .08);
        }

        .pager button:focus-visible {
            outline: 2px solid var(--gold-soft);
            outline-offset: 2px;
        }

        .pager .count {
            font-size: 12px;
            letter-spacing: .14em;
            color: rgba(36, 31, 22, .65);
            font-variant-numeric: tabular-nums;
            border: 1px solid var(--line);
            padding: 8px 16px;
        }

        .pager .count b {
            color: var(--gold);
            font-weight: 500;
        }

        /* ---------- city detail card ---------- */
        .card {
            background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .7));
            border: 1px solid var(--line);
            border-radius: var(--radius);
            overflow: hidden;
            display: flex;
            min-height: 210px;
        }

        @media (max-width:560px) {
            .card {
                flex-direction: column;
            }
        }

        .card-media {
            width: 42%;
            min-width: 150px;
            position: relative;
            overflow: hidden;
            border-right: 1px solid var(--line);
        }

        @media (max-width:560px) {
            .card-media {
                width: 100%;
                height: 170px;
                border-right: none;
                border-bottom: 1px solid var(--line);
            }
        }

        .card-media .art {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity .5s ease, transform .6s ease;
        }

        .card-media svg {
            width: 64%;
            height: 64%;
            opacity: .92;
        }

        .card-media .grain {
            position: absolute;
            inset: 0;
            background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
            background-size: 5px 5px;
            mix-blend-mode: overlay;
            opacity: .5;
            pointer-events: none;
        }

        .card-media .vignette {
            position: absolute;
            inset: 0;
            box-shadow: inset 0 0 40px 10px rgba(0, 0, 0, .55);
            pointer-events: none;
        }

        .card-media .tag {
            position: absolute;
            left: 10px;
            bottom: 10px;
            font-size: 10px;
            letter-spacing: .18em;
            color: var(--gold);
            background: rgba(10, 20, 32, .6);
            padding: 4px 8px;
            border: 1px solid var(--line);
        }

        .card-body {
            flex: 1;
            padding: 22px 24px 20px;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .card-body .arrow-back {
            position: absolute;
            top: 20px;
            right: 22px;
            color: rgba(36, 31, 22, .35);
            font-size: 13px;
            letter-spacing: .1em;
        }

        .card-name {
            font-size: 11px;
            letter-spacing: .24em;
            color: var(--gold);
            margin: 0 0 10px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .card-name::before {
            content: "◆";
            font-size: 8px;
        }

        .card-text {
            color: rgba(36, 31, 22, .65);
            font-size: 13.5px;
            line-height: 1.7;
            font-weight: 300;
            flex: 1;
            transition: opacity .35s ease;
            scrollbar-width: thin;
            scrollbar-color: rgb(220 196 148 / 0.8) transparent;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }

        .cta {
            align-self: flex-start;
            margin-top: 16px;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: none;
            border: 1px solid var(--gold-dim);
            color: var(--gold);
            font-size: 11px;
            letter-spacing: .2em;
            padding: 11px 18px;
            cursor: pointer;
            transition: all .25s ease;
        }

        .cta:hover {
            background: var(--gold);
            color: #0a1420;
            border-color: var(--gold);
            transform: translateX(2px);
        }

        .cta:focus-visible {
            outline: 2px solid var(--gold-soft);
            outline-offset: 3px;
        }

        /* ---------- layout ---------- */
        .stage {
            display: grid;
            grid-template-columns: minmax(680px, 480px) 1fr;
            gap: clamp(24px, 4vw, 56px);
            padding: clamp(24px, 4vw, 56px) clamp(20px, 5vw, 64px) 20px;
            align-items: stretch;
            max-width: 1520px;
            margin: 0 auto;
            background: radial-gradient(120% 90% at 78% 8%, #FBF8F0 0%, var(--cream) 45%, #EDE4CE 100%);
        }

        @media (max-width: 980px) {
            .stage {
                grid-template-columns: 1fr;
            }
        }


        /* ---------- top bar ---------- */
        .topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 28px clamp(20px, 5vw, 64px) 0;
            letter-spacing: .16em;
        }

        .brand svg {
            width: 20px;
            height: 20px;
        }

        .top-compass {
            width: 26px;
            height: 26px;
            opacity: .55;
        }


        /* ---------- left column ---------- */


        h1.headline {
            font-family: 'Cormorant Garamond', serif;
            font-weight: 500;
            font-size: clamp(38px, 4.6vw, 58px);
            line-height: 1.06;
            margin: 0 0 20px;
            color: var(--ink);
        }

        h1.headline em {
            font-style: italic;
            color: var(--gold);
        }

        .lede {
            color: rgba(36, 31, 22, .65);
            font-size: 14.5px;
            line-height: 1.75;
            max-width: 42ch;
            margin: 0 0 30px;
            font-weight: 300;
        }

        .rule {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 30px;
        }

        .rule .dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--gold);
            flex: none;
        }

        .rule .line {
            height: 1px;
            flex: 1;
            background: linear-gradient(90deg, var(--line), transparent);
        }


        /* Experiences Section */
        #experiences {
            padding-bottom: 0;
        }

        .experience-header {
            text-align: center;
            margin-bottom: 3.5rem;
        }

        .experience-header h2 {
            font-size: clamp(2rem, 4.2vw, 3.4rem);
            line-height: 1.15;
            color: var(--text-light);
            font-weight: 500;
            letter-spacing: -.01em;
        }

        .exp-divider {
            width: 56px;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--gold), transparent);
        }

        .experience-block {
            position: sticky;
            top: 0;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            overflow: hidden;
            color: var(--text-light);
        }

        .exp-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            transition: transform .2s ease-out;
            will-change: transform;
        }

        .experience-block::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(17, 34, 54, 0.4);
            z-index: 1;
        }

        .exp-content {
            position: relative;
            z-index: 2;
        }

        .exp-content h3 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            letter-spacing: 2px;
        }

        .exp-content p {
            font-size: 1.1rem;
            font-weight: 300;
            margin-bottom: 2rem;
        }

        .exp-explore {
            font-size: 0.75rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            border-bottom: 1px solid transparent;
            padding-bottom: 4px;
            transition: var(--transition);
            cursor: pointer;
        }

        .experience-block:hover .exp-explore {
            border-bottom-color: var(--text-light);
        }

        /* ---------- CENTRAL HOVER : SHOW ALL ---------- */

        .hotspot-center {
            position: absolute;
            z-index: 6;
            left: 440px;
            top: 430px;
            width: 160px;
            height: 150px;
            cursor: pointer;
        }

        /* Quand on survole le centre de la main,
   afficher toutes les sections */
        .hotspot-center:hover~.label-01,
        .hotspot-center:hover~.label-02,
        .hotspot-center:hover~.label-03,
        .hotspot-center:hover~.label-04,
        .hotspot-center:hover~.label-05 {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        /* Remettre les animations dans leur position normale */
        .hotspot-center:hover~.label-01 {
            transform: translateX(0);
        }

        .hotspot-center:hover~.label-02 {
            transform: translateY(0) translateX(-50%);
        }

        .hotspot-center:hover~.label-03 {
            transform: translateX(0);
        }

        .hotspot-center:hover~.label-04 {
            transform: translateX(0);
        }

        .hotspot-center:hover~.label-05 {
            transform: translateX(0);
        }

        /* ---------- MOBILE / TOUCH: tap instead of hover ---------- */
        @media (hover:none) {
            .hotspot {
                z-index: 2;
            }

            .hand-img {
                pointer-events: none;
            }
        }



        /* ---- always visible: content shown from the start, no hover reveal ---- */
        .label-02,
        .side-block {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .label-02 {
            transform: translateX(-50%);
        }

        .side-block.left,
        .side-block.right {
            transform: translateX(0);
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }

        .side-block.left .section-header {
            justify-content: flex-end;
        }

        .side-block.right .section-header {
            justify-content: flex-start;
        }

        .label-02 .section-header {
            flex-direction: column;
            gap: 6px;
            justify-content: center;
        }

        .num {
            width: 40px;
            height: 40px;
            border-radius: 50%;
           
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Cormorant Garamond', serif;
            font-weight: 600;
            font-size: 19px;
            flex-shrink: 0;
        }

        .section-title {
            font-family: 'Cormorant Garamond', serif;
            font-weight: 700;
            color: var(--navy);
            font-size: 24px;
            line-height: 1.2;
            letter-spacing: .4px;
            text-transform: uppercase;
        }

        .label-02 .section-title {
            text-align: center;
            font-size: 22px;
        }

        .section-list {
            list-style: none;
        }

        .section-list li {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 15px;
            color: var(--ink);
            margin-bottom: 8px;
        }

        .side-block.left .section-list li {
            justify-content: flex-end;
        }

        .side-block.right .section-list li {
            justify-content: flex-start;
        }

        .label-02 .section-list {
            display: inline-block;
            text-align: left;
            margin-top: 4px;
        }

        .ico {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            color: var(--gold);
            stroke: var(--gold);
        }

        .dot {
            position: absolute;
            top: 50%;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--gold);
            transform: translateY(-50%);
        }

        .side-block.left .dot {
            right: -16px;
        }

        .side-block.right .dot {
            left: -16px;
        }

        /* ---------- MEZ WAY: content font sizes bumped up (always visible, no hide/show) ---------- */
        .side-block {
            width: 300px;
        }

        .side-block p.text-\[10px\],
        .label-02 p.text-\[10px\] {
            font-size: 13px;
            letter-spacing: 0.15em;
        }

        .side-block .text-sm,
        .label-02 .text-sm {
            font-size: 17px;
            line-height: 1.6;
        }

        .label-02 {
            width: 380px;
        }

        /* ---------- STAGE ---------- */
        .hand-stage {
            position: relative;
            width: 100%;
            max-width: 1040px;
            margin: 0 auto;
            min-height: 820px;
        }

        /* Sur desktop ce wrapper est transparent : hotspots/hand-img restent positionnes
           directement par rapport a .hand-stage, comme avant. Seul le CSS mobile
           (@media max-width:900px, plus bas) lui donne une vraie boite pour ancrer les
           points tactiles sur l'image. */
        .hand-img-wrap {
            display: contents;
        }

        /* Invite au tap : masquee par defaut (desktop), rendue visible+animee seulement
           dans la media query mobile ci-dessous. */
        .mez-tap-hint {
            display: none;
        }

        /* invisible hover zones placed over each finger / lobe of the artwork */
        .hotspot {
            position: absolute;
            z-index: 5;
            cursor: pointer;
            /* uncomment the next line while positioning to see the zones */
            /* background:rgba(180,137,63,.25); */
        }

        .hotspot-01 {
            left: 415px;
            top: 266px;
            width: 68px;
            height: 152px;
            /* stops at 418px so it no longer overlaps hotspot-04 below it */
        }

        .hotspot-02 {
            left: 483px;
            top: 250px;
            width: 77px;
            height: 220px;
        }

        .hotspot-03 {
            left: 560px;
            top: 284px;
            width: 68px;
            height: 134px;
            /* stops at 418px so it no longer overlaps hotspot-05 below it */
        }

        .hotspot-04 {
            left: 330px;
            top: 418px;
            width: 110px;
            height: 228px;
        }

        .hotspot-05 {
            left: 604px;
            top: 418px;
            width: 110px;
            height: 228px;
        }

        .hand-img {
            position: absolute;
            left: 50%;
            top: 280px;
            width: 460px;
            transform: translateX(-50%);
            display: block;
            z-index: 1;
            pointer-events: none;
            /* clicks/hover go through to the hotspots above */
        }

        /* Le bloc mobile (@media max-width:900px) qui repositionne .hand-img et les
           .hotspot-0X est place ICI, APRES leurs regles de base ci-dessus : en CSS, a
           specificite egale, c'est l'ordre dans le fichier qui tranche, meme entre une
           regle normale et une regle dans une media query. Le mettre avant (comme c'etait
           le cas precedemment) faisait perdre systematiquement la cascade au profit des
           valeurs desktop fixes en pixels, meme sur mobile. */
        @media (max-width:900px) {
            .hand-stage {
                min-height: auto;
            }

            /* La main + ses 5 points tactiles ("doigts") vivent dans un cadre a la taille
               exacte de l'image, pour que les positions en % des hotspots tombent juste.
               IMPORTANT : la regle de base (.hand-img-wrap { display:contents; }) doit etre
               explicitement annulee ici, sinon le cadre n'existe jamais reellement et
               l'image + les points tactiles se positionnent n'importe ou (voire disparaissent). */
            .hand-img-wrap {
                display: block;
                position: relative;
                width: 80%;
                max-width: 420px;
                margin: 0 auto 10px;
            }

            .hand-img {
                position: static;
                transform: none;
                width: 100%;
                max-width: none;
                display: block;
                margin: 0;
                pointer-events: auto;
            }

            /* Zones tactiles INVISIBLES couvrant tout le doigt (comme les zones de survol
               desktop, juste transposees en % pour mobile) : au tap, ouvre la popup
               correspondante (voir JS). Aucun style visuel — seule l'image doit se voir. */
            .hotspot {
                display: block;
                position: absolute;
                margin: 0;
                z-index: 5;
                cursor: pointer;
                background: transparent;
                border: none;
                box-shadow: none;
            }

            /* Positions ET tailles approximatives, calquees sur les zones de survol desktop
               (chaque zone couvre tout le doigt, pas juste un point) */
            .hotspot-01 { left: 27%; top: 2%;  width: 15%; height: 32%; }
            .hotspot-02 { left: 41%; top: 0%;  width: 17%; height: 40%; }
            .hotspot-03 { left: 58%; top: 3%;  width: 15%; height: 30%; }
            .hotspot-04 { left: 9%;  top: 30%; width: 24%; height: 45%; }
            .hotspot-05 { left: 67%; top: 30%; width: 24%; height: 45%; }

            /* Invite au tap : le texte lui-meme bouge doucement (montee/descente + variation
               d'opacite), sous la main. Uniquement mobile. */
            .mez-tap-hint {
                display: flex;
                justify-content: center;
                margin: 4px auto 18px;
            }

            .mez-tap-hint-text {
                font-family: 'Jost', sans-serif;
                letter-spacing: .18em;
                text-transform: uppercase;
                font-size: 10px;
                color: rgba(14, 27, 50, .55);
                display: inline-block;
                animation: mezTapMove 1.8s ease-in-out infinite;
            }

            @keyframes mezTapMove {
                0%, 100% { transform: translateY(0); opacity: .55; }
                50%      { transform: translateY(-5px); opacity: 1; }
            }

            .hotspot-center {
                display: none;
            }

            /* Le contenu (titre + texte) ne s'affiche plus en permanence sous la main :
               il n'apparait que dans la popup ouverte au tap d'un point tactile. */
            .side-block,
            .label-02 {
                display: none;
            }

            .dot {
                display: none;
            }
        }

        .label-02 {
            position: absolute;
            top: 0;
            left: 50%;
            width: 320px;
            text-align: center;
            z-index: 4;
        }

        .side-block {
            position: absolute;
            width: 250px;
            z-index: 4;
        }

        .side-block.left {
            left: 0;
            text-align: right;
        }

        .side-block.right {
            right: 0;
            text-align: left;
        }

        .label-01 {
            top: 300px;
        }

        .label-03 {
            top: 300px;
        }

        .label-04 {
            top: 660px;
        }

        .label-05 {
            top: 660px;
        }

        .header {
            text-align: center;
            padding-top: 10px;
        }

        .hamsa-logo {
            width: 100px;
            height: auto;
            margin: 0 auto 10px;
            display: block;
        }

        .hand-brand {
            letter-spacing: 6px;
            font-size: 20px;
            color: var(--navy);
            font-weight: 600;
            margin-bottom: 22px;
        }

        .tagline-1 {
            font-family: 'Cormorant Garamond', serif;
            font-style: italic;
            letter-spacing: 3px;
            color: var(--navy);
            font-size: 24px;
            margin-bottom: 4px;
        }

        .tagline-2 {
            font-family: 'Cormorant Garamond', serif;
            font-weight: 600;
            letter-spacing: 2px;
            color: var(--gold);
            font-size: 42px;
        }

        .divider {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            margin: 24px auto 12px;
            width: 260px;
        }

        .divider .line {
            flex: 1;
            height: 1px;
            background: var(--gold);
        }

        .divider .diamond {
            width: 8px;
            height: 8px;
            background: var(--gold);
            transform: rotate(45deg);
        }

        .hint {
            text-align: justify;
            font-style: italic;
            color: #8a7a5c;
            font-size: 14px;
            letter-spacing: .5px;
            margin-bottom: 26px;
        }

        /* ---- MEZ WAY: left text / right hand layout ----
           La scène (main + 5 blocs) est dessinée sur 1040px de large. Au-dessus de 900px,
           le script "MEZ WAY — fit" calcule l'échelle exacte pour qu'elle tienne dans son
           conteneur. Les valeurs ci-dessous ne servent que de repli si le JS est désactivé. */
        .mezway-hand-outer {
            position: relative;
            width: 100%;
            overflow: hidden;
        }

        /* ---- MEZ WAY : main centrée, sans changer sa taille (desktop) ---- */
@media (min-width: 901px) {
    #mezway .mezway-hand-outer {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: none;
    }

    #mezway .mezway-hand-outer .hand-stage {
        flex: 0 0 auto;
        margin: 0;
        transform-origin: top center !important;
    }
}

        /* ---- MEZ WAY: tablette / mobile (<= 900px) : mise en page empilée ----
           Ce bloc est volontairement placé APRES les règles .hand-stage / .side-block / .label-0X
           de la scène : sinon celles-ci (position:absolute, width:250px...) l'écrasent. */
        @media (max-width: 900px) {
            .mezway-hand-outer {
                height: auto;
            }

            .mezway-hand-outer .hand-stage {
                width: 100%;
                min-height: auto;
                transform: none;
            }

            /* (positions, tailles et affichage des points tactiles + masquage des blocs de
               texte sont deja geres par les regles .hand-img-wrap / .hotspot / .side-block
               generiques plus haut — rien a repeter ici, ce bloc ne fait que la mise en page
               generale de .mezway-hand-outer) */
        }

        /* ---- MEZ WAY: bloc texte "ROOTED HERE" ----
           Tout le contenu (titres, séparateur, mention ODV, paragraphe) est centré quand la main
           passe en dessous (< 1280px). En 2 colonnes (>= 1280px) il repasse aligné à gauche. */
        #mezway .mezway-intro {
            text-align: center;
        }

        #mezway .mezway-intro .hint {
            display: block;
            text-align: center;
            max-width: 460px;
            margin-left: auto;
            margin-right: auto;
        }

        @media (min-width: 1280px) {
            #mezway .mezway-intro {
                text-align: left;
            }

            #mezway .mezway-intro .divider {
                margin-left: 0;
                margin-right: 0;
            }

            #mezway .mezway-intro .hint {
                text-align: justify;
                max-width: 100%;
                margin-left: 0;
                margin-right: 0;
            }
        }

        /* ---- Section WHERE THE COLLECTION BEGINS (uniquement) ----
           Sur les écrans moins larges, l'arche et les zellige de l'image de fond passent sous le texte
           et le rendent illisible. Sur tablette et mobile (<= 1090px), le texte est posé sur un panneau
           beige translucide et dépoli (comme un verre). Sur la version web (> 1090px), rien ne
           change : le texte reste directement sur le mur de l'image. */
        @media (max-width: 1090px) {
            section .collection-text {
                margin-left: 1rem;
                padding: 1.5rem 1.5rem 1.75rem;
                background: rgba(244, 238, 225, .86);
                -webkit-backdrop-filter: blur(14px);
                backdrop-filter: blur(14px);
                border: 1px solid rgba(180, 145, 91, .32);
                border-radius: 1.5rem;
                box-shadow: 0 24px 60px -28px rgba(14, 27, 50, .38);
            }

            /* texte un peu plus contrasté sur le panneau */
            section .collection-text .space-y-4 p {
                color: rgba(14, 27, 50, .84);
            }

            section .collection-text p.italic {
                color: rgba(14, 27, 50, .72);
            }
        }

        @media (min-width: 768px) and (max-width: 1090px) {
            section .collection-text {
                margin-left: 3.5rem;
                padding: 2.25rem 2.5rem 2.5rem;
                max-width: 40rem;
            }
        }

        /* ---- Colonne de contenu commune ----
           Toutes les sections (A KINGDOM OF CONTRASTS, MORE THAN, EVERY REASON, ROOTED HERE,
           Leadership, The MEZ Bridge) démarrent à la même distance du bord gauche que le texte de
           "WHERE THE COLLECTION BEGINS" :
             - mobile (< 768px)      : 24px  (même marge que la droite, le hero, la galerie et le footer)
             - tablette (768-1090px) : 144px (48 + 56 + 40)
             - web (> 1090px)        : 128px (48 + 80)
           Le contenu est aligné à gauche (plus de centrage mx-auto), donc la position ne dépend
           plus de la largeur de l'écran. */
        :root {
            --content-left: 1.5rem;
            --content-right: 1.5rem;
        }

        @media (min-width: 768px) {
            :root {
                --content-left: 9rem;
                --content-right: 2.5rem;
            }
        }

        @media (min-width: 1091px) {
            :root {
                --content-left: 8rem;
            }
        }

        section .content-col {
            width: 100%;
            max-width: calc(var(--content-left) + 84rem);
            margin-left: 0;
            margin-right: 0;
            padding-left: var(--content-left);
            padding-right: var(--content-right);
        }

        /* #destination a son propre padding de section (16px, puis 32px dès 768px) : on le compense */
        #destination .content-col {
            padding-left: calc(var(--content-left) - 1rem);
            padding-right: 0;
        }

        @media (min-width: 768px) {
            #destination .content-col {
                padding-left: calc(var(--content-left) - 2rem);
            }
        }

        /* ---- Labels de section (01 MEET MEZ, CHAPTER 01 — MEZ MOROCCO, 03 THE SOUL OF MOROCCO...) ----
           Tablette et web (>= 768px) : verticaux, sur le côté gauche (comportement inchangé).
           Mobile (< 768px) : horizontaux, sur une ligne juste au-dessus du contenu de la section,
           alignés sur la même colonne de départ que le texte. */
        @media (max-width: 767px) {
            section .side-label {
                position: relative;
                top: auto;
                left: auto;
                transform: none;
                flex-direction: row;
                align-items: center;
                justify-content: flex-start;
                gap: .6rem;
                padding: 1.25rem 1.5rem .25rem calc(var(--content-left) - var(--sec-pad, 0px));
            }

            /* sections qui ont leur propre padding : on le compense pour rester sur la même colonne */
            #collection {
                padding-left: 1.5rem;
                padding-right: 1.5rem;
            }

            #collection .side-label {
                --sec-pad: 1.5rem;
                padding-top: 0;
            }

            /* A KINGDOM OF CONTRASTS : padding de section 16px -> on complète à droite pour avoir 24px des deux côtés */
            #destination .content-col {
                padding-right: .5rem;
            }

            #destination .side-label {
                --sec-pad: 1rem;
                padding-top: 0;
            }

            section .side-label .writing-mode-vertical {
                writing-mode: horizontal-tb;
                transform: none;
                margin-top: 0;
                font-size: 10px;
                letter-spacing: .22em;
                white-space: nowrap;
            }

            /* blocs texte des deux sections Collection : plus besoin de gouttière pour le label vertical */
            section .fadeInLeftSlow:not(.collection-text) {
                padding-left: 0;
            }

            section .collection-text {
                margin-left: 0;
            }
        }
    

        .brand {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: .28em;
            color: var(--gold);
        }

        .brand svg {
            width: 18px;
            height: 18px;
        }

        .stage {
            display: grid;
            grid-template-columns: minmax(680px, 380px) 1fr;
            gap: clamp(16px, 2.5vw, 32px);
            padding: clamp(10px, 2vw, 20px) clamp(16px, 4vw, 48px) 10px;
            max-width: 1600px;
            width: 100%;
            margin: 0 auto;
            flex: 1;
            min-height: 0;
            align-items: center;
        }

        @media (max-width: 850px) {
            .stage {
                grid-template-columns: 1fr;
                overflow-y: auto;
            }

            body {
                overflow: auto;
            }
        }

        .intro {
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 0;
        }

        .eyebrow {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 10px;
            letter-spacing: .32em;
            color: var(--gold);
            margin-bottom: 6px;
            font-weight: 500;
        }

        .eyebrow::before {
            content: "";
            width: 20px;
            height: 1px;
            background: var(--gold);
        }

        h1.headline {
            font-family: 'Cormorant Garamond', serif;
            font-weight: 500;
            font-size: clamp(26px, 3vw, 38px);
            line-height: 1.05;
            margin: 0 0 8px;
            color: var(--ink);
        }

        h1.headline em {
            font-style: italic;
            color: var(--gold);
        }

        .lede {
            color: rgba(36, 31, 22, .65);
            font-size: 12px;
            line-height: 1.5;
            margin: 0 0 14px;
            font-weight: 300;
        }

        .card {
            background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .7));
            border: 1px solid var(--line);
            border-radius: var(--radius);
            overflow: hidden;
            display: flex;
            min-height: 140px;
        }

        .card-media {
            width: 35%;
            min-width: 100px;
            position: relative;
            overflow: hidden;
            border-right: 1px solid var(--line);
        }

        .card-media .art {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .card-media svg {
            width: 50%;
            height: 50%;
            opacity: .92;
        }

        .card-body {
            flex: 1;
            padding: 14px;
            display: flex;
            flex-direction: column;
        }

        .card-name {
            font-size: 10px;
            letter-spacing: .24em;
            color: var(--gold);
            margin: 0 0 6px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .card-name::before {
            content: "◆";
            font-size: 7px;
        }

        .card-text {
            color: rgba(36, 31, 22, .65);
            font-size: 12px;
            line-height: 1.5;
            font-weight: 300;
            flex: 1;
        }

        .cta {
            align-self: flex-start;
            margin-top: 10px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: none;
            border: 1px solid var(--gold-dim);
            color: var(--gold);
            font-size: 9px;
            letter-spacing: .2em;
            padding: 6px 12px;
            cursor: pointer;
            transition: all .25s ease;
        }

        .cta:hover {
            background: var(--gold);
            color: #0a1420;
            border-color: var(--gold);
        }

        .pager {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 12px;
        }

        .pager button {
            width: 28px;
            height: 28px;
            border: 1px solid var(--line);
            background: transparent;
            color: var(--gold);
            cursor: pointer;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
        }

        .pager .count {
            font-size: 11px;
            letter-spacing: .14em;
            color: rgba(36, 31, 22, .65);
            border: 1px solid var(--line);
            padding: 4px 10px;
        }

        .pager .count b {
            color: var(--gold);
            font-weight: 500;
        }

        /* Carte ajustée à la taille exacte de l'image */
        .map-wrap {
            position: relative;
            border: 1px solid var(--line);
            background: var(--cream);
            display: inline-block;
            width: fit-content;
            height: fit-content;
            max-height: 100%;
            max-width: 100%;
            overflow: hidden;
            margin: 0 auto;
        }

        .map-container {
            position: relative;
            display: inline-block;
            vertical-align: middle;
            line-height: 0;
            max-height: 100%;
            max-width: 100%;
        }

        .map-img {
            display: block;
            max-height: calc(100vh - 160px);
            max-width: 100%;
            width: auto;
            height: auto;
            user-select: none;
        }

        .map-overlay-svg {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }

        /* Target invisible sur l'image qui réagit au survol */
        .city-node {
            cursor: pointer;
            outline: none;
        }

        .city-node .hit-area {
            fill: transparent;
        }

        /* Aura lumineuse statique au survol / sélection */
        .city-node .hover-glow {
            fill: var(--gold);
            opacity: 0;
            transform-origin: center;
            transition: opacity 0.25s ease;
            filter: drop-shadow(0 0 8px var(--gold));
        }

        .city-node .pin-point {
            fill: var(--gold-soft);
            stroke: var(--ink);
            stroke-width: 1.5;
            opacity: 0.6;
            transition: all 0.25s ease;
        }

        .city-node:hover .hover-glow,
        .city-node:focus-visible .hover-glow,
        .city-node.active .hover-glow {
            opacity: 0.4;
        }

        .city-node:hover .pin-point,
        .city-node:focus-visible .pin-point,
        .city-node.active .pin-point {
            fill: #c9a15d;
            opacity: 1;
            r: 5;
        }

        .citynav {
            display: flex;
            justify-content: flex-start;
            gap: 8px;
            padding: 10px clamp(16px, 4vw, 48px);
            border-top: 1px solid var(--line);
            overflow-x: auto;
            flex-wrap: nowrap;
            max-width: 1600px;
            width: 100%;
            margin: 16px auto 0;
            grid-column: 1 / -1;
            flex-shrink: 0;
            scrollbar-width: thin;
            scrollbar-color: rgb(220 196 148 / 0.8) transparent;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }

        .citynav::-webkit-scrollbar {
            height: 6px;
        }

        .citynav::-webkit-scrollbar-thumb {
            background: var(--gold);
            border-radius: 4px;
        }

        .citynav::-webkit-scrollbar-track {
            background: transparent;
        }

        .navitem {
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            color: rgba(36, 31, 22, .35);
            padding: 2px 6px 4px;
            border-bottom: 2px solid transparent;
            transition: color .25s ease, border-color .25s ease;
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .navitem svg {
            width: 16px;
            height: 16px;
            opacity: .7;
        }

        .navitem span {
            font-size: 9px;
            letter-spacing: .12em;
            white-space: nowrap;
        }

        .navitem:hover {
            color: rgba(36, 31, 22, .65);
        }

        .navitem.active {
            color: var(--gold);
            border-color: var(--gold);
        }

        .navitem.active svg {
            opacity: 1;
        }

        .fade-in {
            animation: fadeIn .35s ease both;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .card {
            min-height: 340px;
        }

        .card-tagline {
            font-family: 'Cormorant Garamond', serif;
            font-style: italic;
            color: var(--gold);
            font-size: 13px;
            margin: 0 0 8px;
            line-height: 1.4;
        }

        .card-text {
            max-height: 220px;
            overflow-y: auto;
            padding-right: 6px;
        }

        .card-text p {
            margin-bottom: 8px;
        }

        .card-text::-webkit-scrollbar {
            width: 4px;
        }

        .card-text::-webkit-scrollbar-thumb {
            background: var(--gold);
            border-radius: 4px;
        }

        .card-closing {
            font-family: 'Cormorant Garamond', serif;
            font-style: italic;
            color: var(--gold);
            font-size: 12px;
            margin-top: 8px;
        }

        #cardArt {
            width: 56px;
            height: 56px;
            border-radius: 10px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, .12);
        }

        #destination {
            background: #EDE4CE;

        }
    

        .gallery-card {
            background: rgba(244, 238, 225, .55);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border: 1px solid rgba(180, 145, 91, .25);
            box-shadow: 0 20px 40px -18px rgba(14, 27, 50, .22), 0 0 1px 1px rgba(255, 255, 255, .5);
            transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease, transform .5s cubic-bezier(.22, .61, .36, 1);
        }

        .gallery-card:hover {
            background: rgba(244, 238, 225, .8);
            border-color: rgba(180, 145, 91, .55);
            box-shadow: 0 30px 60px -14px rgba(14, 27, 50, .3), 0 0 1px 1px rgba(255, 255, 255, .7);
        }

        .gallery-tag {
            position: absolute;
            top: 14px;
            right: 14px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, .5);
            background: rgba(14, 27, 50, .45);
            backdrop-filter: blur(6px);
            color: var(--ink);
            font-family: 'Jost', sans-serif;
            letter-spacing: .14em;
            font-size: .62rem;
            text-transform: uppercase;
            padding: 6px 12px;
        }

        .gallery-open {
            transition: color .3s ease, gap .3s ease;
        }

        .gallery-icon {
            height: 38px;
            width: 38px;
            border-radius: 999px;
            background: rgba(180, 145, 91, .12);
            border: 1px solid rgba(180, 145, 91, .35);
            color: var(--gold);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all .3s ease;
        }

        .gallery-card:hover .gallery-icon {
            background: var(--gold);
            border-color: var(--gold);
            color: #0a1420;
            transform: scale(1.08);
        }

        .gallery-card:hover .gallery-img {
            transform: scale(1.1);
        }

        .gallery-img {
            transition: transform .7s cubic-bezier(.22, .61, .36, 1);
        }

        .gallery-auto-img {
            transition: opacity .6s ease;
        }

        #gallery-modal {
            background: rgba(6, 13, 22, .78);
            backdrop-filter: blur(28px);
            -webkit-backdrop-filter: blur(28px);
            opacity: 0;
            transition: opacity .5s ease;
        }

        #gallery-modal.gm-open {
            opacity: 1;
        }

        #gallery-modal-container {
            background: linear-gradient(180deg, rgba(19, 34, 62, .92), rgba(6, 13, 22, .96));
            border: 1px solid rgba(220, 196, 148, .25);
            box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .6);
            transform: scale(.95);
            transition: transform .5s cubic-bezier(.22, .61, .36, 1);
        }

        #gallery-modal.gm-open #gallery-modal-container {
            transform: scale(1);
        }

        .gm-pill {
            font-family: 'Jost', sans-serif;
            letter-spacing: .18em;
            text-transform: uppercase;
            font-size: .68rem;
        }

        .gm-nav-btn {
            transition: all .3s ease;
        }

        .gm-nav-btn:active {
            transform: scale(.9);
        }

        .gm-img-fade {
            transition: opacity .4s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1);
        }
    

        .people-card {
            background: rgba(244, 238, 225, .55);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border: 1px solid rgba(180, 145, 91, .25);
            box-shadow: 0 20px 40px -18px rgba(14, 27, 50, .22), 0 0 1px 1px rgba(255, 255, 255, .5);
            border-radius: 1.5rem;
            overflow: hidden;
            transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease, transform .35s cubic-bezier(.22, .61, .36, 1);
        }

        .people-card:hover {
            background: rgba(244, 238, 225, .8);
            border-color: rgba(180, 145, 91, .55);
            transform: translateY(-4px);
            box-shadow: 0 30px 60px -14px rgba(14, 27, 50, .3), 0 0 1px 1px rgba(255, 255, 255, .7);
        }

        .people-avatar {
            position: relative;
            aspect-ratio: 1 / 1;
            overflow: hidden;
            background: #ECE2CC;
        }

        .people-avatar svg {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }

        .people-avatar img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity .5s ease;
        }

        .people-avatar img.loaded {
            opacity: 1;
        }

        .client-card {
            background: rgba(244, 238, 225, .5);
            border: 1px solid rgba(180, 145, 91, .2);
            border-radius: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            height: 110px;
            transition: border-color .3s ease, background-color .3s ease, transform .3s ease;
        }

        .client-card:hover {
            border-color: rgba(180, 145, 91, .5);
            background: rgba(244, 238, 225, .8);
            transform: translateY(-2px);
        }

        .client-card img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            filter: grayscale(1) opacity(.7);
            transition: filter .3s ease;
        }

        .client-card:hover img {
            filter: grayscale(0) opacity(1);
        }

        .testimonial-card {
            background: rgba(244, 238, 225, .55);
            border: 1px solid rgba(180, 145, 91, .25);
            border-radius: 1.5rem;
            padding: 1.75rem;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            transition: background-color .4s ease, border-color .4s ease, transform .35s ease;
        }

        .testimonial-card:hover {
            background: rgba(244, 238, 225, .8);
            border-color: rgba(180, 145, 91, .5);
            transform: translateY(-3px);
        }

        .testimonial-avatar {
            position: relative;
            width: 46px;
            height: 46px;
            border-radius: 50%;
            overflow: hidden;
            background: #ECE2CC;
            flex-shrink: 0;
        }

        .testimonial-avatar svg {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }

        .testimonial-avatar img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity .5s ease;
        }

        .testimonial-avatar img.loaded {
            opacity: 1;
        }

        #team-grid {
            scrollbar-width: none;
            -ms-overflow-style: none;
            scroll-snap-type: x proximity;
        }

        #team-grid::-webkit-scrollbar {
            display: none;
        }

        #team-grid .people-card {
            flex: 0 0 auto;
            width: 200px;
            scroll-snap-align: start;
        }

        @media (max-width: 640px) {
            #team-grid .people-card {
                width: 168px;
            }
        }

        .team-nav-btn {
            position: absolute;
            top: 40%;
            transform: translateY(-50%);
            z-index: 4;
            height: 44px;
            width: 44px;
            border-radius: 999px;
            border: 1px solid rgba(180, 145, 91, .35);
            background: rgba(244, 238, 225, .9);
            backdrop-filter: blur(6px);
            color: var(--gold);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color .3s ease, color .3s ease, transform .25s ease;
        }

        .team-nav-btn:hover {
            background: var(--gold);
            color: #0a1420;
        }

        .team-nav-btn:active {
            transform: translateY(-50%) scale(.9);
        }

        .team-prev {
            left: -8px;
        }

        .team-next {
            right: -8px;
        }

        @media (max-width: 640px) {
            .team-nav-btn {
                height: 36px;
                width: 36px;
            }

            .team-prev {
                left: -4px;
            }

            .team-next {
                right: -4px;
            }
        }
    

        .ec-stage {
            position: relative;
            overflow: hidden;
            border-radius: 1.75rem;
            border: 1px solid rgba(180, 145, 91, .25);
            height: 80vh;
            min-height: 340px;
            max-height: 680px;
            background: var(--navy);
        }

        .ec-track {
            display: flex;
            height: 100%;
            transition: transform .75s cubic-bezier(.22, .61, .36, 1);
            will-change: transform;
        }

        .ec-slide {
            position: relative;
            flex: 0 0 100%;
            height: 100%;
            overflow: hidden;
        }

        .ec-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform: scale(1.02);
            filter: saturate(.94);
            transition: filter .4s ease;
        }

        .ec-slide.ec-active img {
            animation: ecKenBurns 7s ease-out forwards;
        }

        @keyframes ecKenBurns {
            from {
                transform: scale(1.02);
            }

            to {
                transform: scale(1.12);
            }
        }

        .ec-slide::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(14, 27, 50, .12) 0%, transparent 18%, transparent 78%, rgba(14, 27, 50, .35) 100%);
            pointer-events: none;
        }

        .ec-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 4;
            height: 50px;
            width: 50px;
            border-radius: 999px;
            border: 1px solid rgba(220, 196, 148, .35);
            background: rgba(14, 27, 50, .45);
            backdrop-filter: blur(8px);
            color: var(--cream);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color .3s ease, border-color .3s ease, transform .25s ease;
        }

        .ec-arrow:hover {
            background: var(--gold);
            border-color: var(--gold);
            color: #0a1420;
        }

        .ec-arrow:active {
            transform: translateY(-50%) scale(.9);
        }

        .ec-arrow-left {
            left: 18px;
        }

        .ec-arrow-right {
            right: 18px;
        }

        .ec-counter {
            position: absolute;
            top: 18px;
            right: 20px;
            z-index: 4;
            font-family: 'Space Mono', monospace;
            font-size: .68rem;
            letter-spacing: .06em;
            color: var(--cream);
            background: rgba(14, 27, 50, .45);
            border: 1px solid rgba(220, 196, 148, .3);
            border-radius: 999px;
            padding: 6px 13px;
            backdrop-filter: blur(6px);
        }

        .ec-progress {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 3px;
            z-index: 4;
            background: rgba(255, 255, 255, .1);
        }

        .ec-progress-bar {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--gold), var(--goldlight));
            transition: width .1s linear;
        }

        .ec-thumbs {
            display: flex;
            gap: 10px;
            margin-top: 16px;
            overflow-x: auto;
            padding-bottom: 6px;
            scrollbar-width: thin;
            scrollbar-color: rgba(180, 145, 91, .6) transparent;
        }

        .ec-thumbs::-webkit-scrollbar {
            height: 5px;
        }

        .ec-thumbs::-webkit-scrollbar-thumb {
            background: rgba(180, 145, 91, .6);
            border-radius: 4px;
        }

        .ec-thumb {
            flex: 0 0 auto;
            width: 96px;
            height: 66px;
            border-radius: .75rem;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            opacity: .55;
            transition: opacity .3s ease, border-color .3s ease, transform .3s ease;
        }

        .ec-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .ec-thumb:hover {
            opacity: .85;
            transform: translateY(-2px);
        }

        .ec-thumb.ec-thumb-active {
            opacity: 1;
            border-color: var(--gold);
        }

        @media (max-width: 640px) {
            .ec-arrow {
                height: 42px;
                width: 42px;
            }
        }

        .text-image-clip {
            background-size: cover;
            background-position: center;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }


        .writing-mode-vertical {
            writing-mode: vertical-lr;
            transform: rotate(180deg);
        }
    

        .city-showcase-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
        }

        @media (min-width: 640px) {
            .city-showcase-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .city-showcase-grid {
                grid-template-columns: repeat(6, 1fr);
            }
        }

        .city-showcase-tile {
            cursor: pointer;
            border: 1px solid var(--line);
            border-radius: 14px;
            overflow: hidden;
            background: rgba(180, 145, 91, .04);
            transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
        }

        .city-showcase-tile:hover {
            border-color: var(--gold);
            transform: translateY(-3px);
            box-shadow: 0 18px 30px -18px rgba(14, 27, 50, .28);
        }

        .city-showcase-tile.active {
            border-color: var(--gold);
            box-shadow: 0 0 0 1px var(--gold);
        }

        /* ---- PLACEHOLDER: this is the area meant for the city photo ----
           Swap for a real photo either way:
           1) <div class="city-showcase-img" style="background-image:url('images/tanger.jpg')">
           2) or replace this whole div with an <img> tag. */
        .city-showcase-img {
            position: relative;
            aspect-ratio: 4 / 3;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background:
                repeating-linear-gradient(45deg, rgba(180, 145, 91, .1) 0 10px, rgba(180, 145, 91, .04) 10px 20px),
                var(--navy);
            background-size: cover;
            background-position: center;
        }

        .city-showcase-img::after {
            content: "";
            position: absolute;
            inset: 0;
            background:
                linear-gradient(180deg, rgba(14, 27, 50, .55) 0%, transparent 32%, transparent 55%, rgba(14, 27, 50, .85) 100%);
        }

        .city-showcase-img-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centre horizontalement et verticalement */
    z-index: 2;
    font-family: 'Jost', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .58rem;
    color: var(--goldlight);
    background: rgba(14, 27, 50, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(220, 196, 148, .45);
    padding: 5px 9px;
    border-radius: 999px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

        .city-showcase-name {
            position: absolute;
            left: 10px;
            bottom: 8px;
            z-index: 1;
            font-family: 'Jost', sans-serif;
            letter-spacing: .1em;
            text-transform: uppercase;
            font-size: .64rem;
            color: var(--beige);
        }

        /* ---- city showcase: cap visible rows to 3, scroll for the rest ---- */
        .city-showcase-scroll {
            overflow-y: auto;
            padding-right: 6px;
            scrollbar-width: thin;
            scrollbar-color: var(--gold) transparent;
        }

        .city-showcase-scroll::-webkit-scrollbar {
            width: 5px;
        }

        .city-showcase-scroll::-webkit-scrollbar-track {
            background: transparent;
        }

        .city-showcase-scroll::-webkit-scrollbar-thumb {
            background: var(--gold);
            border-radius: 999px;
        }
    

        .soul-module {
            border-color: rgba(180, 145, 91, .22) !important;
        }

        /* ---- Soul of Morocco: 4-up image grid with hover reveal (replaces text-card grid) ---- */
        .soul-grid-img {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
        }

        @media (min-width: 640px) {
            .soul-grid-img {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .soul-tile {
            position: relative;
            aspect-ratio: 3 / 4;
            overflow: hidden;
            border-radius: 4px;
            cursor: default;
        }

        .soul-tile-bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            transform: scale(1.02);
            transition: transform .8s cubic-bezier(.22, .61, .36, 1), opacity .6s ease;
        }

        .soul-tile:hover .soul-tile-bg {
            transform: scale(1.08);
        }

        .soul-tile::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(14, 27, 50, .05) 0%, rgba(14, 27, 50, .15) 55%, rgba(14, 27, 50, .78) 100%);
            transition: background .5s ease;
        }

        .soul-tile:hover::after {
            background: rgba(10, 20, 32, .55);
        }

        .soul-tile-label {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 2;
            padding: 18px 16px;
            transition: opacity .4s ease, transform .4s ease;
        }

        .soul-tile:hover .soul-tile-label {
            opacity: 0;
            transform: translateY(6px);
        }

        .soul-tile-tag {
            display: block;
            font-family: 'Jost', sans-serif;
            letter-spacing: .22em;
            text-transform: uppercase;
            font-size: .62rem;
            color: var(--gold);
            margin-bottom: 6px;
        }

        .soul-tile-title {
            font-family: 'Fraunces', serif;
            font-weight: 500;
            font-size: 1.05rem;
            line-height: 1.15;
            color: var(--gold);
        }

        .soul-tile-popup {
            position: absolute;
            inset: 0;
            z-index: 3;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 20px 18px;
            opacity: 0;
            pointer-events: none;
            transition: opacity .5s ease;
        }

        .soul-tile:hover .soul-tile-popup {
            opacity: 1;
        }

        .soul-tile-popup-inner {
            opacity: 0;
            transform: translateY(10px);
            transition: opacity .5s ease .08s, transform .5s ease .08s;
        }

        .soul-tile:hover .soul-tile-popup-inner {
            opacity: 1;
            transform: translateY(0);
        }

        .soul-tile-popup-tag {
            font-family: 'Jost', sans-serif;
            letter-spacing: .2em;
            text-transform: uppercase;
            font-size: .6rem;
            color: var(--gold);
            display: block;
            margin-bottom: 8px;
        }

        .soul-tile-popup-body {
            font-size: .74rem;
            line-height: 1.55;
            font-weight: 300;
            color: rgba(247, 245, 240, .88);
            margin-bottom: 10px;
        }

        .soul-tile-popup-closing {
            font-family: 'Fraunces', serif;
            font-style: italic;
            font-size: .78rem;
            color: var(--gold);
        }

        @media (max-width: 639px) {
            .soul-tile-popup {
                opacity: 1;
                pointer-events: none;
                background: linear-gradient(180deg, transparent 0%, rgba(10, 20, 32, .35) 40%, rgba(10, 20, 32, .88) 100%);
            }

            .soul-tile-popup-inner {
                opacity: 1;
                transform: none;
            }

            .soul-tile-label {
                opacity: 0;
            }
        }
    

        .site-bg {
            background: #EDE4CE;
        }
    

        .hero-scroll-wrap {
            position: relative;
            height: 200vh;
            /* zone de scroll dédiée à l'effet, comme ton body:200vh d'origine */
        }

        .hero-section {
            position: sticky;
            top: 0;
            left: 0;
            width: 100%;
            /* 100% au lieu de 100vw, évite un débordement horizontal */
            height: 100vh;
            background: url('../../media/hero/first_chapter.png') no-repeat center center/cover;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            padding: 50px 20px 40px 20px;
            overflow: hidden;
        }

        /* Conteneur avec une hauteur plus importante pour laisser monter le titre en haut */
        .title-wrapper {
            position: relative;
            width: 100%;
            height: 35vh;
            /* Ajout d'une hauteur dédiée pour laisser le titre s'exprimer */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1;

            /* Masque totalement visible au haut (0%) et découpé uniquement au bas pour la montagne */
            -webkit-mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 95%);
            mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 95%);
        }

        /* CHAPTER 01 */
        .chapter-tag {
            position: relative;
            z-index: 3;
            font-family: 'Cinzel', serif;
            font-size: 16px;
            font-weight: 400;
            letter-spacing: 0.45em;
            color: rgba(255, 255, 255, 0.85);
            text-transform: uppercase;
            margin-top: 15px;
        }

        .hero-title {
    position: relative;
    bottom: 14px;

    font-family: 'Anton', sans-serif;
    font-size: clamp(4rem, 15vw, 12.5rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
    line-height: 0.9;

    /* Nouvelle couleur */
    color: #101D33;

    /* Masque d'opacité inversé inchangé */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);

    filter: contrast(120%);

    /* Position de départ : caché sous le relief */
    transform: translateY(120px);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

        /* SCROLL TO DISCOVER */
        .scroll-container {
            position: relative;
            z-index: 3;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
            margin-bottom: 10px;
        }

        .scroll-text {
            font-family: 'Montserrat', sans-serif;
            font-size: 10px;
            font-weight: 400;
            letter-spacing: 0.35em;
            color: rgba(255, 255, 255, 0.7);
            text-transform: uppercase;
            animation: fadeInOut 2s ease-in-out infinite;
        }

        .scroll-line {
            width: 1px;
            height: 45px;
            background-color: rgba(255, 255, 255, 0.5);
            animation: pulseScroll 2s ease-in-out infinite;
        }

        @keyframes fadeInOut {
            0% {
                opacity: 0;
                transform: translateY(-5px);
            }

            50% {
                opacity: 1;
                transform: translateY(0);
            }

            100% {
                opacity: 0;
                transform: translateY(5px);
            }
        }

        /* Keyframes de l'animation vertical fluide */
        @keyframes pulseScroll {
            0% {
                transform: scaleY(0);
                transform-origin: top;
                opacity: 0;
            }

            50% {
                transform: scaleY(1);
                transform-origin: top;
                opacity: 1;
            }

            50.1% {
                transform-origin: bottom;
            }

            100% {
                transform: scaleY(0);
                transform-origin: bottom;
                opacity: 0;
            }
        }

        #cityPanel {
            position: relative;
            overflow-x: hidden;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(220, 196, 148, .7) transparent;
            transition: background-color .5s ease, border-color .5s ease,
                        -webkit-backdrop-filter .5s ease, backdrop-filter .5s ease;
        }

        /* ---- Ville sélectionnée : fond sombre flouté + textes clairs ---- */
        #cityPanel.city-open {
            background-color: rgba(9, 18, 36, .66);
            -webkit-backdrop-filter: blur(16px) saturate(1.1);
            backdrop-filter: blur(16px) saturate(1.1);
            border-color: rgba(220, 196, 148, .35);
        }

        /* le voile beige clair n'est plus utile une fois le panneau sombre */
        #cityPanel.city-open::before {
            opacity: 0;
        }

        #cityPanelContent #cardTagline {
            color: var(--gold-soft);
        }

        #cityPanelContent #cardName {
            color: var(--cream);
        }

        #cityPanelContent #cardText {
            color: rgba(247, 245, 240, .9);
        }

        #cityPanelContent #cardClosing {
            color: var(--gold-soft);
        }

        #cityPanelContent #cardCta {
            color: var(--gold-soft);
        }

        #cityPanelContent #cardCta:hover {
            color: #fff;
        }

        /* Voile flou, transparent et sans bordure */
        #cityPanel::before {
            content: '';
            position: absolute;
            inset: 0;

            /* Effet de flou transparent (ajustez les px selon l'intensité souhaitée) */
            backdrop-filter: blur(1px);
            -webkit-backdrop-filter: blur(1px);
            /* Support Safari */

            /* Gradient avec opacité réduite pour la transparence */
            background: linear-gradient(180deg,
                    rgba(237, 228, 206, 0.3) 0%,
                    rgba(237, 228, 206, 0.15) 40%,
                    rgba(237, 228, 206, 0.25) 100%);

            /* Suppression des bordures et contours */
            border: none;
            outline: none;

            pointer-events: none;
            z-index: 0;
        }

        #cityPanelIdle,
        #cityPanelContent {
            position: relative;
            z-index: 1;
        }

        #modal-overlay {
            opacity: 0;
            transition: opacity .35s ease;
        }

        #modal-overlay.mo-open {
            opacity: 1;
        }

        #modal-overlay .modal-card-inner {
            transform: scale(.96) translateY(8px);
            transition: transform .35s cubic-bezier(.22, .61, .36, 1);
        }

        #modal-overlay.mo-open .modal-card-inner {
            transform: scale(1) translateY(0);
        }

        #contact-modal-overlay {
            opacity: 0;
            transition: opacity .35s ease;
        }

        #contact-modal-overlay.mo-open {
            opacity: 1;
        }

        #contact-modal-overlay .contact-modal-inner {
            transform: scale(.96) translateY(8px);
            transition: transform .35s cubic-bezier(.22, .61, .36, 1);
        }

        #contact-modal-overlay.mo-open .contact-modal-inner {
            transform: scale(1) translateY(0);
        }
    

        /* ========== GALLERY MARQUEE ========== */
        .gm-wrap {
            position: relative;
            overflow: hidden;
            -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
        }

        .gm-loader {
            position: absolute;
            inset: 0;
            z-index: 5;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 14px;
            background: #EDE4CE;
            opacity: 1;
            transition: opacity .5s ease;
        }

        .gm-loader.gm-loader-hidden {
            opacity: 0;
            pointer-events: none;
        }

        .gm-loader img {
            width: 64px;
            height: auto;
            opacity: .85;
            animation: gmPulse 1.6s ease-in-out infinite;
        }

        .gm-loader span {
            font-family: 'Jost', sans-serif;
            letter-spacing: .22em;
            text-transform: uppercase;
            font-size: .62rem;
            color: var(--gold);
        }

        @keyframes gmPulse {

            0%,
            100% {
                opacity: .55;
                transform: scale(1);
            }

            50% {
                opacity: 1;
                transform: scale(1.06);
            }
        }

        .gm-track {
            display: flex;
            width: max-content;
            gap: 18px;
            animation: gmScroll 30s linear infinite;
            animation-play-state: paused;
            opacity: 0;
            transition: opacity .6s ease;
        }

        .gm-track.gm-ready {
            opacity: 1;
        }

        .gm-wrap:hover .gm-track {
            animation-play-state: paused;
        }

        @keyframes gmScroll {
            from {
                transform: translateX(0);
            }

            to {
                transform: translateX(-50%);
            }
        }

        .gm-item {
            flex: 0 0 auto;
            width: 260px;
            height: 340px;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid var(--line);
            position: relative;
            content-visibility: auto;
            contain-intrinsic-size: 260px 340px;
        }

        .gm-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform .6s cubic-bezier(.22, .61, .36, 1), filter .4s ease;
            filter: saturate(.95);
        }

        .gm-item:hover img {
            transform: scale(1.06);
            filter: saturate(1.05);
        }

        @media (max-width: 640px) {
            .gm-item {
                width: 190px;
                height: 250px;
            }
        }
    

        .gm2-wrap {
            position: relative;
            overflow: hidden;
            height: 480px;
            -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
        }

        .gm2-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
            height: 100%;
        }

        @media (min-width: 640px) {
            .gm2-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .gm2-col {
            display: flex;
            flex-direction: column;
            gap: 14px;
            width: 100%;
            will-change: transform;
        }

        .gm2-col-up {
            animation: gm2ScrollUp 32s linear infinite;
        }

        .gm2-col-down {
            animation: gm2ScrollDown 32s linear infinite;
        }

        .gm2-wrap:hover .gm2-col {
            animation-play-state: paused;
        }

        @keyframes gm2ScrollUp {
            from {
                transform: translateY(0);
            }

            to {
                transform: translateY(-50%);
            }
        }

        @keyframes gm2ScrollDown {
            from {
                transform: translateY(-50%);
            }

            to {
                transform: translateY(0);
            }
        }

        .gm2-item {
            position: relative;
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 999px;
            overflow: hidden;
            border: 1px solid var(--gold-dim);
            flex-shrink: 0;
            /* n'engage le rendu/paint que pour les tuiles réellement visibles à l'écran */
            content-visibility: auto;
            contain-intrinsic-size: 280px 280px;
        }

        .gm2-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            /* pas de filter animé ici : filter est coûteux à recalculer à chaque frame
               sur des dizaines d'images en même temps. On garde seulement transform
               (accéléré GPU) pour l'effet zoom au survol. */
            transition: transform .6s ease;
            will-change: transform;
        }

        .gm2-item::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(160deg, rgba(14, 27, 50, .45), rgba(180, 145, 91, .3));
            mix-blend-mode: multiply;
            transition: opacity .5s ease;
        }

        .gm2-item:hover img {
            transform: scale(1.08);
        }

        .gm2-item:hover::after {
            opacity: 0;
        }

        @media (max-width: 640px) {
            .gm2-wrap {
                height: 380px;
            }
        }
    img, video {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none; /* empêche le menu "Enregistrer" sur iOS au appui long */
}
/* ---- MORE THAN A PLACE : centré sur très grands écrans ---- */
@media (min-width: 1536px) {
    #soul .content-col {
        max-width: 84rem;
        margin-left: auto;
        margin-right: auto;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* titre "MORE THAN / A PLACE." centré */
    #soul .content-col > .cell.mb-14 {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

/* ---- EVERY REASON TO BE HERE : centré sur très grands écrans ---- */
@media (min-width: 1536px) {
    #experiences .content-col {
        max-width: 84rem;
        margin-left: auto;
        margin-right: auto;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* titre + paragraphe centrés (écrase le md:text-left de Tailwind) */
    #experiences .content-col > .mb-12 {
        text-align: center;
    }

    #experiences .content-col > .mb-12 p {
        max-width: 48rem;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}





/* ---- Mobile : "MORE THAN A PLACE." centré + textes des tuiles complets ---- */
@media (max-width: 767px) {
    #soul .content-col > .cell.mb-14 {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

@media (max-width: 639px) {
    /* une seule colonne : les tuiles sont assez larges pour afficher tout le texte */
    .soul-grid-img {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* la hauteur n'est plus fixée par le ratio 3/4 : elle s'adapte au texte */
    .soul-tile {
        aspect-ratio: auto;
        min-height: 360px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    /* le popup passe dans le flux normal, donc la tuile grandit avec son contenu */
    .soul-tile-popup {
        position: relative;
        inset: auto;
        padding: 24px 20px;
    }

    .soul-tile-popup-body {
        font-size: .85rem;
        line-height: 1.6;
    }

    .soul-tile-popup-closing {
        font-size: .9rem;
    }
}


/* ---- Leadership / ROOTED HERE / The MEZ Bridge : centrés sur très grands écrans ---- */
@media (min-width: 1536px) {
    #leadership .content-col,
    #mezway .content-col,
    #network .content-col {
        max-width: 84rem;
        margin-left: auto;
        margin-right: auto;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* en-tête "The MEZ People" : même centrage que EVERY REASON TO BE HERE */
    #leadership .content-col > .mb-12 {
        text-align: center;
    }

    #leadership .content-col > .mb-12 p {
        max-width: 48rem;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* en-tête "The MEZ Bridge" : titre + sous-titre centrés, empilés */
    #network .content-col > .cell.flex {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

/* ---- ROOTED HERE : texte centré sous la main, sur toutes les tailles ---- */
#mezway .mezway-intro {
    text-align: center;
}

#mezway .mezway-intro .divider {
    margin-left: auto;
    margin-right: auto;
}

#mezway .mezway-intro .hint {
    display: block;
    text-align: center;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}





/* ---- MEZ WAY : zoom de la main, puis apparition du contenu à côté ---- */

/* 1. La main : état initial, sans l'ancienne transition d'opacité */
#mezway .hand-img.rv-fade {
    opacity: 0;
    transition: none;
}

/* Desktop : la main est centrée par translateX(-50%), on le garde dans l'animation */
#mezway .hand-img.rv-fade.in {
    animation: handZoomDesktop 1.6s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes handZoomDesktop {
    from { opacity: 0; transform: translateX(-50%) scale(.3); }
    to   { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* Mobile : pas de translateX (transform: none dans ton CSS) */
@media (max-width: 900px) {
    #mezway .hand-img.rv-fade.in {
        animation: handZoomMobile 1.6s cubic-bezier(.22, .61, .36, 1) forwards;
    }

    @keyframes handZoomMobile {
        from { opacity: 0; transform: scale(.3); }
        to   { opacity: 1; transform: scale(1); }
    }
}




/* ---- MEZ WAY : main à gauche | ligne navy | textes à droite ---- */
.mw-desktop { display: none; }

/* ---- MEZ WAY : main à gauche | ligne navy | textes à droite ---- */
.mw-desktop { display: none; }
@media (min-width: 901px) {
    #mezway .mezway-hand-outer { display: none; }

    #mezway .mw-desktop {
        display: grid;
        grid-template-columns: 1fr 1px 1fr;
        align-items: center;
        column-gap: 3rem;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* la main est collée à la ligne, côté gauche */
    .mw-hand-wrap {
        justify-self: end;
        width: min(100%, 460px);
    }

    .mw-line {
        align-self: stretch;
        width: 1px;
        background: var(--navy);
        opacity: 0;
        transition: opacity 1s ease 1.6s;
    }

    .mw-desktop:has(.mw-hand-wrap.in) .mw-line {
        opacity: 1;
    }

    /* les textes commencent à la ligne, côté droit, et restent dans leur colonne */
    .mw-texts {
        justify-self: start;
        width: 100%;
        max-width: 520px;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
        transition-delay: 2s;
    }

    .mw-texts p { text-align: justify; }
}

/* Mobile : zoom de la main (ancien comportement conservé) */
@media (max-width: 900px) {
    #mezway .hand-img.rv-fade { opacity: 0; transition: none; }
    #mezway .hand-img.rv-fade.in { animation: handZoomMobile 1.6s cubic-bezier(.22, .61, .36, 1) forwards; }
    @keyframes handZoomMobile {
        from { opacity: 0; transform: scale(.3); }
        to   { opacity: 1; transform: scale(1); }
    }
}

@media (prefers-reduced-motion: reduce) {
    #mezway .mw-hand-wrap.rv-fade { clip-path: none; }
    .mw-line { transform: none !important; }
    .mw-item { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* MEZ WAY : numéros à la même taille que le titre */
.mw-item .num {
    font-size: 24px;
    width: 48px;
    height: 48px;
    line-height: 1;
}


/* ---- A KINGDOM OF CONTRASTS : même colonne que les autres sections ---- */

/* Tablette / petit desktop : même marge droite que les autres sections (2.5rem) */
@media (min-width: 768px) {
    #destination .content-col {
        padding-right: calc(var(--content-right) - 2rem);
    }
}

/* Très grands écrans : même centrage et même largeur que MORE THAN, EVERY REASON... */
@media (min-width: 1536px) {
    #destination .content-col {
        max-width: 80rem;   /* 84rem - 2 × 2rem de padding des autres sections */
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }
}



/* ---- MEZ WAY mobile / tablette : main en haut, textes en dessous ---- */
@media (max-width: 900px) {
    #mezway .mw-desktop {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.75rem;
        width: 100%;
        max-width: 640px;
        margin: 0 auto;
    }

    #mezway .mw-hand-wrap {
        width: min(80%, 360px);
    }

    /* la ligne devient horizontale, entre la main et les textes */
    #mezway .mw-line {
        width: 64px;
        height: 1px;
        background: var(--navy);
        opacity: 1;
    }

    #mezway .mw-texts {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    #mezway .mw-texts p {
        text-align: justify;
    }

    #mezway .mw-item .section-title {
        font-size: 20px;
    }

    #mezway .mw-item .num {
        font-size: 20px;
        width: auto;
        height: auto;
    }
.collection-text.fadeInLeftSlow.in {
    opacity: 0.7;
    transform: translateX(0);
}
}