/* ═══════════════════════════ FONTS AUTO-HÉBERGÉES ═══════════════════════════ */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/Fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/Fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/Fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/Fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/Fonts/cormorant-garamond-latin-600-italic.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/Fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/Fonts/montserrat-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/Fonts/montserrat-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/Fonts/montserrat-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ════════════════════════════════════════════════════════════════════════════ */

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

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --muted: #9a9a9a;
    --border: #ebebeb;
    --bg2: #f5f4f1;
    --sb: 180px;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Montserrat", system-ui, sans-serif;
    --radius: 12px;
    --green: #22c55e;
    --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
    --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --dur-slide:   1.0s;
    --dur-page:    0.6s;
    --shadow-card: rgba(0, 0, 0, 0.08) 0px 4px 12px;
    --shadow-hover: rgba(0, 0, 0, 0.15) 0px 12px 28px;
    --gl-top-padding: 155px; /* compense la hauteur visuelle de la sidebar */
}

.dark {
  --bg:     #111110;
  --bg2:    #1a1918;
  --text:   #e8e5df;
  --muted:  #777470;
  --border: #2a2927;
  --shadow-card: rgba(0, 0, 0, 0.3) 0px 4px 12px;
  --shadow-hover: rgba(0, 0, 0, 0.5) 0px 12px 28px;
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.55;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

html {
    transition: background 0.3s;
}

.shell {
    display: flex;
    height: 100dvh;
    width: 100vw;
}

/* ═══ SKIP LINK ═══ */
.skip-link {
    position: fixed;
    top: -100%;
    left: 8px;
    z-index: 9999;
    background: var(--text);
    color: var(--bg);
    padding: 12px 20px;
    border-radius: 0 0 8px 8px;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: top 0.25s var(--ease-out);
}
.skip-link:focus {
    top: 0;
}

.sidebar {
    width: var(--sb);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 20px 22px;
    background: var(--bg);
    z-index: 10;
    position: relative;
    animation: sidebarIn 0.72s var(--ease-expo) both;
}

@keyframes sidebarIn {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0);     }
}

.sb-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sb-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sb-profile {
    position: relative;
}

.sb-avatar {
    width: 50px;
    height: 50px;
    border-radius: 25%;
    object-fit: cover;
    display: block;
    margin-bottom: 9px;
    transition: transform .3s var(--ease-out);
}

.sb-avatar:hover {
    transform: scale(1.06);
}

.sb-name {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--text);
    overflow: hidden;
    height: 20px;
    position: absolute;
    top: 5px;
    left: 60px;
}
.sb-name p {
    transition: transform 0.5s var(--ease-out);
    cursor: pointer;
    position: relative;
    bottom: 100%;
}
.sb-name p:hover {
    transform: translateY(20px);
}
.sb-role {
    font-size: 11.5px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
    position: absolute;
    left: 60px;
    top: 20px;
}

.sb-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeUp .5s var(--ease-out) .15s both;
}

.sb-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 0px;
    text-decoration: none;
}

.sb-dot {
    font-size: 14px;
    opacity: 0;
    width: 10px;
    flex-shrink: 0;
    color: var(--text);
    line-height: 1;
    transition: opacity 0.25s;
}

.sb-link.active .sb-dot {
    opacity: 1;
}

.sb-lbl {
    font-size: 19px;
    font-weight: 300;
    color: var(--muted);
    transition: color 0.2s, transform 0.2s;
}

.sb-link.active .sb-lbl {
    color: var(--text);
}

.sb-link:hover .sb-lbl {
    color: var(--text);
    transform: translateX(2px);
}

.sb-socials {
    display: flex;
    gap: 13px;
    animation: fadeUp .5s var(--ease-out) .4s both;
}

.sb-socials a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    display: flex;
}

.sb-socials a:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.sb-socials svg {
    width: 14px;
    height: 14px;
    fill: currentcolor;
}

#theme-btn {
    position: absolute;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    top: 80px;
    border-radius: 50%;
}

#theme-btn:hover {
  color: var(--text);
}

#theme-btn svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30px;
  height: 20px;
  stroke: currentColor;
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-expo);
}

#theme-btn.theme-spin svg {
  animation: btnSpin 0.5s var(--ease-expo);
}

@keyframes btnSpin {
  0%   { transform: rotate(0deg)   scale(1);   }
  40%  { transform: rotate(200deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1);   }
}

.theme-sun  { opacity: 1; transform: rotate(0deg)   scale(1);   }
.theme-moon { opacity: 0; transform: rotate(45deg)  scale(0.6); }

.dark .theme-sun  { opacity: 0; transform: rotate(-45deg) scale(0.6); }
.dark .theme-moon { opacity: 1; transform: rotate(0deg)   scale(1);   }

.main {
    flex: 1 1 0%;
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 0;
    position: relative;
}

.main::-webkit-scrollbar {
    width: 4px;
}
.main::-webkit-scrollbar-track {
    background: transparent;
}
.main::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.page {
    display: none;
    min-height: 100%;
}

.page.active {
    display: block;
}

@media (max-width: 600px) {
  #pg-contact.active {
    height: calc(100vh - 62px - env(safe-area-inset-bottom));
  }
}

#pg-contact {
    display: none;
}

#pg-contact.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    height: 100vh;
}

@keyframes pgIn {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1);     }
}

.gl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
    padding: var(--gl-top-padding) 26px 8px;
}

.gl-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg2);
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    box-shadow: var(--shadow-card);
    transition: opacity .75s var(--ease-out), transform .75s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.gl-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.gl-card.visible:hover {
    transform: translateY(-3px) scale(1.005);
    box-shadow: var(--shadow-hover);
}

.gl-card-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
}

.gl-card--featured .gl-card-img {
    aspect-ratio: 21 / 9;
}

.gl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-expo), filter 0.6s;
}

.gl-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 10px 12px 10px 0;
}

.gl-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text);
    transition: transform 0.25s;
    margin-left: 12px;
    padding-top: 5px;
}

.gl-loc {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
    margin-left: 12px;
}

.gl-arr {
    font-size: 16px;
    color: var(--muted);
    flex-shrink: 0;
    padding: 0 8px 8px 0;
    transition: transform 0.25s, color 0.25s;
    line-height: 1;
}

.gl-card:hover .gl-arr {
    transform: translate(3px, -2px);
    color: var(--text);
}

.gl-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

/* ═══ PROJETS ═══ */

.proj-page.active {
    display: flex !important;
}

.proj-photos-col {
    flex: 1 1 0%;
    min-width: 0;
    padding: 20px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proj-back {
    margin-bottom: 4px;
    position: sticky;
    top: 20px;
    z-index: 5;
}

.proj-back button {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    padding: 6px 16px;
    line-height: 1;
    border-radius: 40px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    transition: color 0.2s, transform 0.25s var(--ease-out), background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dark .proj-back button {
    background: rgba(17, 17, 16, 0.85);
}

.proj-back button:hover {
    color: var(--text);
    transform: translateX(-2px);
    background: var(--bg);
}

.proj-photo-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    filter: blur(4px);
    transition: opacity 0.8s var(--ease-expo) var(--reveal-delay, 0ms),
                transform 0.8s var(--ease-expo) var(--reveal-delay, 0ms),
                filter 0.8s var(--ease-expo) var(--reveal-delay, 0ms);
}

.proj-photo-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.proj-photo-item img {
    width: 100%;
    display: block;
    object-fit: contain;
    max-height: 85vh;
    transition: transform 0.7s var(--ease-expo), filter 0.5s;
    filter: brightness(1);
    cursor: zoom-in;
}

.proj-photo-item img:hover {
    transform: scale(1.02);
}

.proj-meta-col {
    width: 220px;
    flex-shrink: 0;
    padding: 20px 22px 60px 0;
    position: sticky;
    top: 0;
    height: fit-content;
    align-self: flex-start;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.7s var(--ease-expo) 0.18s, transform 0.7s var(--ease-expo) 0.18s;
    text-align: center;
}

.proj-meta-col.visible {
    opacity: 1;
    transform: translateX(0);
}

.proj-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.28;
    margin-bottom: 22px;
    color: var(--text);
}
.proj-description {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 18px;
    margin-right: 10px;
}
.pm-item {
    margin-bottom: 18px;
}

.pm-key {
    font-size: 12px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 2px;
    display: block;
}

.pm-val {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.pm-count {
    color: var(--text);
    font-weight: 400;
}

/* ═══ LIGHTBOX ═══ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(6, 6, 6, 0.97);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
    animation: lbIn 0.2s var(--ease-expo);
}

@keyframes lbIn {
    from { opacity: 0; transform: scale(0.975); }
    to   { opacity: 1; transform: scale(1);     }
}

.lb-fullscreen {
    position: absolute;
    top: 18px;
    right: 66px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, transform 0.2s;
    padding: 0;
}

.lb-fullscreen:hover {
    color: #fff;
    transform: scale(1.15);
}

.lb-fullscreen svg {
    width: 18px;
    height: 18px;
}

.lb-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 30px;
    line-height: 1;
    transition: color 0.15s, transform 0.2s;
    z-index: 2;
    font-family: var(--sans);
    font-weight: 300;
}

.lb-close:hover {
    color: rgb(255, 255, 255);
    transform: rotate(90deg);
}

.lb-counter {
    position: absolute;
    top: 24px;
    left: 28px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    letter-spacing: 0.1em;
    z-index: 2;
    font-family: var(--sans);
}

.lb-img-wrap {
    position: relative;
    width: calc(100vw - 100px);
    height: calc(100vh - 160px);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.lb-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.44s var(--ease-smooth);
    will-change: transform;
}

.lb-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.lb-prev, .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 22px;
    font-family: var(--serif);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s var(--ease-out), color 0.25s;
    z-index: 2;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lb-prev {
    left: 16px;
}

.lb-next {
    right: 16px;
}

.lb-prev:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-50%) translateX(-2px);
}

.lb-next:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-50%) translateX(2px);
}

.lb-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 22px;
    background: linear-gradient(to top, rgba(6, 6, 6, 0.8) 0%, transparent 100%);
    padding-top: 40px;
    z-index: 2;
}

.lb-thumbs {
    display: flex;
    gap: 6px;
    max-width: 90vw;
    overflow-x: auto;
}

.lb-thumbs::-webkit-scrollbar {
    height: 0px;
}

.lb-thumb {
    width: 50px;
    height: 34px;
    border-radius: 5px;
    overflow: hidden;
    opacity: 0.35;
    border: 1.5px solid transparent;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
    cursor: pointer;
}

.lb-thumb.active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.7);
}

.lb-thumb:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lb-caption {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-style: italic;
    font-family: var(--serif);
    letter-spacing: 0.04em;
}

/* ═══ ABOUT ═══ */

#pg-about {
    padding: 28px 24px 60px;
}

.about-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
    align-items: center;
    margin-bottom: 46px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.82s var(--ease-expo), transform 0.82s var(--ease-expo);
}

.about-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    transition: transform .6s var(--ease-out);
}

.about-photo:hover {
    transform: scale(1.01);
}

.about-name {
    font-family: var(--serif);
    font-style: italic;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 3px;
}

.about-role {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.about-loc {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 28px;
}

.about-conn {
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 3px;
}

.about-cta {
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--serif);
    font-style: italic;
}

.about-cta:hover {
    gap: 7px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    border-top: 1px solid var(--border);
    padding-top: 38px;
}

.about-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.78s var(--ease-expo), transform 0.78s var(--ease-expo);
}

.about-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-section:nth-child(1) { transition-delay: 0s;     }
.about-section:nth-child(2) { transition-delay: 0.15s;  }
.about-section:nth-child(3) { transition-delay: 0.32s;  }
.about-section:nth-child(4) { transition-delay: 0.50s;  }

.ab-sec-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 14px;
}

.about-bio {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.8;
    font-style: italic;
}

.about-bio p + p {
    margin-top: 10px;
}

.gear-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gear-lbl {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 7px;
}

.gear-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 9px 11px;
    margin-bottom: 6px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.gear-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.gear-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    background: var(--bg2);
}

.gear-name {
    font-size: 11.5px;
    color: var(--text);
    line-height: 1.3;
}

/* ═══ TIMELINE ═══ */

.about-section--full {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 38px;
  margin-top: 4px;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.tl-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 32px;
  position: relative;
  padding-bottom: 28px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s var(--ease-expo), transform 0.65s var(--ease-expo);
}

.tl-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.tl-item:nth-child(1) { transition-delay: 0.00s; }
.tl-item:nth-child(2) { transition-delay: 0.10s; }
.tl-item:nth-child(3) { transition-delay: 0.22s; }
.tl-item:nth-child(4) { transition-delay: 0.34s; }
.tl-item:nth-child(5) { transition-delay: 0.46s; }
.tl-item:nth-child(6) { transition-delay: 0.58s; }

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 1px;
  background: var(--border);
  transition: width 0.25s var(--ease-out), background 0.25s;
}

.tl-item--now::before {
  background: var(--text);
  width: 16px;
}

.tl-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
  text-align: right;
  padding-top: 0;
  letter-spacing: 0.01em;
}

.tl-item--now .tl-year {
  color: var(--text);
}

.tl-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.tl-badge {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  font-style: normal;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 8px;
  letter-spacing: 0.04em;
}

.tl-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.78;
  font-style: italic;
}

/* ═══ CONTACT ═══ */

.contact-left {
    padding: 32px 36px 60px;
    overflow-y: auto;
}

.ct-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 32px;
}

.ct-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform .3s var(--ease-out);
}

.ct-avatar:hover {
    transform: scale(1.06);
}

.ct-pname {
    font-family: var(--serif);
    font-style: italic;
    font-size: 19px;
    font-weight: 400;
}

.ct-h {
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 9px;
}

.ct-intro {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.78;
    font-style: italic;
    margin-bottom: 28px;
}

.ct-field {
    margin-bottom: 20px;
}

.ct-lbl {
    font-size: 12.5px;
    font-weight: 400;
    margin-bottom: 2px;
}

.ct-val {
    font-size: 12.5px;
    color: var(--muted);
}

.ct-tel {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.ct-tel:hover {
    color: var(--text);
}

.ct-soc {
    display: flex;
    gap: 13px;
    margin-top: 4px;
}

.ct-soc a {
    color: var(--muted);
    transition: color 0.15s, transform 0.2s;
}

.ct-soc a:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.ct-soc svg {
    width: 17px;
    height: 17px;
    fill: currentcolor;
}

.ct-note {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.78;
    margin-top: 32px;
    font-style: italic;
}

/* ═══ FORMULAIRE DE CONTACT ═══ */

.ct-form {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ct-form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.ct-form-label {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 5px;
    color: var(--text);
}

.ct-form-input {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text);
    font-weight: 300;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.ct-form-input:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.08);
}

.dark .ct-form-input:focus {
    box-shadow: 0 0 0 2px rgba(232, 229, 223, 0.1);
}

.ct-form-input::placeholder {
    color: var(--muted);
    opacity: 0.6;
}

.ct-form-input.error {
    border-color: #dc2626;
}

.ct-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.ct-form-error {
    font-size: 11px;
    color: #dc2626;
    min-height: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.2s, margin 0.2s;
    margin-top: 0;
}

.ct-form-error.visible {
    height: 16px;
    margin-top: 4px;
}

.ct-form-btn {
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 40px;
    padding: 10px 28px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.25s, transform 0.25s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    justify-content: center;
    letter-spacing: 0.02em;
}

.ct-form-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.ct-form-btn:active {
    transform: scale(0.97);
}

.ct-form-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.cf-btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--bg);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.ct-form-btn.loading .cf-btn-text { display: none; }
.ct-form-btn.loading .cf-btn-loader { display: block; }

.ct-form-btn.success {
    background: #22c55e;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ct-form-status {
    font-size: 12px;
    margin-top: 12px;
    min-height: 18px;
    color: var(--muted);
}

.ct-form-status.success {
    color: #22c55e;
}

.ct-form-status.error {
    color: #dc2626;
}

.contact-right {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
    height: 1000px;
}

.cr-track {
    display: flex;
    flex-direction: column;
    animation: scrollUp 32s linear infinite;
    will-change: transform;
    padding: 12px 0;
    flex-shrink: 0;
}

.contact-right:hover .cr-track,
.contact-right:active .cr-track {
    animation-play-state: paused;
}

.cr-slide {
    flex-shrink: 0;
    overflow: hidden;
    width: 100%;
    height: 52vh;
    max-height: 400px;
    margin: 24px 0;
    border-radius: var(--radius);
}

.cr-slide img {
    width: 70%;
    height: 70%;
    object-fit: cover;
    display: block;
    filter: brightness(0.92);
    transition: filter 0.5s;
    border-radius: var(--radius);
}

.contact-right:hover .cr-slide img {
    filter: brightness(1);
}

@keyframes scrollUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══ CITATION D'OUVERTURE ═══ */

#quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

#quote-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

#quote-overlay.hidden {
  display: none;
}

#quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 2.2vw, 26px);
  font-weight: 300;
  color: var(--text);
  text-align: center;
  max-width: 560px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}

#quote-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ PAGE OVERLAY ═══ */

#page-overlay {
  display: none;
}

/* ═══ ACCESSIBILITÉ ═══ */

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

:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
    border-radius: 4px;
}

.sb-link:focus-visible,
.sb-socials a:focus-visible {
    outline-offset: 4px;
}

.lightbox button:focus-visible {
    outline-color: rgba(255, 255, 255, 0.7);
}

/* ═══ PRIVACY POPUP ═══ */

#privacy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9995;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

#privacy-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

#privacy-popup {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  width: min(520px, calc(100vw - 32px));
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  z-index: 9996;
  padding: 28px 28px 24px;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#privacy-popup.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.privacy-popup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.privacy-popup-head svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  flex-shrink: 0;
}

.privacy-popup-head h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  flex: 1;
  margin: 0;
}

.privacy-popup-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.privacy-popup-close:hover { color: var(--text); }

.privacy-popup-intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.privacy-popup-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-popup-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.privacy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 1px;
}

.privacy-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--text);
}

.privacy-popup-list strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.privacy-popup-list p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.privacy-popup-list a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-popup-link {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  width: 100%;
  transition: color 0.2s;
}

.privacy-popup-link:hover { color: var(--text); }

/* ═══ PRIVACY BADGE — hover plus visible ═══ */

.sb-privacy {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.45;
  transition: opacity 0.25s;
  animation: fadeUp .5s var(--ease-out) .55s both;
}

.sb-privacy:hover {
  opacity: 1;
}

.sb-privacy svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  stroke: var(--muted);
}

.sb-privacy span {
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 400;
  white-space: nowrap;
}

.gl-footer-privacy {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

.gl-footer-privacy svg {
  flex-shrink: 0;
  stroke: var(--muted);
}

/* ═══ MAGNETIC ═══ */

.magnetic {
  transition: transform 0.2s var(--ease-out);
  will-change: transform;
}

/* ═══ PARALLAX PROJET ═══ */

.proj-parallax {
  will-change: transform;
}

/* ═══ MOUVEMENT RÉDUIT ═══ */

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══ RESPONSIVE — TABLETTE ═══ */

@media (max-width: 900px) {
  :root {
    --sb: 150px;
    --gl-top-padding: 100px;
  }

  .gl-grid {
    gap: 44px;
  }

  .sb-lbl { font-size: 16px; }
}

@media (max-width: 768px) {

  .gl-grid {
    grid-template-columns: 1fr;
    padding: 72px 18px 28px;
    gap: 32px;
  }

  .gl-card--featured .gl-card-img {
    aspect-ratio: 16 / 9;
  }

  .gl-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .proj-page.active {
    flex-direction: column !important;
  }

  .proj-meta-col {
    width: 100%;
    position: static;
    padding: 20px 20px 10px;
    text-align: left;
    order: -1;
    transform: translateY(8px);
  }

  .proj-meta-col.visible {
    transform: translateY(0);
  }

  .proj-photos-col {
    padding: 0 18px 60px;
  }

  .proj-back {
    position: relative;
    top: 0;
    padding-top: 16px;
  }

  .proj-back button {
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 4px 0;
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gear-cols {
    grid-template-columns: 1fr 1fr;
  }

  #pg-contact.active {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .contact-left {
    overflow-y: auto;
    border-right: none;
  }

  .contact-right {
    display: block;
    height: 120px;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  }

  .cr-track {
    animation: none;
    overflow: hidden;
    padding: 0;
  }

  .cr-slide {
    height: 120px;
    max-height: none;
    margin: 0;
  }

  .cr-slide:last-child {
    margin-bottom: 0;
  }

  .ct-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ═══ RESPONSIVE — MOBILE ═══ */

@media (max-width: 600px) {

  /* ── Structure générale ── */
  .shell {
    flex-direction: column;
  }

  .main {
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }

  /* ── Sidebar → barre de nav en bas ── */
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(62px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 16px env(safe-area-inset-bottom);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    animation: none;
    flex-shrink: 0;
    z-index: 100;
    justify-content: unset;
    flex-direction: unset;
  }

  .sb-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
  }

  .sb-bottom {
    display: none;
  }

  .sb-avatar {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .sb-name {
    font-size: 13px;
    height: 15px;
    left: 40px;
    white-space: nowrap;
  }
  .sb-name p:hover {
    transform: translateY(15px);
  }

  .sb-role {
    font-size: 10px;
    left: 40px;
    top: 18px;
    white-space: nowrap;
  }

  .sb-profile {
    height: 34px;
    position: relative;
    min-width: 0;
    overflow: hidden;
  }

  /* ── Nav centrale — colonne du milieu ── */
  .sb-nav {
    flex-direction: row;
    gap: 18px;
    animation: none;
    position: static;
    transform: none;
    justify-content: center;
  }

  .sb-dot { display: none; }

  .sb-lbl {
    font-size: 13px;
    font-weight: 400;
  }

  /* ── Bouton thème — colonne de droite ── */
  #theme-btn {
    position: relative;
    top: 0;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    justify-self: end;
  }

  /* ── Galerie ── */
  .gl-grid {
    grid-template-columns: 1fr;
    padding: 22px 14px 20px;
    gap: 24px;
  }

  .gl-card--featured .gl-card-img {
    aspect-ratio: 16 / 9;
  }

  .gl-footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 20px 16px;
  }

  .gl-footer-privacy {
    justify-content: center;
  }

  /* ── Projets ── */
  .proj-page.active {
    flex-direction: column !important;
  }

  .proj-meta-col {
    width: 100%;
    position: static;
    padding: 16px 14px 8px;
    text-align: left;
    order: -1;
    transform: translateY(8px);
  }

  .proj-meta-col.visible {
    transform: translateY(0);
  }

  .proj-photos-col {
    padding: 0 14px 60px;
  }

  .proj-back {
    position: relative;
    top: 0;
    padding-top: 12px;
  }

  .proj-back button {
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 4px 0;
    font-size: 14px;
  }

  /* ── À propos ── */
  #pg-about {
    padding: 20px 16px 60px;
  }

  .about-top {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }

  .about-photo {
    aspect-ratio: 3 / 2;
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gear-cols {
    grid-template-columns: 1fr;
  }

  /* ── Contact ── */
  #pg-contact.active {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .contact-left {
    padding: 24px 16px 60px;
    overflow-y: auto;
    border-right: none;
  }

  .contact-right {
    display: block;
    height: 110px;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
  }

  .cr-track {
    animation: none;
    overflow: hidden;
    padding: 0;
    flex-direction: row;
  }

  .cr-slide {
    height: 110px;
    max-height: none;
    margin: 0;
    flex-shrink: 0;
    width: 50vw;
  }

  .ct-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* ── Lightbox ── */
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }

  .lb-prev,
  .lb-next {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .lb-thumbs {
    max-width: 95vw;
  }

  .lb-thumb {
    width: 40px;
    height: 28px;
  }

  /* ── Sites précédents ── */
  .prev-grid {
    grid-template-columns: 1fr;
  }

  /* ── Timeline ── */
  .tl-item {
    grid-template-columns: 56px 1fr;
    gap: 0 20px;
  }
}

/* ═══ BLOG / JOURNAL ═══ */

#pg-blog {
  padding: 48px 40px 60px;
  max-width: 860px;
}

.blog-header {
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}

.blog-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin: 0 0 10px;
}

.blog-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.blog-card:first-child {
  padding-top: 0;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-date {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--sans);
}

.blog-tag {
  font-size: 9.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--sans);
}

.blog-card-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.2;
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 18px;
  max-width: 640px;
}

.blog-read {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  opacity: 0.6;
}

@media (max-width: 600px) {
  #pg-blog {
    padding: 24px 16px 80px;
  }

  .blog-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
  }

  .blog-card {
    padding: 24px 0;
  }
}

/* ═══ SITES PRÉCÉDENTS ═══ */

.prev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.prev-card {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  cursor: default;
}

.prev-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.prev-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prev-card-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
}

.prev-card-tag {
  font-family: var(--sans);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 20px;
}

.prev-card-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}

.prev-card-desc {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.75;
  flex: 1;
}

.prev-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.prev-card-stack {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.prev-card-link {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.prev-card-link:hover { color: var(--text); }

.prev-inline {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

.prev-inline:hover { text-decoration-color: var(--muted); }

@media (max-width: 640px) {
  .prev-grid { grid-template-columns: 1fr; }
}
#rights-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }

  #rights-overlay.visible {
    opacity: 1;
    pointer-events: all;
  }

  /* La popup elle-même */
  #rights-popup {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: min(520px, calc(100vw - 32px));
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    padding: 28px 28px 24px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
  }

  #rights-popup.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
  }

  /* Ligne décorative en haut */
  #rights-popup::before {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background: var(--muted);
    margin-bottom: 20px;
  }

  .rp-eyebrow {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
  }

  .rp-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .rp-text {
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 20px;
  }

  .rp-text strong {
    color: var(--text);
    font-weight: 500;
  }

  .rp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .rp-link {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
    white-space: nowrap;
  }

  .rp-link:hover {
    color: var(--text);
  }

  .rp-btn {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--text);
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
  }

  .rp-btn:hover {
    opacity: 0.8;
  }